/* =====================================================================
   PRIIMA KULJETUKSET — style.css
   Section order: Custom Properties → Reset → Base → Typography →
   Layout → Nav → Hero → Dividers → Services → Clients → Reviews →
   CTA → Footer → Service page → Utilities → Animations
   Colours come from config.js via CSS custom properties — no hardcoded
   brand hex values live here.
   ===================================================================== */

/* ------------------------------------------------ Custom Properties */
:root {
  /* Colours are injected from config.js at runtime (applyTheme). */
  --color-primary: #F7AB13;
  --color-primary-dark: #d9920a;
  --color-secondary: #122A37;
  --color-secondary-dark: #0c1e29;
  --color-background: #FFFFFF;
  --color-surface: #F4F5F7;
  --color-surface-alt: #FAFAFB;
  --color-text: #122A37;
  --color-text-muted: #5A6478;
  --color-border: #E2E4E9;
  --color-white: #FFFFFF;

  /* Typography */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Spacing scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 7rem;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows — colour-tinted, layered */
  --shadow-sm: 0 2px 8px rgba(18, 42, 55, 0.06);
  --shadow-md: 0 6px 18px rgba(18, 42, 55, 0.08), 0 2px 6px rgba(18, 42, 55, 0.06);
  --shadow-lg: 0 18px 40px rgba(18, 42, 55, 0.14), 0 6px 14px rgba(18, 42, 55, 0.08);
  --shadow-card: 0 10px 30px rgba(18, 42, 55, 0.10);

  --nav-height: 72px;
  --container: 1500px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
/* <picture> is a layout-neutral wrapper: its <img> child inherits the
   parent's layout (grid/flex/aspect-ratio boxes) exactly as a bare <img> would. */
picture { display: contents; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----------------------------------------------------------- Base */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ----------------------------------------------------- Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-weight: 800;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
p { color: var(--color-text); }
.accent { color: var(--color-primary); }

/* --------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section { position: relative; }
.section-inner { padding-block: clamp(3.5rem, 7vw, var(--spacing-2xl)); }

/* Section heading + dots decoration */
.sec-head { text-align: center; }
.sec-head h2 { margin-bottom: var(--spacing-md); }
.dots {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ------------------------------------------------------------ Nav */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: var(--color-background);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(18, 42, 55, 0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; transition: opacity 0.25s ease; }
.logo:hover { opacity: 0.8; }
.logo-img { height: 42px; width: auto; display: block; }
.footer .logo-img { height: 64px; }
.logo .mark { width: 46px; flex-shrink: 0; }
.logo .mark svg { width: 100%; height: auto; }
.logo .word { display: flex; flex-direction: column; line-height: 1; }
.logo .word .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--color-secondary);
}
.logo .word .sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--color-primary);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.6rem); height: 100%; }
.nav-links a.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  padding-block: 0.25rem;
}
.nav-links a.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--color-primary-dark);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a.nav-link:hover { color: var(--color-primary); }
.nav-links a.nav-link:hover::after { transform: scaleX(1); }

/* Palvelut dropdown — full-height trigger so there is no hover gap to the menu */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; height: 100%; }
.nav-link--drop { display: inline-flex; align-items: center; gap: 0.32rem; }
.nav-link--drop .caret { display: inline-flex; transition: transform 0.25s ease; }
.nav-link--drop .caret svg { width: 16px; height: 16px; }
.nav-dropdown:hover .nav-link--drop .caret,
.nav-dropdown:focus-within .nav-link--drop .caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 250px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.28s var(--ease-spring), visibility 0.2s;
  z-index: 1100;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-secondary);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-menu a:hover { background: var(--color-surface); color: var(--color-primary-dark); }

