/* ============================================================================
   Silver theme — Silver Hieronta
   1:1 visual port of the Solena Webflow template (design base) onto FrontPress,
   expressed through ACSS-named design tokens. The :root values ARE the source
   of truth (no ACSS framework loaded); names follow ACSS vocabulary, values
   are lifted from the Solena build.
   ========================================================================== */

:root {
  /* — Palette ------------------------------------------------------------- */
  /* Solid roles, each with an --*-rgb channel companion so the alpha variants
     and the overlay scrims below resolve from a single source of truth. */
  --surface:            #fffef6;   /* page background (warm cream)            */
  --primary:            #585e48;   /* sage: dark panels, buttons, footer      */
  --primary-hover:      #4a4f3c;   /* sage, pressed                           */
  --heading:            #000000;   /* headings on light                       */
  --text:               #666666;   /* body copy on light                      */
  --text-soft:          #8a8a82;   /* muted meta on light                     */

  --ink-rgb:            43, 51, 46;             /* deep olive (near-black green) */
  --ink:                rgb(var(--ink-rgb));    /* = #2b332e                     */

  --on-dark-rgb:        255, 255, 255;                 /* white on sage panels   */
  --on-dark:            rgb(var(--on-dark-rgb));        /* = #ffffff              */
  --on-dark-soft:       rgba(var(--on-dark-rgb), .72);  /* muted on sage          */
  --on-dark-faint:      rgba(var(--on-dark-rgb), .45);

  --scrim-rgb:          20, 22, 16;             /* cool near-black image overlay */

  --border-light:       #e6e6dc;                        /* hairline on cream      */
  --border-ondark:      rgba(var(--on-dark-rgb), .18);  /* hairline on sage       */

  /* — Type ---------------------------------------------------------------- */
  --font-display: 'Italiana', 'Times New Roman', serif;
  --font-body:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-num:     'Playfair Display', Georgia, serif;

  --fw-light: 300; --fw-normal: 400; --fw-medium: 500; --fw-semi: 600; --fw-bold: 700;

  /* Fluid type scale — single source of truth. Each token is
     clamp(min @375px viewport, fluid middle, max @1440px viewport), so text
     scales smoothly between mobile and desktop and we never retune per element.
     ACSS-style fluid tokens (no ACSS framework loaded). Edit min/max here only. */
  /* Scale nudged up ~1 step (2026-06-08, Sten's call) for readability — the
     Italiana display + Jost body ran a touch small in the airy layout. The
     small reading sizes (body/small/h5) get the most relative lift; the large
     decorative display sizes the least, so the hierarchy ratios stay intact. */
  --fs-hero:    clamp(40px, 21.0px + 5.07vw, 94px);  --lh-hero:    1.1;   /* hero overlay headline */
  --fs-display: clamp(34px, 24.1px + 2.63vw, 62px);  --lh-display: 1.25;  /* big uppercase titles  */
  --fs-title:   clamp(30px, 22.3px + 2.07vw, 52px);  --lh-title:   1.06;  /* capitalized titles    */
  --fs-h3:      clamp(28px, 23.1px + 1.31vw, 42px);  /* card/lead headings    */
  --fs-h4:      clamp(23px, 20.5px + 0.66vw, 30px);  /* feature/card headings */
  --fs-h5:      clamp(21px, 17.5px + 0.94vw, 31px);  /* sub-titles (FAQ etc)  */
  --fs-body:    clamp(17px, 16.3px + 0.19vw, 19px);  --lh-body:    1.62;
  --fs-small:   clamp(15px, 14.6px + 0.09vw, 16px);
  /* h3/h4/h5 inherit line-height from the base h1-h6 rule (--lh-display);
     only hero/title/body carry an explicit --lh, so no --lh-h3/4/5 tokens. */
  /* prominent one-offs, also fluid so they stay mobile-safe */
  --fs-stat:    clamp(68px, 39.1px + 7.70vw, 150px); /* intro big number      */
  --fs-price:   clamp(42px, 37.8px + 1.13vw, 54px);  /* pricing plan number   */
  --fs-brand:   clamp(22px, 19.2px + 0.75vw, 30px);  /* wordmark              */

  /* — Space scale (ACSS names ← Solena values) ---------------------------- */
  /* Layout rhythm. Off-scale micro-gaps (8/12/14/18/22px etc.) inside
     components are intentionally literal, not snapped to the nearest step. */
  --space-3xs: 4px;  --space-2xs: 6px;  --space-xs: 10px; --space-s: 16px;
  --space-m: 24px;   --space-l: 40px;   --space-xl: 60px; --space-2xl: 80px;
  --space-3xl: 100px; --space-4xl: 120px;

  /* — Layout -------------------------------------------------------------- */
  --container:     1320px;
  --container-xl:  1750px;
  --container-xxl: 1850px;
  --gutter:        30px;
  --header-height: 96px;
  --scroll-gap:    16px;               /* gap between sticky header + anchor target */
  --section-py:    var(--space-4xl);   /* 120px default vertical rhythm      */

  /* — Motion (no JS animation framework — CSS transitions only) ----------- */
  --ease:        cubic-bezier(.25,.46,.45,.94);
  --transition:  .4s var(--ease);
  --transition-fast: .25s var(--ease);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Anchor-scroll offset — the SINGLE source of truth, carried by the scroll
   TARGETS themselves (scroll-margin-top), NOT scroll-padding on the scroller:
   scroll-margin-top is honoured by both scrollIntoView (menu clicks via main.js)
   and native #fragment deep-links, consistently across engines incl. WebKit/iOS
   (where scrollIntoView + scroll-padding is unreliable). Keyed to the live
   --header-height (+ --scroll-gap), so it self-corrects at every breakpoint with
   no per-device JS math. Only ONE element is the target per scroll, so the
   offsets never stack.

   Two tiers, by what sits at the landing edge:
   • Band / full-bleed sections (hero, Palvelut, booking, testimonials, blog) +
     the footer land their box top FLUSH under the header. A gap here would show
     a sliver of the PREVIOUS section's (differently-coloured) background between
     the header and the band, which reads as a rendering glitch. */
main > section[id],
footer[id] {
  scroll-margin-top: var(--header-height);
}
/* • Content-section headings ([data-scroll-anchor]) get --scroll-gap of breathing
     room. That gap falls within the section's OWN top padding (same background),
     so it reads as intentional, not as a peek of the section above. */
[data-scroll-anchor] {
  scroll-margin-top: calc(var(--header-height) + var(--scroll-gap));
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip (not hidden): prevents horizontal overflow WITHOUT making <body> a
     scroll container — keeps the viewport as the scroller so window.scrollTo,
     scroll-padding and #anchor jumps all work. */
  overflow-x: clip;
  text-wrap: pretty; /* inherited: reduces orphans/short last lines in body copy */
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  color: var(--heading);
  line-height: var(--lh-display);
  text-wrap: balance; /* even multi-line headings — avoid single-word orphans */
}

ul, ol { list-style: none; padding: 0; }

/* ============================================================================
   Primitives
   ========================================================================== */

/* Centered content container */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--xl  { max-width: calc(var(--container-xl)  + var(--gutter) * 2); }
.container--xxl { max-width: calc(var(--container-xxl) + var(--gutter) * 2); }

/* Big uppercase section title */
.display-title {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  text-transform: uppercase;
  color: var(--heading);
  letter-spacing: .01em;
}
.display-title--light { color: var(--on-dark); }

/* Capitalized intro title */
.title {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  text-transform: capitalize;
  color: var(--heading);
}

/* Notched (cut top-left corner) button — Solena signature.
   Transparent w/ hairline border by default; --fill variant is solid sage. */
.btn {
  --notch: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 58px;
  padding: 0 36px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: 1;
  color: var(--heading);
  border: 1px solid var(--border-light);
  background: transparent;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
  transition: background var(--transition), color var(--transition);
}
/* the little diagonal hairline that closes the cut corner */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: calc(var(--notch) * 1.42);
  height: 1px;
  background: var(--border-light);
  transform-origin: top left;
  transform: rotate(45deg);
}
.btn:hover { background: var(--primary); color: var(--on-dark); }
.btn--fill { background: var(--primary); color: var(--on-dark); border-color: var(--primary); }
.btn--fill::before { background: var(--primary); }
.btn--fill:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn--light { color: var(--on-dark); border-color: var(--border-ondark); }
.btn--light::before { background: var(--border-ondark); }
.btn--light:hover { background: var(--on-dark); color: var(--heading); }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: var(--on-dark); padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* Reveal-on-scroll (subtle, CSS-only via IntersectionObserver toggling .is-in) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .s-faq__a-wrap { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   HEADER + slide-in menu
   ========================================================================== */
.s-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: var(--surface);
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
}
.s-header.is-scrolled { box-shadow: 0 1px 0 var(--border-light); }
.s-header__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.s-header__menu { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.s-header__menu-bars {
  display: inline-flex; flex-direction: column; gap: var(--space-3xs);
  width: 48px; height: 48px; border: 1px solid var(--border-light); border-radius: 50%;
  align-items: center; justify-content: center;
  transition: border-color var(--transition-fast);
}
.s-header__menu-bars span { display: block; width: 18px; height: 1.5px; background: var(--heading); }
.s-header__menu:hover .s-header__menu-bars { border-color: var(--primary); }
.s-header__menu-label { font-size: var(--fs-body); color: var(--heading); }

.s-header__brand {
  justify-self: center;
  font-family: var(--font-display); font-size: var(--fs-brand); line-height: 1;
  letter-spacing: .18em; text-transform: uppercase; color: var(--heading);
  padding-left: .18em; /* optical centering for tracked caps */
}
.s-header__aside { justify-self: end; display: inline-flex; align-items: center; gap: 28px; }
.s-header__contact { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--text); }
.s-header__contact-link { transition: color var(--transition-fast); }
.s-header__contact-link:hover { color: var(--primary); }
.s-header__cta { min-height: 50px; padding: 0 28px; }

