/* =========================================================
   Craft Community & Wellness Living — Design System
   ========================================================= */

:root {
  /* --- Color: warm neutral base + single earthy accent --- */
  --cream: #F7F2E9;
  --cream-deep: #EFE7D8;
  --paper: #FDFBF6;
  --ink: #2A2521;
  --ink-soft: #554D45;
  --ink-faint: #8A7F73;
  --line: #E1D6C4;
  --line-strong: #D2C3A8;

  --clay: #B8552E;
  --clay-deep: #9C4523;
  --clay-tint: #F1D9C8;

  --sage: #6E7A5C;
  --sage-deep: #565F48;
  --sage-tint: #E3E7D9;

  --cream-rgb: 247, 242, 233;
  --ink-rgb: 42, 37, 33;
  --clay-rgb: 184, 85, 46;

  /* --- Type --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "General Sans", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Spacing scale (used for consistent section rhythm) --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Consistent page gutter + section padding, used everywhere */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-pad-y: clamp(3.5rem, 8vw, 7rem);
  --content-max: 1240px;
  --content-narrow: 760px;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 48px -24px rgba(42, 37, 33, 0.18);
  --shadow-lift: 0 30px 60px -20px rgba(42, 37, 33, 0.24);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================================================
   Reset
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Clip animation and off-canvas overflow without creating a scroll
   container on body: the header must remain sticky to the viewport.
   Older browsers retain the html overflow-x: hidden fallback above. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }

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

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.h-display {
  font-size: clamp(2.4rem, 6vw + 0.5rem, 5.4rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.h-xl {
  font-size: clamp(2rem, 4.2vw + 0.4rem, 3.6rem);
  line-height: 1.05;
  font-weight: 600;
}

.h-lg {
  font-size: clamp(1.6rem, 2.6vw + 0.4rem, 2.5rem);
  line-height: 1.12;
  font-weight: 600;
}

.h-md {
  font-size: clamp(1.25rem, 1.4vw + 0.6rem, 1.6rem);
  line-height: 1.25;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

p.body-copy, .body-copy {
  font-size: clamp(0.98rem, 0.3vw + 0.85rem, 1.08rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =========================================================
   Layout primitives
   ========================================================= */

/* Grid/flex children must be able to shrink below their intrinsic width,
   including the footer brand, contact fields, and long contact links. */
:where(.hero-grid, .value-row, .mini-grid, .proof-grid, .stats-strip,
  .footer-grid, .form-grid, .pricing-grid, .pin-grid, .gallery-grid,
  .team-grid, .page-hero-grid, .filter-tabs, .schedule-row, .event-grid,
  .info-split, .info-block) > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  width: 100%;
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head.center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.bg-paper { background: var(--paper); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-sage { background: var(--sage); color: var(--paper); }
.bg-clay { background: var(--clay); color: var(--paper); }

.bg-ink .h-display,
.bg-ink .h-xl,
.bg-ink .h-lg,
.bg-ink .h-md,
.bg-sage .h-display,
.bg-sage .h-xl,
.bg-sage .h-lg,
.bg-sage .h-md,
.bg-clay .h-display,
.bg-clay .h-xl,
.bg-clay .h-lg,
.bg-clay .h-md { color: inherit; }

.bg-ink .body-copy, .bg-ink .lede { color: rgba(247, 242, 233, 0.72); }
.bg-ink .eyebrow { color: #E3A47D; }
.bg-ink .eyebrow::before { background: #E3A47D; }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
  border: 0;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  --btn-bg: var(--clay);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--clay); color: var(--paper); }
.btn-primary:hover { background: var(--clay-deep); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: rgba(var(--ink-rgb), 0.06); }

.bg-ink .btn-outline, .bg-clay .btn-outline, .bg-sage .btn-outline {
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
}
.bg-ink .btn-outline:hover, .bg-clay .btn-outline:hover, .bg-sage .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-block { width: 100%; }

.fud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.3em;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: var(--space-sm);
}
.bg-ink .fud, .bg-clay .fud, .bg-sage .fud { color: rgba(253, 251, 246, 0.68); }

.fud span { display: inline-flex; align-items: center; gap: 0.45em; }
.fud span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* =========================================================
   Nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(210, 195, 168, 0.6);
}

/* The blur/tint lives on a pseudo-element rather than directly on
   .site-header. backdrop-filter on the header itself would make it a
   containing block for its position:fixed descendants (the mobile
   .nav-links panel), which breaks that panel's full-viewport sizing and
   makes it drift with the sticky header on scroll instead of staying
   fixed to the screen. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 242, 233, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 1;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4rem 0.1rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  /* Must outrank .nav-links (z-index: 199) so the button — which morphs
     into a close (X) icon via [aria-expanded="true"] below — stays visible
     and tappable on top of the open full-screen mobile menu instead of
     being painted underneath it. */
  z-index: 201;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.hamburger span::before { position: absolute; transform: translateY(-6px); }
.hamburger span::after { position: absolute; transform: translateY(6px); }

.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.menu-close { display: none; }

@media (max-width: 880px) {
  .menu-close {
    position: absolute;
    top: 0.9rem;
    right: var(--gutter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.95rem;
    cursor: pointer;
  }
  .menu-close span { font-size: 1.5rem; line-height: 1; }
  .menu-open .hamburger { visibility: hidden; }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    background: var(--cream);
    padding: 6rem var(--gutter) 3rem;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-in-out), visibility 0s 0.4s;
    z-index: 199;
  }
  .nav-links.open {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-display); }
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  body.menu-open { overflow: hidden; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding-block-start: clamp(2.5rem, 6vw, 4.5rem);
  padding-block-end: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

.hero-copy .eyebrow { margin-bottom: 1.1rem; }
.hero-copy h1 { margin-bottom: 1.2rem; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.proof-stat { display: flex; flex-direction: column; }
.proof-stat strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--clay-deep);
  line-height: 1;
}
.proof-stat span { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.25rem; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lift);
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: clamp(0.9rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100% - 2rem);
  box-shadow: var(--shadow-soft);
}

.hero-badge .avatars { display: flex; }
.hero-badge .avatars img {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -10px;
  object-fit: cover;
}
.hero-badge .avatars img:first-child { margin-left: 0; }
.hero-badge p { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; }
.hero-badge strong { color: var(--ink); }

@media (min-width: 900px) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-visual { animation: none; }
  }
}

