/* ============================================================
   The Lote Tree — brand stylesheet
   Rooted living for modern life. — dark, earthy theme.
   ============================================================ */

/* ---- Brand tokens -------------------------------------------------- */
:root {
  /* Core palette */
  --lote-green:  #1E5A43;  /* canopy — primary dark surface */
  --deep-teal:   #0F6E56;  /* secondary green — section fills, depth */
  --warm-amber:  #633806;  /* roots & trunk — deep warm surface */
  --sidr-gold:   #8B6914;  /* sacred honey — premium accent */
  --warm-white:  #FAFAF7;  /* parchment — light type & insets */
  --soft-mint:   #DFEEDE;  /* delicate light — body type, fills */

  /* Accent palette — warm, jewel, cool */
  --clay-rose:   #A65D57;
  --saffron:     #D99A2B;
  --peridot:     #5F6F2C;
  --garnet:      #7E2233;
  --turquoise:   #5A9E93;
  --dusky-blue:  #2E5C66;

  /* Semantic — dark earthy theme */
  --bg:          var(--lote-green);   /* page ground */
  --surface:     rgba(250, 250, 247, 0.06);  /* elevated glass panel */
  --line:        rgba(250, 250, 247, 0.14);  /* hairlines on dark */
  --ink:         var(--soft-mint);    /* body copy */
  --ink-strong:  var(--warm-white);   /* headings & emphasis */
  --ink-muted:   rgba(223, 238, 222, 0.72);
  --accent:      var(--saffron);      /* eyebrows, primary accent */
  --ink-on-accent: #2A2003;           /* dark type on bright accents */

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing & rhythm */
  --measure: 64rem;       /* max content width */
  --measure-text: 38rem;  /* reading measure */
  --space-section: clamp(4.5rem, 10vw, 9rem);

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% -8%, rgba(139, 105, 20, 0.42), transparent 58%),
    radial-gradient(110% 80% at 100% 102%, rgba(15, 110, 86, 0.55), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.55vw + 0.9rem, 1.18rem);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

p { margin: 0 0 1.25rem; }
strong { color: var(--ink-strong); }

a {
  color: var(--turquoise);
  text-decoration: none;
  transition: color 0.25s var(--ease-soft);
}
a:hover { color: var(--saffron); }

img, svg { max-width: 100%; display: block; }

::selection {
  background: rgba(217, 154, 43, 0.35);
  color: var(--warm-white);
}

