/* =========================================================
   Pyörähuolto Neliö – styles
   Warm Scandinavian local-business style: warm off-white,
   lively sage green accents, structured rounded cards.
   Mobile-first.
   ========================================================= */

/* ---- Design tokens ---- */
:root {
  /* Brand colours — BMW-inspired deep metallic green (edit here to retune the site) */
  --color-primary: #2F4A35;        /* deep metallic green – buttons & accents */
  --color-primary-dark: #1F3327;   /* darkest green – edges / pressed */
  --color-primary-hover: #3E5A40;  /* lighter green – hover (light catching paint) */
  --color-primary-soft: #E8F0E9;   /* light green tint – backgrounds */
  --color-primary-border: #6F8A72; /* mid green – accent borders / underlines */
  --color-gold-shimmer: #D6B15E;   /* metallic gold for the hover shimmer */
  --color-gold-light: #F4D27A;     /* lighter gold highlight */

  /* Legacy aliases — kept so existing rules pick up the new palette automatically */
  --sage: var(--color-primary-border); /* accent borders / nav underline */
  --sage-dark: var(--color-primary);   /* dark green – text & accents */
  --green-btn: var(--color-primary);   /* button green */
  --green-btn-dark: var(--color-primary-hover); /* button hover */
  --sage-bg: var(--color-primary-soft);/* light green background / tints */
  --btn-edge: var(--color-primary-dark); /* refined deep-green edge on buttons */

  /* Neutrals */
  --bg: #FAF8F3;             /* warm off-white page background */
  --surface: #ffffff;        /* cards */
  --text: #1E1E1B;           /* dark text */
  --text-muted: #5c5f57;     /* secondary text */
  --border: #e6e3da;         /* subtle warm borders */

  /* Shape & spacing */
  --radius: 16px;
  --radius-md: 12px;
  --radius-btn: 11px;
  --shadow-card: 0 1px 2px rgba(30, 30, 27, 0.04), 0 6px 18px rgba(30, 30, 27, 0.06);
  --shadow-lift: 0 4px 10px rgba(30, 30, 27, 0.08), 0 18px 40px rgba(65, 95, 70, 0.14);
  --maxw: 1140px;
  --maxw-narrow: 760px;
}

/* ---- Reset / base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: var(--maxw-narrow); }

section { padding: 64px 0; }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 { margin-bottom: 10px; }

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* =========================================================
   Bike-type price toggle (Huoltopaketit)
   ========================================================= */
.toggle-wrap {
  text-align: center;
  margin: -16px 0 36px;
}

.bike-toggle {
  position: relative;
  display: inline-flex;
  background: var(--sage-bg);
  border: 1px solid #d8e4d9;
  border-radius: 999px;
  padding: 5px;
}

/* sliding background that moves under the active option */
.bike-toggle-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  bottom: 5px;
  width: calc(50% - 5px);
  background: var(--green-btn);
  border: 1px solid var(--btn-edge);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(30, 30, 27, 0.18);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
/* Sähköpyörä mode: thumb slides right and turns electric blue */
.bike-toggle.is-sahko .bike-toggle-thumb {
  transform: translateX(100%);
  background: #007BFF;
  border-color: #005cc0;
}

.bike-toggle-opt {
  position: relative;
  z-index: 1;
  min-width: 124px;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--sage-dark);
  padding: 9px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.bike-toggle-opt.is-active { color: #fff; }
/* Sähköpyörä active label is yellow on the electric-blue thumb */
.bike-toggle.is-sahko .bike-toggle-opt.is-active { color: #FFD84D; }
.bike-toggle-opt:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
}

.toggle-help {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .bike-toggle-thumb { transition: none; }
}

/* small uppercase label used above headings */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 14px;
}

/* =========================================================
   Buttons — medium radius, subtle depth, no glossy SaaS look
   ========================================================= */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

/* Primary (booking CTAs) — deep metallic green with a refined dark-green edge */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary-dark);
  box-shadow: 0 2px 0 var(--color-primary-dark), 0 4px 10px rgba(20, 22, 18, 0.20);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 2px 0 var(--color-primary-dark), 0 6px 16px rgba(20, 22, 18, 0.28);
}