/* =========================================================
   Cards & Grids (zig-zag / asymmetric, avoid generic 3-col)
   ========================================================= */

.value-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.value-row + .value-row { margin-top: clamp(3rem, 7vw, 5.5rem); }

@media (min-width: 860px) {
  .value-row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
  }
  .value-row.reverse .value-media { order: 2; }
  .value-row.reverse .value-copy { order: 1; }
}

.value-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-soft);
}
.value-media img { width: 100%; height: 100%; object-fit: cover; }

.value-copy .eyebrow { margin-bottom: 0.9rem; }
.value-copy h3 { margin-bottom: 0.9rem; }
.value-copy .body-copy { margin-bottom: 1.3rem; }

.value-list { display: flex; flex-direction: column; gap: 0.6rem; }
.value-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  align-items: flex-start;
}
.value-list li svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--clay); }

/* Compact grid for smaller value props */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }

.mini-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.3rem;
}
.mini-card .icon-wrap {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--clay-tint);
  color: var(--clay-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.mini-card h4 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.mini-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }

/* =========================================================
   Testimonials / Social proof — grid, never carousel
   ========================================================= */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }

.proof-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proof-card .stars { display: flex; gap: 0.2rem; color: var(--clay); }
.proof-card .headline { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.proof-card p.quote { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.6; }

.proof-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.3rem;
}
.proof-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.proof-person strong { display: block; font-size: 0.88rem; }
.proof-person span { display: block; font-size: 0.78rem; color: var(--ink-faint); }
.proof-source { margin-left: auto; font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.04em; }

.proof-photo-card { padding: 0; overflow: hidden; }
.proof-photo-card img.proof-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.proof-photo-card .proof-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* =========================================================
   Stats strip
   ========================================================= */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 720px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }

.stat-block { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
.stat-num .suffix { font-size: 0.5em; }
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.bg-ink .stat-label, .bg-clay .stat-label, .bg-sage .stat-label { color: rgba(253,251,246,0.68); }

/* =========================================================
   Steps / How it works
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.step {
  position: relative;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-strong);
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--clay);
  margin-bottom: 0.9rem;
  display: block;
}
.step h4 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* =========================================================
   FAQ (accordion)
   ========================================================= */

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.35rem 0.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw + 0.6rem, 1.2rem);
  color: var(--ink);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.faq-q .plus::before { width: 10px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 10px; }
.faq-item.open .faq-q .plus { background: var(--clay); border-color: var(--clay); }
.faq-item.open .faq-q .plus::before,
.faq-item.open .faq-q .plus::after { background: var(--paper); }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-in-out);
}
.faq-a-inner { padding: 0 0.2rem 1.5rem; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; max-width: 62ch; }