/* Slide-in menu */
.s-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  width: min(420px, 86vw);
  background: var(--primary); color: var(--on-dark);
  padding: var(--space-2xl) var(--space-l);
  display: flex; flex-direction: column; gap: var(--space-l);
  transform: translateX(-100%); transition: transform var(--transition);
}
.s-menu.is-open { transform: none; }
.s-menu__close { font-size: 34px; line-height: 1; color: var(--on-dark); align-self: flex-end; }
.s-menu__list { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-l); }
.s-menu__link {
  font-family: var(--font-display); font-size: 32px; text-transform: capitalize;
  color: var(--on-dark); transition: opacity var(--transition-fast);
}
.s-menu__link:hover { opacity: .7; }
.s-menu__cta { margin-top: auto; align-self: flex-start; }
.s-menu__backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(var(--scrim-rgb), .4); opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
.s-menu__backdrop.is-shown { opacity: 1; visibility: visible; }

/* ============================================================================
   HERO
   ========================================================================== */
.s-hero { position: relative; display: grid; grid-template-columns: 28% 1fr; min-height: clamp(620px, 86vh, 900px); }
.s-hero__left { background: var(--primary); display: flex; align-items: center; padding: var(--space-2xl) var(--space-l); }
.s-hero__left-inner { display: flex; flex-direction: column; gap: var(--space-l); }
.s-hero__left-heading {
  font-family: var(--font-display); font-weight: var(--fw-medium);
  font-size: var(--fs-h3); line-height: 1.13; color: var(--on-dark);
}
.s-hero__left-cta { align-self: flex-start; }

