/* ============================================================
   BRIDGEWAY LIVING LLC — Brand System
   Logo greens (#00381B dark / #719C33 leaf) · Source Serif 4 + Work Sans
   Tagline: Sober Living. Real Support. Lasting Change.
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — warm off-white with a hint of sage */
  --color-bg: #f7f6f1;
  --color-surface: #fcfbf7;
  --color-surface-2: #ffffff;
  --color-surface-offset: #eef0e6;
  --color-surface-tint: #e5e9d6;
  --color-divider: #dde0d2;
  --color-border: #ccd2bd;

  /* Text */
  --color-text: #16241a;
  --color-text-muted: #5c6b54;
  --color-text-faint: #97a089;
  --color-text-inverse: #f4f7ef;

  /* Primary — logo dark forest green */
  --color-primary: #00381b;
  --color-primary-hover: #00280f;
  --color-primary-active: #001a09;
  --color-primary-soft: #d6e3cd;

  /* Accent — logo leaf green */
  --color-accent: #5e8a2a;
  --color-accent-bright: #719c33;
  --color-accent-hover: #4d7320;
  --color-accent-soft: #e3ecd2;

  --color-success: #5e8a2a;
  --color-success-soft: #e3ecd2;

  --btn-leaf-bg: #4d7320;
  --btn-leaf-fg: #ffffff;
  --btn-leaf-bg-hover: #3d5e16;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 140 / 0.07);
  --shadow-md: 0 6px 20px oklch(0.2 0.03 140 / 0.12);
  --shadow-lg: 0 20px 48px oklch(0.2 0.04 140 / 0.18);

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1240px;

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', system-ui, sans-serif;

  --brand-dark: #00381b;
  --brand-leaf: #5e8a2a;
}

[data-theme='dark'] {
  --color-bg: #0f1c12;
  --color-surface: #162417;
  --color-surface-2: #1b2c1c;
  --color-surface-offset: #142216;
  --color-surface-tint: #1f3220;
  --color-divider: #283824;
  --color-border: #364a2f;

  --color-text: #e8efe0;
  --color-text-muted: #9fb094;
  --color-text-faint: #647157;
  --color-text-inverse: #14211a;

  --color-primary: #7bb24e;
  --color-primary-hover: #8cc45f;
  --color-primary-active: #6a9f3d;
  --color-primary-soft: #243319;

  --color-accent: #9bcf5a;
  --color-accent-bright: #aedb6e;
  --color-accent-hover: #b6df78;
  --color-accent-soft: #2a3a1d;

  --color-success: #8cb96a;
  --color-success-soft: #2a3a1d;

  --btn-leaf-bg: #9bcf5a;
  --btn-leaf-fg: #14211a;
  --btn-leaf-bg-hover: #aedb6e;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);

  --brand-dark: #e8efe0;
  --brand-leaf: #9bcf5a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1c12;
    --color-surface: #162417;
    --color-surface-2: #1b2c1c;
    --color-surface-offset: #142216;
    --color-surface-tint: #1f3220;
    --color-divider: #283824;
    --color-border: #364a2f;
    --color-text: #e8efe0;
    --color-text-muted: #9fb094;
    --color-text-faint: #647157;
    --color-text-inverse: #14211a;
    --color-primary: #7bb24e;
    --color-primary-hover: #8cc45f;
    --color-primary-active: #6a9f3d;
    --color-primary-soft: #243319;
    --color-accent: #9bcf5a;
    --color-accent-bright: #aedb6e;
    --color-accent-hover: #b6df78;
    --color-accent-soft: #2a3a1d;
    --color-success: #8cb96a;
    --color-success-soft: #2a3a1d;

    --btn-leaf-bg: #9bcf5a;
    --btn-leaf-fg: #14211a;
    --btn-leaf-bg-hover: #aedb6e;

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
    --brand-dark: #e8efe0;
    --brand-leaf: #9bcf5a;
  }
}

/* ============ Type Scale ============ */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.22vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  --text-3xl: clamp(2.6rem, 1.6rem + 4.5vw, 4.6rem);
  --space-16: 4rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; font-weight: 700; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
