/* ==========================================================================
   autokorjaamo-lehtonen — theme: helsinki-grid (professional group,
   cross-group adapted for autokorjaamo — see README for rationale),
   skeleton S3 poster stack, light variant
   Palette: white #FFFFFF (bg) · near-black #111214 (text)
            international orange #FF3B00 (single accent — large text /
            buttons only, see README for AA notes)
   Type:    Inter Tight (display, -2% tracking, 700–900) / Inter (body)
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  font-style: normal; font-weight: 700 900; font-display: swap;
  src: url("assets/fonts/inter-tight-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --white: #FFFFFF;
  --black: #111214;       /* 18.7:1 on white, AAA */
  --grey: #55585C;        /* secondary text, 7.15:1 on white, AAA */
  --line: #DEDFE0;        /* hairline separators, non-text */
  --orange: #FF3B00;      /* accent — large display text (>=1.5rem/bold) and
                              buttons only; 3.57:1 on white = AA-large, not
                              AA-normal-text. See README for full ratios. */
  --orange-tint: #FFF1EC; /* accent tint, background wash only */
  --focus: #2437FF;       /* focus ring — distinct from accent so focus is
                              never mistaken for hover/decorative orange */
  --display: "Inter Tight", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --measure: 60ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--white); }

a { color: var(--black); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus-visible { left: 0.5rem; top: 0.5rem; }

/* ------------------------------------------------------------------ draft */

.draft-banner {
  display: block;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem var(--pad);
}
.draft-banner strong { color: #FF7A54; font-weight: 700; }
.draft-banner:hover { background: #000; }

/* --------------------------------------------------------------------- nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.6rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark:hover { color: var(--black); }
.nav-mark svg { flex: none; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  overflow-x: auto;
}
.nav-tabs a {
  display: block;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--grey);
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--black); }
.nav-phone {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  color: var(--white);
  background: var(--black);
  text-decoration: none;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--orange); color: var(--black); }

/* --------------------------------------------------------------- hero (S3) */

.hero {
  background: var(--white);
}
.hero-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vw, 8rem) var(--pad) clamp(3rem, 8vw, 5.5rem);
}

.kicker {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 11vw, 7rem);
  line-height: 0.96;
  color: var(--black);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}
.hero h1 .accent { color: var(--orange); }

.lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--grey);
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.2rem; }
.cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 2px solid var(--black);
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}
.cta:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.cta.ghost { background: transparent; color: var(--black); border-color: var(--black); }
.cta.ghost:hover { background: var(--black); color: var(--white); }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.hero-stats .num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.1;
  color: var(--black);
  overflow-wrap: break-word;
}
.hero-stats .lbl {
  display: block;
  font-size: 0.86rem;
  color: var(--grey);
  margin-top: 0.4rem;
}

/* ---------------------------------------------------------------- bands */

.section { background: var(--white); }
.section.alt { background: #FAFAF9; }

section { scroll-margin-top: 4.5rem; }
.section-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.04;
  color: var(--black);
  margin: 0.4rem 0 1.2rem;
}
.section-note { color: var(--grey); max-width: 40rem; }
.split p { color: var(--grey); max-width: var(--measure); margin-bottom: 1rem; }
.split p:last-of-type { margin-bottom: 0; }

/* ------------------------------------- signature move: oversized index list */

.index-list {
  list-style: none;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: flex;
  align-items: baseline;
  gap: clamp(0.9rem, 3vw, 2rem);
  padding: clamp(0.9rem, 2.6vw, 1.5rem) 0.5rem;
  text-decoration: none;
  color: var(--black);
}
.idx {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--grey);
  width: 3rem;
  flex: none;
}
.label {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 3.4vw, 1.9rem);
  flex: 1 1 auto;
}
.arrow {
  font-family: var(--body);
  font-size: 1.2rem;
  color: var(--grey);
  opacity: 0;
  transform: translateX(-6px);
}
.index-list a:hover,
.index-list a:focus-visible {
  background: var(--orange);
  color: var(--black);
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 -1rem;
}
.index-list a:hover .idx,
.index-list a:focus-visible .idx { color: var(--black); }
.index-list a:hover .arrow,
.index-list a:focus-visible .arrow { opacity: 1; transform: translateX(0); color: var(--black); }

.table-foot {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--grey);
}

/* ------------------------------------------------------------- check list */

.check-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--black);
  font-size: 1rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  background: var(--orange);
}

/* ------------------------------------------------------------- figures */

.mark-figure { display: flex; justify-content: center; }
.mark-figure svg { width: 100%; max-width: 260px; height: auto; }

/* -------------------------------------------------------------- photo note */

.photo-note {
  margin-top: 1.8rem;
  max-width: 46rem;
  border-left: 3px solid var(--orange);
  background: var(--orange-tint);
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--grey);
}
.photo-note strong { color: var(--black); }

/* --------------------------------------- signature move: giant CTA footer */

.cta-band {
  background: var(--black);
  color: var(--white);
}
.cta-inner {
  text-align: center;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  border-top: none;
}
.cta-kicker {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #C9CBCD;
  margin-bottom: 0.8rem;
}
.cta-band h2 {
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 9vw, 5rem);
  margin-bottom: 1.8rem;
}
.cta-big {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
  font-size: 1.1rem;
  padding: 1.05rem 2.1rem;
}
.cta-big:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* ----------------------------------------------------------- yhteystiedot */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.visit-block {
  border-top: 3px solid var(--orange);
  padding: 1.1rem 1.1rem 1.25rem 0;
}
.visit-block h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 0.6rem;
}
.visit-block p { font-size: 0.98rem; color: var(--black); }
.visit-block .small { font-size: 0.88rem; color: var(--grey); margin-top: 0.4rem; }
.text-link { font-weight: 600; }

/* --------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
  margin: 2.4rem 0;
}
.footer-cell { min-width: 0; }
.footer-label {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.2rem;
}
.footer-value { font-size: 0.95rem; color: var(--black); overflow-wrap: break-word; }
.footer-meta {
  padding-bottom: 2rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--grey);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

/* ------------------------------------------------------------ animation */

@media (prefers-reduced-motion: no-preference) {
  .cta, .nav-tabs a, .nav-phone, .index-list a, a { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, padding 140ms ease, opacity 140ms ease, transform 140ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mark-figure { order: -1; margin-bottom: 0.5rem; }
  .mark-figure svg { max-width: 200px; }
}

@media (max-width: 44rem) {
  .nav-mark span { display: none; }
  .nav-tabs { gap: 1rem; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-list a:hover, .index-list a:focus-visible { margin: 0; padding-left: 0.5rem; padding-right: 0.5rem; }
}

@media (max-width: 26rem) {
  .hero-actions .cta { width: 100%; text-align: center; }
  .nav-phone { font-size: 0.88rem; padding: 0.45rem 0.75rem; }
}
