/* WOW — Women Of the World
   Look & feel: Ana's mockup + vercel reference
   Palette: cream / teal / yellow / ink
*/

:root {
  --cream: #FBF8F2;
  --cream-2: #F4EFE4;
  --teal: #018EA2;
  --teal-deep: #006A7A;
  --yellow: #FAD108;
  --ink: #231F20;
  --muted: #6B6B6B;
  --line: rgba(35, 31, 32, 0.12);

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 999px;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* --- type --- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.eyebrow.on-teal { color: rgba(251, 248, 242, 0.85); }
.eyebrow.on-teal::before { background: rgba(251, 248, 242, 0.85); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(48px, 7vw, 104px); line-height: 1.02; margin: 0; }
h2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.06; margin: 0 0 24px; }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; margin: 0 0 12px; }
.em { font-style: italic; color: var(--teal); }
.em-ink { font-style: italic; }
.em-yellow { font-style: italic; color: var(--yellow); }
.hl-yellow {
  position: relative;
  display: inline-block;
  padding: 0 0.14em;
  z-index: 0;
  line-height: 1;
}
.hl-yellow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.14em;
  bottom: -0.04em;
  background: var(--yellow);
  z-index: -1;
}
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn::after { content: "→"; font-size: 16px; transition: transform .18s ease; }
.btn:hover::after { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd900; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(35, 31, 32, 0.25); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline.on-teal { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline.on-teal:hover { border-color: #fff; }
.btn-pill-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
}

/* --- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--ink);
}
.nav-brand img { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--teal); }
.nav-cta { margin-left: clamp(8px, 2vw, 20px); }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  position: relative;
  z-index: 60;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE NAV — calm, warm, generous ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }

  /* keep top bar visible above the drawer */
  .nav { position: sticky; }
  .nav.open { background: var(--cream); }

  /* drawer slides DOWN from below the top bar — header stays usable */
  .nav.open .nav-links {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0 0;
    background: var(--cream);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 55;
    animation: navSlide .3s ease;
  }
  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  /* top-level items — serif, generous, warm */
  .nav.open .nav-links > a,
  .nav.open .nav-links > .nav-drop > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px var(--gutter);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--ink);
    border-bottom: 1px solid rgba(35, 31, 32, 0.06);
    border-radius: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
    min-height: 44px;
  }
  .nav.open .nav-links > a:hover,
  .nav.open .nav-links > a.active {
    color: var(--teal);
    border-bottom-color: rgba(35, 31, 32, 0.06);
  }
  .nav.open .nav-links > a.active { font-style: italic; }

  .nav.open .nav-drop { padding: 0; margin: 0; }

  /* dropdown chevron — friendlier rotation on expand */
  .nav.open .nav-drop > a::after {
    opacity: 0.4;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.open .nav-drop.open > a {
    color: var(--teal);
    border-bottom-color: transparent;
  }
  .nav.open .nav-drop.open > a::after {
    transform: rotate(-135deg) translate(2px, 2px);
    opacity: 0.7;
  }

  /* sub-menu — collapsed by default, smooth slide on expand */
  .nav.open .nav-drop-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: rgba(1,142,162,0.04);
    border: 0;
    border-bottom: 1px solid rgba(35, 31, 32, 0.06);
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.open .nav-drop.open .nav-drop-menu {
    max-height: 600px;
    padding: 8px 0 16px;
  }

  .nav.open .nav-drop-menu a {
    padding: 14px var(--gutter) 14px calc(var(--gutter) + 8px);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    min-height: 44px;
    border-radius: 0;
  }
  .nav.open .nav-drop-menu a small {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
    font-weight: 400;
  }
  .nav.open .nav-drop-menu a:hover,
  .nav.open .nav-drop-menu a:active {
    background: rgba(1,142,162,0.08);
    color: var(--teal);
  }

  /* soft footer panel inside the drawer — CTA + hello */
  .nav.open .nav-links::after {
    content: "";
    flex: 1;
    min-height: 32px;
  }

  /* CTA pill — pinned to viewport bottom, full-width feel */
  .nav.open .nav-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 20px;
    margin: 0;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 500;
    min-height: 56px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(35,31,32,0.22);
    z-index: 60;
  }

  /* breathing room at bottom of drawer so last item isn't hidden behind CTA */
  .nav.open .nav-links { padding-bottom: 120px; }

  /* lock body scroll while menu is open */
  body.nav-locked { overflow: hidden; }
}