/* mobile "Palvelut" accordion — services stay hidden until the toggle is tapped */
.mobile-acc { border-bottom: 1px solid var(--color-border); }
.mobile-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-secondary);
  padding: 0.85rem 0;
}
.mobile-acc .caret { display: inline-flex; transition: transform 0.3s ease; flex-shrink: 0; }
.mobile-acc .caret svg { width: 20px; height: 20px; }
.mobile-acc.open .caret { transform: rotate(180deg); }
.mobile-menu .mobile-sub {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.mobile-menu .mobile-sub a {
  padding: 0.7rem 0 0.7rem 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: none;
}
.mobile-menu .mobile-sub a:last-child { padding-bottom: 1rem; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
}
.hamburger span {
  display: block; height: 3px; width: 26px;
  background: var(--color-secondary); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav.open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.open .hamburger span:nth-child(2) { opacity: 0; }
.nav.open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 clamp(1.25rem, 5vw, 3rem) 1.5rem;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}
.mobile-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-secondary);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin-top: 0.9rem;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border-bottom: none;
}
.nav.open .mobile-menu { display: flex; }

/* ----------------------------------------------------------- Hero */
.hero {
  background: var(--color-background);
  padding-top: calc(var(--nav-height) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero-inner { max-width: 1160px; margin-inline: auto; text-align: center; }
.hero h1 {
  display: inline-block;
  text-align: left;
  font-size: clamp(2.6rem, 5.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.hero h1 .line { display: block; }
.rotator-wrap { display: block; position: relative; }
.rotator {
  display: inline-block;
  color: var(--color-primary);
}
/* incoming word sits on top of the outgoing one during the hand-off so the
   line height never collapses and the two words never reflow into each other */
.rotator--in { position: absolute; left: 0; top: 0; }
.rotator .char { display: inline-block; will-change: transform, opacity; }
.hero h1 .line2 { color: var(--color-secondary); }
.hero h1 .eco {
  display: block;
  text-align: right;
  color: var(--color-secondary);
  font-size: 0.62em;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.6;
}
.hero-para {
  max-width: 820px;
  margin: 0 auto clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-text);
}
.hero-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.8rem;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--color-secondary);
}
.hero-checklist li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-checklist svg { width: 23px; height: 23px; color: var(--color-primary); flex-shrink: 0; }
.hero-kicker { font-weight: 700; font-size: 1.15rem; margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; align-items: stretch; flex-wrap: wrap; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 2.1rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition: color 0.25s ease;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--color-primary); color: var(--color-secondary); }
.btn-primary::before { background: var(--color-primary-dark); }
.btn-primary:hover::before { transform: scaleX(1); }

.btn-dark { background: var(--color-secondary); color: var(--color-white); }
.btn-dark::before { background: var(--color-secondary-dark); }
.btn-dark:hover::before { transform: scaleX(1); }

/* mobile-only inline CTA */
.cta-mobile { display: none; margin-top: var(--spacing-md); }

/* ------------------------------------------------------- Dividers */
.wave {
  display: block;
  width: 100%;
  height: clamp(60px, 9vw, 130px);
  /* Each divider is a full-bleed block stacked between two sections. At
     fractional device pixels (mobile / browser zoom) a hairline of the white
     page background can show along the divider/section boundary. Every divider
     edge already matches its adjacent section colour, so the cure is to make
     the divider's solid fill bleed a couple of pixels OVER the neighbours:
       - position + z-index: sections are position:relative and would otherwise
         paint on top of a static divider, hiding its bleed. Lift the divider
         above them so its overshoot lands on top.
       - no overflow:hidden: the svg (below) is intentionally taller than the
         box; clipping it would re-introduce an antialiased edge — the seam.
       - negative margins overlap the box 1px into each neighbour. */
  position: relative;
  z-index: 1;
  margin-top: -1px;
  margin-bottom: -1px;
  line-height: 0;
}
.wave--drip { height: clamp(90px, 13vw, 180px); }
/* steep mountain dividers (Huolehdimme top + bottom) — exact reference SVG
   (1440×300). Its mountains use ~65% of the viewBox height, so render tall
   to reach the reference's dramatic peak amplitude. */
.wave--tall { height: clamp(140px, 16vw, 230px); }
/* The svg is 4px taller than the box and shifted up 2px so its solid band
   bleeds ~2px past the box top AND bottom, painting (on top, via .wave
   z-index) over the matching-coloured neighbours — no sub-pixel hairline can
   show. The shift uses position/top, NOT margin-top: a negative margin-top
   here collapses with the .wave margin and the overshoot silently vanishes. */
