/* ==========================================================================
   Dreamspree Travel & Tours — Design system & base styles (v2)
   Direction: contemporary travel platform. Sans-serif typography (Manrope
   Serif, variable), teal-green + lime brand palette drawn from the logo and
   the Figma references, flat surfaces, crisp borders, compact spacing.
   Plain CSS, no frameworks.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* ================= Colour system =================
     Source of truth: the Dreamspree logo (assets/img/dreamspree-logo.png).
       Logo green  #8CC63E  (34% of the logo)  -> primary
       Sky blue    #00ADEF  (wave)             -> secondary
       Sun yellow  #F5EE2C  (sun)              -> accent, used sparingly
     Logo colours are too light for text on white (green 2.05:1, blue 2.55:1),
     so each has a darker "strong" variant in the same hue for text and icons.
     Rule of thumb: neutral surfaces everywhere, green for the main action and
     brand moments, blue for information and visa signals, yellow only as a
     small highlight on dark backgrounds or behind dark text. */

  /* Primary: logo green */
  --color-primary: #8CC63E;               /* fills: primary buttons (with dark text, 7.9:1), indicators, progress */
  --color-primary-hover: #7DB534;
  --color-cta: #47801E;                   /* filled buttons and CTAs: white label 4.8:1, same green family as the logo */
  --color-cta-hover: #3E701A;             /* hover / pressed: white label 5.9:1 */
  --color-primary-strong: #4A6A1F;        /* green text, links, icons on light (6.2:1 on white) */
  --color-primary-strong-hover: #374F17;
  --color-primary-light: #EEF6E3;         /* selected / tinted backgrounds */
  --color-primary-100: #D7EBBC;           /* tinted borders (taken from the logo's own anti-aliased edge) */

  /* Deep brand green: dark companion to the logo green (as on dreamspreetravel.com) */
  --color-brand-dark: #14301C;            /* dark sections, footer, dark buttons, selected chips */
  --color-brand-dark-hover: #1E4227;

  /* Secondary: logo sky blue */
  --color-secondary: #00ADEF;             /* fills and icons on dark, focus ring on dark */
  --color-secondary-strong: #006F99;      /* blue text and icons on light (5.6:1), info, visa signals */
  --color-secondary-light: #E3F5FC;
  --color-secondary-100: #BDE6F7;

  /* Accent: logo sun yellow (sparingly) */
  --color-accent: #F5EE2C;                /* prices on dark, saved-trip count (with dark text, 13:1) */

  /* Neutrals */
  --color-background: #FFFFFF;
  --color-surface: #FFFFFF;               /* cards, panels, inputs */
  --color-surface-muted: #F4F7F1;         /* alternate sections, subtle fills */
  --color-surface-subtle: #F9FBF7;        /* hover fills */
  --color-border: #DDE4D8;
  --color-border-strong: #C4CFBE;
  --color-text-primary: #16241A;          /* 16.1:1 on white */
  --color-text-secondary: #4A5A4F;        /* 7.3:1 */
  --color-text-muted: #5F6E64;            /* 5.4:1, small print and meta */
  --color-text-on-dark: #FFFFFF;
  --color-disabled-bg: #E6EBE2;
  --color-disabled-text: #8A968D;

  /* Semantic */
  --color-success: #2E7D32;
  --color-success-light: #E8F5E9;
  --color-warning: #8A5A00;               /* warning text */
  --color-warning-light: #FFF6D6;
  --color-warning-border: #EED48A;
  --color-error: #C0362C;
  --color-error-hover: #A12D24;
  --color-error-light: #FDECEA;
  --color-info: var(--color-secondary-strong);
  --color-info-light: var(--color-secondary-light);

  /* Focus: blue ring, switched to the bright logo blue on dark surfaces */
  --color-focus: #006F99;
  --color-focus-on-dark: #00ADEF;

  /* Overlays: RGB triplets for rgba() */
  --scrim-rgb: 12, 24, 16;                /* photo scrims and shadows, from the brand-dark family */
  --secondary-rgb: 0, 173, 239;

  /* Typography: one sans-serif family (Manrope, variable 400–800) for everything.
     Headings use the heavy end of the same family; no serif or decorative faces. */
  --font-sans: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-serif: var(--font-sans); /* legacy alias: kept so older rules resolve to the sans-serif */

  /* Icon scale */
  --icon-xs: 14px;   /* inside badges */
  --icon-sm: 16px;   /* inline meta, small buttons */
  --icon-md: 20px;   /* buttons, form fields, lists */
  --icon-lg: 24px;   /* feature and service tiles */
  --icon-xl: 28px;   /* step markers, primary feature icons */
  --fs-xs: 0.8125rem;    /* 13px */
  --fs-sm: 0.9rem;       /* 14.4px */
  --fs-base: 1.0625rem;  /* 17px */
  --fs-md: 1.1875rem;    /* 19px */
  --fs-lg: 1.4rem;
  --fs-xl: clamp(1.7rem, 1.4rem + 1.1vw, 2.15rem);
  --fs-2xl: clamp(2.05rem, 1.5rem + 2vw, 3rem);
  --fs-3xl: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem);
  --lh-tight: 1.02;
  --lh-snug: 1.2;
  --lh-body: 1.6;
  --track-tight: -0.025em;

  /* Spacing (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem;
  --section-y: clamp(2.75rem, 2.1rem + 2.4vw, 4.75rem);

  /* Layout */
  --container: 1240px;
  --container-wide: 1400px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 68px;

  /* Shape & depth (flat by default) */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(var(--scrim-rgb), 0.06);
  --shadow-md: 0 8px 24px -12px rgba(var(--scrim-rgb), 0.22);
  --shadow-lg: 0 24px 48px -20px rgba(var(--scrim-rgb), 0.35);
  --ring: 0 0 0 3px rgba(var(--secondary-rgb), 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 400ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text-primary);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; } /* icons inside flex rows must never be squashed by long labels */
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--color-primary-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .section--dark :focus-visible, .section--ocean :focus-visible, .site-footer :focus-visible, .page-head--dark :focus-visible, .page-head--image :focus-visible, .cta-band :focus-visible, .site-header--over:not(.is-scrolled) :focus-visible, .drawer__backdrop:focus-visible { outline-color: var(--color-focus-on-dark); }
::selection { background: var(--color-primary); color: var(--color-text-primary); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 1000; background: var(--color-brand-dark); color: var(--color-text-on-dark); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: var(--s-4); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: var(--lh-snug); letter-spacing: -0.015em; color: var(--color-text-primary); }
.display, h1.display, h2.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
.lede { font-size: var(--fs-md); line-height: 1.55; color: var(--color-text-secondary); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary-strong); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--color-primary); border-radius: 2px; }
.eyebrow--light { color: var(--color-text-on-dark); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--fs-sm); }
.text-center { text-align: center; }
.em { font-style: normal; color: var(--color-primary-strong); } /* accent by colour only, no ornamental italics */
.accent { color: var(--color-primary-strong); }
.price { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2rem, 1.6rem + 1.6vw, 3.25rem); }
.section--sand, .section--alt { background: var(--color-surface-muted); }
.section--ocean, .section--dark { background: var(--color-brand-dark); color: var(--color-text-on-dark); }
.section--ocean h2, .section--dark h2, .section--ocean h3, .section--dark h3 { color: var(--color-text-on-dark); }
.section--ocean .eyebrow, .section--dark .eyebrow { color: var(--color-primary); }
.section--ocean .muted, .section--dark .muted { color: rgba(255, 255, 255, 0.7); }
.section--ocean .em, .section--dark .em { color: var(--color-primary); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-8); flex-wrap: wrap; }
.section-head h2 { max-width: 22ch; }
.section-head .lede { margin-top: var(--s-3); }
.section-head__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.flow > * + * { margin-top: var(--s-4); }
.divider { border: 0; border-top: 1px solid var(--color-border); margin: var(--s-6) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t-base) ease, border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow-sm); }
.site-header--over { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.site-header--over:not(.is-scrolled) { color: var(--color-text-on-dark); }
.site-header--over:not(.is-scrolled) .nav__link { color: rgba(255,255,255,0.9); }
.site-header--over:not(.is-scrolled) .nav__link:hover, .site-header--over:not(.is-scrolled) .nav__link.is-active { color: var(--color-text-on-dark); }
.site-header--over:not(.is-scrolled) .nav__link.is-active::after { background: var(--color-primary); }
.site-header--over:not(.is-scrolled) .nav-toggle { color: var(--color-text-on-dark); }
.site-header--over:not(.is-scrolled) .cart-btn { color: var(--color-text-on-dark); border-color: rgba(255,255,255,0.4); background: rgba(var(--scrim-rgb),0.25); }
.site-header--over:not(.is-scrolled) .btn--consult { --btn-bg: var(--color-cta); --btn-bd: var(--color-cta); --btn-fg: var(--color-text-on-dark); }

.site-header__inner { display: flex; align-items: center; gap: var(--s-6); width: 100%; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; flex: none; }
/* Logo: the PNG is a solid green block with white type. No box, no padding, no shadow. */
.brand__logo { height: 40px; width: auto; max-width: none; flex: none; border-radius: 0; background: none; padding: 0; border: 0; box-shadow: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-block; padding: 8px 12px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--color-text-secondary); text-decoration: none; border-radius: var(--r-sm);
  transition: color var(--t-fast) ease;
}
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--color-primary-strong); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.nav__link:hover { color: var(--color-text-primary); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--color-text-primary); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.cart-btn {
  position: relative; flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--color-border-strong); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-primary); background: transparent; transition: border-color var(--t-fast), background var(--t-fast);
}
.cart-btn:hover { border-color: var(--color-primary-strong); background: var(--color-primary-light); color: var(--color-text-primary); }
.cart-btn svg { width: var(--icon-sm); height: var(--icon-sm); }
.cart-btn__count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--color-accent); color: var(--color-text-primary); font-size: 11px; font-weight: 800; line-height: 1; }
.cart-btn__count[data-count="0"] { display: none; }
/* Count next to "Travel Cart" in the mobile menu: sits inline after the label, never pinned to a corner */
.drawer__count { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--color-accent); color: var(--color-text-primary); font-size: 12px; font-weight: 800; line-height: 1; margin-left: auto; }
.drawer__count[data-count="0"] { display: none; }
.nav-toggle { color: var(--color-text-on-dark); }
.site-header--over:not(.is-scrolled) .cart-btn { color: var(--color-text-on-dark); border-color: rgba(255,255,255,0.4); background: rgba(var(--scrim-rgb),0.25); }
.site-header--over:not(.is-scrolled) .btn--consult { --btn-bg: var(--color-cta); --btn-bd: var(--color-cta); --btn-fg: var(--color-text-on-dark); }