/* --- layout helpers --- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 96px) 0; }
.section-teal { background: var(--teal); color: var(--cream); }
.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--cream); }
.section-teal .em { color: var(--yellow); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--cream); }
.section-cream-2 { background: var(--cream-2); }

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.split-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .split, .split-even { grid-template-columns: 1fr; align-items: start; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- hero (index) --- */
.hero { padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 5vw, 80px); }
.hero h1 .em { color: var(--teal); font-style: italic; }
.hero-side { font-size: 18px; line-height: 1.55; }
.hero-side p strong { font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-eyebrow { margin-bottom: 36px; }

/* --- stats strip --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  color: var(--teal);
}
.stat-label { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 220px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* --- pull / quote --- */
.pull {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.signature { margin-top: 28px; }
.signature .name { font-family: var(--serif); font-style: italic; font-size: 22px; }
.signature .role {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.65);
}
.section:not(.section-teal):not(.section-ink) .signature .role { color: var(--muted); }

/* --- cards (values, programmes, coaches) --- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 4px;
}
.card-num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }

.programme {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.programme:last-of-type { border-bottom: 1px solid var(--line); }
.programme-photo { aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.programme-photo img { width: 100%; height: 100%; object-fit: cover; }
.programme-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.programme h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.programme ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.programme li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: var(--muted);
}
.programme li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0; top: 9px;
}
@media (max-width: 860px) {
  .programme { grid-template-columns: 1fr; }
}

.coaches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.coach-photo { aspect-ratio: 3 / 4; background: var(--cream-2); overflow: hidden; margin-bottom: 18px; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach-name { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.coach-role { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.coach p { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .coaches { grid-template-columns: 1fr; } }

/* --- five movements --- */
.movements { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 56px; }
.move { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 20px; }
.section:not(.section-teal):not(.section-ink) .move { border-top-color: var(--line); }
.move-roman { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--yellow); margin-bottom: 14px; }
.section:not(.section-teal):not(.section-ink) .move-roman { color: var(--teal); }
.move h4 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 0 0 10px; }
.move p { font-size: 14.5px; line-height: 1.5; opacity: 0.9; }
@media (max-width: 860px) { .movements { grid-template-columns: 1fr; } }

