/* ============================================================
   yogaqigongflow.com — design system
   Serene base (sage/cream, ~85%) + playful accents (marigold/
   persimmon, used sparingly — max one marigold moment per view).
   Fonts: Fraunces (display) + Inter (body) — house pairing.
   ============================================================ */

:root {
  /* palette */
  --ink: #2c352b;
  --ink-soft: #46523f;
  --sage-700: #4f6349;
  --sage-500: #7c9070;
  --sage-100: #e9efe2;
  --cream: #faf7f0;
  --sand: #f2eadc;
  --persimmon: #c7502f;
  --persimmon-dark: #a83f22;
  --marigold: #e9a23b;
  --clay: #b26e4b;
  --white: #ffffff;

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.4rem, 5.5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: 1.375rem;
  --fs-body: 1.125rem;   /* 18px base — audience skews older */
  --fs-small: 0.9375rem; /* 15px floor */

  /* layout */
  --max-content: 1080px;
  --max-prose: 65ch;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 6px 30px rgba(44, 53, 43, 0.09);
  --shadow-lift: 0 12px 44px rgba(44, 53, 43, 0.14);
}

/* ---------- reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--persimmon);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

/* accessibility helpers */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--persimmon);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.2;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.btn-primary {
  background: var(--persimmon);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(199, 80, 47, 0.32);
}

.btn-primary:hover {
  background: var(--persimmon-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(199, 80, 47, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-700);
  border-color: var(--sage-500);
}

.btn-ghost:hover {
  border-color: var(--persimmon);
  color: var(--persimmon);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  box-shadow: 0 2px 20px rgba(44, 53, 43, 0.1);
}

.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .dot {
  color: var(--marigold);
  padding: 0 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-links .btn {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
}

/* mobile: two-row nav — wordmark on top, all links beneath */
@media (max-width: 700px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.45rem;
    padding-bottom: 0.75rem;
  }
  .wordmark {
    flex-basis: 100%;
    text-align: center;
  }
  .nav-links {
    gap: 1.1rem;
  }
  .nav-links a {
    font-size: 0.95rem;
  }
  .nav-links .btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.95rem;
  }
}

/* newsletter nav link: full sentence on wide screens, short on small */
.nav-newsletter .nl-short {
  display: none;
}

@media (max-width: 900px) {
  .nav-newsletter .nl-long {
    display: none;
  }
  .nav-newsletter .nl-short {
    display: inline;
  }
}

/* ---------- cohort ribbon ---------- */

.cohort-ribbon {
  background: var(--sage-700);
  color: var(--cream);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.55rem 1rem;
  letter-spacing: 0.01em;
}

.cohort-ribbon a {
  color: var(--cream);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem clamp(3rem, 7vw, 5.5rem);
}

.hero-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 34rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.hero-trust {
  font-size: var(--fs-small);
  color: var(--sage-700);
}

/* breath circle — slow 6s inhale/exhale */

.breath-circle {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.breath-circle svg {
  width: 100%;
  height: 100%;
  animation: breathe 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .breath-circle {
    width: min(70%, 300px);
  }
}

/* ---------- sections ---------- */

.section {
  padding: var(--section-pad) 1.25rem;
}

.section-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.section-sage {
  background: var(--sage-100);
}

.section-sand {
  background: var(--sand);
}

.section h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.25rem;
}

.section-kicker {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-500);
  margin-bottom: 0.9rem;
}

.prose {
  max-width: var(--max-prose);
}

.prose p + p {
  margin-top: 1.1rem;
}

/* ---------- problem → promise ---------- */

.empathy-list {
  list-style: none;
  max-width: var(--max-prose);
  margin: 1.5rem 0 2rem;
}

.empathy-list li {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}

.empathy-list li + li {
  margin-top: 1.1rem;
}

.empathy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage-500);
}

.promise {
  max-width: var(--max-prose);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.5;
}

/* hand-drawn marigold underline */

.joy-underline {
  position: relative;
  white-space: nowrap;
}

.joy-underline svg {
  position: absolute;
  left: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.42em;
  overflow: visible;
}

.joy-underline svg path {
  stroke: var(--marigold);
  stroke-width: 5;
  stroke-linecap: round;
  fill: none;
}

/* ---------- class + video ---------- */

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

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.video-wrap {
  position: relative;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* click-to-play facade */

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--ink);
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.video-facade:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.video-facade .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(250, 247, 240, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.video-facade:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-facade .play-btn::after {
  content: "";
  display: block;
  margin-left: 5px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--persimmon);
}