::selection { background: oklch(from var(--color-primary) l c h / 0.25); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--color-primary); color: var(--color-text-inverse); padding: 0.75rem 1.25rem; border-radius: var(--radius-md); }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ============ Layout ============ */
.container { width: min(100% - 2.5rem, var(--content-default)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--offset { background: var(--color-surface-offset); }
.section--tint { background: var(--color-surface); }
.section--dark { background: var(--color-primary); color: var(--color-text-inverse); }
.section--white { background: #ffffff; }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: var(--text-xl); margin-top: 0.75rem; }
.section__lede { color: var(--color-text-muted); font-size: var(--text-lg); margin-top: 1rem; max-width: 62ch; }
.section__head--center .section__lede { margin-inline: auto; }

.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.eyebrow--light { color: var(--color-accent-bright); }
.section--dark .eyebrow { color: var(--color-accent-bright); }

/* ============ Brand / Logo ============ */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__logo { height: 48px; width: auto; border-radius: var(--radius-sm); background: #fff; padding: 2px 4px; flex-shrink: 0; object-fit: contain; }
.brand__logo--lg { height: 120px; padding: 6px 10px; }
[data-theme='dark'] .brand__logo { background: #fff; }
.brand__icon { width: 40px; height: 40px; color: var(--brand-dark); flex-shrink: 0; }
.brand__icon .leaf { color: var(--brand-leaf); }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.04em; color: var(--brand-dark); }
.brand__sub { display: flex; align-items: center; gap: 0.4rem; margin-top: 2px; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.3em; color: var(--brand-leaf); }
.brand__sub .ln { height: 1.5px; width: 14px; background: var(--brand-leaf); }

/* stacked footer lockup */
.brand--stack { flex-direction: column; gap: 0; align-items: flex-start; }
.brand--stack .brand__icon { width: 64px; height: 64px; margin-bottom: 0.5rem; }
.brand--stack .brand__word { align-items: flex-start; }
.brand--stack .brand__name { font-size: 1.85rem; }
.brand--stack .brand__sub { font-size: 0.62rem; }
.brand--stack .brand__sub .ln { width: 20px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em;
  padding: 0.7rem 1.4rem; border-radius: var(--radius-full);
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); }
[data-theme='dark'] .btn--primary { color: #14211a; }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn--leaf { background: var(--btn-leaf-bg); color: var(--btn-leaf-fg); }
.btn--leaf:hover { background: var(--btn-leaf-bg-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-text-muted); background: var(--color-surface); }
.btn--ghost-light { background: transparent; color: #f4f7ef; border-color: rgba(244, 247, 239, 0.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(244,247,239,0.75); }
.btn--lg { padding: 0.9rem 1.8rem; font-size: var(--text-base); }
.btn--block { width: 100%; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header--scrolled { border-bottom-color: var(--color-divider); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 4.75rem; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 2rem; }
.nav__list a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); position: relative; padding-block: 0.25rem; }
.nav__list a:hover { color: var(--color-text); }
.nav__list a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--color-accent); transition: width var(--transition); }
.nav__list a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-full); color: var(--color-text-muted); border: 1px solid var(--color-border); background: var(--color-surface); }
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; color: var(--color-text); border-radius: var(--radius-md); }
.mobile-nav { display: none; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--color-divider); background: var(--color-bg); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav__links a { display: block; padding: 0.65rem 0.5rem; font-weight: 500; color: var(--color-text-muted); border-radius: var(--radius-md); }
.mobile-nav__links a:hover { color: var(--color-text); background: var(--color-surface); }
.mobile-nav .btn { margin-top: 0.5rem; }
.mobile-nav .btn-row { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

@media (max-width: 980px) {
  .nav, .header__actions .btn--leaf, .header__actions .btn--primary, .header__actions .btn--outline { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav:not([hidden]) { display: block; }
}

/* ============ Hero ============ */
.hero { position: relative; min-height: clamp(580px, 88vh, 840px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(in oklab, oklch(0.2 0.05 150 / 0.25) 0%, oklch(0.15 0.04 150 / 0.6) 55%, oklch(0.13 0.04 150 / 0.88) 100%); }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5.5rem); color: #f6f9f0; max-width: 780px; }
.hero__title { font-size: var(--text-3xl); color: #fbfdf6; line-height: 1.04; max-width: 17ch; font-weight: 900; }
.hero__sub { font-size: var(--text-lg); color: rgba(246, 249, 240, 0.92); margin-top: 1.25rem; max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero__note { font-size: var(--text-sm); color: rgba(246, 249, 240, 0.8); margin-top: 1.5rem; }
.hero__tagline { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.22em; color: var(--color-accent-bright); margin-top: 1.75rem; }

/* ============ Trust Bar ============ */
.trustbar { border-bottom: 1px solid var(--color-divider); background: var(--color-surface); }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.4rem; }
.trustbar__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.trustbar__list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.trustbar__list li { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); position: relative; padding-left: 1.1rem; }
.trustbar__list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

/* ============ Cards ============ */
.cards { display: grid; gap: 1.25rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent-soft); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent); margin-bottom: 1.25rem; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.card p { color: var(--color-text-muted); font-size: var(--text-base); }

/* ============ Split ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split__media--bridge img { aspect-ratio: 16 / 10; }
.split__content .section__title { margin-top: 0.75rem; }
.split__content > p:last-child { margin-bottom: 0; }
.split__content > .btn { margin-top: 1.75rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 16 / 10; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
}

/* ============ Check lists ============ */
.check-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.5rem; }
.check-list li { position: relative; padding-left: 2rem; font-size: var(--text-base); color: var(--color-text-muted); }
.check-list li strong { color: var(--color-text); font-weight: 600; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--color-accent-soft); }
.check-list li::after { content: ''; position: absolute; left: 5px; top: 0.62em; width: 8px; height: 4px; border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(-45deg); }
.check-list--success li::before { background: var(--color-success-soft); }
.check-list--success li::after { border-color: var(--color-success); }
.check-list--muted li::before { background: var(--color-surface-tint); }
.check-list--muted li::after { content: '×'; border: none; transform: none; font-size: 16px; font-weight: 700; color: var(--color-text-faint); left: 1px; top: 0.35em; width: 18px; height: 18px; line-height: 18px; text-align: center; background: transparent; }