.s-hero__right { position: relative; overflow: hidden; }
.s-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* legibility wash for the overlaid headline (our portrait is brighter than
   the template's stock room shot) */
.s-hero__right::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(118deg, rgba(var(--ink-rgb),.5) 0%, rgba(var(--ink-rgb),.16) 42%, rgba(var(--ink-rgb),0) 68%); }
.s-hero__headline {
  position: absolute; top: 84px; left: 48px; right: 48px; z-index: 2;
  font-family: var(--font-display); font-weight: var(--fw-medium);
  font-size: var(--fs-hero); line-height: var(--lh-hero);
  text-transform: uppercase; color: var(--on-dark);
}

.s-hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(to bottom, rgba(var(--scrim-rgb),0), rgba(var(--scrim-rgb),.62));
  padding: var(--space-l) var(--space-l) var(--space-m);
}
.s-hero__bar-col { padding: var(--space-2xs) var(--space-m); }
.s-hero__bar-col + .s-hero__bar-col { border-left: 1px solid rgba(var(--on-dark-rgb), .22); }
.s-hero__bar-title { font-family: var(--font-display); font-size: var(--fs-h5); color: var(--on-dark); margin-bottom: var(--space-xs); text-transform: none; }
.s-hero__bar-text { font-size: var(--fs-small); line-height: 1.7; color: var(--on-dark-soft); }
.s-hero__bar-text a:hover { color: var(--on-dark); }

/* ============================================================================
   INTRO
   ========================================================================== */
.s-intro { padding-block: var(--section-py); }
.s-intro__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.s-intro__title { margin-bottom: var(--space-m); }
.s-intro__text { max-width: 46ch; margin-bottom: var(--space-l); }
.s-intro__cta { align-self: flex-start; }

.s-intro__media { position: relative; min-height: 460px; }
.s-intro__media-b { position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; }
.s-intro__media-a { position: absolute; left: 0; bottom: -28px; width: 42%; aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 24px 60px rgba(var(--ink-rgb), .18); }

.s-intro__foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; margin-top: var(--space-3xl); }
.s-intro__stat { display: flex; align-items: baseline; gap: var(--space-m); }
.s-intro__stat-num { font-family: var(--font-num); font-size: var(--fs-stat); line-height: .9; color: rgba(var(--ink-rgb), .12); font-weight: var(--fw-medium); }
.s-intro__stat-label { font-size: var(--fs-body); color: var(--text-soft); max-width: 14ch; }
.s-intro__quote { font-family: var(--font-num); font-style: italic; font-size: clamp(18px, 16.6px + 0.38vw, 22px); line-height: 1.55; color: var(--ink); }
.s-intro__quote-cite { display: block; margin-top: var(--space-s); font-style: normal; font-family: var(--font-body); font-size: var(--fs-small); color: var(--text-soft); }

/* ============================================================================
   SERVICES
   ========================================================================== */