.site-header__inner { display: flex; align-items: center; gap: var(--s-6); width: 100%; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; flex: none; }
/* Logo: the PNG is a solid green block with white type. No box, no padding, no shadow. */
.brand__logo { height: 40px; width: auto; max-width: none; flex: none; border-radius: 0; background: none; padding: 0; border: 0; box-shadow: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-block; padding: 8px 12px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--color-text-secondary); text-decoration: none; border-radius: var(--r-sm);
  transition: color var(--t-fast) ease;
}
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--color-primary-strong); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.nav__link:hover { color: var(--color-text-primary); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--color-text-primary); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.saved-chip {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--color-border-strong); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-primary); text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast);
}
.saved-chip:hover { border-color: var(--color-primary-strong); background: var(--color-primary-light); }
.saved-chip svg { width: var(--icon-sm); height: var(--icon-sm); }
.saved-chip__count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--color-accent); color: var(--color-text-primary); font-size: 11px; font-weight: 800; }
.saved-chip__count[data-count="0"] { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); place-items: center; color: var(--color-text-primary); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(var(--scrim-rgb), 0.6); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--color-surface); padding: var(--s-4) var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); box-shadow: var(--shadow-lg); overflow-y: auto; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 14px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-md); font-weight: 600; color: var(--color-text-primary); text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.drawer__nav a.is-active { color: var(--color-primary-strong); }
.drawer__contact { font-size: var(--fs-sm); color: var(--color-text-muted); }
.drawer__contact a { display: block; margin-top: 4px; font-weight: 600; }
.drawer__footer { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); }