/* ============ Day / schedule ============ */
.day { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 0.5rem; }
.day__item { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: 1.4rem; }
.day__time { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--color-accent); letter-spacing: 0.04em; }
.day__item h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-base); margin: 0.5rem 0 0.35rem; }
.day__item p { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 900px) { .day { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .day { grid-template-columns: 1fr; } }

/* ============ Program features ============ */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.feature { padding: 1.75rem 0 0; border-top: 2px solid var(--color-divider); }
.feature__num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-accent); font-weight: 700; }
.feature h3 { font-size: var(--text-lg); margin: 0.5rem 0 0.5rem; }
.feature p { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 900px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .program-grid { grid-template-columns: 1fr; } }

.full-bleed { margin-top: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.full-bleed img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.full-bleed figcaption { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 1rem; font-style: italic; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: 1.75rem; }
.step__num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: var(--color-text-inverse); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.1rem; }
[data-theme='dark'] .step__num { color: #14211a; }
.step h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--color-primary); color: var(--color-text-inverse); border-radius: var(--radius-xl); }
.cta-strip__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.cta-strip__sub { font-size: var(--text-sm); color: rgba(244, 247, 239, 0.85); margin-top: 0.25rem; }
.cta-strip .btn--leaf { background: var(--color-accent-bright); color: #14211a; }

/* ============ Admissions ============ */
.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.criteria__block { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.75rem; }
.criteria__block h3 { font-size: var(--text-base); margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.criteria .check-list { margin-top: 0.5rem; }
.criteria__note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 1.5rem; font-style: italic; }
@media (max-width: 620px) { .criteria { grid-template-columns: 1fr; } }

/* ============ About / stats ============ */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__content p { color: var(--color-text-muted); margin-top: 1rem; }
.about__content .section__lede { color: var(--color-text); }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.5rem; }
.stat__num { display: block; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-accent); font-weight: 900; line-height: 1; }
.stat__label { display: block; font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 0.4rem; max-width: 16ch; }
.about__aside { background: var(--color-surface-offset); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: 1.75rem; }
.about__aside h3 { font-size: var(--text-lg); margin-bottom: 1rem; }
.about__aside ul { display: flex; flex-direction: column; gap: 0.85rem; }
.about__aside li { position: relative; padding-left: 1.5rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.about__aside li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ============ Tour the Home ============ */
.tour-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.tour-item { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.tour-item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; transition: transform 400ms ease; }
.tour-item:hover img { transform: scale(1.03); }
.tour-item figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem 1rem; font-size: var(--text-sm); font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(0,40,20,0.8), transparent); }
.tour-item--feature { grid-row: span 2; grid-column: span 2; }
.tour-item--feature img { aspect-ratio: 16 / 11; }
.tour-cta { text-align: center; }
.tour-cta__text { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-primary); margin-bottom: 1.25rem; }
.tour-cta__btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
@media (max-width: 860px) {
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .tour-item--feature { grid-row: span 1; grid-column: span 2; }
  .tour-item--feature img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-item--feature { grid-column: span 1; }
  .tour-item img { aspect-ratio: 16 / 9; }
  .tour-cta__btns { flex-direction: column; align-items: stretch; }
}