/* Subtle metallic light sweep — only animates on hover, like light on car paint */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 55%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-20deg);
  background: linear-gradient(
    100deg,
    rgba(214, 177, 94, 0) 0%,
    rgba(214, 177, 94, 0.22) 42%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(244, 210, 122, 0.22) 58%,
    rgba(244, 210, 122, 0) 100%);
}
.btn-primary:hover::before {
  animation: btn-shimmer 0.8s ease;
}
@keyframes btn-shimmer {
  0%   { left: -75%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover::before { animation: none; }
}

/* Secondary — light, bordered, clearly different from primary */
.btn-secondary {
  background: var(--surface);
  color: var(--sage-dark);
  border-color: #cdd9ce;
  box-shadow: 0 1px 2px rgba(30, 30, 27, 0.05);
}
.btn-secondary:hover {
  background: var(--sage-bg);
  border-color: var(--sage);
}

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* =========================================================
   Cards (shared)
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* =========================================================
   Header / navbar
   ========================================================= */
.site-header {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--sage-dark);
  font-weight: 700;
}

.logo-mark { flex-shrink: 0; }

/* Navbar logo image (~10% smaller: 41px desktop, 34px mobile) */
.brand-logo {
  display: block;
  height: 41px;
  width: auto;
}
@media (max-width: 560px) {
  .brand-logo { height: 34px; }
}

.logo-text {
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu links only (scoped to the <ul> so the CTA button keeps its .btn padding) */
.site-nav ul a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav ul a:hover,
.site-nav ul a.is-active {
  color: var(--sage-dark);
  border-bottom-color: var(--sage);
}

/* Top-right booking button — evenly padded and centered in the navbar */
.nav-cta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 11px 22px;
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* =========================================================
   Hero — wide editorial image band with a light content panel
   ========================================================= */
.hero { padding: 36px 0 56px; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;        /* vertically center the panel */
  justify-content: flex-start; /* panel sits to the left, open image space on the right */
  padding: 48px;

  /* Hero photo positioned to show the tools on the right; a left-to-right dark
     gradient darkens behind the text and fades clear over the right side.
     Sage background colour stays as a fallback if the image fails to load. */
  background-color: var(--sage-bg);
  background-image:
    linear-gradient(90deg,
      rgba(20, 22, 18, 0.58) 0%,
      rgba(20, 22, 18, 0.34) 42%,
      rgba(20, 22, 18, 0.10) 72%,
      rgba(20, 22, 18, 0) 100%),
    url("../images/pyorahuoltonelio-cover-3.jpeg");
  background-size: cover;
  background-position: 72% center;
  box-shadow: var(--shadow-card);
}

/* Off-centre content panel over the hero image.
   Width/position controlled here; transparency via the rgba() background. */
.hero-panel {
  position: relative;
  max-width: 440px;
  text-align: left;
  background: rgba(250, 248, 243, 0.90);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 34px 34px 36px;
  box-shadow: 0 14px 36px rgba(20, 22, 18, 0.22);
}

.hero-panel h1 {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 360px;
  margin-bottom: 18px;
}

/* Hero tagline / slogan ("Neliöstä pyöreäksi.") — smaller and more subtle */
.hero-tagline {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

/* =========================================================
   Packages
   ========================================================= */
.packages { background: var(--bg); }

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.package-card {
  position: relative;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.package-card--featured {
  border-color: var(--sage);
  border-width: 2px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(65, 95, 70, 0.25);
}

/* =========================================================
   Electric (Sähköpyörä) mode — applied to .packages.is-electric by JS.
   Recolors the featured card, SUOSITUIN badge, booking buttons,
   and the "Mitä huoltoon sisältyy?" toggles to electric blue / yellow.
   ========================================================= */
.packages.is-electric .package-card--featured {
  border-color: #007BFF;
}
.packages.is-electric .package-badge {
  background: #007BFF;
  color: #FFD84D;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.30);
}
.packages.is-electric .package-card .btn-primary {
  background: #007BFF;
  border-color: #005cc0;
  box-shadow: 0 2px 0 #005cc0, 0 4px 10px rgba(0, 123, 255, 0.20);
}
.packages.is-electric .package-card .btn-primary:hover {
  background: #006fe6;
  box-shadow: 0 2px 0 #005cc0, 0 6px 14px rgba(0, 123, 255, 0.28);
}
.packages.is-electric .includes-toggle {
  color: #007BFF;
}
.packages.is-electric .includes-toggle:hover {
  border-color: #007BFF;
  background: rgba(0, 123, 255, 0.06);
}

.package-title {
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.package-subtitle {
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.96rem;
  margin: 0 0 14px;
}

.package-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.package-price {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 10px 0 20px;
}

.package-price--multi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 10px 0 20px;
}
.package-price--multi small {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.package-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.package-list li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 0.95rem;
}
/* check-style marker instead of a plain dot */
.package-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--sage-dark);
  border-bottom: 2px solid var(--sage-dark);
  transform: rotate(-45deg);
}

/* push button toward a consistent baseline within each card */
.package-card .btn-block { margin-top: 4px; }

/* "Mitä huoltoon sisältyy?" toggle — secondary/outline, clearly not the red CTA */
.includes-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sage-dark);
  background: var(--surface);
  border: 1px solid #cdd9ce;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.includes-toggle:hover {
  background: var(--sage-bg);
  border-color: var(--sage);
}
.includes-toggle:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 2px;
}