.wave svg { display: block; position: relative; top: -2px; width: 100%; height: calc(100% + 4px); }

/* ----------------------------------------------- Services / gallery */
.services {
  background: var(--color-secondary);
  color: var(--color-white);
}
.services .sec-head h2 { color: var(--color-primary); }
.services .dots span { background: var(--color-primary); }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 1180px;
  margin-inline: auto;
}
.tile {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--color-primary);
  background: var(--color-secondary-dark);
  aspect-ratio: 16 / 10;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38); }
.tile:hover img { transform: scale(1.05); }
.tile .label {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ------------------------------------------------------- Clients */
.clients { background: var(--color-background); text-align: center; }
/* Marquee viewport — logos fade out/in at the edges via a side gradient mask */
.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%);
}
.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(3.5rem, 9vw, 8rem);
  padding-block: 0.6rem;
  will-change: transform;
}
.client-logo {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: 0.02em;
  color: #9aa3b0;
  filter: grayscale(1);
  opacity: 0.85;
  transition: color 0.25s ease, opacity 0.25s ease, filter 0.25s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  line-height: 1.15;
}
.client-logo:hover { color: var(--color-secondary); opacity: 1; filter: grayscale(0); transform: scale(1.12); }
.client-logo:has(img) { filter: none; opacity: 1; }
/* Reduced-motion fallback: no scroll — static, centered, single set */
.clients-marquee--static { -webkit-mask-image: none; mask-image: none; }
.clients-marquee--static .clients-track {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  transform: none !important;
}
.clients-marquee--static .client-logo[aria-hidden] { display: none; }
.client-logo img {
  display: block;
  width: auto;
  height: clamp(52px, 6.5vw, 86px);
  max-width: 220px;
  object-fit: contain;
}