/* ---- Layout helpers ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section { padding-block: var(--space-section); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.2rem, 1.4vw + 0.8rem, 1.55rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--measure-text);
}

.center { text-align: center; }
.center .lede,
.center .eyebrow { margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-soft),
              background 0.3s var(--ease-soft),
              color 0.3s var(--ease-soft),
              box-shadow 0.3s var(--ease-soft);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--saffron);
  color: var(--ink-on-accent);
  box-shadow: 0 10px 26px -12px rgba(217, 154, 43, 0.7);
}
.btn--primary:hover {
  background: var(--sidr-gold);
  color: var(--warm-white);
  box-shadow: 0 16px 34px -12px rgba(217, 154, 43, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--soft-mint);
  border-color: rgba(250, 250, 247, 0.4);
}
.btn--ghost:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: rgba(217, 154, 43, 0.1);
}

/* ---- Header / nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 52, 39, 0.72);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-soft),
              box-shadow 0.4s var(--ease-soft);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(250, 250, 247, 0.12);
  box-shadow: 0 8px 28px -18px rgba(0, 0, 0, 0.6);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink-strong); }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--warm-white);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease-soft);
}
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.03); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--soft-mint);
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-soft);
}
.nav-links a:hover { color: var(--warm-white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--warm-white); }

/* ---- Branch pill buttons in the nav -------------------------------- */
.nav-links a.nav-pill {
  background: var(--garnet);
  color: var(--warm-white);
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 22px -12px rgba(126, 34, 51, 0.75);
  transition: transform 0.3s var(--ease-soft),
              background 0.3s var(--ease-soft),
              box-shadow 0.3s var(--ease-soft);
}
.nav-links a.nav-pill::after { display: none; }
.nav-links a.nav-pill:hover {
  background: var(--clay-rose);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(166, 93, 87, 0.7);
}
.nav-links a.nav-pill[aria-current="page"] {
  background: var(--clay-rose);
  color: var(--warm-white);
}
/* keep the three branch pills grouped a bit closer together */
.nav-links li:has(.nav-pill) + li:has(.nav-pill) { margin-left: -1.1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--soft-mint);
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: var(--space-section);
  overflow: hidden;
}
.hero::before {
  /* warm honey + cool turquoise glow over the dark ground */
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 75%;
  background:
    radial-gradient(55% 75% at 72% 4%, rgba(217, 154, 43, 0.28), transparent 70%),
    radial-gradient(45% 55% at 20% 0%, rgba(90, 158, 147, 0.22), transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 .accent { color: var(--saffron); font-style: italic; }
.hero .lede { margin-top: 0.5rem; }

/* full-bleed background-image landing hero (homepage) */
.hero--landing {
  display: grid;
  place-items: center;
  min-height: clamp(30rem, 82vh, 48rem);
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  /* overlay keeps the title legible; swap the inline --hero-img for your photo */
  background:
    linear-gradient(180deg, rgba(13, 38, 28, 0.5), rgba(13, 38, 28, 0.82)),
    var(--hero-img, linear-gradient(160deg, #1E5A43, #0F6E56)) center / cover no-repeat;
}
.hero--landing::before { display: none; }
.hero-landing-inner { position: relative; z-index: 1; }

/* kicker tucked to the top-left of a hero title */
.hero-title-wrap {
  position: relative;
  display: inline-block;
  text-align: left;
}
.hero:not(.hero--landing) .hero-title-wrap { margin-top: 1.6rem; }
.hero-kicker {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: -0.55rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: var(--soft-mint);
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--warm-white);
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  color: var(--soft-mint);
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero-offerings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft-mint);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero-offerings span { padding: 0 1.35rem; }
.hero-offerings span + span { border-left: 1px solid rgba(250, 250, 247, 0.4); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---- Homepage feature sections (Café · Movement · Community) -------- */
.feature {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.feature { color: var(--soft-mint); }
.feature--gold {
  background:
    radial-gradient(120% 130% at 50% -10%, rgba(217, 154, 43, 0.30), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.30)),
    var(--sidr-gold);
}
.feature--teal {
  background:
    radial-gradient(120% 130% at 50% -10%, rgba(90, 158, 147, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.34)),
    var(--deep-teal);
}
.feature--forest {
  /* matches the homepage hero ground */
  background:
    linear-gradient(180deg, rgba(13, 38, 28, 0.5), rgba(13, 38, 28, 0.82)),
    linear-gradient(160deg, #1E5A43, #0F6E56);
}
.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature--reverse .feature-media { order: 2; }
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.55);
}
.feature-body h2 { margin: 0 0 0.9rem; color: var(--warm-white); }
.feature-body p { margin: 0 0 1.75rem; max-width: 36ch; }
.feature-body .eyebrow { color: rgba(250, 250, 247, 0.82); }

@media (max-width: 48rem) {
  .feature-inner { grid-template-columns: 1fr; gap: 2rem; }
  .feature--reverse .feature-media { order: 0; }
}

/* ---- Section bands ------------------------------------------------- */
.band {
  background: var(--deep-teal);
  position: relative;
}
.band--warm {
  background:
    radial-gradient(120% 130% at 50% -10%, rgba(217, 154, 43, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.36)),
    var(--sidr-gold);
  color: var(--warm-white);
}
.band--warm .lede { color: var(--warm-white); }
.band--warm .eyebrow { color: var(--warm-white); }
.band .wrap { position: relative; z-index: 1; }

/* ---- CTA panel ----------------------------------------------------- */
.cta {
  background:
    radial-gradient(85% 120% at 100% 0%, rgba(217, 154, 43, 0.5), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(126, 34, 51, 0.45), transparent 60%),
    var(--sidr-gold);
  color: var(--warm-white);
  border-radius: 1.75rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 { color: var(--warm-white); }
.cta p { color: var(--warm-white); max-width: 34rem; margin-inline: auto; }
.cta .btn--primary {
  background: var(--lote-green);
  color: var(--warm-white);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}
.cta .btn--primary:hover { background: var(--deep-teal); }

/* ---- About: lead text + splits ------------------------------------- */
.lead-text { max-width: var(--measure-text); }
.lead-text--wide { max-width: none; }
.lead-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  color: var(--saffron);
  padding: 0.08em 0.12em 0 0;
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.15fr 0.85fr; }
.split--reverse .split-art { order: 2; }

/* luminous "paper" inset that keeps the tree illustration legible */
.split-art {
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, var(--soft-mint), #cfe4ce);
  overflow: hidden;
}
.split-art--photo { background: var(--warm-white); }
.split-art--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 100%;        /* sway from the base */
  animation: tree-sway 7s ease-in-out infinite;
}
@keyframes tree-sway {
  0%, 100% { transform: scale(1.06) rotate(-1.4deg); }
  50%      { transform: scale(1.06) rotate(1.4deg); }
}

/* framed photo inside a split (the women-led portrait) */
.split-media {
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.65);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* ---- Traditions table ---------------------------------------------- */
.traditions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
}
.traditions-table th,
.traditions-table td {
  text-align: left;
  vertical-align: top;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.traditions-table thead th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.7rem;
  white-space: nowrap;
}
.traditions-table tbody th {
  width: 16%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--turquoise);
}
.traditions-table td { color: var(--ink); font-size: 0.95rem; }
.traditions-table tbody td:first-of-type {
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--soft-mint);
}
.traditions-table tbody tr { transition: background 0.3s var(--ease-soft); }
.traditions-table tbody tr:hover { background: var(--surface); }

