/* ==========================================================================
   Bohol Island Homestay — Design System & Site Styles
   Brand: teal/turquoise + white, warm tropical, homestay feel
   ========================================================================== */

:root {
  /* Brand — teal/turquoise (from logo) */
  --teal-900: #0a3733;
  --teal-800: #0d453f;
  --teal-700: #11584f;
  --teal-600: #157a6c; /* primary brand teal */
  --teal-550: #1a8c7b;
  --teal-500: #1f9484;
  --teal-400: #3dab9a;
  --teal-100: #e2f2ee;
  --teal-50:  #f2f9f7;

  /* Warm neutrals */
  --sand-50:  #fdfbf5;
  --sand-100: #f8f1e2;
  --sand-200: #efe2c4;
  --border:   #e4ddc9;

  /* Sparing accent */
  --coral-500: #cf7350;
  --coral-600: #b95f3d;

  /* Ink / text */
  --ink-900: #21282a;
  --ink-700: #4a5457;
  --ink-500: #70797b;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 55, 51, 0.06), 0 1px 1px rgba(10, 55, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 55, 51, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 55, 51, 0.16);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; } /* lock background scroll while the mobile menu is open */
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------- Type ---------------------------------- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral-500);
  display: inline-block;
}
.eyebrow--light { color: var(--teal-100); }
.eyebrow--light::before { background: var(--sand-200); }
.lede {
  font-size: 1.1rem;
  color: var(--ink-700);
  max-width: 60ch;
}
.section-head { max-width: 680px; margin-bottom: var(--space-6); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------- Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
section { padding-block: var(--space-8); }
.section-tight { padding-block: var(--space-7); }
.bg-sand { background: var(--sand-100); }
.bg-teal { background: var(--teal-900); color: var(--teal-50); }
.bg-teal h2, .bg-teal h3 { color: var(--white); }
.bg-white { background: var(--white); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--coral-600); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--white);
  color: var(--teal-700);
  border-color: var(--teal-600);
}
.btn-secondary:hover { background: var(--teal-50); }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* --------------------------------- Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 245, 0.92);
  border-bottom: 1px solid var(--border);
}
/* The blur is desktop-only on purpose: backdrop-filter makes the header a
   containing block for position:fixed children, which would trap the mobile
   nav drawer inside the header bar instead of letting it cover the screen. */
@media (min-width: 961px) {
  .site-header {
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
  }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--teal-900);
  letter-spacing: 0.01em;
}
.site-header .brand-name { font-size: 1.15rem; }
.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--teal-900);
  flex-shrink: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-links { display: flex; gap: var(--space-5); align-items: center; }
.nav-links a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-700);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--teal-700);
  border-color: var(--coral-500);
}
.header-cta { flex-shrink: 0; }
.nav-call { display: none; }

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,55,51,0.35) 0%, rgba(10,55,51,0.55) 55%, rgba(9,42,39,0.92) 100%);
}
.hero-content { position: relative; padding-block: var(--space-8) var(--space-8); max-width: 760px; }
.hero h1 { color: var(--white); margin-block: 1rem 1.1rem; }
.hero .lede { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 56ch; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: var(--space-6);
}
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.badge strong { font-weight: 700; }

.page-hero {
  position: relative;
  color: var(--white);
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero .hero-content { padding-block: var(--space-7) var(--space-7); max-width: 720px; }
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255,255,255,0.92); }
/* Keep hero headings legible over the brightest parts of the photo */
.hero h1, .page-hero h1 { text-shadow: 0 1px 12px rgba(9, 42, 39, 0.45); }
.hero .eyebrow--light, .page-hero .eyebrow--light,
.hero .lede, .page-hero .lede { text-shadow: 0 1px 8px rgba(9, 42, 39, 0.4); }

/* --------------------------------- Cards ---------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-700); }

.tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.05); }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(180deg, transparent, rgba(9,42,39,0.85));
  color: var(--white);
}
.tile-caption h3 { color: var(--white); font-size: 1.15rem; }
.tile-caption p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-top: 0.2rem; }

/* --------------------------------- Split / feature ---------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split.reverse .split-media { order: 2; }

.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: var(--space-5); }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-700); }
.check-list svg { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; margin-top: 3px; }

/* --------------------------------- Placeholder / notice ---------------------------------- */
.notice {
  border: 1.5px dashed var(--teal-500);
  background: var(--teal-50);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  color: var(--teal-800);
  font-size: 0.95rem;
}
.notice strong { color: var(--teal-900); }
.notice--muted {
  border-style: dashed;
  border-color: var(--border);
  background: var(--sand-100);
  color: var(--ink-700);
}

/* --------------------------------- Stats / rating strip ---------------------------------- */
.rating-strip {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  align-items: center;
}
.rating-item { display: flex; align-items: center; gap: 0.75rem; }
.rating-stars { color: var(--coral-500); display: flex; gap: 2px; }
.rating-stars svg { width: 18px; height: 18px; }
.rating-value { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--teal-900); }
.rating-sub { font-size: 0.85rem; color: var(--ink-500); }

