/* ===================================================================
   Serenity Star — Shared Stylesheet
   Editorial wellness aesthetic: warm whites, sand, sage, ink
   =================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --cream:        #F6F0E6;   /* base background */
  --cream-soft:   #FBF7F0;   /* lightest paper */
  --sand:         #E5D6BE;   /* warm sand */
  --clay:         #C9A87C;   /* dusty clay accent */
  --sage:         #8C9D86;   /* soft sage */
  --forest:       #4F5E4A;   /* deep forest */
  --ink:          #2A2825;   /* primary text */
  --ink-soft:     #5C5853;   /* secondary text */
  --line:         #E4DCCB;   /* dividers */
  --gold:         #A8895A;   /* tag accent */

  /* Type */
  --font-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max-width:    1280px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --radius:       2px;          /* keep edges crisp & editorial */
  --radius-soft:  10px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

.display {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); }
h4 { font-size: 1.25rem; line-height: 1.3; }

p {
  margin: 0 0 1em 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.75rem;
  transform: translateY(-2px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream-soft);
}
.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream-soft);
}

.btn-light {
  background: var(--cream-soft);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--cream);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream-soft);
  border-color: var(--cream-soft);
}
.btn-outline-light:hover {
  background: var(--cream-soft);
  color: var(--ink);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-link:hover { gap: 1rem; color: var(--forest); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.divider {
  width: 1px;
  height: 48px;
  background: var(--line);
  margin: 0 auto;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(42, 40, 37, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 400;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Brand mark (logo image)
   The site logo is a transparent PNG. The container intentionally has
   NO background, border, shadow, filter, blend-mode, or border-radius
   — these would either show through the transparent areas of the PNG
   or distort/recolor the logo. Sizing is driven entirely by the
   image's own height. Width is auto so the aspect ratio is preserved.
   The PNG itself should be exported at ~2x or 3x its display size so
   it renders crisply on retina displays.
   --------------------------------------------------------------------- */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.brand-mark img {
  display: block;
  height: 44px;          /* desktop default */
  width: auto;           /* preserve aspect ratio (never stretch) */
  max-height: 44px;
  object-fit: contain;
  /* No background, border, shadow, filter, or blend-mode applied */
}

/* Footer logo can be slightly larger for visual weight on dark bg */
.site-footer .brand-mark img {
  height: 52px;
  max-height: 52px;
}

@media (max-width: 960px) {
  .brand-mark img { height: 40px; max-height: 40px; }
  .site-footer .brand-mark img { height: 48px; max-height: 48px; }
}
@media (max-width: 480px) {
  .brand-mark img { height: 36px; max-height: 36px; }
  .site-footer .brand-mark img { height: 44px; max-height: 44px; }
}

/* ---------------------------------------------------------------------
   Hero image: Brittany + kambo frog
   The source photo is portrait (~9:16). The hero container on desktop
   is landscape, so object-fit: cover crops the top and bottom heavily.
   Anchor the visible window on the face/frog area (~30% from top of
   the original image) so both subjects stay in view at every viewport.
   --------------------------------------------------------------------- */
.hero-media--brittany-frog img {
  object-position: center 30%;
}
@media (max-width: 720px) {
  /* Mobile hero is taller, less aggressive crop. Nudge the window slightly. */
  .hero-media--brittany-frog img { object-position: center 35%; }
}

.brand-name {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-header.is-light .brand-name,
.site-header.is-light .nav-list a { color: var(--cream-soft); }
.site-header.is-light.is-scrolled .brand-name,
.site-header.is-light.is-scrolled .nav-list a { color: var(--ink); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.nav-list li { flex-shrink: 0; }

.nav-list a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--cream-soft);
  border-color: var(--ink);
}

.site-header.is-light .nav-cta:hover { background: var(--cream-soft); color: var(--ink); border-color: var(--cream-soft); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 6rem 0 5rem;
  color: var(--cream-soft);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Flat dark overlay: white text legible against any photo */
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.hero-media::before {
  /* Extra vignette at the bottom for headlines that sit low */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
  color: var(--cream-soft);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--sand);
}

.hero .lead {
  color: rgba(251, 247, 240, 0.85);
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll-cue {
  /* Tucked into the bottom-right corner so it never overlaps the CTAs */
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  left: auto;
  transform: none;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.7);
  z-index: 2;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}
.hero-scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: rgba(251, 247, 240, 0.5);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@media (max-width: 720px) {
  .hero-scroll-cue { display: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* Smaller hero for inner pages */
.hero-sub {
  min-height: 70vh;
  padding-top: 8rem;
}
.hero-sub h1 { font-size: clamp(2.5rem, 6vw, 5rem); }

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
  max-width: 880px;
}
.section-head .lead { margin-top: 0.5rem; }

.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head-center .lead { margin-left: auto; margin-right: auto; }
.section-head-center .eyebrow::before { display: none; }
.section-head-center .eyebrow { display: block; margin-bottom: 1rem; }

/* ---------- Two-col split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-media { order: 1; }

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-soft);
}

.split-media.tall img { aspect-ratio: 3 / 4; }
.split-media.landscape img { aspect-ratio: 5 / 4; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  background: var(--cream-soft);
  border-radius: var(--radius-soft);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(42, 40, 37, 0.25);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card-image img { transform: scale(1.04); }

.card-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 1.25rem; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Offerings list (homepage) ---------- */
.offerings {
  background: var(--cream-soft);
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  overflow: hidden;
}

.offering {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--cream-soft);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: background 0.3s var(--ease);
  min-height: 200px;
}
.offering:hover { background: var(--cream); }

.offering-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--clay);
  letter-spacing: 0.05em;
}

.offering h3 {
  font-size: 1.375rem;
  font-weight: 400;
}

.offering p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Image bands ---------- */
.image-band {
  position: relative;
  width: 100%;
  height: clamp(320px, 60vh, 600px);
  overflow: hidden;
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-band-tall { height: clamp(420px, 80vh, 720px); }

.image-band-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream-soft);
  /* Flat dark overlay for legibility */
  background: rgba(0, 0, 0, 0.45);
  padding: 2rem;
}
.image-band-overlay h2 {
  color: var(--cream-soft);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  max-width: 20ch;
  margin-bottom: 1rem;
}
.image-band-overlay p { color: rgba(251,247,240,0.85); max-width: 50ch; margin: 0 auto 1.75rem; }

/* ---------- Events ---------- */
.event-toggle {
  display: inline-flex;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 2.5rem;
}
.event-toggle button {
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.event-toggle button.active {
  background: var(--ink);
  color: var(--cream-soft);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  overflow: hidden;
}
.cal-head {
  background: var(--cream-soft);
  padding: 0.9rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.cal-day {
  background: var(--cream-soft);
  min-height: 110px;
  padding: 0.75rem;
  font-size: 0.875rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.25s var(--ease);
}
.cal-day:hover { background: var(--cream); }
.cal-day .num {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1;
}
.cal-day.muted .num { color: var(--line); }
.cal-day .pill {
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-day .pill.sage  { background: var(--sage); color: var(--cream-soft); }
.cal-day .pill.clay  { background: var(--clay); color: var(--cream-soft); }
.cal-day .pill.forest{ background: var(--forest); color: var(--cream-soft); }
.cal-day.today .num {
  background: var(--ink);
  color: var(--cream-soft);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
}

.cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cal-month-head h3 { font-size: 2rem; font-weight: 300; }
.cal-month-nav {
  display: flex;
  gap: 0.75rem;
}
.cal-month-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.3s var(--ease);
}
.cal-month-nav button:hover { background: var(--sand); }

/* Weekly event row */
.event-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.event-row:first-child { border-top: 1px solid var(--line); }

.event-date {
  font-family: var(--font-display);
  text-align: left;
}
.event-date .day {
  display: block;
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 300;
  color: var(--ink);
}
.event-date .wd {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.event-detail h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}
.event-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.event-meta span::before {
  content: "·";
  margin-right: 1.25rem;
  color: var(--line);
}
.event-meta span:first-child::before { display: none; }

.event-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.event-actions .btn { padding: 0.7rem 1.15rem; font-size: 0.7rem; }

.event-type-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.quote-card {
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--cream-soft);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.quote-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.quote-author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Team / coach grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
}
.team-member {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.team-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-soft);
  background: linear-gradient(135deg, var(--sand), var(--clay));
  position: relative;
}
.team-photo::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 247, 240, 0.9);
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}
.team-photo:has(img)::after { display: none; }
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-member { display: flex; flex-direction: column; }
.team-member h4 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; }
.team-role {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -0.5rem;
}
.team-bio { font-size: 0.9375rem; color: var(--ink-soft); flex: 1; }
.team-action {
  margin-top: 0.5rem;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.team-action:hover {
  background: var(--ink);
  color: var(--cream-soft);
}

/* Portrait-orientation card images (for poster-style event flyers) */
.card-image.portrait {
  aspect-ratio: 4 / 5;
  background: var(--cream);
}
.card-image.portrait img {
  object-fit: cover;
  object-position: center top;
}

/* Large founder-photo placeholder (used until a real headshot is in) */
.founder-placeholder {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-soft);
  background: linear-gradient(135deg, var(--sand), var(--clay));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: rgba(251, 247, 240, 0.95);
}
.founder-placeholder .label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.founder-placeholder .sub {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.7);
}