/* --- marquee --- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  padding: 22px 0;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  padding: 0 36px;
  color: var(--ink);
}
.marquee-track span em { color: var(--teal); }
.marquee-track span::after { content: "·"; margin-left: 36px; color: var(--teal); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- partnership block (founder + coo) --- */
.partnership {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.partnership-photo { aspect-ratio: 4 / 5; background: var(--cream-2); overflow: hidden; position: relative; }
.partnership-photo .stack { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.partnership-photo .stack img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .partnership { grid-template-columns: 1fr; } }

/* --- featured / hero card --- */
.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-photo { aspect-ratio: 4 / 5; background: var(--cream-2); overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* --- list rows (community modules) --- */
.module {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.module:last-of-type { border-bottom: 1px solid var(--line); }
.module .photo { aspect-ratio: 5 / 4; background: var(--cream-2); overflow: hidden; }
.module .photo img { width: 100%; height: 100%; object-fit: cover; }
.module.flip .photo { order: 2; }
.module .copy { max-width: 540px; }
@media (max-width: 860px) {
  .module, .module.flip { grid-template-columns: 1fr; }
  .module.flip .photo { order: 0; }
}

/* --- blog list --- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.post .photo { aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; margin-bottom: 18px; }
.post .photo img { width: 100%; height: 100%; object-fit: cover; }
.post-tag { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.post h3 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.post p { color: var(--muted); font-size: 15px; }
.post a.more { display: inline-block; margin-top: 12px; color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 2px; font-weight: 500; font-size: 14px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* --- callout (closing CTA) --- */
.callout {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
}
.callout .wrap { max-width: 980px; }
.callout h2 { color: var(--cream); }
.callout .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.callout .btn-outline { color: var(--cream); border-color: rgba(255,255,255,0.35); }
.callout .btn-outline:hover { border-color: #fff; }

/* --- footer --- */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 6vw, 96px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 48px;
}
.footer-brand img { width: 120px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 280px; }
.footer h5 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); font-size: 15px; }
.footer a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a { color: var(--muted); }
.footer-socials { display: inline-flex; gap: 10px; align-items: center; }
.footer-socials .soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.footer-socials .soc svg { width: 16px; height: 16px; }
.footer-socials .soc:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- video placeholder --- */
.video-slot {
  aspect-ratio: 16 / 9;
  background: var(--cream-2);
  border: 1px dashed rgba(35,31,32,0.25);
  display: grid;
  place-items: center;
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- placeholder note (tbc bits) --- */
.tbc {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 12px;
  vertical-align: middle;
}

/* --- subtle dividers between page sections --- */
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* --- dropdown nav --- */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-drop > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  opacity: 0.7;
}
/* Wider hit area on the trigger so the cursor stays "inside" the drop while moving down */
.nav-drop { padding-bottom: 14px; margin-bottom: -14px; }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  /* Top padding doubles as the hover bridge between trigger and menu — no dead zone */
  padding: 16px 10px 10px;
  background: #fff;
  background-clip: padding-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 280px;
  display: grid;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 12px 36px rgba(35, 31, 32, 0.08);
  z-index: 20;
}
/* Small dwell time before close so a quick mouse swipe doesn't dismiss the menu */
.nav-drop-menu { transition-delay: 0s; }
.nav-drop:not(:hover):not(:focus-within) .nav-drop-menu { transition-delay: 0.18s; }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 6px;
  border-bottom: 0 !important;
  font-size: 15px;
  font-weight: 500;
}
.nav-drop-menu a small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.nav-drop-menu a:hover { background: var(--cream-2); }
@media (max-width: 860px) {
  .nav-drop-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 8px 0 0 16px;
  }
}

/* --- retreats page specifics --- */
.rhero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: end start;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
  color: var(--cream);
  background: var(--ink) center / cover no-repeat;
}
.rhero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,31,32,0.05) 0%, rgba(35,31,32,0.55) 65%, rgba(35,31,32,0.8) 100%);
}
.rhero-inner { position: relative; z-index: 2; max-width: 840px; }
.rhero h1 { color: var(--cream); margin-top: 24px; }
.rhero h1 .em { color: var(--yellow); }
.rhero .lede { margin-top: 24px; max-width: 600px; font-size: 19px; line-height: 1.5; color: rgba(251,248,242,0.92); }
.rhero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); margin-top: 56px; }
.trio-item h3 { font-size: 24px; line-height: 1.2; }
.trio-item .k {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.trio-item p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

.pdetail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 7vw, 100px) 0;
  border-top: 1px solid var(--line);
}
.pdetail:last-of-type { border-bottom: 1px solid var(--line); }
.pdetail.flip .pdetail-media { order: 2; }
.pdetail-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.pdetail-media img { width: 100%; height: 100%; object-fit: cover; }
.pdetail-k {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.pdetail-body h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 18px; }
.pdetail-body p { color: var(--ink); font-size: 17px; }
.pdetail-list { list-style: none; padding: 0; margin: 24px 0 28px; }
.pdetail-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.pdetail-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0; top: 10px;
}
@media (max-width: 860px) {
  .pdetail, .pdetail.flip { grid-template-columns: 1fr; }
  .pdetail.flip .pdetail-media { order: 0; }
}