/* chevron indicator (points down; flips up when expanded) */
.includes-toggle-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-bottom: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.includes-toggle[aria-expanded="true"] .includes-toggle-icon {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

/* collapsible included-services panel */
.includes-intro {
  margin: 16px 0 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
/* list inside the panel: the toggle button already separates it, so drop the divider */
.package-includes .package-list {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

/* =========================================================
   Steps — miniature cards matching the Huoltopaketit style
   ========================================================= */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .step also carries .card (white bg, shadow); add padding + sage border */
.step {
  text-align: center;
  padding: 28px 22px;
  border-color: #cdd9ce;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sage-bg);
  color: var(--sage-dark);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 16px;
  border: 1px solid #d8e4d9;
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Contact box under the steps */
.steps-contact {
  margin-top: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  border-color: #cdd9ce;
}
.steps-contact-text h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.steps-contact-text p {
  color: var(--text-muted);
  margin: 0;
}
.steps-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  background: var(--sage-bg);
  border: 1px solid #cdd9ce;
  border-radius: var(--radius-btn);
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.contact-link:hover {
  background: #e2ecdf;
  border-color: var(--sage);
}

/* desktop: text on the left, contact links on the right */
@media (min-width: 720px) {
  .steps-contact {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
  }
  .steps-contact-links { flex-shrink: 0; }
}

/* =========================================================
   Trust — calm supporting section: one soft rounded panel,
   compact items with light dividers (intentionally quieter
   than the booking-process cards above).
   ========================================================= */
.trust { background: var(--sage-bg); }

.trust-panel {
  background: var(--surface);
  border: 1px solid #d8e4d9;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(30, 30, 27, 0.04);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.trust-item {
  padding: 22px 26px;
  border-top: 1px solid var(--border);
}
.trust-item:first-child { border-top: none; }

.trust-item h3 {
  color: var(--sage-dark);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.trust-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Tablet / desktop: 4 compact columns with light vertical dividers */
@media (min-width: 760px) {
  .trust-panel { grid-template-columns: repeat(4, 1fr); }
  .trust-item {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 26px 24px;
  }
  .trust-item:first-child { border-left: none; }
}

/* =========================================================
   Customer reviews (from previous shop) — clean black & white,
   intentionally distinct from the sage card sections so the
   homepage doesn't feel repetitive.
   ========================================================= */
.reviews-section { background: var(--surface); }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 12px;
  padding: 22px 22px 24px;
  box-shadow: 0 1px 2px rgba(20, 20, 18, 0.05);
}

.review-stars {
  color: #F5B301;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 12px;
}

.review-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a17;
  margin: 0 0 2px;
}

.review-meta {
  font-size: 0.8rem;
  color: #6b6b66;
  margin: 0 0 12px;
}

.review-text {
  font-size: 0.95rem;
  color: #2a2a26;
  margin: 0;
}

@media (min-width: 600px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item[open] {
  border-color: var(--sage);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--sage-dark);
  line-height: 1;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "–"; }

.faq-answer {
  padding: 0 20px 17px;
  color: var(--text-muted);
}
.faq-answer p { margin: 0; }

/* =========================================================
   Final CTA
   ========================================================= */
.cta-final {
  background: var(--sage-dark);
  color: #fff;
}
.cta-final-inner { text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
}

/* contact links inside a final CTA (on the dark green band) */
.cta-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-weight: 600;
}
.cta-contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.cta-contact a:hover { border-bottom-color: #fff; }
.cta-final .btn-primary {
  background: var(--green-btn);
  color: #fff;
  border: 1px solid var(--btn-edge);
  box-shadow: 0 2px 0 var(--btn-edge), 0 6px 14px rgba(0, 0, 0, 0.28);
}
.cta-final .btn-primary:hover { background: var(--green-btn-dark); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #25342a;
  color: #ccd6cd;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 52px;
  padding-bottom: 34px;
}

.logo--footer { color: #fff; margin-bottom: 10px; }
.logo--footer .logo-text { color: #fff; }

.footer-col h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col p { margin: 0 0 6px; font-size: 0.95rem; }
.footer-col a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-col a:hover { border-bottom-color: #fff; }
/* logo link in footer shouldn't get the underline treatment */
.footer-col .logo--footer { border-bottom: none; }
/* render the footer logo solid white so it reads on the dark footer */
.footer-col .logo--footer .brand-logo { filter: brightness(0) invert(1); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   Legal / privacy text page (tietosuojaseloste)
   ========================================================= */
.legal h2 {
  font-size: 1.25rem;
  margin: 34px 0 10px;
}
.legal h2:first-of-type { margin-top: 6px; }
.legal p {
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.7;
}
.legal li { margin-bottom: 4px; }
.legal a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 74, 53, 0.3);
}
.legal a:hover { border-bottom-color: var(--color-primary); }
.legal .legal-updated {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================================
   Page hero (subpages: Hinnastot, Varaa huolto)
   ========================================================= */
.page-hero {
  background: var(--sage-bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 56px 0 60px;
}
.page-hero h1 {
  font-size: 2.3rem;
  margin-bottom: 14px;
}
.page-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 26px;
}
.page-hero-subtitle:last-child { margin-bottom: 0; }

.hero-actions--center { justify-content: center; }

/* ---- Hinnastot hero: photo background behind the title ----
   Cropped the same way as the KOTI hero (cover + 72% center + matching height). */
.hinnasto-hero {
  border-bottom: none;
  min-height: 460px;
  display: flex;
  align-items: center;
  background-color: var(--sage-dark);   /* fallback if the image fails */
  background-image:
    linear-gradient(rgba(20, 22, 18, 0.55), rgba(20, 22, 18, 0.55)),
    url("../images/pyorahuoltonelio-hinnasto-5.jpeg");
  background-size: cover;
  background-position: 72% center;
}
.hinnasto-hero h1 { color: #fff; }
.hinnasto-hero .page-hero-subtitle { color: rgba(255, 255, 255, 0.92); }
@media (min-width: 900px) {
  .hinnasto-hero { min-height: 500px; }
}

/* ---- Booking page hero (varaa-huolto): plain background + wrench + intro ---- */
.booking-hero {
  background: var(--bg);     /* drop the sage band; match the rest of the page */
  border-bottom: none;
  padding: 44px 0 28px;      /* tighter than the default page-hero so the form shows sooner */
}

/* Compact the booking page's top sections (scoped so the homepage steps
   section keeps its normal spacing). */
.page-varaa .steps { padding: 30px 0 24px; }
.page-varaa .booking { padding-top: 28px; }

/* Direct-contact note inside the booking form section (below the form) */
.booking-contact {
  margin: 26px 0 0;       /* clear space above, under the submit button */
  text-align: center;
  color: var(--text-muted);
}
.booking-contact p { margin: 0; }
.booking-contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-weight: 600;
}
.booking-contact-links a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 74, 53, 0.3);
}
.booking-contact-links a:hover { border-bottom-color: var(--color-primary); }

/* Small privacy note under the booking submit button */
.form-privacy-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.form-privacy-note a { color: var(--color-primary); }

/* Booking page final CTA — light card instead of the dark green band */
.cta-soft { text-align: center; }
.cta-soft-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 30px;
}
.cta-soft-card h2 { margin-bottom: 10px; }
.cta-soft-card p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}
/* heading with a small monochrome wrench beside it */
.booking-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.booking-wrench {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--text);        /* black/dark, monochrome */
}
/* intro paragraphs: centered, readable width, clear spacing */
.booking-intro {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--text-muted);
  text-align: center;
}
.booking-intro p {
  margin: 0 0 14px;
  line-height: 1.65;
}
.booking-intro p:last-child { margin-bottom: 0; }
.booking-intro strong { color: var(--sage-dark); }