/* =========================================================
   Closer
   ========================================================= */

.closer {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}
.closer .lede { margin-inline: auto; }
.closer .hero-cta-row { justify-content: center; }
.closer .fud { justify-content: center; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: rgba(247,242,233,0.75);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 2rem; }
}

.footer-brand .brand { color: var(--cream); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 34ch; color: rgba(247,242,233,0.6); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,242,233,0.5);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; color: rgba(247,242,233,0.82); }
.footer-col a:hover { color: var(--clay); }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(247,242,233,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(247,242,233,0.5);
}

.social-row { display: flex; gap: 0.9rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(247,242,233,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.social-row a:hover { background: var(--clay); border-color: var(--clay); }

/* =========================================================
   Forms
   ========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form-grid.two-col { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.76rem; color: var(--ink-faint); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  min-height: 48px;
  width: 100%;
  min-width: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(184, 85, 46, 0.15);
}
.field .error-msg {
  font-size: 0.78rem;
  color: var(--clay-deep);
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #B8402E; }
.field.has-error .error-msg { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
}
.form-success.show { display: block; }
.form-success .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: end; } }

.price-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  border: 1px solid var(--line);
}
.price-card.featured {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.price-card.featured .price-desc { color: rgba(247,242,233,0.65); }
.price-card.featured .value-list li { color: rgba(247,242,233,0.85); }
.price-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--clay);
  color: var(--paper);
  padding: 0.35em 0.8em;
  border-radius: 999px;
  font-weight: 600;
}
.price-card h3 { font-size: 1.3rem; }
.price-desc { font-size: 0.9rem; color: var(--ink-faint); }
.price-amount { display: flex; align-items: baseline; gap: 0.3rem; }
.price-amount .num { font-family: var(--font-display); font-size: 2.6rem; }
.price-amount .per { font-size: 0.85rem; color: var(--ink-faint); }
.price-card.featured .price-amount .per { color: rgba(247,242,233,0.6); }

/* =========================================================
   Marquee (scrollytelling element)
   ========================================================= */

.marquee-section { overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4rem); }
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1;
  padding-inline: 1rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-stroke: 1.5px var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.marquee-track span.filled {
  -webkit-text-stroke: 0;
  color: var(--ink);
}
.bg-ink .marquee-track span { -webkit-text-stroke: 1.5px var(--cream); }
.bg-ink .marquee-track span.filled { -webkit-text-stroke: 0; color: var(--cream); }

/* =========================================================
   Pinned narrative section (scrollytelling)
   ========================================================= */

.pin-section {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-block: 0;
}

.pin-stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .pin-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.pin-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pin-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.pin-visual img.active { opacity: 1; }

.pin-copy .pin-frame { display: none; }
.pin-copy .pin-frame.active { display: block; }
.pin-copy .eyebrow { margin-bottom: 1rem; color: #E3A47D; }
.pin-copy .eyebrow::before { background: #E3A47D; }
.pin-copy h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.9rem; }
.pin-copy p { color: rgba(247,242,233,0.72); max-width: 46ch; }

.pin-progress {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.2rem;
}
.pin-progress .dot {
  width: 32px; height: 3px;
  background: rgba(247,242,233,0.25);
  border-radius: 999px;
  overflow: hidden;
}
.pin-progress .dot i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--clay);
}
.pin-progress .dot.active i { width: 100%; }
.pin-progress .dot.done i { width: 100%; }

/* Mobile: unpin, simplify to stacked reveal */
@media (max-width: 900px) {
  .pin-stage { min-height: auto; padding-block: 3rem; }
  .pin-copy .pin-frame { display: block !important; margin-bottom: 2.2rem; }
  .pin-visual { display: none; }
  .pin-progress { display: none; }
}

/* =========================================================
   Reveal-on-scroll utility (GSAP hooks)
   ========================================================= */

/* No CSS-level opacity:0 here on purpose: [data-reveal] elements must be
   visible by default. GSAP (js/main.js) sets the hidden starting state
   itself via gsap.from() only once it has successfully loaded and run.
   If the GSAP CDN script fails to load for any reason, content still
   renders normally instead of staying permanently invisible. */

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .gallery-grid .g-tall { grid-row: span 2; }
}
.gallery-grid figure { border-radius: var(--radius-md); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.gallery-grid .g-tall img { aspect-ratio: 1/2; }
@media (max-width: 719px) {
  .gallery-grid .g-tall img { aspect-ratio: 1/1; }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1.2rem;
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card figure { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; margin-bottom: 0.9rem; }
.team-card img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.team-card span { font-size: 0.82rem; color: var(--ink-faint); }

/* Badges row */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-content: space-between;
}
.badge-item { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-faint); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.badge-item svg { color: var(--clay); }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: var(--sage-tint);
  color: var(--sage-deep);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Skip link for a11y */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 0.8rem 1.2rem;
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }

