/* ═══════════════════════════════════════════
   ECO SPA VANCOUVER ISLAND -- DESIGN SYSTEM v2
   Warm luxury. Restoration Hardware meets spa resort.
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter+Tight:wght@300;400;500;600;700&display=swap');

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ─── TOKENS ─── */
:root {
  /* Warm darks */
  --dark: #1a1816;
  --dark-warm: #211f1c;
  --dark-card: #252220;
  --dark-surface: #2a2725;
  --dark-border: #3a3633;
  --dark-hover: #302c29;

  /* Warm lights */
  --cream: #f5f0e8;
  --cream-dark: #ebe4d8;
  --cream-mid: #d4cbbe;
  --ivory: #faf8f4;
  --linen: #f0ebe2;

  /* Accent greens */
  --green: #2d6b4a;
  --green-rich: #1d5a3a;
  --green-light: #4a9e6e;
  --green-muted: #3d7d58;
  --green-glow: rgba(45, 107, 74, 0.08);
  --green-subtle: rgba(45, 107, 74, 0.04);

  /* Warm metallics */
  --gold: #b8965a;
  --gold-light: #d4b077;
  --gold-subtle: rgba(184, 150, 90, 0.15);
  --bronze: #8a7355;

  /* Text colors */
  --text-dark: #1a1816;
  --text-body: #4a4541;
  --text-mid: #7a7470;
  --text-light: #a09a95;
  --text-on-dark: #e8e2da;
  --text-dim: #8a8480;
  --text-dim-on-dark: #8a8480;
  --white: #faf8f4;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter Tight', sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 10rem);
  --section-pad-sm: clamp(3rem, 6vw, 6rem);
  --content-max: 1100px;
  --content-wide: 1340px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── BASE ─── */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bronze); }

/* ─── TYPOGRAPHY ─── */

/* Mixed headlines: Inter Tight + Playfair Display italic */
.headline-mixed {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-dark);
}

.headline-mixed em,
.headline-mixed .script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--green);
}

.headline-mixed.xl { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1.0; }
.headline-mixed.lg { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.headline-mixed.md { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.headline-mixed.sm { font-size: clamp(1.15rem, 2vw, 1.5rem); }

/* On-dark overrides (sections that were dark, now light) */
.on-dark .headline-mixed { color: var(--text-dark); }
.on-dark .headline-mixed em { color: var(--green); }
.on-dark .eyebrow { color: var(--green); }
.on-dark .body-lg, .on-dark .body-md { color: var(--text-mid); }
.on-dark .body-sm { color: var(--text-light); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.body-lg {
  font-size: 1.15rem;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.85;
}

.body-md {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
}

.body-sm {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 400;
}

.label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
}

/* ─── LAYOUT ─── */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: var(--content-wide); margin: 0 auto; padding: 0 2rem; }

.section { padding: var(--section-pad) 0; }
.section-sm { padding: var(--section-pad-sm) 0; }

/* Light section (default) */
.section-light { background: var(--cream); }
.section-ivory { background: var(--ivory); }
.section-linen { background: var(--linen); border-top: 1px solid var(--cream-dark); border-bottom: 1px solid var(--cream-dark); }

/* Contrast sections (was dark, now linen/ivory) */
.section-dark {
  background: var(--linen);
  color: var(--text-body);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.section-dark-warm {
  background: var(--ivory);
  color: var(--text-body);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .eyebrow { margin-bottom: 1.25rem; }
.section-header .headline-mixed { margin-bottom: 1.25rem; }
.section-header .body-md { max-width: 560px; margin: 0 auto; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 0.9rem 3rem;
  background: rgba(250, 248, 244, 0.97);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 1px 20px rgba(26, 24, 22, 0.04);
}

.nav-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
}

.nav-logo span { color: var(--green); }

/* Top-level link list */
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  list-style: none;
}

.nav-links > li > a {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}

.nav-links > li > a:hover { color: var(--green); }
.nav-links > li > a.active { color: var(--green); }

/* ─── Dropdown ─── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: default;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.35rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover > a { color: var(--green); }
.nav-dropdown:hover > a::after {
  transform: rotate(-135deg) translateY(-1px);
  border-color: var(--green);
}

.nav-dropdown-menu {
  /* Reset: block layout, not flex */
  display: block;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 0.5rem 0;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  box-shadow:
    0 4px 6px rgba(26, 24, 22, 0.03),
    0 12px 40px rgba(26, 24, 22, 0.06);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

/* Invisible bridge so hover doesn't break between trigger and menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  color: var(--green);
  padding-left: 1.75rem;
}

/* Active indicator line on hover */
.nav-dropdown-menu li a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--green);
  margin-right: 0;
  vertical-align: middle;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu li a:hover::before {
  width: 12px;
  margin-right: 0.5rem;
}

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--green-rich) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cream-dark);
  color: var(--text-dark);
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* ─── HERO (warm dark) ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
  background: var(--cream);
  color: var(--text-body);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, var(--green-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero .eyebrow { margin-bottom: 2.5rem; color: var(--green); }
.hero .headline-mixed { color: var(--text-dark); }
.hero .headline-mixed em { color: var(--green); }
.hero .body-md { margin-top: 2rem; color: var(--text-mid); max-width: 520px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }

/* ─── PAGE HERO (shorter, for inner pages) ─── */
.page-hero {
  padding: calc(var(--section-pad) + 4rem) 0 var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  color: var(--text-body);
  border-bottom: 1px solid var(--cream-dark);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 90%, var(--green-glow) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .eyebrow { margin-bottom: 1.5rem; color: var(--green); }
.page-hero .headline-mixed { color: var(--text-dark); margin-bottom: 1.25rem; }
.page-hero .headline-mixed em { color: var(--green); }
.page-hero .body-md { max-width: 600px; margin: 0 auto; color: var(--text-mid); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  padding: 1.1rem 2.75rem;
  background: var(--green);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--green-rich);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 107, 74, 0.2);
}