/* ------------------------------------------------------- Reviews */
.reviews { background: var(--color-primary); }
.reviews .sec-head h2 { color: var(--color-secondary); }
.reviews .dots span { background: var(--color-secondary); }
.reviews .dots span:nth-child(even) { background: var(--color-white); }
.reviews-carousel {
  max-width: 1240px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.reviews-viewport { overflow: hidden; }
.reviews-track {
  --rev-gap: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  gap: var(--rev-gap);
  align-items: stretch;   /* every card stretches to the tallest → heights never vary */
  will-change: transform;
}
/* reduced motion / no-JS fallback: static centered wrap, no sliding */
.reviews-carousel--static .reviews-viewport { overflow: visible; }
.reviews-carousel--static .reviews-track {
  flex-wrap: wrap;
  justify-content: center;
  transform: none !important;
}
.review-card {
  flex: 0 0 calc((100% - 2 * var(--rev-gap)) / 3);  /* 3 visible on desktop */
  box-sizing: border-box;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 2.5vw, 2.4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review-card h3 { color: var(--color-secondary); }
.review-card p { color: var(--color-secondary); font-weight: 500; }
.stars { display: flex; gap: 4px; justify-content: center; margin-top: auto; }
.stars svg { width: 26px; height: 26px; }
.reviews-more { display: flex; justify-content: center; }

/* ----------------------------------------------------------- CTA */
.contact {
  background: linear-gradient(180deg, var(--color-surface-alt), var(--color-surface));
}
.contact .sec-head h2 { color: var(--color-secondary); }
.contact .dots span:nth-child(2) { background: var(--color-secondary); }
.contact-form {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field label { font-weight: 700; color: var(--color-secondary); font-size: 1.02rem; }
.field input,
.field textarea {
  width: 100%;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 1.05rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3b0; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(247, 171, 19, 0.16);
}
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.field-error { color: #d64545; font-size: 0.9rem; font-weight: 600; display: none; }
.field.invalid .field-error { display: block; }
.btn-submit {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  font-size: 1.15rem;
}
.form-success {
  display: none;
  background: rgba(247, 171, 19, 0.14);
  border: 1.5px solid var(--color-primary);
  color: var(--color-secondary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  text-align: center;
}
.form-success.show { display: block; }

/* -------------------------------------------------------- Footer */
.footer { background: var(--color-background); border-top: 1px solid var(--color-border); }
.footer-inner { padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer .logo { margin-bottom: clamp(2rem, 4vw, 3rem); }
.footer .logo .mark { width: 64px; }
.footer .logo .word .name { font-size: 1.35rem; }
.footer .logo .word .sub { font-size: 0.68rem; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer-contact { text-align: left; }
.footer-contact h3 { color: var(--color-secondary); margin-bottom: 1.6rem; font-weight: 700; }
.footer-contact ul { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.footer-contact li a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-secondary);
  transition: color 0.2s ease;
}
.footer-contact li a:hover { color: var(--color-primary-dark); }
.footer-contact svg { width: 22px; height: 22px; flex-shrink: 0; }
.footer-about { text-align: right; color: var(--color-secondary); font-size: 1.1rem; line-height: 1.7; }
.footer-copy {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-secondary);
  font-weight: 500;
}

/* --------------------------------------------------- Service page */
.svc-page { padding-top: var(--nav-height); }
/* White hero (title) on top, mountain divider, then dark body below */
.svc-hero { background: var(--color-background); }
/* Compact top: small gap below the title, and the dark body's content sits
   close under the mountain divider so it peeks into view early. */
.svc-hero .section-inner { padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(0.4rem, 1.5vw, 1rem); text-align: center; }
.svc-hero h1 { color: var(--color-secondary); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.svc-hero h1 .accent { color: var(--color-primary); }
.svc-hero p { max-width: 680px; margin-inline: auto; color: var(--color-text-muted); font-size: 1.15rem; }
.svc-body { background: var(--color-secondary); color: var(--color-white); }
.svc-body .section-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 1180px; margin-inline: auto; padding-block: clamp(0.75rem, 2vw, 1.5rem) clamp(3rem, 6vw, 5.5rem); }
.svc-body img { width: 100%; border-radius: var(--radius-md); border: 3px solid var(--color-primary); box-shadow: 0 12px 30px rgba(0,0,0,0.28); aspect-ratio: 4/3; object-fit: cover; }
.svc-body h2 { color: var(--color-primary); margin-bottom: 1.2rem; }
.svc-body p { color: rgba(255,255,255,0.85); margin-bottom: 1.6rem; }
.svc-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-primary); font-weight: 700; transition: color 0.2s ease; }
.svc-back:hover { color: var(--color-white); }

/* FAQ / UKK accordion */
.svc-faq { background: var(--color-surface); }
.svc-faq .sec-head { margin-bottom: 2rem; }
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.faq-item:hover { border-color: var(--color-primary); }
.faq-item.open { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.3rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--color-secondary);
  line-height: 1.3;
}
.faq-q:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; border-radius: var(--radius-md); }
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  transition: transform 0.3s var(--ease-spring);
}
.faq-icon svg { width: 17px; height: 17px; }
.faq-item.open .faq-icon { transform: rotate(135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 0 1.5rem 1.4rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.svc-other { background: var(--color-background); }
.svc-other .sec-head { margin-bottom: 2rem; }
/* Muut palvelut — 3 tiles per row */
.svc-other .gallery { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }

/* ------------------------------------------------ Hinnasto / pricing */
.hinnasto-page { padding-top: var(--nav-height); }
/* white breathing room under the fixed nav before the mountain divider */
.hinnasto-top { height: clamp(36px, 6vh, 70px); background: var(--color-background); }
.hinnasto { background: var(--color-secondary); color: var(--color-white); }
/* tighter top padding so the heading sits closer to the mountain divider */
.hinnasto .section-inner { padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(3.5rem, 7vw, var(--spacing-2xl)); }
.hinnasto .sec-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: var(--spacing-md);
}
.hinnasto .dots span { background: var(--color-primary); }
.hinnasto .dots span:nth-child(n+2) { background: var(--color-white); opacity: 0.4; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  max-width: 1200px;
  margin-inline: auto;
  align-items: stretch;
}
.plan {
  background: var(--color-white);
  color: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: clamp(1.9rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.plan--featured { background: var(--color-primary); }
.plan-name {
  color: var(--color-primary);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 800;
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}
.plan--featured .plan-name { color: var(--color-secondary); }
.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(3rem, 5vw, 4.25rem);
  color: var(--color-secondary);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.1rem);
}
.plan-features { display: flex; flex-direction: column; gap: clamp(0.7rem, 1.4vw, 1.05rem); }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--color-secondary);
  line-height: 1.4;
}
.plan-features svg { width: 21px; height: 21px; flex-shrink: 0; }
.hinnasto-cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ------------------------------------ Sub-page top (laskuri / yhteys) */
/* white breathing room under the fixed nav before the mountain divider */
.subpage-top { height: clamp(36px, 6vh, 70px); background: var(--color-background); }