/* ---------- Homepage hero (immersive, kept) ---------- */
.hero {
  position: relative; min-height: min(86vh, 780px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + var(--s-12)) 0 calc(var(--s-16) + var(--s-6)); color: var(--color-text-on-dark); isolation: isolate; overflow: hidden; background: var(--color-brand-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
/* Scrim is strongest where the copy sits (left and bottom) so white text stays
   readable on any campaign photo; the right side of the image stays vivid. */
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(var(--scrim-rgb),0.5) 0%, rgba(var(--scrim-rgb),0.3) 30%, rgba(var(--scrim-rgb),0.55) 60%, rgba(var(--scrim-rgb),0.9) 100%),
  linear-gradient(90deg, rgba(var(--scrim-rgb),0.78) 0%, rgba(var(--scrim-rgb),0.6) 40%, rgba(var(--scrim-rgb),0.15) 75%, rgba(var(--scrim-rgb),0) 90%); }
.hero__content { max-width: 780px; }
.hero__title { font-size: var(--fs-3xl); color: var(--color-text-on-dark); margin-bottom: var(--s-5); }
.hero__title .em { color: var(--color-primary); }
/* Each headline line is a mask for the reveal animation. The tight 1.06 line-height puts
   descenders (g, y, p) below the line box, so the mask gets extra room underneath; the
   matching negative margin keeps line spacing unchanged. */