/* Make whole offering cards on the homepage clickable */
.offering-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--cream-soft);
  transition: background 0.3s var(--ease);
  min-height: 200px;
  position: relative;
}
.offering-link:hover { background: var(--cream); }
.offering-link .arrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.offering-link .arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.offering-link:hover .arrow::after { transform: translateX(4px); }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251, 247, 240, 0.8);
  padding: 5rem 0 2.5rem;
  margin-top: 0;
}
.site-footer h4 {
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand p {
  color: rgba(251, 247, 240, 0.65);
  max-width: 36ch;
  font-size: 0.9375rem;
  margin-top: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-grid a {
  font-size: 0.9375rem;
  color: rgba(251, 247, 240, 0.7);
  transition: color 0.3s var(--ease);
}
.footer-grid a:hover { color: var(--cream-soft); }

.footer-meta {
  padding-top: 2rem;
  border-top: 1px solid rgba(251, 247, 240, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.5);
}

.footer-brand .brand-name { color: var(--cream-soft); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Safety net: if JS fails or the observer never fires (rare mobile edge cases
   where a very tall element can't reach the threshold), show content after a
   short delay so nothing is permanently hidden. */
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: reveal-fallback 0.9s var(--ease) 2.5s forwards;
}
.reveal.is-visible {
  animation: none;
}
/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  /* CSS columns gives a clean masonry effect that works in every browser */
  column-count: 3;
  column-gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px)  { .gallery-grid { column-count: 2; column-gap: 1rem; } }
@media (max-width: 480px)  { .gallery-grid { column-count: 1; } }

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: var(--cream-soft);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.18);
  cursor: zoom-in;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -18px rgba(0,0,0,0.32);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 480px) { .gallery-grid { margin-top: 1.5rem; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.is-open {
  display: flex;
  animation: fade-in 0.25s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: none;
  border: 1px solid rgba(251, 247, 240, 0.35);
  color: var(--cream-soft);
  font-family: var(--font-display);
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover {
  background: rgba(251, 247, 240, 0.15);
  border-color: var(--cream-soft);
}
.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(251, 247, 240, 0.85);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  max-width: 80vw;
  text-align: center;
}
@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; font-size: 1.5rem; }
}
body.lightbox-open { overflow: hidden; }