/* Shared dark-section heading (matches Hinnasto). h2 on the index, where the
   hero already owns the page h1. */
.laskuri .sec-head h1,
.laskuri .sec-head h2,
.yhteys .sec-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: var(--spacing-md);
}
.laskuri .dots span, .yhteys .dots span { background: var(--color-primary); }
.laskuri .dots span:nth-child(n+2),
.yhteys .dots span:nth-child(n+2) { background: var(--color-white); opacity: 0.4; }

/* ============================================ Hintalaskuri (calculator) */
.laskuri-page { padding-top: var(--nav-height); }
.laskuri { background: var(--color-secondary); color: var(--color-white); }
.laskuri .section-inner { padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(3.5rem, 7vw, var(--spacing-2xl)); }
.laskuri-intro {
  max-width: 620px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
}
.laskuri-note {
  max-width: 700px;
  margin: clamp(1.4rem, 3vw, 2rem) auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
}

/* White wizard panel floating on the dark section */
.calc {
  max-width: 880px;
  margin-inline: auto;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3.5vw, 2.75rem);
}
.calc-bar { height: 6px; border-radius: var(--radius-pill); background: var(--color-border); overflow: hidden; }
.calc-bar-fill {
  display: block; height: 100%; width: 0;
  background: var(--color-primary);
  border-radius: inherit;
  transition: width 0.4s var(--ease-spring);
}
.calc-stepmeta {
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.calc-stage { margin-top: clamp(1.2rem, 2.5vw, 1.8rem); }
.calc-q { font-size: clamp(1.35rem, 2.6vw, 2rem); color: var(--color-secondary); margin-bottom: 0.35rem; }
.calc-q-hint { color: var(--color-text-muted); margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 500; }

/* Service chooser */
.calc-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.8rem, 1.6vw, 1.1rem); }
.calc-svc {
  text-align: left;
  display: flex; flex-direction: column; gap: 0.3rem;
  background: var(--color-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.calc-svc:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.calc-svc.is-sel { border-color: var(--color-primary); background: rgba(247, 171, 19, 0.08); }
.calc-svc:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.calc-svc-ico {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-secondary);
  margin-bottom: 0.45rem;
}
.calc-svc-ico svg { width: 26px; height: 26px; }
.calc-svc-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--color-secondary); }
.calc-svc-desc { color: var(--color-text-muted); font-size: 0.96rem; font-weight: 500; line-height: 1.5; }

/* Apartment-size slider with a click-to-type number */
.calc-size { background: var(--color-surface); border-radius: var(--radius-md); padding: clamp(1.3rem, 2.5vw, 2rem); }
.calc-size-readout { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: clamp(1.1rem, 2.5vw, 1.6rem); }
.calc-size-value {
  width: 4.2ch; min-width: 4.2ch;
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--color-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px dashed var(--color-border);
  padding: 0 0 0.1rem;
  text-align: center;
  -moz-appearance: textfield;
}
.calc-size-value::-webkit-outer-spin-button,
.calc-size-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-size-value:hover { border-bottom-color: var(--color-primary); }
.calc-size-value:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--color-primary); }
.calc-size-unit { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--color-secondary); }
.calc-size-tag {
  margin-left: auto;
  align-self: center;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
}
.calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: var(--radius-pill); background: var(--color-border); cursor: pointer; }
.calc-slider:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.calc-size-scale { display: flex; justify-content: space-between; margin-top: 0.6rem; color: var(--color-text-muted); font-size: 0.85rem; font-weight: 600; }