.s-services__top { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.s-services__photo { background-size: cover; background-position: center; }
.s-services__panel { background: var(--primary); color: var(--on-dark); display: flex; flex-direction: column; justify-content: center; padding: var(--space-3xl) var(--space-2xl); padding-right: 8%; padding-bottom: 320px; /* reserve the floating cards' vertical reach (~card height) so the centred intro clears the overlapping cream card; reverted when stacked <=991 */ }
.s-services__title { margin-bottom: var(--space-m); }
.s-services__intro { color: var(--on-dark-soft); max-width: 42ch; }

.s-services__cards { position: absolute; left: 50%; bottom: -64px; transform: translateX(-50%); width: min(var(--container), 92%); display: grid; grid-template-columns: 1.05fr .95fr; }
.s-services__lead { background: var(--primary); color: var(--on-dark); padding: var(--space-xl) var(--space-l); display: flex; flex-direction: column; gap: var(--space-m); align-items: flex-start; }
.s-services__lead-title { font-size: var(--fs-h3); color: var(--on-dark); }
.s-services__lead-desc { color: var(--on-dark-soft); }
.s-services__benefits { background: var(--surface); border: 1px solid var(--border-light); padding: var(--space-xl) var(--space-l); }
.s-services__benefits-title { font-size: var(--fs-h5); margin-bottom: var(--space-m); }
.s-services__benefits-list { display: flex; flex-direction: column; gap: 14px; }
.s-services__benefits-list li { position: relative; padding-left: 22px; color: var(--text); }
.s-services__benefits-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }

.s-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-l); padding-top: 140px; padding-bottom: var(--section-py); }
.s-service-card { border: 1px solid var(--border-light); padding: var(--space-xl) var(--space-l); display: flex; flex-direction: column; gap: var(--space-m); background: var(--surface); transition: box-shadow var(--transition); }
.s-service-card:hover { box-shadow: 0 24px 60px rgba(var(--ink-rgb), .10); }
.s-service-card__head { display: flex; flex-direction: column; gap: 8px; }
.s-service-card__name { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--heading); }
.s-service-card__meta { display: flex; gap: var(--space-s); font-size: var(--fs-small); color: var(--text-soft); }
.s-service-card__price { color: var(--primary); font-weight: var(--fw-medium); }
.s-service-card__desc { color: var(--text); font-size: var(--fs-body); }
.s-service-card__list { display: flex; flex-direction: column; gap: 12px; }
.s-service-card__list-item { display: flex; align-items: center; gap: var(--space-xs); color: var(--text); }
.s-service-card__tick { width: 20px; height: 20px; }
.s-service-card__cta { align-self: flex-start; margin-top: auto; }

/* ============================================================================
   WHY US
   ========================================================================== */
.s-whyus { padding-block: var(--section-py); }
.s-whyus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); }
.s-whyus__intro { padding: var(--space-s) var(--space-l) var(--space-s) 0; display: flex; flex-direction: column; justify-content: center; }
.s-whyus__title { margin-bottom: var(--space-m); }
.s-whyus__lead { color: var(--text); max-width: 40ch; }
.s-feature { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-l); border: 1px solid var(--border-light); padding: var(--space-l) var(--space-l); }
.s-feature__title { font-size: var(--fs-h4); margin-bottom: 14px; color: var(--heading); }
.s-feature__body { color: var(--text); font-size: var(--fs-body); max-width: 32ch; }
.s-feature__icon { width: 150px; height: auto; opacity: .9; }

/* ============================================================================
   BOOKING
   ========================================================================== */
.s-booking { display: grid; grid-template-columns: 1fr 1fr; }
.s-booking__left { position: relative; background-size: cover; background-position: center; color: var(--on-dark); display: flex; align-items: center; padding: var(--space-3xl) var(--space-2xl); }
.s-booking__left::before { content: ""; position: absolute; inset: 0; background: rgba(28,30,22,.58); /* one-off warm image scrim, no shared token */ }
.s-booking__hours { position: relative; z-index: 1; width: 100%; }
.s-booking__hours-title { color: var(--on-dark); margin-bottom: var(--space-l); }
.s-booking__hours-list { display: flex; flex-direction: column; }
.s-booking__hours-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border-ondark); }
.s-booking__hours-row dt { font-family: var(--font-display); font-size: var(--fs-h5); color: var(--on-dark); }
.s-booking__hours-row dd { color: var(--on-dark-soft); }
.s-booking__hours-note { display: flex; align-items: center; gap: 12px; margin-top: var(--space-l); color: var(--on-dark-soft); font-size: var(--fs-small); }
.s-booking__hours-leaf { width: 34px; height: 34px; filter: brightness(0) invert(1); opacity: .8; }

.s-booking__right { background: var(--surface); padding: var(--space-3xl) var(--space-2xl); }
.s-booking__title { margin-bottom: var(--space-s); }
.s-booking__intro { color: var(--text); max-width: 46ch; margin-bottom: var(--space-l); }

/* Form */
.s-form { display: flex; flex-direction: column; gap: var(--space-s); }
.s-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.s-form__field { width: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border-light); color: var(--heading); font-size: var(--fs-small); transition: border-color var(--transition-fast); }
.s-form__field::placeholder { color: var(--text-soft); }
.s-form__field:focus { outline: none; border-color: var(--primary); }
.s-form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px; }
.s-form__textarea { resize: vertical; min-height: 120px; }
.s-form__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); margin-top: var(--space-xs); flex-wrap: wrap; }
.s-form__privacy { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text-soft); }
.s-form__privacy img { width: 20px; height: 20px; }
.s-form__submit { min-height: 56px; }