/* =========================================================
   Page hero (interior pages — shorter than home hero)
   ========================================================= */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero .lede { margin-top: 1rem; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 860px) {
  .page-hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a:hover { color: var(--clay); }

/* =========================================================
   Timeline (About page)
   ========================================================= */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding-left: 1.6rem;
  border-left: 1px solid var(--line-strong);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.98rem;
  top: 0.3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clay);
  border: 3px solid var(--cream);
}
.timeline-item .year {
  font-family: var(--font-display);
  color: var(--clay-deep);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: block;
}
.timeline-item h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.92rem; color: var(--ink-soft); max-width: 52ch; }

/* =========================================================
   Filter tabs (Programs page)
   ========================================================= */

/* Mobile: an equal-width segmented grid. Every tab is always fully
   visible with no scrolling or clipped labels — each button carries its
   own pill background/border rather than relying on one outer container
   shape, which is what broke on multi-row wrap and on horizontal scroll. */
.filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.filter-tabs button {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0.6em 0.5em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-height: 44px;
  text-align: center;
}
.filter-tabs button.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Tablet and up: all three labels comfortably fit on one line, so it
   collapses into the compact pill-track / segmented-control look. */
@media (min-width: 560px) {
  .filter-tabs {
    display: inline-flex;
    grid-template-columns: none;
    width: max-content;
    max-width: 100%;
    background: var(--cream-deep);
    padding: 0.4rem;
    border-radius: 999px;
    gap: 0.5rem;
  }
  .filter-tabs button {
    border: 0;
    background: transparent;
    padding: 0.6em 1.3em;
    font-size: 0.88rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .filter-tabs button.active { border-color: transparent; }
}

/* =========================================================
   Schedule table (Programs page)
   ========================================================= */

.schedule-list { display: flex; flex-direction: column; }
.schedule-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .schedule-row {
    grid-template-columns: 0.9fr 1.6fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
  }
}
.schedule-row .s-day { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.schedule-row .s-class { font-weight: 600; color: var(--ink); }
.schedule-row .s-meta { font-size: 0.85rem; color: var(--ink-faint); }
.schedule-row[data-cat] { display: none; }
.schedule-row[data-cat].show { display: grid; }

/* =========================================================
   Event cards (Events page)
   ========================================================= */

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 700px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .event-grid { grid-template-columns: repeat(3, 1fr); } }

.event-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.event-card .event-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.event-card .event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card .date-chip {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.7em;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow-soft);
}
.event-card .date-chip .mo { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clay-deep); font-weight: 700; }
.event-card .date-chip .dd { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.event-card .event-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.event-card .event-meta { font-size: 0.8rem; color: var(--ink-faint); display: flex; gap: 0.8rem; flex-wrap: wrap; }
.event-card h4 { font-size: 1.08rem; }
.event-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.event-card .event-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }

/* =========================================================
   Contact / info split
   ========================================================= */

.info-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) { .info-split { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; } }

.info-block { display: flex; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.info-block:first-of-type { border-top: 0; padding-top: 0; }
.info-block .icon-wrap {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--clay-tint);
  color: var(--clay-deep);
  display: flex; align-items: center; justify-content: center;
}
.info-block h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.info-block p, .info-block a { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; }
.map-frame .map-pin {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.map-frame .map-pin span {
  width: 46px; height: 46px;
  border-radius: 50% 50% 50% 0;
  background: var(--clay);
  transform: rotate(-45deg);
  box-shadow: var(--shadow-lift);
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Icon sizing (inline SVG sprite via <use>)
   ========================================================= */

.icon { width: 1.2em; height: 1.2em; display: inline-block; flex-shrink: 0; }
.mini-card .icon-wrap svg { width: 22px; height: 22px; }
.info-block .icon-wrap svg { width: 20px; height: 20px; }
.social-row a svg { width: 17px; height: 17px; }
.value-list li svg { width: 15px; height: 15px; }
.badge-item svg { width: 18px; height: 18px; }
.form-success .icon-wrap svg { width: 28px; height: 28px; }