/* Item list (flat) + free-text "Muu" field */
.calc-items { display: flex; flex-direction: column; gap: 0.6rem; }
.calc-other { margin-top: clamp(1.2rem, 2.5vw, 1.7rem); }
.calc-other label { display: block; font-weight: 700; color: var(--color-secondary); font-size: 1.02rem; margin-bottom: 0.55rem; }
.calc-other input {
  width: 100%;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 1.02rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.calc-other input::placeholder { color: #9aa3b0; }
.calc-other input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(247, 171, 19, 0.16); }
.calc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem 0.65rem 1.1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.calc-item.has-count { border-color: var(--color-primary); background: rgba(247, 171, 19, 0.07); }
.calc-item-name { font-weight: 600; color: var(--color-secondary); line-height: 1.3; }
.calc-item-ex { display: block; font-weight: 500; font-size: 0.85rem; color: var(--color-text-muted); }
.calc-stepper { display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.calc-step-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-secondary);
  font-size: 1.35rem; font-weight: 700; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.calc-step-btn:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.calc-step-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.calc-count { min-width: 1.9rem; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--color-secondary); }

/* Address step */
.calc-addr { display: flex; flex-direction: column; gap: 1.1rem; }
.calc-floor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.calc-sub { font-weight: 500; color: var(--color-text-muted); font-size: 0.85rem; }
.calc-elev-label { display: block; font-weight: 700; color: var(--color-secondary); font-size: 1.02rem; margin-bottom: 0.55rem; }
.calc-toggle { display: flex; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.calc-tg {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.calc-tg + .calc-tg { border-left: 1.5px solid var(--color-border); }
.calc-tg.is-sel { background: var(--color-primary); color: var(--color-secondary); }
.calc-err { color: #d64545; font-weight: 600; font-size: 0.92rem; margin-top: 0.6rem; }

/* Wizard footer (back / next) */
.calc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.calc-foot[hidden] { display: none; }
.calc-back {
  background: none; border: none; cursor: pointer;
  font-weight: 700; color: var(--color-text-muted);
  padding: 0.6rem 0.3rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s ease;
}
.calc-back::before { content: "←"; font-size: 1.1em; }
.calc-back:hover { color: var(--color-secondary); }
.calc-back[hidden] { display: none; }
.calc-next { margin-left: auto; }

/* Result */
.calc-result { display: flex; flex-direction: column; gap: clamp(1.4rem, 2.5vw, 2rem); }
.result-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}
.result-label { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.88rem; color: var(--color-secondary); opacity: 0.85; }
.result-price {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--color-secondary);
  margin: 0.25rem 0 0.55rem;
}
.result-note { color: var(--color-secondary); opacity: 0.8; font-size: 0.9rem; font-weight: 500; max-width: 460px; margin-inline: auto; line-height: 1.5; }
.result-summary h3 { color: var(--color-secondary); margin-bottom: 0.7rem; }
.result-summary dl { display: flex; flex-direction: column; }
.result-summary dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); }
.result-summary dt { color: var(--color-text-muted); font-weight: 600; }
.result-summary dd { color: var(--color-secondary); font-weight: 700; text-align: right; }
.result-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.calc-restart {
  background: none; border: none; cursor: pointer;
  font-weight: 700; color: var(--color-text-muted);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.calc-restart:hover { color: var(--color-secondary); }

/* ============================================ Ota yhteyttä (contact page) */
.yhteys-page { padding-top: var(--nav-height); }
.yhteys { background: var(--color-secondary); color: var(--color-white); }
.yhteys .section-inner { padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(3.5rem, 7vw, var(--spacing-2xl)); }
.yhteys-intro {
  max-width: 620px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
}
.yhteys-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1080px;
  margin-inline: auto;
  align-items: start;
}
.yhteys-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.yhteys-form-card .contact-form { max-width: none; }
.yhteys-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.yhteys-info h2 { color: var(--color-primary); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.4rem; }
.yhteys-channels { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.8rem; }
.yhteys-channels li a {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--color-white); font-weight: 600; font-size: 1.08rem;
  transition: color 0.2s ease;
}
.yhteys-channels li a:hover { color: var(--color-primary); }
.yhteys-channels svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-primary); }
.yhteys-meta {
  display: flex; flex-direction: column; gap: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}