/* ============================================================================
   PRICING
   ========================================================================== */
.s-pricing { padding-block: var(--section-py); }
.s-pricing__head { text-align: center; margin-bottom: var(--space-2xl); }
.s-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-l); align-items: center; }
.s-plan { border: 1px solid var(--border-light); background: var(--surface); padding: var(--space-xl) var(--space-l); display: flex; flex-direction: column; gap: var(--space-m); transition: transform var(--transition), box-shadow var(--transition); }
.s-plan--featured { background: var(--primary); color: var(--on-dark); transform: translateY(-18px); }
.s-plan--featured .s-plan__name, .s-plan--featured .s-plan__price, .s-plan--featured .s-plan__unit { color: var(--on-dark); }
.s-plan--featured .s-plan__desc, .s-plan--featured .s-plan__list-item { color: var(--on-dark-soft); }
.s-plan__name { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--heading); }
.s-plan__meta { display: flex; align-items: baseline; gap: 8px; }
.s-plan__price { font-family: var(--font-num); font-size: var(--fs-price); line-height: 1; color: var(--heading); }
.s-plan__unit { font-size: var(--fs-small); color: var(--text-soft); }
.s-plan__desc { font-size: var(--fs-body); color: var(--text); }
.s-plan__list { display: flex; flex-direction: column; gap: 12px; }
.s-plan__list-item { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--fs-body); color: var(--text); }
.s-plan__list-item img { width: 20px; height: 20px; }
.s-plan--featured .s-plan__list-item img { filter: brightness(0) invert(1); }
.s-plan__cta { align-self: flex-start; margin-top: auto; }
.s-plan--featured .s-plan__cta { border-color: var(--border-ondark); color: var(--on-dark); }
.s-plan--featured .s-plan__cta::before { background: var(--border-ondark); }
.s-plan--featured .s-plan__cta:hover { background: var(--on-dark); color: var(--primary); }
.s-pricing__note { text-align: center; margin-top: var(--space-xl); color: var(--text-soft); font-size: var(--fs-small); max-width: 60ch; margin-inline: auto; }

/* ============================================================================
   TESTIMONIALS
   ========================================================================== */
.s-testi { display: grid; grid-template-columns: 1fr 1.5fr 1fr; background: var(--primary); min-height: 560px; }
.s-testi__media { background-size: cover; background-position: center; }
.s-testi__center { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--space-3xl) var(--space-xl); gap: var(--space-l); }
.s-testi__slides { position: relative; width: 100%; }
.s-testi__slide { display: none; flex-direction: column; align-items: center; gap: var(--space-l); }
.s-testi__slide.is-active { display: flex; }
.s-testi__quote { font-family: var(--font-num); font-style: italic; font-size: var(--fs-h4); line-height: 1.5; color: var(--on-dark); max-width: 26ch; }
.s-testi__cap { display: flex; align-items: center; gap: 14px; }
.s-testi__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.s-testi__meta { display: flex; flex-direction: column; text-align: left; }
.s-testi__name { font-family: var(--font-display); font-size: var(--fs-h5); color: var(--on-dark); }
.s-testi__role { font-size: var(--fs-small); color: var(--on-dark-soft); }
.s-testi__nav { display: flex; gap: 12px; }
.s-testi__arrow { width: 46px; height: 46px; border: 1px solid var(--border-ondark); border-radius: 50%; color: var(--on-dark); font-size: 18px; transition: background var(--transition-fast), color var(--transition-fast); }
.s-testi__arrow:hover { background: var(--on-dark); color: var(--primary); }

/* ============================================================================
   FAQ
   ========================================================================== */
.s-faq { display: grid; grid-template-columns: 1fr 1fr; }
.s-faq__left { padding: var(--section-py) var(--space-2xl); }
.s-faq__left-inner { max-width: 620px; margin-left: auto; }
.s-faq__title { margin-bottom: var(--space-xl); }
.s-faq__item { border-bottom: 1px solid var(--border-light); }
.s-faq__q { width: 100%; text-align: left; background: none; border: 0; list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: var(--space-m) 0; font-family: var(--font-display); font-size: var(--fs-h5); color: var(--heading); position: relative; }
.s-faq__q::-webkit-details-marker { display: none; }
.s-faq__num { color: var(--primary); }
.s-faq__icon { margin-left: auto; position: relative; width: 18px; height: 18px; flex: none; }
.s-faq__icon::before, .s-faq__icon::after { content: ""; position: absolute; background: var(--heading); transition: transform var(--transition-fast); }
.s-faq__icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.s-faq__icon::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.s-faq__item.is-open .s-faq__icon::after { transform: translateX(-50%) scaleY(0); }
/* Smooth drawer via grid-template-rows 0fr<->1fr — animates in EVERY engine
   incl. Safari/iOS. (height:0->auto needs `interpolate-size`, which is Chromium
   -only and SNAPS abruptly on WebKit — verified in real WebKit.) The grid child
   clips with min-height:0 so the 0fr track can reach 0; the padding lives on the
   inner .s-faq__a-body because padding on the clipping child can't collapse and
   would leak a ~24px sliver when closed (also verified in WebKit). */