.btn-ghost {
  display: inline-block;
  padding: 1.1rem 2.75rem;
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--cream-mid);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* On-dark overrides (now cream-friendly) */
.on-dark .btn-ghost {
  color: var(--text-mid);
  border-color: var(--cream-mid);
}

.on-dark .btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero .btn-ghost {
  color: var(--text-mid);
  border-color: var(--cream-mid);
}

.hero .btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.btn-row.center { justify-content: center; }

/* ─── PROOF BAR ─── */
.proof-bar {
  padding: 1.25rem 0;
  background: var(--linen);
  border-bottom: 1px solid var(--cream-dark);
}

.proof-bar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.proof-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--cream-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.5;
}

.proof-text {
  font-size: 0.72rem;
  color: var(--text-mid);
  font-weight: 500;
}

.proof-text strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Dark variant (now light) */
.proof-bar.dark {
  background: var(--linen);
  border-bottom-color: var(--cream-dark);
}

.proof-bar.dark .proof-icon { border-color: var(--cream-dark); }
.proof-bar.dark .proof-text { color: var(--text-light); }
.proof-bar.dark .proof-text strong { color: var(--text-dark); }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 2.5rem;
  transition: all 0.5s var(--ease-out);
}

.card:hover {
  border-color: var(--green-muted);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26, 24, 22, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.5;
}

/* On-dark cards (now light) */
.on-dark .card {
  background: var(--white);
  border-color: var(--cream-dark);
}

.on-dark .card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 40px rgba(26, 24, 22, 0.06);
}

.on-dark .card-icon { border-color: var(--cream-dark); }

/* ─── SPLIT SECTIONS ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-image {
  overflow: hidden;
  background: var(--linen);
  aspect-ratio: 4/3;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.split:hover .split-image img { transform: scale(1.03); }

.split-content .eyebrow { margin-bottom: 1rem; }
.split-content .headline-mixed { margin-bottom: 1.25rem; }
.split-content .body-lg { margin-bottom: 1.5rem; }

/* ─── FULL BLEED IMAGE ─── */
.full-bleed {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,24,22,0.3), rgba(26,24,22,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* ─── COMPARISON TABLE ─── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th {
  background: var(--linen);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px solid var(--cream-dark);
}

.compare-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-body);
}