.yhteys-meta dt { color: var(--color-primary); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.yhteys-meta dd { color: rgba(255, 255, 255, 0.9); font-weight: 500; }

/* Shared two-up field row (date+time, postcode+city) */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

/* ------------------------------------------------------ Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-about { text-align: center; }
  .reviews-carousel { max-width: 520px; }
  .review-card { flex-basis: 100%; scroll-snap-align: center; }   /* 1 visible on mobile */
  /* Mobile: free finger-swipe scrolling (JS toggles the class). Cards snap into
     place; the JS auto-advance scrolls this same container every 6s. */
  .reviews-viewport--scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .reviews-viewport--scroll::-webkit-scrollbar { display: none; }
  .reviews-viewport--scroll .reviews-track { transform: none !important; will-change: auto; }
  .svc-body .section-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .yhteys-grid { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 620px) {
  .calc-svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .calc-floor-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .result-summary dd { text-align: left; }
}
@media (max-width: 768px) {
  /* Lower navbar + larger logo */
  :root { --nav-height: 60px; }
  .logo-img { height: 46px; }
  .footer .logo-img { height: 52px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .gallery { grid-template-columns: 1fr; max-width: 520px; }

  /* Hero: shorter on mobile, with the content vertically centred */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 95vh;
    padding-top: var(--nav-height);
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }
  /* Hero: text, value props (checklist) and buttons all left-aligned */
  .hero-inner { text-align: left; }
  .hero h1 { line-height: 1.16; }
  /* "ympäristöystävällisesti" line hidden on mobile */
  .hero h1 .eco { display: none; }
  .hero-sub, .hero-para { margin-inline: 0; }
  .hero-checklist { justify-content: flex-start; }
  /* CTAs stay side by side when they fit; wrap to stacked only when they don't */
  .hero-ctas { justify-content: flex-start; gap: 0.7rem; }
  .hero-ctas .btn { padding: 0.85rem 1.45rem; font-size: 1rem; }

  /* Services bottom CTA centered (overrides the default left-aligned mobile CTA) */
  .cta-mobile { display: flex; width: fit-content; margin-inline: auto; align-self: auto; }

  /* Footer: all text left-aligned */
  .footer-about { text-align: left; }
  .footer-copy { text-align: left; }

  /* Service page "Muut palvelut": one tile per row (stacked) */
  .svc-other .gallery { grid-template-columns: 1fr; max-width: 520px; }
}

/* ----------------------------------------------------- Animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(30px) scale(0.97); }
  .reveal.in, .reveal.is-visible {
    opacity: 1; transform: translateY(0) scale(1);
    transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
  }

  /* hero load stagger */
  .hero .anim { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s var(--ease-spring) forwards; }
  .hero h1.anim { animation-delay: 0.15s; }
  .hero .hero-sub.anim { animation-delay: 0.35s; }
  .hero .hero-para.anim { animation-delay: 0.5s; }
  .hero .hero-checklist.anim { animation-delay: 0.65s; }
  .hero .hero-kicker.anim { animation-delay: 0.8s; }
  .hero .hero-ctas.anim { animation-delay: 0.95s; }

  /* calculator step transition — plays each time a step is rendered */
  .calc-step { animation: calcIn 0.4s var(--ease-spring) both; }
  @keyframes calcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

  /* rotating word — letters drop in and lift away one by one, same style both ways */
  .rotator .char.drop { animation: charDrop 0.5s var(--ease-spring) both; }
  @keyframes charDrop {
    0%   { opacity: 0; transform: translateY(-0.85em); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
  }
  .rotator .char.lift { animation: charLift 0.34s var(--ease-spring) both; }
  @keyframes charLift {
    0%   { opacity: 1; transform: translateY(0); }
    70%  { opacity: 0; }
    100% { opacity: 0; transform: translateY(-0.85em); }
  }
}

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