.s-faq__a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.s-faq__item.is-open .s-faq__a-wrap { grid-template-rows: 1fr; }
html:not(.js) .s-faq__a-wrap { grid-template-rows: 1fr; } /* no-JS fallback: answers shown */
.s-faq__a { overflow: hidden; min-height: 0; }
.s-faq__a-body { padding: 0 0 var(--space-m); color: var(--text); max-width: 52ch; }
.s-faq__media { background-size: cover; background-position: center; min-height: 520px; }

/* ============================================================================
   BLOG
   ========================================================================== */
.s-blog { display: grid; grid-template-columns: 45% 55%; }
.s-blog__banner { background-size: cover; background-position: center; min-height: 600px; }
.s-blog__content { padding: var(--section-py) var(--space-2xl); }
.s-blog__title { margin-bottom: var(--space-2xl); }
.s-blog__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-l); }
.s-post { display: flex; flex-direction: column; gap: var(--space-s); }
.s-post__img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.s-post__meta { font-size: var(--fs-small); color: var(--text-soft); }
.s-post__title { font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.25; color: var(--heading); transition: color var(--transition-fast); }
.s-post:hover .s-post__title { color: var(--primary); }

/* ============================================================================
   FOOTER
   ========================================================================== */
.s-footer { background: var(--primary); color: var(--on-dark); padding-top: var(--space-3xl); }
.s-footer__inner { display: grid; grid-template-columns: 1.5fr 0.9fr 1.2fr 0.9fr 1.3fr; gap: var(--space-2xl); padding-bottom: var(--space-3xl); }
.s-footer__nav-all { display: inline-block; margin-top: 4px; color: var(--on-dark); }
.s-footer__brand { font-family: var(--font-display); font-size: var(--fs-brand); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); display: block; margin-bottom: var(--space-m); }
.s-footer__blurb { color: var(--on-dark-soft); font-size: var(--fs-small); max-width: 34ch; margin-bottom: var(--space-l); }
.s-footer__social { display: flex; gap: 12px; }
.s-footer__social-link { width: 44px; height: 44px; border: 1px solid var(--border-ondark); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-small); color: var(--on-dark); transition: background var(--transition-fast), color var(--transition-fast); }
.s-footer__social-link:hover { background: var(--on-dark); color: var(--primary); }
.s-footer__nav-title { font-family: var(--font-display); font-size: var(--fs-h5); color: var(--on-dark); text-transform: none; margin-bottom: var(--space-m); }
.s-footer__nav ul { display: flex; flex-direction: column; gap: 12px; }
.s-footer__nav a, .s-footer__nav span { color: var(--on-dark-soft); font-size: var(--fs-small); transition: color var(--transition-fast); }
.s-footer__nav a:hover { color: var(--on-dark); }
.s-footer__news-text { color: var(--on-dark-soft); font-size: var(--fs-small); margin-bottom: var(--space-m); }
.s-footer__news-form { display: flex; align-items: center; border-bottom: 1px solid var(--border-ondark); }
.s-footer__news-input { flex: 1; background: transparent; border: 0; padding: 12px 0; color: var(--on-dark); }
.s-footer__news-input::placeholder { color: var(--on-dark-faint); }
.s-footer__news-input:focus { outline: none; }
.s-footer__news-btn { font-size: 20px; color: var(--on-dark); padding: 8px; }
.s-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-l); border-top: 1px solid var(--border-ondark); }
.s-footer__copy { color: var(--on-dark-soft); font-size: var(--fs-small); }
.s-footer__top { color: var(--on-dark-soft); font-size: var(--fs-small); transition: color var(--transition-fast); }
.s-footer__top:hover { color: var(--on-dark); }

/* ============================================================================
   RESPONSIVE (first pass — refined during QA)
   ========================================================================== */
/* The email is long enough that below ~1600px it butts flush against the
   centred wordmark (0px gap). Drop email + separator here; keep the phone.
   Email still lives in the footer + JSON-LD. Whole contact hides at 991. */