.compare-table tr:hover td { background: rgba(45, 107, 74, 0.03); }
.compare-table .eco { color: var(--green); font-weight: 600; }
.compare-table .trad { color: var(--text-light); }

/* ─── TESTIMONIALS ─── */
.testimonial {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 2.5rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.15em;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--linen);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}

.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-loc {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* Testimonials row grid */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonials-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (max-width: 768px) {
  .testimonials-row { grid-template-columns: 1fr; }
  .testimonials-grid-2 { grid-template-columns: 1fr; }
}

/* On-dark testimonials (now light) */
.on-dark .testimonial {
  background: var(--white);
  border-color: var(--cream-dark);
}

.on-dark .testimonial-text { color: var(--text-body); }
.on-dark .testimonial-name { color: var(--text-dark); }

/* ─── STAT GRID ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
}

.stat-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
}

/* On-dark stat grid (now light) */
.on-dark .stat-grid { background: var(--cream-dark); border-color: var(--cream-dark); }
.on-dark .stat-item { background: var(--white); }
.on-dark .stat-value { color: var(--green); }
.on-dark .stat-label { color: var(--text-light); }

/* ─── GUARANTEE BANNER ─── */
.guarantee-banner {
  padding: 3.5rem;
  background: var(--ivory);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--text-body);
  border: 1px solid var(--cream-dark);
}

.guarantee-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--green-glow), transparent 70%);
  pointer-events: none;
}

.guarantee-banner > * { position: relative; z-index: 1; }

/* ─── DIVIDER ─── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--cream-mid);
  margin: 0 auto;
}

.on-dark .divider { background: var(--cream-mid); }

/* ─── CTA SECTION ─── */
.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
  background: var(--linen);
  border-top: 1px solid var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.cta-section .headline-mixed { margin-bottom: 1rem; }
.cta-section .body-md { max-width: 520px; margin: 0 auto 2.5rem; }
.cta-section .eyebrow { margin-bottom: 1.25rem; }

/* Dark variant CTA */
.cta-section.dark {
  background: var(--linen);
  color: var(--text-body);
  border-top: 1px solid var(--cream-dark);
}

.cta-section.dark .headline-mixed { color: var(--text-dark); }
.cta-section.dark .headline-mixed em { color: var(--green); }
.cta-section.dark .body-md { color: var(--text-mid); }
.cta-section.dark .eyebrow { color: var(--green); }
.cta-section.dark .btn-ghost { color: var(--text-mid); border-color: var(--cream-mid); }
.cta-section.dark .btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ─── FOOTER ─── */
.footer {
  padding: 4rem 3rem;
  background: var(--linen);
  border-top: 1px solid var(--cream-dark);
  text-align: center;
  color: var(--text-light);
}

.footer-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--green); }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--green); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.65rem;
}

/* ─── VIDEO EMBED ─── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  background: var(--linen);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── PHOTO GRID ─── */
.photo-grid {
  display: grid;
  gap: 0.5rem;
}

.photo-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.photo-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── FEATURE ROW (icon + text horizontal) ─── */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature-item { text-align: center; }

.feature-item .card-icon { margin: 0 auto 1.25rem; }

.feature-item h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── QUOTE BLOCK ─── */
.quote-block {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--text-body);
  line-height: 1.85;
}

.quote-block cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0% { top: -100%; }
  100% { top: 100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.9s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.45s; }