/* ---- Portrait galleries (café menu + studio offerings) ------------- */
.cafe-menu,
.canopy-offerings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.75rem;
}
.cafe-item,
.canopy-offering { margin: 0; }
.canopy-offering a { display: block; color: inherit; }
.cafe-item img,
.canopy-offering img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.65);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.cafe-item:hover img,
.canopy-offering:hover img {
  transform: translateY(-6px);
  box-shadow: 0 32px 56px -28px rgba(0, 0, 0, 0.7);
}
/* hover cross-fade overlay (e.g. the Bites card) */
.cycle-wrap { position: relative; display: block; }
.cafe-item .cycle-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  transition: opacity 0.5s ease, transform 0.4s var(--ease-soft);
}
.cafe-item .cycle-overlay.is-shown { opacity: 1; }

.cafe-item figcaption,
.canopy-offering figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--warm-white);
}

/* ---- Lightbox (zoomable menu images) ------------------------------- */
.cafe-item img[data-menu] { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 24, 18, 0.92);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  line-height: 0;
  cursor: zoom-in;
}
.lightbox-stage.is-zoomed { cursor: crosshair; }
.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 90vh;
  transform-origin: center;
}
.lightbox-stage.is-zoomed .lightbox-img { transform: scale(2.4); }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: var(--warm-white);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease-soft);
}
.lightbox-close:hover { opacity: 1; }

/* ---- Events calendar + filters ------------------------------------- */
.cal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.cal-filter {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(250, 250, 247, 0.3);
  background: transparent;
  color: var(--soft-mint);
  cursor: pointer;
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft),
              border-color 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}
.cal-filter:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-1px);
}
.cal-filter.is-active {
  background: var(--garnet);
  border-color: var(--garnet);
  color: var(--warm-white);
}
.cal-filter--all.is-active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink-on-accent);
}
.cal-embed {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.65);
  height: clamp(440px, 72vh, 700px);
}
.cal-embed iframe {
  display: block;
  width: 100%;
  height: calc(100% + 48px); /* push Google's bottom strip out of the clipped view */
  border: 0;
}

/* portrait acts as a button that opens the in-page calendar */
.offering-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* in-page calendar panel (Classes page) */
.canopy-offerings[hidden],
.cal-panel[hidden] { display: none; } /* grid would otherwise override [hidden] */
.cal-panel {
  max-width: 60rem;
  margin: 0 auto;
}
.cal-panel-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2.6rem;
  margin-bottom: 1.5rem;
}
.cal-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink-strong);
}
.cal-back {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--soft-mint);
  background: transparent;
  border: 1.5px solid rgba(250, 250, 247, 0.3);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft),
              transform 0.25s var(--ease-soft);
}
.cal-back:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateX(-2px);
}
@media (max-width: 30rem) {
  .cal-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cal-back { position: static; }
}

/* ---- Membership (Heartwood) ---------------------------------------- */
.membership {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: 3rem;
}
.membership-perks h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.membership-perks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.membership-perks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}
.membership-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--saffron);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sidr-gold);
  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.6);
}
.price-card .eyebrow { color: var(--saffron); }
.price-card .price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4rem);
  line-height: 1;
  color: var(--ink-strong);
  margin: 0.4rem 0 0.3rem;
}
.price-card .price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.price-card .price-alt { color: var(--ink); margin: 0 0 1.6rem; }
.price-card .price-alt em { font-style: normal; font-weight: 700; color: var(--saffron); }
.price-card .price-note { margin: 1.1rem 0 0; font-size: 0.85rem; color: var(--ink-muted); }