/* =========================================================
   Detailed price list — clean editorial "price board" (no boxes)
   ========================================================= */
.price-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 52px;
}

.price-category-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--color-primary);
}

.price-row { padding: 9px 0; }

.price-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-name {
  flex: 0 1 auto;
  color: var(--text);
  font-size: 0.98rem;
}

/* the thin connecting line between service name and price */
.price-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

.price-value {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.price-subtext {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .price-board-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (min-width: 960px) {
  .price-board-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Notice / disclaimer box */
.notice {
  margin-top: 32px;
  background: var(--sage-bg);
  border: 1px solid #d8e4d9;
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--text-muted);
}
.notice p { margin: 0 0 8px; font-size: 0.96rem; }
.notice p:last-child { margin-bottom: 0; }

/* =========================================================
   Meistä page — cinematic vertical story timeline
   Centered scroll-fill bar + stacked year chapters (text & image).
   Scroll-fill is driven by js/script.js; the static line works
   fine even if JS is disabled.
   ========================================================= */

/* Meistä hero: override the shared .page-hero sage background so the
   "Mistä kaikki alkoi?" top section uses the normal off-white page bg.
   (Scoped to .about-hero so Hinnastot/Varaa huolto heroes stay sage.) */
.about-hero {
  background: var(--bg);
  border-bottom: none;
}

/* Image fallback: the <img> hides itself via inline onerror and adds
   .is-empty to its container, revealing the "Kuva tulossa" label. */
.placeholder-label { display: none; }
.story-year-image.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.is-empty .placeholder-label {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  opacity: 0.75;
}

/* ---- Vertical timeline stage ----
   SPACE BETWEEN YEARS: edit the `gap` (and the >=760px override below). */
.story-vtimeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 24px 0;
}

/* Always-visible subtle line + the green fill that grows on scroll. */
.timeline-progress-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #d8e4d9;
  border-radius: 3px;
  z-index: 0;
}
.timeline-progress-fill {
  width: 100%;
  height: 0;              /* set by JS as the page scrolls */
  background: var(--color-primary);
  border-radius: 3px;
}