@media (max-width: 1600px) {
  .s-header__contact a[href^="mailto"],
  .s-header__contact > span { display: none; }
}
@media (max-width: 991px) {
  :root { --section-py: var(--space-2xl); } /* font sizes are fluid via clamp() — no per-breakpoint overrides */
  .s-header__aside .s-header__contact { display: none; }
  .s-hero { grid-template-columns: 1fr; }
  .s-hero__left { padding: var(--space-xl) var(--space-l); }
  .s-hero__right { min-height: 70vh; }
  .s-intro__inner, .s-intro__foot, .s-services__top, .s-whyus__grid, .s-booking, .s-faq, .s-blog, .s-testi { grid-template-columns: 1fr; }
  .s-services__cards { position: static; transform: none; width: 100%; grid-template-columns: 1fr; }
  .s-services__panel { padding-bottom: var(--space-3xl); } /* cards no longer overlap once stacked */
  .s-services__photo { min-height: 420px; } /* bg-image div has no intrinsic height once unstacked */
  .s-services__grid { grid-template-columns: 1fr; padding-top: var(--space-2xl); }
  .s-pricing__grid { grid-template-columns: 1fr; }
  .s-plan--featured { transform: none; }
  .s-testi__media { min-height: 240px; }
  .s-blog__cards { grid-template-columns: 1fr; }
  .s-footer__inner { grid-template-columns: 1fr 1fr; }

  /* — Mobile heading legibility ---------------------------------------------
     Italiana ships in a single hairline weight, so font-weight has no heavier
     face to reach — at phone sizes the thin high-contrast strokes read faint.
     A small text-stroke thickens the glyph outline (paint-order: stroke fill
     keeps the counters crisp), giving the headings a touch more weight WITHOUT
     changing the typeface or drifting the verified desktop render (≤991 only).
     The small uppercase eyebrow labels stay at their natural weight. */
  h1, h2, h3, .s-faq__q { -webkit-text-stroke: 0.4px currentColor; paint-order: stroke fill; }
  .s-hero__bar-title, .s-footer__nav-title { -webkit-text-stroke: 0; }

  /* Unify the section-title → content gap into one mobile rhythm. On desktop
     these intentionally vary (24–80px) to suit each section's scale, but once
     stacked the spread reads as inconsistent — collapse them to a single step. */
  .s-intro__title, .s-services__title, .s-whyus__title,
  .s-booking__title, .s-faq__title, .s-blog__title { margin-bottom: var(--space-m); }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  /* header: drop the text label + CTA (the menu drawer carries its own CTA) so
     hamburger + centered wordmark fit comfortably down to 380px */
  .s-header__menu-label { display: none; }
  .s-header__cta { display: none; }
  .s-header__brand { letter-spacing: .12em; }
  /* hero contact bar: 3 columns crush below 600 — stack to one, drop dividers */
  .s-hero__bar { grid-template-columns: 1fr; gap: var(--space-3xs); padding: var(--space-m) var(--space-l); }
  .s-hero__bar-col + .s-hero__bar-col { border-left: 0; }
  .s-hero__bar-col { padding: var(--space-3xs) 0; }
  .s-intro__media { min-height: 340px; }
  .s-footer__inner { grid-template-columns: 1fr; }
  .s-form__row { grid-template-columns: 1fr; }
  .s-intro__stat { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  /* full-bleed content blocks: drop the 80px desktop side padding to the gutter
     on phones, else a long heading word can force the grid track past the
     viewport (horizontal overflow) and the copy is needlessly cramped */
  .s-services__panel, .s-booking__left, .s-booking__right, .s-faq__left, .s-blog__content {
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
}

/* ============================================================================
   BLOG — article (post.php) · archive + taxonomy · 404
   Standalone routes that reuse the homepage chrome. Centered editorial column
   measures (px to match the theme); only NEW selectors, so the homepage blog
   block (.s-blog / .s-post) is untouched.
   ========================================================================== */
.s-page { min-height: 60svh; }

/* "Kaikki kirjoitukset" link under the homepage blog cards (→ /blog) */
.s-blog__all { margin-top: var(--space-2xl); }

/* — Article ------------------------------------------------------------- */
.s-article { padding-top: var(--space-2xl); }
.s-article__head { max-width: 840px; margin-inline: auto; padding-inline: var(--gutter); }
.s-article__crumbs { display: flex; flex-wrap: wrap; gap: .55ch; font-size: var(--fs-small); color: var(--text-soft); margin-bottom: var(--space-l); }
.s-article__crumbs a { transition: color var(--transition-fast); }
.s-article__crumbs a:hover { color: var(--primary); }
.s-article__crumbs span:last-child { color: var(--text); }
.s-article__meta { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-s); }
.s-article__title { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-title); line-height: 1.08; color: var(--heading); text-transform: none; margin-bottom: var(--space-m); }
.s-article__lead { font-size: var(--fs-h5); line-height: 1.45; font-weight: var(--fw-light); color: var(--text); max-width: 58ch; }