/* ---------- Utilities ---------- */
.bg-cream-soft { background: var(--cream-soft); }
.bg-sand { background: var(--sand); }
.bg-ink   { background: var(--ink); color: var(--cream-soft); }
.bg-ink h2, .bg-ink h3 { color: var(--cream-soft); }
.bg-ink p, .bg-ink .lead { color: rgba(251, 247, 240, 0.8); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-media { order: 2; }
  .form-row { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 90px 1fr; gap: 1.25rem; }
  .event-row .event-actions { grid-column: 1 / -1; }
}

/* ---------- Mobile nav (hidden by default; .is-open reveals it) ---------- */
.mobile-nav {
  display: none;                  /* default: hidden everywhere */
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 60;
  flex-direction: column;
  padding: 6rem 2rem 3rem;
  gap: 1.25rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}
.mobile-nav .btn { margin-top: 1.5rem; align-self: flex-start; }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  color: var(--ink);
  font-size: 1.5rem;
}

@media (max-width: 960px) {
  /* Desktop nav becomes cramped below ~960px, so we flip to the hamburger here */
  .nav-list, .nav-cta { display: none; }
  .site-header.is-light .nav-toggle { color: var(--cream-soft); }
  .site-header.is-light.is-scrolled .nav-toggle { color: var(--ink); }
  .nav-toggle { display: flex; }

  .offerings-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .calendar { font-size: 0.75rem; }
  .cal-day { min-height: 80px; padding: 0.45rem; }
  .cal-day .pill { font-size: 0.6rem; padding: 0.15rem 0.4rem; }
  .cal-head { padding: 0.5rem 0.25rem; font-size: 0.6rem; letter-spacing: 0.15em; }
  .hero { min-height: 88vh; padding: 5rem 0 4rem; }
}

@media (max-width: 480px) {
  .calendar { display: none; } /* on tiny screens, show only weekly */
  .calendar-mobile-note {
    display: block;
    text-align: center;
    padding: 2rem;
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-soft);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--ink-soft);
  }
}

.calendar-mobile-note { display: none; }

/* ---------------------------------------------------------------------
   Venmo button — secondary payment option next to "Book a spot" buttons.
   Matches button height of .btn but uses Venmo brand colour.
   --------------------------------------------------------------------- */
.btn-venmo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  background: #3D95CE;
  color: #fff;
  border: 1px solid #3D95CE;
  text-decoration: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}
.btn-venmo:hover {
  background: #2F7AB3;
  border-color: #2F7AB3;
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .btn-venmo { font-size: 0.7rem; padding: 0.85rem 1rem; letter-spacing: 0.1em; }
}

/* ---------------------------------------------------------------------
   Floating WhatsApp Community widget (injected by js/main.js on every page).
   Sticky bottom-right, doesn't overlap mobile nav toggle or hero CTAs.
   --------------------------------------------------------------------- */
.wa-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #fff;
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  max-width: calc(100vw - 3rem);
}
.wa-widget:hover {
  background: #1FB855;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
.wa-widget:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.wa-widget .wa-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wa-widget .wa-icon svg { width: 100%; height: 100%; fill: #fff; }
.wa-widget .wa-label { white-space: nowrap; }
.wa-widget .wa-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 1px;
}

@media (max-width: 720px) {
  .wa-widget { bottom: 1rem; right: 1rem; padding: 0.75rem 1.1rem 0.75rem 0.9rem; font-size: 0.75rem; }
  .wa-widget .wa-sub { display: none; }
}
@media (max-width: 420px) {
  /* Collapse to icon-only on very small screens to avoid covering CTAs */
  .wa-widget .wa-label { display: none; }
  .wa-widget { padding: 0.85rem; border-radius: 50%; }
}

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