.hero__line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.hero__lede { font-size: var(--fs-md); line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 56ch; margin-bottom: var(--s-6); }
.hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Hero carousel ----------
   Slides stack in one grid cell, so the hero is as tall as its tallest slide and
   never jumps. The photo crossfades slowly; the copy of the outgoing slide fades
   out quickly so two headlines never overlap. Inactive slides are hidden + inert. */
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; visibility: hidden; }
.hero__slide .hero__media { opacity: 0; transition: opacity 700ms ease; }
.hero__slide .hero__content { opacity: 0; transition: opacity 250ms ease; }
.hero__slide.is-active { visibility: visible; }
.hero__slide.is-active .hero__media { opacity: 1; z-index: -1; }
.hero__slide.is-active .hero__content { opacity: 1; transition: opacity 450ms ease 200ms; }
.hero__slide.is-leaving { visibility: visible; }
.hero__slide.is-leaving .hero__media { opacity: 1; }
.hero__price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--s-5); padding: 6px 12px; border-radius: var(--r-md); background: rgba(var(--scrim-rgb),0.55); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.88); font-size: var(--fs-sm); }
.hero__price strong { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--color-accent); }
.hero__controls { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); }
.hero__tabs { display: flex; gap: var(--s-2); min-width: 0; }
.hero__tab { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 140px; padding: 6px 0; text-align: left; color: rgba(255,255,255,0.72); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; }
.hero__tab:hover, .hero__tab[aria-current="true"] { color: var(--color-text-on-dark); }
.hero__tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tab-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.3); overflow: hidden; }
.hero__tab-bar i { display: block; height: 100%; background: var(--color-primary); transform: scaleX(0); transform-origin: left; }
.hero__tab[aria-current="true"] .hero__tab-bar i { transform: scaleX(1); }
.hero__tab[aria-current="true"] .hero__tab-bar { background: rgba(255,255,255,0.55); }
.hero__tab { transition: width var(--t-base) var(--ease-out), color var(--t-fast); }
.hero.is-autoplay .hero__tab[aria-current="true"] .hero__tab-bar i { animation: hero-progress var(--hero-interval, 7s) linear forwards; }
.hero.is-autoplay.is-paused .hero__tab[aria-current="true"] .hero__tab-bar i { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__nav { display: flex; gap: var(--s-2); flex: none; }
.hero__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--color-text-on-dark); background: rgba(var(--scrim-rgb),0.45); border: 1px solid rgba(255,255,255,0.35); transition: background var(--t-fast), border-color var(--t-fast); }
.hero__btn:hover { background: rgba(var(--scrim-rgb),0.7); border-color: var(--color-surface); }
.hero__btn svg { width: var(--icon-md); height: var(--icon-md); }
.hero .eyebrow--light { background: var(--color-primary); color: var(--color-text-primary); padding: 6px 10px; border-radius: var(--r-sm); margin-bottom: var(--s-5); }
.hero .eyebrow--light::before { display: none; }