.s-article__hero { max-width: 1120px; margin: var(--space-2xl) auto; padding-inline: var(--gutter); }
.s-article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Markdown body */
.s-article__body { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); color: var(--text); font-size: var(--fs-body); line-height: var(--lh-body); }
.s-article__body > * + * { margin-top: var(--space-m); }
.s-article__body > h2 + *, .s-article__body > h3 + * { margin-top: var(--space-s); }
.s-article__body h2 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); line-height: 1.15; color: var(--heading); text-transform: none; margin-top: var(--space-2xl); }
.s-article__body h3 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h4); color: var(--heading); text-transform: none; margin-top: var(--space-xl); }
.s-article__body h2:first-child, .s-article__body h3:first-child { margin-top: 0; }
.s-article__body p { color: var(--text); }
.s-article__body strong { color: var(--heading); font-weight: var(--fw-medium); }
.s-article__body em { font-style: italic; }
.s-article__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--transition-fast); }
.s-article__body a:hover { color: var(--primary-hover); }
.s-article__body ul, .s-article__body ol { display: flex; flex-direction: column; gap: var(--space-xs); }
.s-article__body li { position: relative; padding-left: 1.7em; color: var(--text); }
.s-article__body ul li::before { content: ""; position: absolute; left: .25em; top: .62em; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }
.s-article__body ol { counter-reset: li; }
.s-article__body ol li::before { counter-increment: li; content: counter(li) "."; position: absolute; left: 0; top: 0; font-family: var(--font-num); color: var(--primary); }
.s-article__body blockquote { margin-left: 0; padding-left: var(--space-m); border-left: 2px solid var(--primary); font-family: var(--font-num); font-style: italic; font-size: var(--fs-h5); line-height: 1.5; color: var(--heading); }
.s-article__body img { width: 100%; margin-block: var(--space-s); }
.s-article__body hr { border: 0; border-top: 1px solid var(--border-light); margin-block: var(--space-xl); }
.s-article__body figure figcaption { font-size: var(--fs-small); color: var(--text-soft); margin-top: var(--space-2xs); }

/* In-article FAQ */
.s-article__faq { max-width: 760px; margin: var(--space-3xl) auto 0; padding-inline: var(--gutter); }
.s-article__faq-title { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); color: var(--heading); text-transform: none; margin-bottom: var(--space-l); }
.s-article__faq dl { border-top: 1px solid var(--border-light); }
.s-article__faq dl > div { border-bottom: 1px solid var(--border-light); padding-block: var(--space-m); }
.s-article__faq dt { font-family: var(--font-display); font-size: var(--fs-h5); color: var(--heading); }
.s-article__faq dd { margin: var(--space-xs) 0 0; color: var(--text); max-width: 60ch; }

/* Booking CTA band */
.s-article__cta { margin-top: var(--space-3xl); background: var(--primary); color: var(--on-dark); padding-block: var(--space-3xl); }
.s-article__cta-inner { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-m); }
.s-article__cta-title { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); color: var(--on-dark); text-transform: none; }
.s-article__cta-text { color: var(--on-dark-soft); max-width: 50ch; }

/* Author byline */
.s-article__foot { max-width: 760px; margin: var(--space-xl) auto 0; padding-inline: var(--gutter); }
.s-article__author { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-s); padding-top: var(--space-l); border-top: 1px solid var(--border-light); color: var(--text-soft); font-size: var(--fs-small); }
.s-article__author-name { font-family: var(--font-display); font-size: var(--fs-h5); color: var(--heading); }

/* — Related + archive grids (reuse .s-post, add excerpt) ---------------- */
.s-related { padding-block: var(--section-py); }
.s-related__title { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: .01em; color: var(--heading); margin-bottom: var(--space-xl); }
.s-related__grid, .s-archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-l); }
.s-post--card { gap: var(--space-xs); }
.s-post__img--blank { background: var(--border-light); }
.s-post__excerpt { font-size: var(--fs-small); line-height: 1.55; color: var(--text-soft); max-width: 42ch; }

/* — Archive / taxonomy -------------------------------------------------- */
.s-archive { padding-top: var(--space-2xl); padding-bottom: var(--section-py); }
.s-archive__head { max-width: 840px; margin: 0 auto var(--space-2xl); padding-inline: var(--gutter); text-align: center; }
.s-archive__crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .55ch; font-size: var(--fs-small); color: var(--text-soft); margin-bottom: var(--space-l); }
.s-archive__crumbs a:hover { color: var(--primary); }
.s-archive__kicker { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-xs); }
.s-archive__title { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-display); line-height: var(--lh-display); text-transform: uppercase; letter-spacing: .01em; color: var(--heading); margin-bottom: var(--space-m); }
.s-archive__lead { color: var(--text); max-width: 56ch; margin-inline: auto; }
.s-archive__empty { text-align: center; color: var(--text-soft); }
.s-archive__pagination { margin-top: var(--space-2xl); display: flex; justify-content: center; gap: var(--space-s); }
.s-archive__back { margin-top: var(--space-2xl); display: flex; justify-content: center; }

/* — 404 ----------------------------------------------------------------- */
.s-404 { min-height: 64svh; display: grid; place-items: center; text-align: center; padding: var(--space-3xl) var(--gutter); }
.s-404__code { font-family: var(--font-num); font-size: var(--fs-stat); line-height: 1; color: rgba(var(--ink-rgb), .12); }
.s-404__title { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-title); color: var(--heading); text-transform: none; margin-bottom: var(--space-s); }
.s-404__text { color: var(--text); max-width: 44ch; margin: 0 auto var(--space-l); }
.s-404__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: center; }

@media (max-width: 991px) {
  .s-related__grid, .s-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .s-related__grid, .s-archive__grid { grid-template-columns: 1fr; }
  .s-article { padding-top: var(--space-l); }
  .s-article__hero { margin-block: var(--space-l); }
}