/* ============ Contact form ============ */
.refer { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.refer__intro .section__lede { margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.5rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-list__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.contact-list a { font-weight: 600; color: var(--color-primary); }
.contact-list a:hover { color: var(--color-primary-hover); }

.segmented { display: inline-flex; background: var(--color-surface-offset); border: 1px solid var(--color-divider); border-radius: var(--radius-full); padding: 0.3rem; margin-bottom: 1.5rem; }
.segmented button { padding: 0.55rem 1.1rem; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); border-radius: var(--radius-full); }
.segmented button[aria-selected='true'] { background: var(--color-primary); color: var(--color-text-inverse); }
[data-theme='dark'] .segmented button[aria-selected='true'] { color: #14211a; }

.refer-form { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-size: var(--text-sm); font-weight: 600; margin-bottom: 0.4rem; }
.field label span { color: var(--color-accent); }
.field input, .field select, .field textarea { background: var(--color-surface-2); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 0.7rem 0.85rem; font-size: var(--text-base); transition: border-color var(--transition), box-shadow var(--transition); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.field textarea { resize: vertical; }
.field-group { display: none; }
.field-group.is-active { display: block; }
.form-disclaimer { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: 1.25rem; }
.form-success { font-size: var(--text-base); font-weight: 600; color: var(--color-success); margin-top: 1rem; padding: 1rem; background: var(--color-success-soft); border-radius: var(--radius-md); }
.apply-card { text-align: center; padding: 0.5rem 0; }
.apply-card h3 { font-size: var(--text-lg); margin-bottom: 0.6rem; }
.apply-card > p { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.apply-card__note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 1.25rem; margin-bottom: 0; }
.apply-card__note a { color: var(--color-primary); font-weight: 600; }

/* ============ Women's coming-soon callout ============ */
.callout { display: flex; gap: 1rem; align-items: flex-start; background: var(--color-accent-soft); border: 1px solid var(--color-accent); border-left: 4px solid var(--color-accent); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.callout__icon { flex-shrink: 0; color: var(--color-accent); display: flex; align-items: center; padding-top: 0.15rem; }
.callout__icon svg { width: 26px; height: 26px; }
.callout h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; margin-bottom: 0.25rem; color: var(--color-text); }
.callout p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.callout a { font-weight: 600; color: var(--color-primary); }

/* ============ Interest list (women's housing) ============ */
.interest-card { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px dashed var(--color-border); text-align: center; }
.interest-card h3 { font-size: var(--text-lg); margin-bottom: 0.6rem; }
.interest-card > p { color: var(--color-text-muted); margin-bottom: 1.25rem; font-size: var(--text-sm); }
.interest-form .field { margin-bottom: 0.85rem; text-align: left; }
.interest-form input { width: 100%; background: var(--color-surface-2); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 0.75rem 0.9rem; font-size: var(--text-base); font-family: var(--font-body); color: var(--color-text); }
.interest-form input::placeholder { color: var(--color-text-faint); }
.interest-form input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.interest-form .form-success { margin-top: 0.75rem; }

/* ============ Accessibility ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
@media (max-width: 860px) { .refer { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ============ Finale ============ */
.finale { background: var(--color-primary); color: var(--color-text-inverse); text-align: center; padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.finale__title { font-size: var(--text-2xl); color: #fbfdf6; max-width: 20ch; margin-inline: auto; font-weight: 900; }
.finale__sub { font-size: var(--text-lg); color: rgba(244, 247, 239, 0.9); margin-top: 1rem; max-width: 52ch; margin-inline: auto; }
.finale__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2rem; }
.finale .btn--leaf { background: var(--color-accent-bright); color: #14211a; }
.finale .btn--ghost-light { color: #f4f7ef; }

/* ============ Footer ============ */
.footer { background: var(--color-surface-offset); border-top: 1px solid var(--color-divider); padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.footer__tag { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 1rem; max-width: 40ch; }
.footer__nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.footer__nav h4 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 1rem; }
.footer__nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__nav a { font-size: var(--text-sm); color: var(--color-text); overflow-wrap: anywhere; }
.footer__nav a:hover { color: var(--color-primary); }
.footer__tagline { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; color: var(--color-accent); margin-top: 1rem; }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 0.75rem; }
.footer__legal p { font-size: var(--text-xs); color: var(--color-text-muted); }
.footer__disclaimer { max-width: 90ch; line-height: 1.6; }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; } .footer__nav { grid-template-columns: 1fr 1fr; } }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.95); padding: 1.5rem; box-sizing: border-box; max-width: 100%; max-height: 100%; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 90%; max-height: 85%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 90%; max-height: 78%; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.lightbox__caption { color: #fff; font-size: var(--text-sm); font-weight: 600; margin-top: 0.75rem; text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.3); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 200ms ease, border-color 200ms ease; -webkit-tap-highlight-color: transparent; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.6); }
.lightbox__close { top: 1.25rem; right: 1.25rem; transform: none; font-size: 2rem; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 560px) {
  .lightbox__close { width: 40px; height: 40px; font-size: 1.6rem; top: 0.75rem; right: 0.75rem; }
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
}
.tour-item { cursor: pointer; }

/* ============ Payment Section ============ */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.pay-card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.pay-card__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--color-surface-offset); display: flex; align-items: center; justify-content: center; color: var(--brand); margin-bottom: 1.25rem; flex-shrink: 0; }
.pay-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-text); margin-bottom: 0.5rem; }
.pay-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.5; }
.pay-card__btns { width: 100%; display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; }
.pay-card__btns .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.pay-note { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.pay-note a { color: var(--brand); font-weight: 600; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