/* ---------- Compact subpage header ---------- */
.page-head { background: var(--color-surface-muted); border-bottom: 1px solid var(--color-border); padding: var(--s-6) 0 var(--s-6); }
.page-head__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-2xl); margin-top: var(--s-2); }
.page-head .lede { margin-top: var(--s-2); font-size: var(--fs-base); max-width: 62ch; }
.page-head__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.page-head--dark { background: var(--color-brand-dark); color: var(--color-text-on-dark); border-bottom: 0; }
.page-head--dark h1 { color: var(--color-text-on-dark); }
.page-head--dark .lede { color: rgba(255,255,255,0.78); }
.page-head--dark .breadcrumbs, .page-head--dark .breadcrumbs a { color: rgba(255,255,255,0.7); }
.page-head--dark .breadcrumbs [aria-current] { color: var(--color-text-on-dark); }
.page-head--image { position: relative; isolation: isolate; color: var(--color-text-on-dark); border-bottom: 0; background: var(--color-brand-dark); padding: calc(var(--s-8)) 0 var(--s-8); }
.page-head--image .page-head__media { position: absolute; inset: 0; z-index: -1; }
.page-head--image .page-head__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.page-head--image .page-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--scrim-rgb),0.92) 0%, rgba(var(--scrim-rgb),0.78) 55%, rgba(var(--scrim-rgb),0.6) 100%); }
.page-head--image h1 { color: var(--color-text-on-dark); }
.page-head--image .lede { color: rgba(255,255,255,0.82); }
.page-head--image .breadcrumbs, .page-head--image .breadcrumbs a { color: rgba(255,255,255,0.7); }
.page-head--image .breadcrumbs [aria-current] { color: var(--color-text-on-dark); }
.page-head--image .breadcrumbs li + li::before { color: rgba(255,255,255,0.4); }
/* Accent words on dark backgrounds use the logo green (7:1 on brand-dark); on light backgrounds the strong green */
.page-head--dark .em, .page-head--image .em { color: var(--color-primary); }
.page-head--dark .eyebrow, .page-head--image .eyebrow { color: var(--color-primary); }
/* Pages with a fixed transparent header need the page-head to clear it */
.site-header--over ~ main .page-head { padding-top: calc(var(--header-h) + var(--s-6)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-brand-dark); color: rgba(255,255,255,0.75); padding: var(--s-16) 0 var(--s-6); margin-top: auto; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--color-text-on-dark); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-8); }
.footer-brand .brand__logo { height: 44px; }
.footer-brand p { margin-top: var(--s-4); max-width: 40ch; font-size: var(--fs-sm); line-height: 1.6; }
.footer-col h4 { color: var(--color-text-on-dark); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.footer-contact li { display: flex; gap: var(--s-2); align-items: flex-start; }
.footer-contact svg { width: var(--icon-md); height: var(--icon-md); flex: none; margin-top: 2px; color: var(--color-primary); }
.footer-bottom { margin-top: var(--s-10); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); color: rgba(255,255,255,0.55); }
.footer-bottom .demo-note { max-width: 70ch; }

/* ---------- Page scaffolding ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--fs-xs); color: var(--color-text-muted); list-style: none; }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary-strong); text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--color-border-strong); }
.breadcrumbs [aria-current] { color: var(--color-text-primary); font-weight: 600; }
.section > .container { position: relative; z-index: 1; }
.blob { display: none; } /* decorative blobs retired in v2 */

/* Demo data notice */
.demo-banner { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--color-surface-muted); border: 1px dashed var(--color-border-strong); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--color-text-muted); }
.demo-banner svg { width: 18px; height: 18px; flex: none; color: var(--color-primary-strong); }
