/* =========================================================
   CLARED YOGA — STYLESHEET
   Palette: navy #394761  ·  cream #F1EBDF  ·  gold #FFC000
   Type:    Cormorant Garamond (display) + Manrope (body)
   ========================================================= */

:root {
  --navy:        #394761;
  --navy-deep:   #2E3A52;
  --navy-soft:   #4A5879;
  --cream:       #F1EBDF;
  --cream-warm:  #E8DFCC;
  --cream-deep:  #D9CFB8;
  --gold:        #FFC000;
  --gold-soft:   #E5AC00;
  --ink:         #1F2A40;

  --serif:       "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans:        "Manrope", -apple-system, "Helvetica Neue", sans-serif;

  --max:         1200px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; cursor: pointer; }

/* ---------- Top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--cream);
  border-bottom: 1px solid rgba(241, 235, 223, 0.08);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header.is-light {
  background: var(--cream);
  color: var(--navy);
  border-bottom: 1px solid rgba(57, 71, 97, 0.1);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-current { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.is-current::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--cream);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
}
/* Subtle radial light behind the logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(255, 192, 0, 0.08) 0%,
    rgba(255, 192, 0, 0) 50%);
  pointer-events: none;
}
/* Faint star/dot pattern in the corners */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(241, 235, 223, 0.05) 1px, transparent 1.5px),
    radial-gradient(circle at 90% 80%, rgba(241, 235, 223, 0.04) 1px, transparent 1.5px),
    radial-gradient(circle at 80% 15%, rgba(241, 235, 223, 0.05) 1px, transparent 1.5px),
    radial-gradient(circle at 15% 85%, rgba(241, 235, 223, 0.03) 1px, transparent 1.5px);
  background-size: 100% 100%;
  pointer-events: none;
}
.hero-inner {
  text-align: center;
  max-width: 720px;
  position: relative;
  z-index: 1;
  animation: fadeUp 1.1s var(--ease) both;
}
.hero-logo {
  width: 320px;
  max-width: 80%;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.18));
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
  font-weight: 500;
}
.hero-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.15;
  margin: 0 0 44px;
  letter-spacing: -0.005em;
}
.hero-tagline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.sun-moon {
  margin: 56px auto 0;
  color: rgba(241, 235, 223, 0.55);
}

/* ---------- Gold button ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: all .35s var(--ease);
  position: relative;
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 192, 0, 0.18);
}
.btn-gold svg { transition: transform .35s var(--ease); }
.btn-gold:hover svg { transform: translateX(4px); }

/* ---------- Section scaffolding ---------- */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 32px;
}
.section-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 24px;
}
.section-label.light { color: var(--gold); }
.section-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.15;
  margin: 0 0 80px;
  letter-spacing: -0.005em;
  max-width: 800px;
}
.section-heading.light { color: var(--cream); }

/* ---------- About ---------- */
.about {
  background: var(--cream);
  color: var(--ink);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text { max-width: 540px; }
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--navy);
  margin: 0 0 28px;
  font-weight: 400;
}
.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 22px;
  color: var(--ink);
}
.about-text em {
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
}
.about-credential {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 40px;
  border-left: 3px solid var(--gold);
  position: relative;
  margin-top: 20px;
  text-align: center;
}
.credential-mark {
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.mark-divider {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(255, 192, 0, 0.55);
}
.credential-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.credential-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 28px;
  color: var(--cream);
  letter-spacing: 0.005em;
}
.credential-title span {
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  color: rgba(241, 235, 223, 0.78);
  display: inline-block;
  margin-top: 4px;
}
.credential-rule {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.6;
}
.credential-style {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--cream);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.credential-style em {
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: rgba(241, 235, 223, 0.8);
  display: inline-block;
  margin-top: 2px;
}

/* ---------- Classes ---------- */
.classes {
  background: var(--navy);
  color: var(--cream);
  position: relative;
}
.classes .section-heading { color: var(--cream); margin-bottom: 56px; }

.class-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: var(--gold);
  margin-bottom: 56px;
}
.icon-divider {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: rgba(255, 192, 0, 0.45);
}

.classes-description {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.55;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
  color: var(--cream);
  font-weight: 400;
}

.classes-cta {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(241, 235, 223, 0.12);
}
.classes-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 32px;
  color: rgba(241, 235, 223, 0.75);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 80px 32px 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(241, 235, 223, 0.1);
}
.footer-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.footer-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.footer-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241, 235, 223, 0.5);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-email {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 192, 0, 0.4);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.footer-email:hover { border-bottom-color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(241, 235, 223, 0.78);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 235, 223, 0.45);
}
.footer-bottom p { margin: 0; }

/* ---------- Terms page ---------- */
.page-light { background: var(--cream); }
.terms-page {
  min-height: 70vh;
  padding: 100px 32px 120px;
}
.terms-inner {
  max-width: 780px;
  margin: 0 auto;
}
.terms-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.terms-meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin: 0 0 48px;
}
.terms-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--navy);
  padding: 32px 0;
  border-top: 1px solid rgba(57, 71, 97, 0.18);
  border-bottom: 1px solid rgba(57, 71, 97, 0.18);
  margin: 0 0 56px;
}
.terms-section {
  margin-bottom: 48px;
}
.terms-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.terms-section h2::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 16px;
  position: relative;
  top: -6px;
}
.terms-section p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  color: var(--ink);
}
.terms-section a {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.terms-section a:hover { color: var(--gold-soft); }
.terms-cta {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(57, 71, 97, 0.18);
  text-align: center;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll (JS-driven via IntersectionObserver in HTML) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-wrap { padding: 14px 20px; gap: 16px; }
  .nav-links { gap: 22px; }
  .brand-mark { font-size: 16px; letter-spacing: 0.14em; }
  .section-inner { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-credential { padding: 36px 28px; }
  .credential-title { font-size: 22px; }
  .credential-style { font-size: 20px; }
  .class-icons { gap: 20px; }
  .icon-divider { width: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .hero { min-height: auto; padding: 60px 24px 80px; }
  .hero-logo { width: 240px; }
}

@media (max-width: 600px) {
  .nav-links a { font-size: 10px; letter-spacing: 0.06em; }
  .nav-links { gap: 14px; }
  .nav-wrap { padding: 12px 16px; gap: 10px; }
  .brand-mark { font-size: 14px; letter-spacing: 0.1em; }
  .section-heading { font-size: 30px; margin-bottom: 48px; }
  .hero-tagline { font-size: 28px; }
  .btn-gold { padding: 14px 24px; font-size: 12px; }
  .terms-page { padding: 60px 20px 80px; }
  .terms-intro { font-size: 18px; }
  .terms-section h2 { font-size: 22px; }
  .terms-section h2::before { width: 18px; margin-right: 10px; }
}
