/* Pysäköinti Lauttasaaressa – tyylit */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Betoni, asfaltti, tiili ja korkeuskyltin keltainen */
  --ground: #E9ECEA;
  --surface: #F6F7F6;
  --surface-2: #DFE3E0;
  --ink: #1F2328;
  --ink-soft: #4E5752;
  --line: #C6CCC8;
  --brick: #9A4632;
  --sign: #F2B705;
  --sign-ink: #1F2328;
  --asphalt: #1F2328;
  --on-asphalt: #EEF0EE;
  --on-asphalt-soft: #AEB6B1;
  --link: #8A3B28;
  --illo-frame: #EEF0EE;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-3: clamp(2.6rem, 1.9rem + 3.2vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #15181B;
    --surface: #1C2024;
    --surface-2: #242A2F;
    --ink: #E8EBE9;
    --ink-soft: #A9B1AC;
    --line: #353C42;
    --brick: #C7664E;
    --link: #F2B705;
    --asphalt: #0E1113;
    --on-asphalt: #EEF0EE;
    --on-asphalt-soft: #9AA3A0;
    --illo-frame: #2A3035;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #15181B;
  --surface: #1C2024;
  --surface-2: #242A2F;
  --ink: #E8EBE9;
  --ink-soft: #A9B1AC;
  --line: #353C42;
  --brick: #C7664E;
  --link: #F2B705;
  --asphalt: #0E1113;
  --on-asphalt: #EEF0EE;
  --on-asphalt-soft: #9AA3A0;
  --illo-frame: #2A3035;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: var(--step-3); text-transform: uppercase; }
h2 { font-size: var(--step-2); text-transform: uppercase; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.15; }
p { margin: 0; }
figure { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sign); color: var(--sign-ink); padding: 8px 14px; z-index: 10; font-weight: 600; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: var(--step--1); color: var(--brick);
}

/* Header ------------------------------------------------------------ */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--asphalt); color: var(--on-asphalt);
  border-bottom: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--sign) 0 12px, var(--asphalt) 12px 24px) 6;
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px;
  background: var(--sign); color: var(--sign-ink); font-family: var(--display); font-weight: 700; font-size: 1.5rem;
}
.brand__text { font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--on-asphalt); text-decoration: none; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; }
.nav a:hover { color: var(--sign); }
.nav .nav__cta { background: var(--sign); color: var(--sign-ink); padding: 6px 12px; border-radius: 4px; }
.nav .nav__cta:hover { color: var(--sign-ink); background: #FFC928; }
@media (max-width: 560px) { .nav li:not(:last-child) { display: none; } .brand__text { font-size: 1rem; } }

/* Hero -------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 18px; }
.address { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--ink); display: inline-flex; gap: 10px; align-items: center; }
.address::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sign); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sign) 30%, transparent); flex: none; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
}
.btn--primary { background: var(--sign); color: var(--sign-ink); }
.btn--primary:hover { background: #FFC928; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ground); }

.hero__photo { position: relative; padding-top: 30px; }
.hero__photo picture img { width: 100%; border-radius: 0 0 var(--radius) var(--radius); aspect-ratio: 681 / 329; object-fit: cover; }
.barrier {
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
  background: repeating-linear-gradient(-45deg, var(--sign) 0 22px, #1F2328 22px 44px);
  border-radius: var(--radius) var(--radius) 0 0;
}
.barrier span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--sign); color: var(--sign-ink); border: 2px solid #1F2328; border-radius: 4px;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 0 10px; line-height: 1.5;
}
.hero__photo figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 10px; }

/* Specs ------------------------------------------------------------- */
.specs { padding-block: 0 clamp(40px, 6vw, 72px); }
.specs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 3px solid var(--ink); }
.spec { padding: 18px 18px 6px 0; display: grid; gap: 6px; align-content: start; }
.spec + .spec { padding-left: 18px; border-left: 1px solid var(--line); }
.spec dt { display: flex; align-items: baseline; gap: 6px; min-height: 3.2rem; }
.spec__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.spec__num--icon { align-self: center; color: var(--ink); }
.spec__unit { font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brick); }
.spec dd { margin: 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; }

/* Sections ---------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { display: grid; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); }

.users { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.user { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 24px; display: grid; gap: 10px; align-content: start; }
.user__icon { width: 44px; height: 44px; color: var(--brick); }
.user p { color: var(--ink-soft); font-size: var(--step--1); }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split__text { display: grid; gap: 16px; align-content: start; }
.split__text > p { max-width: 60ch; }
.split__text .btn { justify-self: start; }
.illo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--illo-frame); }

.photo-small { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 6px; }
.photo-small img { border-radius: var(--radius); width: 160px; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-small figcaption { font-size: var(--step--1); color: var(--ink-soft); }

.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brick); font-size: 1rem; padding-top: 2px; }
.facts dd { margin: 0; }

/* FAQ --------------------------------------------------------------- */
.faq { margin-top: 24px; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--brick); font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }

/* Contact ----------------------------------------------------------- */
.contact {
  background: var(--asphalt); color: var(--on-asphalt);
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--sign) 0 18px, var(--asphalt) 18px 36px) 10;
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.contact h2 { font-size: var(--step-3); }
.contact__grid > div > p { color: var(--on-asphalt-soft); margin-top: 12px; font-size: var(--step-1); }
.contact__lines { display: grid; gap: 14px; }
.contact__line {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid #3A4147;
}
.contact__label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sign); font-size: 1rem; }
.contact__line a { color: var(--on-asphalt); font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); text-decoration: none; overflow-wrap: anywhere; line-height: 1.1; }
.contact__line a:hover { color: var(--sign); }
.copy {
  font: 600 0.95rem var(--body); color: var(--on-asphalt); background: transparent; cursor: pointer;
  border: 1px solid #5A6268; border-radius: 4px; padding: 6px 12px; min-width: 5.5rem;
}
.copy:hover { border-color: var(--sign); color: var(--sign); }

/* Footer ------------------------------------------------------------ */
.foot { background: var(--asphalt); color: var(--on-asphalt-soft); border-top: 1px solid #3A4147; font-size: var(--step--1); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
.foot strong { color: var(--on-asphalt); font-weight: 600; }

/* Responsive -------------------------------------------------------- */
@media (max-width: 960px) {
  .users { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .hero__grid, .split, .split--reverse, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 2; }
  .lead { max-width: none; }
}
@media (max-width: 520px) {
  .users { grid-template-columns: minmax(0, 1fr); }
  .photo-small { grid-template-columns: minmax(0, 1fr); }
  .photo-small img { width: 100%; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact__line { grid-template-columns: minmax(0, 1fr) auto; }
  .contact__label { grid-column: 1 / -1; }
}