/* ---- One year chapter ----
   Opaque background masks the centre line; the line therefore shows
   only in the gaps between chapters. */
.story-year {
  position: relative;
  z-index: 1;
  background: var(--bg);
  text-align: center;
  padding: 6px 0;
}

/* ---- Year marker: plain green year text (no box, no ring, no animation) ---- */
.story-year-mark {
  margin: 0 auto 12px;
}
.story-year-num {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}

/* ---- Text (TEXT SIZE: edit font-size here and in the >=760px block) ---- */
.story-year-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}
.story-year-text {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 16px;
}
.story-year-text:last-child { margin-bottom: 0; }
/* closing sign-off line ("Nähdään Uudenmaankadulla!") */
.story-closing { color: var(--color-primary); font-weight: 700; }

/* ---- Image (centered, controlled width, stacked vertically) ---- */
.story-year-image {
  position: relative;
  max-width: 560px;
  margin: 24px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #d8e4d9;
  background: var(--color-primary-soft);
  height: 300px;                      /* default photo height (mobile) */
}
.story-year-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;            /* crop focus; overridden per year below */
  image-orientation: from-image;      /* honour EXIF rotation on phone photos */
}

/* ---- Per-year IMAGE HEIGHT (taller for portrait photos, mobile) ---- */
.timeline-image-2025 {  /* kids' bike on stand (portrait) */
  height: 400px;
}

/* ---- Portrait years: slightly narrower frames (mobile) ---- */
.timeline-image-2022,
.timeline-image-2024,
.timeline-image-2026 {
  max-width: 480px;
}

/* 2024 (full-body portrait): contain so the whole person stays visible;
   the soft sage background frames the small leftover space. */
