/* Kodinkonehuolto Eräretki
   Konsepti: huoltoliikkeen rehellinen työkalupöytä. Teräksenvalkoinen pohja, työkaluvarsien sininen,
   mittarijohdon punainen pienenä signaalina. Kapea groteski kuin huoltoauton kyljessä, numerot huoltolapun mono-fontilla. */
:root {
  --paper: #F2F4F6;
  --surface: #FFFFFF;
  --ink: #14202E;
  --muted: #535F6C;
  --line: #D3D9E0;
  --blue: #1D4DB8;
  --blue-ink: #FFFFFF;
  --red: #C2312A;
  --band: #14202E;
  --band-fg: #E9EEF3;
  --band-muted: #9BA8B6;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1200px;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E141B; --surface: #161F29; --ink: #E7ECF1; --muted: #9DA9B6; --line: #2A3542;
    --blue: #7EA0EE; --blue-ink: #0E141B; --red: #EE6A61;
    --band: #0A0F15; --band-fg: #E7ECF1; --band-muted: #8E9AA8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E141B; --surface: #161F29; --ink: #E7ECF1; --muted: #9DA9B6; --line: #2A3542;
  --blue: #7EA0EE; --blue-ink: #0E141B; --red: #EE6A61;
  --band: #0A0F15; --band-fg: #E7ECF1; --band-muted: #8E9AA8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.02; margin: 0; text-wrap: balance; font-stretch: 72%; font-weight: 800; letter-spacing: -0.005em; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

.eyebrow { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px; transition: background-color .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--blue); color: var(--blue-ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--band-fg); color: var(--band); }
.btn-light:hover { background: transparent; color: var(--band-fg); border-color: var(--band-fg); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: 1.75rem; text-transform: uppercase; letter-spacing: 0.01em; }
.brand-sub { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); }
.header-call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--ink); color: var(--paper); min-height: 44px; padding: 0 16px; border-radius: 3px; font-family: var(--f-mono); font-weight: 500; font-size: 0.95rem; }
.header-call svg { width: 18px; height: 18px; fill: currentColor; }
.header-call:hover { background: var(--blue); color: var(--blue-ink); }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; cursor: pointer; color: var(--ink); }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--paper); overflow: clip; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 30%, transparent 62%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; min-height: clamp(560px, 80svh, 800px); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-block: 72px 56px; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.1rem); margin-top: 14px; text-transform: uppercase; }
.hero-lede { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }


/* Notice */
.notice { background: var(--surface); border-block: 1px solid var(--line); }
.notice-row { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; text-align: center; gap: 12px 20px; padding-block: 20px; }
.notice-label { flex: none; font-family: var(--f-mono); font-weight: 500; font-stretch: 100%; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--surface); background: var(--red); padding: 4px 8px; border-radius: 2px; line-height: 1.4; }
.notice p { font-weight: 500; }

/* Section heads */
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); text-transform: uppercase; margin-top: 10px; }

/* Services */
.services { padding-block: clamp(64px, 9vw, 120px); }
.verbs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 16px 18px; }
.verbs li { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 9px; border-radius: 2px; color: var(--muted); }
h3 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); text-transform: uppercase; }
.row-text p, .feature-text p { max-width: 54ch; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--surface); margin-bottom: clamp(48px, 7vw, 96px); }
.feature-text { padding: clamp(28px, 4vw, 56px); min-width: 0; }
.kicker { font-weight: 700; color: var(--red); font-size: 0.95rem; margin-bottom: 8px; }
.feature-offer { background: var(--band); color: var(--band-fg); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; align-items: flex-start; min-width: 0; }
.offer-brand { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); line-height: 1; text-transform: uppercase; }
.offer-text { color: var(--band-muted); font-size: 1.05rem; max-width: 30ch; margin-bottom: 8px; }

.row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.row + .row { margin-top: clamp(56px, 8vw, 104px); }
.row-flip { grid-template-columns: 1fr 1.25fr; }
.row-flip .row-media { order: 2; }
.row-media { margin: 0; min-width: 0; }
.row-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.row-text { min-width: 0; }

/* Brands */
.brands { background: var(--band); color: var(--band-fg); padding-block: clamp(64px, 9vw, 112px); }
.section-head-light .eyebrow { color: var(--band-muted); }
.brand-list { display: flex; flex-wrap: wrap; column-gap: 0; row-gap: 4px; }
.brand-list li { font-family: var(--f-display); font-weight: 700; font-stretch: 68%; text-transform: uppercase; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1.15; }
.brand-list li:not(:last-child)::after { content: "/"; color: var(--red); font-weight: 400; margin: 0 0.32em; }

/* Contact */
.contact { padding-block: clamp(64px, 9vw, 120px); }
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 88px); }
.contact-main, .contact-side { min-width: 0; }
.contact h2 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); text-transform: uppercase; margin-top: 10px; }
.contact-note { margin-top: 14px; color: var(--muted); }
.phones { margin-top: 32px; border-top: 2px solid var(--ink); }
.phones li, .mails li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-block: 16px; border-bottom: 1px solid var(--line); }
.who { font-weight: 600; }
.num { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-variant-numeric: tabular-nums; text-decoration: none; line-height: 1.1; }
.num:hover { color: var(--blue); }
.mails { margin-top: 8px; }
.mails a { font-family: var(--f-mono); font-size: 0.98rem; overflow-wrap: anywhere; text-decoration-color: var(--line); text-underline-offset: 4px; }
.mails a:hover { color: var(--blue); }