/* ---- About: "Anatomy of the tree" photo --------------------------- */
.shape-text p:last-child { margin-bottom: 0; }
.anat-photo {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #f4f3ef;        /* matches the photo's light ground */
  padding-left: 18%;          /* even gutters that hold the labels */
  padding-right: 18%;
}
.anat-figure {
  position: relative;
  isolation: isolate;        /* keep the blend on the tree, not the band */
  overflow: hidden;
}
.anat-img {
  display: block;
  width: 100%;
  transform-origin: 50% 50%;
  animation: tree-breathe 9s ease-in-out infinite;
}
@keyframes tree-breathe {
  0%, 100% { transform: scale(1.0); }
  50%      { transform: scale(1.05); }
}
/* each part of the tree lights up in turn, in its label's colour */
.anat-zone {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  animation: zone-pulse 5.1s ease-in-out infinite;
}
.anat-zone--canopy {
  top: 0; height: 50%;
  background: radial-gradient(60% 80% at 50% 45%, rgba(30, 90, 67, 0.7), transparent 72%);
  animation-delay: 0s;
}
.anat-zone--heart {
  top: 36%; height: 32%;
  background: radial-gradient(48% 85% at 50% 50%, rgba(139, 105, 20, 0.75), transparent 72%);
  animation-delay: 1.7s;
}
.anat-zone--roots {
  bottom: 0; height: 42%;
  background: radial-gradient(62% 85% at 50% 55%, rgba(99, 56, 6, 0.7), transparent 74%);
  animation-delay: 3.4s;
}
@keyframes zone-pulse {
  0%, 100% { opacity: 0; }
  18%      { opacity: 1; }
  42%      { opacity: 0; }
}
.anat-tag {
  position: absolute;
  left: calc(82% - 1rem);     /* tuck just inside the image's right margin */
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  white-space: nowrap;
  animation: anat-glow 5.1s ease-in-out infinite;
}
/* right side: the tree's anatomy */
.anat-tag--canopy { top: 16%;    color: var(--lote-green);  animation-delay: 0s; }
.anat-tag--heart  { top: 46%;    color: var(--sidr-gold);   animation-delay: 1.7s; }
.anat-tag--roots  { bottom: 16%; color: var(--warm-amber);  animation-delay: 3.4s; }
/* left side: what each part is, in the same colours, pulsing in sync */
.anat-tag--left { left: auto; right: calc(82% - 1rem); } /* tuck just inside the image's left margin */
.anat-tag--classes    { top: 16%;    color: var(--lote-green); animation-delay: 0s; }
.anat-tag--membership { top: 46%;    color: var(--sidr-gold);  animation-delay: 1.7s; }
.anat-tag--cafe       { bottom: 16%; color: var(--warm-amber); animation-delay: 3.4s; }
@keyframes anat-glow {
  0%, 100% { opacity: 0.55; }
  18%      { opacity: 1; }
  46%      { opacity: 0.55; }
}

/* ---- Footer -------------------------------------------------------- */
.site-footer {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34)),
    var(--sidr-gold);
  color: rgba(250, 250, 247, 0.92);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer h4 {
  color: var(--warm-white);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0.9rem 0 1rem;
}
.site-footer .brand { color: var(--warm-white); margin-bottom: 1rem; }
.footer-about p { color: rgba(250, 250, 247, 0.86); max-width: 24rem; font-size: 0.96rem; }
.footer-address {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(250, 250, 247, 0.72);
}
.footer-address a { color: inherit; }
.footer-address a:hover { color: var(--lote-green); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a { color: rgba(250, 250, 247, 0.92); font-size: 0.96rem; }
.footer-links a:hover { color: var(--lote-green); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 247, 0.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(250, 250, 247, 0.78);
}

/* ---- Scroll reveal ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 820px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(16, 46, 35, 0.98);
    backdrop-filter: saturate(150%) blur(12px);
    padding: 1.25rem clamp(1.25rem, 5vw, 3rem) 1.75rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.7);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
  }
  .nav[data-open="true"] .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links li:has(.nav-pill) + li:has(.nav-pill) { margin-left: 0; }
}

/* traditions table stacks on small screens */
@media (max-width: 600px) {
  .traditions-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .traditions-table tbody th,
  .traditions-table tbody td { display: block; width: auto; }
  .traditions-table tbody th { padding: 1.1rem 1rem 0.2rem; border-bottom: 0; }
  .traditions-table tbody td { padding: 0 1rem 1.1rem; }
}

/* ---- Motion preference --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