.video-caption {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* floating marigold badge */

.sticker {
  display: inline-block;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 14px rgba(233, 162, 59, 0.4);
}

.video-wrap .sticker {
  position: absolute;
  top: -1.1rem;
  right: 1rem;
  z-index: 2;
}

/* ---------- pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border-top: 5px solid var(--sage-500);
}

.pillar-card:nth-child(2) {
  border-top-color: var(--clay);
}

.pillar-card:nth-child(3) {
  border-top-color: var(--marigold);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.9rem 0 0.7rem;
}

.pillar-card p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  color: var(--sage-700);
}

.pillars-synthesis {
  max-width: var(--max-prose);
  margin: 2.5rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--ink-soft);
}

/* ---------- teacher ---------- */

.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 820px) {
  .teacher-grid {
    grid-template-columns: 1fr;
  }
}

.headshot-wrap {
  max-width: 380px;
  margin: 0 auto;
}

.headshot {
  width: 100%;
  height: auto; /* beat the height attribute so aspect-ratio wins */
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover; /* source image is pre-cropped square */
  box-shadow: var(--shadow-lift);
}

/* monogram fallback when no headshot exists yet */

.monogram {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage-100);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.monogram::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 2.5px solid var(--sage-500);
  opacity: 0.55;
}

.monogram span {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 7rem);
  font-weight: 600;
  color: var(--sage-700);
}

.cred-list {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
}

.cred-list li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.85rem;
}

.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--sage-700);
  border-bottom: 2.5px solid var(--sage-700);
  transform: rotate(-48deg);
}

.pull-quote {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 1.8rem 0;
  position: relative;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.45;
}

.pull-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ---------- logistics card ---------- */

.logistics-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lift);
}

.logistics-card dl {
  margin: 0 0 1.8rem;
}

.logistics-card .row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sage-100);
}

.logistics-card .row:last-of-type {
  border-bottom: 0;
}

.logistics-card dt {
  font-weight: 600;
  color: var(--sage-700);
}

.logistics-card dd {
  margin: 0;
}

@media (max-width: 480px) {
  .logistics-card .row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.reassure {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 46rem;
  margin: 2rem auto 0;
}

.faq details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.2rem 1.25rem 1.5rem;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--persimmon);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-soft);
}

/* ---------- email capture ---------- */

.capture {
  position: relative;
}

.capture-box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.capture .sticker {
  margin-bottom: 1.4rem;
}

.capture-form {
  margin-top: 1.8rem;
}

.capture-form iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

/* ---------- final CTA band ---------- */

.final-cta {
  background: var(--sage-700);
  color: var(--cream);
  text-align: center;
}

.final-cta h2 {
  color: var(--cream);
  max-width: 22ch;
  margin: 0 auto 1.1rem;
}

.final-cta p {
  max-width: 44ch;
  margin: 0 auto 2rem;
  color: var(--sage-100);
}

.final-cta .signoff {
  margin: 1.6rem auto 0;
  font-style: italic;
  color: var(--marigold);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--sage-100);
  padding: 3rem 1.25rem 2.5rem;
  font-size: var(--fs-small);
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--sage-100);
}

.site-footer a:hover {
  color: var(--marigold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

.footer-note {
  width: 100%;
  color: var(--sage-500);
  margin-top: 0.5rem;
}

/* ---------- about page ---------- */

.about-hero {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.about-hero .hero-sub {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sage-700);
}

.press-card {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lift);
}

.press-card .masthead {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: var(--fs-small);
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
}

.press-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-bottom: 1rem;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2.5rem;
  margin-top: 2rem;
  list-style: none;
}

@media (max-width: 680px) {
  .cred-grid {
    grid-template-columns: 1fr;
  }
}

.cred-grid li {
  padding-left: 1.9rem;
  position: relative;
}

.cred-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--sage-700);
  border-bottom: 2.5px solid var(--sage-700);
  transform: rotate(-48deg);
}

/* ---------- newsletter page ---------- */

.newsletter-wrap {
  max-width: 620px;
  text-align: center;
}

.newsletter-wrap h1 {
  font-size: var(--fs-h2);
  margin: 1.4rem 0 1rem;
}

.newsletter-lede {
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.newsletter-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lift);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--sage-700);
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--sage-500);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.form-field input:focus-visible {
  outline: 2px solid var(--persimmon);
  outline-offset: 1px;
  border-color: transparent;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.5em;
}

.form-status.is-ok {
  color: var(--sage-700);
}

.form-status.is-error {
  color: var(--persimmon);
}

/* ---------- reveal animations ---------- */
/* Hidden state only applies when JS is running (html.js). */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .breath-circle svg {
    animation: none;
  }
  .btn,
  .video-facade img,
  .video-facade .play-btn {
    transition: none;
  }
}