.price-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 32px 0 0;
  border: 1px solid var(--line);
}
.price-box > div {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.price-box > div:last-child { border-right: 0; }
.price-box .v {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 4px;
}
.price-box .l { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 700px) { .price-box { grid-template-columns: 1fr; } .price-box > div { border-right: 0; border-bottom: 1px solid var(--line); } .price-box > div:last-child { border-bottom: 0; } }


/* ============================================================
   LEGACY ARTICLE COMPAT — minimal styles for the 3 existing
   blog article pages (blog-burnout, blog-boredom, blog-strategic-pause)
   They use the older BEM class system; this maps them into the
   new palette/type so they're readable until they're rebuilt
   in the new design system.
   ============================================================ */
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: clamp(20px,4vw,48px); }
.nav__logo img { width: 100px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: clamp(14px,2.4vw,32px); margin-left: auto; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.nav__link:hover { color: var(--teal); }
.nav__drop { position: relative; }
.nav__drop-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-width: 280px; display: grid; gap: 2px; opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; box-shadow: 0 12px 36px rgba(35,31,32,0.08); z-index: 20; }
.nav__drop:hover .nav__drop-menu, .nav__drop:focus-within .nav__drop-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__drop-menu a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav__drop-menu a small { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.nav__drop-menu a:hover { background: var(--cream-2); }
.nav__cta { margin-left: clamp(8px,2vw,20px); }
.nav__burger { display: none; }
.caret { width: 10px; height: 10px; }

.btn--primary { background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(35,31,32,0.25); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); padding: 12px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.article { max-width: 760px; margin: 0 auto; padding: clamp(48px,7vw,96px) var(--gutter); }
.article__k { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.article__hero { font-family: var(--serif); font-size: clamp(36px,4.6vw,60px); line-height: 1.08; margin-bottom: 28px; color: var(--ink); }
.article p { font-family: var(--serif); font-size: 19px; line-height: 1.65; color: var(--ink); margin: 0 0 1.2em; }
.article p em, .article p i { font-style: italic; color: var(--ink); }
.article p strong, .article p b { font-weight: 500; color: var(--ink); }
.article h2 { font-family: var(--serif); font-size: clamp(26px,3vw,36px); line-height: 1.15; margin: 48px 0 18px; }
.article h3 { font-family: var(--serif); font-size: 22px; margin: 36px 0 12px; }
.article__sign { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-style: italic; color: var(--muted); font-family: var(--serif); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.4em; }
.article li { font-family: var(--serif); font-size: 18px; line-height: 1.6; margin-bottom: 10px; }
.article blockquote { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.3; border-left: 3px solid var(--teal); padding-left: 22px; margin: 36px 0; color: var(--ink); }

.bloglist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.blog-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); margin-bottom: 18px; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__k { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.blog-card h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.blog-card p { color: var(--muted); font-size: 15px; }
.blog-card__more { display: inline-block; margin-top: 12px; color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 2px; font-weight: 500; font-size: 14px; }
@media (max-width: 860px) { .bloglist { grid-template-columns: 1fr; } }

.eyebrow--center { justify-content: center; }

.footer__brand img { width: 120px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.theme-retreat { /* placeholder — pages tagged with this still work */ }
.reveal { opacity: 1 !important; transform: none !important; }
.drawer, .drawer__close { display: none; }

/* ============================================================
   RESPONSIVE POLISH — tablet + small phone tuning
   All adds on top of the existing 860px rules; everything stays
   backward-compatible.
   ============================================================ */

/* ---------- TABLET (max 1024px) ---------- */
@media (max-width: 1024px) and (min-width: 861px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .coaches { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .bloglist { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: repeat(2, 1fr); }
  .movements { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

/* ---------- PHONE polish (max 860px) ---------- */
@media (max-width: 860px) {
  /* tighter type */
  h1 { font-size: clamp(40px, 9vw, 56px); line-height: 1.04; }
  h2 { font-size: clamp(30px, 7.4vw, 44px); line-height: 1.08; }
  h3 { font-size: clamp(22px, 5.2vw, 28px); }

  /* less aggressive section padding */
  .section { padding: clamp(56px, 12vw, 80px) 0; }
  .section-tight { padding: clamp(40px, 8vw, 64px) 0; }

  /* buttons — touch-friendly */
  .btn { white-space: normal; min-height: 48px; padding: 14px 24px; font-size: 15px; }

  /* hero actions stack: primary full-width, secondary as quiet link below */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 32px;
  }
  .hero-actions .btn { justify-content: center; }
  .hero-actions .btn-outline {
    border: 0;
    background: transparent;
    color: var(--teal);
    min-height: 44px;
    padding: 8px 0;
    justify-content: center;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    width: max-content;
    margin: 4px auto 0;
  }

  /* hero/lead */
  .hero { padding: clamp(40px, 7vw, 64px) 0 clamp(28px, 5vw, 48px); }
  .hero-side { font-size: 17px; margin-top: 8px; }
  .lead { font-size: clamp(19px, 4.6vw, 22px); }

  /* hl-yellow chip — align baseline cleanly on small screens */
  .hl-yellow { line-height: 1.04; padding: 0 0.12em; }
  .hl-yellow::before { top: 0.18em; bottom: 0.02em; }

  /* stats strip: 2 col on phones, looks tight — softer padding & label */
  .stat { padding: 24px 18px; }
  .stat-label { font-size: 13px; max-width: none; }
  .stat-num { font-size: clamp(34px, 9vw, 44px); }

  /* footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer ul { gap: 12px; }
  .footer a { font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-brand p { max-width: none; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom > span:first-child { width: 100%; }

  /* marquee — slow down a touch + smaller */
  .marquee-track { animation-duration: 50s; padding: 16px 0; }
  .marquee-track span { padding: 0 22px; }
  .marquee-track span::after { margin-left: 22px; }

  /* card padding */
  .card { padding: 24px; }

  /* programme rows + module rows — image on top */
  .programme, .module { padding: 36px 0; }

  /* feature card */
  .feature-photo { aspect-ratio: 4 / 3; }

  /* hero eyebrow tighten */
  .hero-eyebrow { margin-bottom: 24px; }

  /* nav brand label drops if very tight */
  .nav-inner { padding: 14px var(--gutter); }
  .nav-brand img { width: 32px; height: 32px; }
  .nav-brand span { font-size: 13px; letter-spacing: 0.16em; }

  /* eyebrow line on phones */
  .eyebrow { font-size: 11.5px; letter-spacing: 0.2em; }
  .eyebrow::before { width: 22px; }
}

/* ---------- SMALL PHONE (max 480px) ---------- */
@media (max-width: 480px) {
  :root { --gutter: 18px; }

  h1 { font-size: clamp(36px, 10vw, 48px); }
  h2 { font-size: clamp(28px, 8.4vw, 38px); }

  /* stats — single column at very tight widths */
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  /* hero h1 with hl-yellow chip — make sure highlight doesn't overflow */
  .hl-yellow { padding: 0 0.1em; }

  /* nav brand label very tight — drop the wordmark, keep the icon */
  .nav-brand span { display: none; }

  /* socials center on small phones */
  .footer-socials { justify-content: center; width: 100%; }

  /* card padding */
  .card { padding: 20px; }

  /* signature names smaller */
  .signature .name { font-size: 19px; }

  /* programme/module image tighter aspect */
  .programme-photo, .module .photo { aspect-ratio: 4 / 3; }
}

/* ---------- FOCUS STATES (a11y) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