.timeline-image-2024 .story-year-photo { object-fit: contain; }

/* 2022 & 2026 use cover (fill the frame, zoomed, no extra edges).
   2022: centered.  2026: anchored to the bottom so the shoes aren't cut. */
.timeline-image-2022 { height: 460px; }
.timeline-image-2024 { height: 520px; } /* full body needs the most height */
.timeline-image-2026 { height: 480px; }

/* ---- Per-year CROP FOCUS ----
   Tweak object-position to reframe a photo, e.g. "center top",
   "50% 30%", "center 40%". Edit the matching year below. */
.timeline-image-2020 .story-year-photo { object-position: center; }
.timeline-image-2021 .story-year-photo { object-position: center; }
.timeline-image-2022 .story-year-photo { object-position: center; }
.timeline-image-2023 .story-year-photo { object-position: center; }
.timeline-image-2024 .story-year-photo { object-position: center; }     /* full body: center keeps head→boots */
.timeline-image-2025 .story-year-photo { object-position: center; }
.timeline-image-2026 .story-year-photo { object-position: center bottom; } /* keep the shoes (anchor bottom) */

/* ---- Desktop ---- */
@media (min-width: 760px) {
  .story-vtimeline { gap: 120px; padding: 40px 0; }  /* SPACE BETWEEN YEARS (desktop) */

  .story-year-num { font-size: 2.4rem; }
  .story-year-title { font-size: 1.8rem; }
  .story-year-text { font-size: 1.18rem; line-height: 1.75; }  /* TEXT SIZE (desktop) */

  .story-year-image { height: 380px; }               /* landscape default (desktop) */
  .timeline-image-2025 { height: 520px; }            /* portrait photo (desktop) */

  /* full-photo frames (desktop) — heights tuned so the contained image
     nearly fills the frame with minimal empty space */
  .timeline-image-2022 { height: 640px; }
  .timeline-image-2024 { height: 720px; }
  .timeline-image-2026 { height: 660px; }
}

/* =========================================================
   Booking form
   ========================================================= */
.booking-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
}

/* Honeypot spam trap — hidden from people, off-screen (not display:none so bots still see it) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row { margin-bottom: 18px; }
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-field { display: flex; flex-direction: column; }

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary-border);
  box-shadow: 0 0 0 3px rgba(47, 74, 53, 0.18);
}

.booking-form .btn-block { margin-top: 8px; }

/* =========================================================
   Before-service checklist
   ========================================================= */
.checklist {
  list-style: none;
  margin: 0;
  padding: 22px 26px;
}
.checklist li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--sage-dark);
  border-bottom: 2px solid var(--sage-dark);
  transform: rotate(-45deg);
}

/* =========================================================
   Contact fallback box
   ========================================================= */
.contact-box { padding: 30px 28px; }
.contact-box h2 { font-size: 1.5rem; }
.contact-box > p { color: var(--text-muted); }

.contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.contact-list li { padding: 7px 0; }
.contact-label {
  display: inline-block;
  min-width: 110px;
  font-weight: 600;
  color: var(--sage-dark);
}
/* contact-box phone/email links — brand green, clearly clickable */
.contact-list a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 74, 53, 0.3);
}
.contact-list a:hover { border-bottom-color: var(--color-primary); }

/* =========================================================
   Responsive – tablet & desktop
   ========================================================= */
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.1rem; }

  .step-grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero h1 { font-size: 2.7rem; }
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-panel h1 { font-size: 2.85rem; }
  .hero-media { min-height: 500px; padding: 56px; }

  .package-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .package-card--featured { transform: translateY(-10px); }

  .step-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ---- Mobile nav behaviour ---- */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    box-shadow: var(--shadow-card);
  }
  .site-nav.is-open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: none;
  }
  .nav-cta { margin-top: 14px; }
}

/* ---- Hero on small screens: keep panel readable, full-width ---- */
@media (max-width: 560px) {
  .hero-media {
    min-height: 0;
    padding: 18px;
    align-items: center;
  }
  .hero-panel {
    max-width: 420px;
    padding: 28px 22px 30px;
    /* a touch more opaque on small screens for readability over the photo */
    background: rgba(250, 248, 243, 0.88);
  }
  .hero-panel h1 { font-size: 1.95rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