.contact-side { display: grid; gap: 14px; align-content: start; }
.block { background: var(--surface); border: 1px solid var(--line); padding: 24px; border-radius: 2px; }
.block h3 { font-size: 1.5rem; margin-bottom: 10px; }
.addr { font-size: 1.15rem; font-weight: 600; line-height: 1.45; }
.link-arrow { display: inline-block; margin-top: 10px; font-weight: 600; text-underline-offset: 4px; padding-block: 6px; }
.link-arrow::after { content: " →"; }
.hours { display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { color: var(--muted); }
.hours dd { font-family: var(--f-mono); font-weight: 500; }
.block-order p { color: var(--muted); margin-bottom: 16px; }

/* Billing stub */
.billing { padding-bottom: clamp(64px, 9vw, 112px); }
.stub { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 2px dashed var(--muted); padding: clamp(24px, 4vw, 44px); }
.stub::before, .stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.stub::before { left: -12px; } .stub::after { right: -12px; }
.stub h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); text-transform: uppercase; margin-bottom: 24px; }
.stub-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.stub-grid > * { min-width: 0; }
.stub dl { display: grid; gap: 0; }
.stub dl div { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 10px; border-bottom: 1px dashed var(--line); }
.stub dt { color: var(--muted); }
.stub dd { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.paper-label { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.paper address { font-style: normal; font-family: var(--f-mono); line-height: 1.7; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-fg); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; line-height: 1; }
.footer-brand .brand-sub { color: var(--band-muted); }
.footer-addr { color: var(--band-muted); }
.footer-addr a, .footer-links a { color: var(--band-fg); text-underline-offset: 4px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { display: inline-block; padding-block: 4px; }
.copy { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); padding-top: 20px; color: var(--band-muted); font-size: 0.88rem; font-family: var(--f-mono); }

/* Load-in (from a visible resting state) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { transform: translateY(12px); opacity: .001; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Tablet */
@media (max-width: 1023px) {
  .nav { gap: 20px; }
  .header-call span { display: none; }
  .header-call { width: 44px; padding: 0; justify-content: center; }
}

/* Mobile */
@media (max-width: 819px) {
  :root { --header-h: 62px; }
  .menu-btn { display: block; }
  .header-row { gap: 10px; }
  .header-call { width: 48px; height: 48px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter);
  }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); text-align: center; }
  .nav a:last-child { border-bottom: 0; }

  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 92%, transparent) 0%, color-mix(in srgb, var(--paper) 78%, transparent) 55%, color-mix(in srgb, var(--paper) 90%, transparent) 100%); }
  .hero-media img { object-position: 78% 55%; }
  .hero-inner { min-height: 0; padding-block: 56px 60px; }
  .hero-copy { text-align: center; margin: 0 auto; width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3.4rem); overflow-wrap: break-word; }
  h2, h3, .brand-list li { overflow-wrap: break-word; }
  .hero-lede { margin-inline: auto; color: var(--ink); max-width: 100%; font-size: 1rem; font-stretch: 82%; line-height: 1.5; text-wrap: balance; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 220px; }

  .notice-row { flex-direction: column; align-items: center; text-align: center; gap: 10px; }

  .section-head, .row-text, .feature-text, .contact-main, .block, .stub h2, .paper { text-align: center; }
  .verbs { justify-content: center; }
  .row-text p, .feature-text p { margin-inline: auto; }
  .feature { grid-template-columns: 1fr; }
  .feature-offer { align-items: center; text-align: center; }
  .row, .row-flip { grid-template-columns: 1fr; gap: 22px; }
  .row-flip .row-media { order: 0; }

  .brands .section-head { text-align: center; }
  .brand-list { justify-content: center; text-align: center; }

  .contact { padding-block: 48px 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .contact-note { margin-top: 8px; font-size: 0.95rem; }
  .phones { margin-top: 20px; }
  .phones li, .mails li { padding-block: 9px; }
  .who { font-size: 0.9rem; }
  .num { font-size: 1.75rem; }
  .mails { margin-top: 0; }
  .mails a { font-size: 0.92rem; }
  .contact-side { gap: 10px; }
  .block { padding: 16px 18px; }
  .block h3 { font-size: 1.25rem; margin-bottom: 6px; }
  .addr { font-size: 1.05rem; }
  .link-arrow { margin-top: 4px; }
  .hours { gap: 2px; }
  .block-order p { margin-bottom: 12px; font-size: 0.95rem; }
  .phones li, .mails li { flex-direction: column; align-items: center; gap: 2px; }
  .hours div { justify-content: center; gap: 10px; }
  .hours dt::after { content: ":"; }
  .block-order .btn { width: 100%; }

  .stub-grid { grid-template-columns: 1fr; gap: 24px; }
  .stub dl div { flex-direction: column; align-items: center; gap: 2px; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 1.5rem; }
  .brand-sub { font-size: 0.6rem; }
}