.delay-3 { animation-delay: 0.7s; }
.delay-4 { animation-delay: 0.95s; }

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--cream-mid);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--green);
  animation: scrollPulse 2.5s infinite;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse { direction: ltr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* ── Spacing ── */
  :root {
    --section-pad: clamp(3rem, 8vw, 5rem);
    --section-pad-sm: clamp(2rem, 5vw, 3rem);
  }
  .container, .container-wide { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* ── Navigation ── */
  .nav { padding: 1rem 1.25rem; }
  .nav.scrolled { padding: 0.75rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 12px 40px rgba(26, 24, 22, 0.08);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open > li { border-bottom: 1px solid var(--cream-dark); }
  .nav-links.open > li:last-child { border-bottom: none; }
  .nav-links.open > li > a {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.75rem;
  }
  /* Mobile dropdown: show inline instead of hover popup */
  .nav-links.open .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 0 0 0.5rem 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-links.open .nav-dropdown-menu li a {
    padding: 0.5rem 0;
    font-size: 0.65rem;
    color: var(--text-light);
  }
  .nav-links.open .nav-dropdown-menu li a:hover { padding-left: 0; }
  .nav-links.open .nav-dropdown-menu li a::before { display: none; }
  /* Hide dropdown by default on mobile, show on tap */
  .nav-links.open .nav-dropdown-menu {
    display: none;
  }
  .nav-links.open .nav-dropdown.mobile-open .nav-dropdown-menu {
    display: block;
  }
  .nav-links.open .nav-dropdown > a::after {
    transition: transform 0.3s;
  }
  .nav-links.open .nav-dropdown.mobile-open > a::after {
    transform: rotate(-135deg) translateY(-1px);
  }
  /* Mobile CTA in nav */
  .nav-links.open .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem !important;
  }
  .nav-toggle { display: flex; }

  /* ── Typography ── */
  .headline-mixed.xl { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .headline-mixed.lg { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .headline-mixed.md { font-size: clamp(1.4rem, 5vw, 1.75rem); }
  .body-lg { font-size: 1rem; line-height: 1.75; }

  /* ── Hero ── */
  .hero { min-height: 70vh; padding-top: 5rem; }
  .hero .body-md { font-size: 0.9rem; margin-top: 1.25rem; }
  .page-hero { padding: calc(var(--section-pad) + 3rem) 0 var(--section-pad-sm); }

  /* ── Buttons ── */
  .btn-primary, .btn-ghost {
    padding: 1rem 2rem;
    font-size: 0.65rem;
    width: 100%;
    text-align: center;
  }
  .btn-row { flex-direction: column; gap: 0.75rem; }
  .btn-row .btn-primary, .btn-row .btn-ghost { text-align: center; }

  /* ── Proof bar ── */
  .proof-bar { padding: 1rem 0; }
  .proof-bar-inner { gap: 1rem; justify-content: center; }
  .proof-item { gap: 0.4rem; }
  .proof-icon { width: 28px; height: 28px; }
  .proof-icon svg { width: 12px; height: 12px; }
  .proof-text { font-size: 0.65rem; }

  /* ── Cards ── */
  .card { padding: 1.75rem; }

  /* ── Split sections ── */
  .split { gap: 1.5rem; }
  .split-image { aspect-ratio: 16/10; }
  .split-content .headline-mixed { margin-bottom: 1rem; }
  .split-content .body-lg { margin-bottom: 1rem; }

  /* ── Full bleed ── */
  .full-bleed { height: 35vh; min-height: 250px; }

  /* ── Grids ── */
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.5rem 1rem; }
  .stat-value { font-size: 2rem; }
  .photo-grid.cols-2, .photo-grid.cols-3 { grid-template-columns: 1fr; }

  /* ── Comparison table ── */
  .compare-table { font-size: 0.75rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table th, .compare-table td { padding: 0.75rem 0.75rem; white-space: nowrap; }

  /* ── Testimonials ── */
  .testimonials-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonials-grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonial { padding: 1.75rem; }
  .testimonial-text { font-size: 0.95rem; }

  /* ── Guarantee ── */
  .guarantee-banner { padding: 2.5rem 1.5rem; }

  /* ── Video ── */
  .video-embed { border: none; }

  /* ── CTA section ── */
  .cta-section .body-md { margin-bottom: 2rem; }

  /* ── Footer ── */
  .footer { padding: 3rem 1.5rem; }
  .footer-links { flex-direction: column; align-items: center; gap: 0.9rem; }
  .footer-links a { font-size: 0.6rem; }
  .footer-bottom { font-size: 0.6rem; }

  /* ── Quote block ── */
  .quote-block { padding: 1rem 0; }
}