/* --------------------------------- Process steps ---------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding-top: 0.25rem; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: var(--space-4);
}

/* --------------------------------- Forms ---------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--teal-900); }
.field .hint { font-weight: 400; color: var(--ink-500); font-size: 0.82rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--white);
  color: var(--ink-900);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-500);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-100);
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.checkbox-pill {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-700);
  cursor: pointer;
}
.checkbox-pill input { accent-color: var(--teal-600); }
.form-note { font-size: 0.85rem; color: var(--ink-500); }
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }

/* --------------------------------- Contact info blocks ---------------------------------- */
.info-list { display: flex; flex-direction: column; gap: var(--space-4); }
.info-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-item .card-icon { margin-bottom: 0; flex-shrink: 0; width: 40px; height: 40px; }
.info-item .card-icon svg { width: 20px; height: 20px; }
.info-item h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--teal-900); margin-bottom: 0.15rem; }
.info-item p { color: var(--ink-700); font-size: 0.94rem; }
.map-placeholder {
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
  background: var(--sand-100);
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-6);
  color: var(--ink-500);
}

/* --------------------------------- FAQ / accordion-free (simple) ---------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); padding-block: var(--space-5); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--ink-700); }

/* --------------------------------- Final CTA band ---------------------------------- */
.cta-band {
  background: var(--teal-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.88); margin-inline: auto; }
.cta-band .cta-row { justify-content: center; margin-top: var(--space-6); }

/* --------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,0.82); padding-block: var(--space-8) var(--space-6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-tag { color: var(--teal-100); }
.footer-brand p { margin-top: var(--space-4); color: rgba(255,255,255,0.72); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col p { color: rgba(255,255,255,0.78); font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-4); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease;
}
.footer-social a:hover { background: var(--teal-600); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------- Gallery masonry ---------------------------------- */
.gallery-masonry {
  column-count: 1;
  column-gap: 1.75rem;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sand-100);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  /* Entrance (opacity/transform, staggered) and hover (box-shadow) share one
     declaration on purpose — splitting the `transition` shorthand across this
     rule and `.reveal` would let whichever rule is later in the cascade wipe
     out the other's transition entirely, since shorthands don't merge. */
  transition:
    opacity 0.7s cubic-bezier(.22, .61, .36, 1) var(--stagger, 0ms),
    transform 0.6s cubic-bezier(.22, .61, .36, 1) var(--stagger, 0ms),
    box-shadow 0.45s cubic-bezier(.22, .61, .36, 1);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(.22, .61, .36, 1);
}
.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: var(--shadow-lg);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

@media (min-width: 560px) {
  .gallery-masonry { column-count: 2; column-gap: 2rem; }
  .gallery-item { margin-bottom: 2rem; }
}
@media (min-width: 960px) {
  .gallery-masonry { column-count: 3; }
}

/* --------------------------------- Lightbox ---------------------------------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(9,42,39,0.96);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: var(--space-6);
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 88vw);
  max-height: 94vh;
}
.lightbox-stage img {
  max-width: min(1100px, 88vw);
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 1;
  transition: opacity 0.25s ease;
}
.lightbox-stage img.is-swapping { opacity: 0; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.12); color: var(--white);
  border: none; border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); color: var(--white);
  border: none; border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.24); transform: translateY(-50%) scale(1.08); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-caption { margin-top: 1rem; text-align: center; color: rgba(255,255,255,0.88); font-size: 0.94rem; }
.lightbox-counter { margin-top: 0.35rem; text-align: center; color: rgba(255,255,255,0.55); font-size: 0.8rem; letter-spacing: 0.04em; }

@media (min-width: 700px) {
  .lightbox-prev { left: 1.25rem; }
  .lightbox-next { right: 1.25rem; }
}
@media (max-width: 699px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item, .gallery-item img, .lightbox-stage img, .lightbox-nav, .lightbox-close {
    transition: none;
  }
  .gallery-item:hover, .gallery-item:focus-visible { transform: none; }
  .gallery-item:hover img, .gallery-item:focus-visible img { transform: none; }
}

/* --------------------------------- Utility ---------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-6); }
.mt-2 { margin-top: var(--space-7); }
.mx-auto { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.divider { height: 1px; background: var(--border); border: none; }

/* --------------------------------- Reveal animation (subtle) ---------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--stagger, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ================================= Responsive ================================= */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

/* Header/navigation switches to the mobile drawer earlier (960px) than the
   general content breakpoint below (760px) — with 6 nav links plus a CTA
   button, keeping the full horizontal nav past 760px caused it to run into
   the business name on tablet-width screens. */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header { background: var(--sand-50); } /* solid: no blur on mobile, so no see-through bar */

  .main-nav {
    position: fixed;
    top: 79px;            /* directly below the sticky header bar (78px + 1px border) */
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    background: var(--sand-50);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6) 1.5rem calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    gap: var(--space-6);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 90;
    /* Hidden by default on mobile/tablet. Fades/drops in place rather than
       sliding off-screen, so a hidden drawer can never add horizontal scroll
       on narrow phones. `visibility` also keeps the links out of the tab order
       while closed. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
  }
  .nav-links { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .nav-links a { font-size: 1.05rem; }
  .nav-call {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--teal-700);
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .nav-call svg { width: 19px; height: 19px; flex-shrink: 0; }
  .header-cta { width: 100%; }
  .header-cta .btn { width: 100%; }
}

@media (max-width: 760px) {
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .form-grid { grid-template-columns: 1fr; }
  section { padding-block: var(--space-7); }
  .hero { min-height: 88vh; }
  .cta-band { padding: var(--space-7) var(--space-5); }
}

@media (max-width: 480px) {
  .rating-strip { gap: var(--space-4); }
  .site-header .container { padding-inline: 1rem; gap: 0.5rem; }
  .main-nav { padding-inline: 1rem; }
}

@media (max-width: 400px) {
  .site-header .brand-name { font-size: 1rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 38px; height: 38px; }
}
