/* ============================================================
   Surbhi Surendra — Soft Luxury Editorial Theme
   Fraunces (display serif) + Jost (body sans)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ivory: #FAF6EC;
  --paper: #F1E9D8;
  --paper-deep: #E9DEC7;
  --ink: #2B2118;
  --ink-soft: #5A4E42;
  --gold: #A47C3B;
  --gold-soft: #D3B37E;
  --gold-line: #C9A76A;
  --wine: #6E3B44;
  --wine-soft: #8B5560;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Jost', -apple-system, sans-serif;

  --max: 1180px;
  --gap: clamp(1.5rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.05rem, 7.5vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 500; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; max-width: 56ch; }

a { color: inherit; }

.italic { font-style: italic; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

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

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

.eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.9em;
  display: inline-block;
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--gold-line);
  border: none;
  margin: 1.5rem 0;
}

.rule--center { margin-left: auto; margin-right: auto; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.9em 1.9em;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn:hover { background: var(--ink); color: var(--ivory); }

.btn--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ivory);
}
.btn--gold:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.btn--ghost {
  border-color: var(--gold-line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 33, 24, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(43, 33, 24, 0.06); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark em { font-style: italic; color: var(--gold); }

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 860px) {
  /* Anchored to .site-header (position: sticky) rather than the viewport.
     A fixed-position panel cannot be used here: the header's backdrop-filter
     makes it the containing block, which collapses inset-based heights. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--ivory);
    border-bottom: 1px solid rgba(43, 33, 24, 0.08);
    box-shadow: 0 14px 30px rgba(43, 33, 24, 0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem clamp(1.5rem, 5vw, 3rem) 2.25rem;
    gap: 1.4rem;
    font-size: 1.1rem;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
  }
  .nav-toggle { display: block; }

  /* Hamburger morphs into a close icon */
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  body.menu-open { overflow: hidden; }
}

/* -------------------- Hero -------------------- */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap);
  align-items: center;
}
.hero-copy p.lede { color: var(--ink-soft); }
.hero-figure { position: relative; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 320px; margin: 0 auto; }
}

/* -------------------- Mandala ornament -------------------- */
.mandala circle, .mandala path { fill: none; stroke: var(--gold-line); stroke-width: 1; }
.mandala .dot { fill: var(--gold); stroke: none; }
.mandala .soft { stroke: var(--wine-soft); opacity: 0.55; }

/* -------------------- Stat strip -------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  border-top: 1px solid rgba(43,33,24,0.1);
  border-bottom: 1px solid rgba(43,33,24,0.1);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold);
  font-weight: 400;
}
.stat-label { font-size: 0.9rem; color: var(--ink-soft); max-width: 22ch; }

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; gap: 1.6rem; text-align: left; }
}

/* -------------------- Grids -------------------- */
.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* -------------------- Offering card (course / service) -------------------- */
.offer-card {
  padding: 2.1rem 1.9rem;
  background: var(--ivory);
  border-top: 1px solid var(--gold-line);
  transition: transform 0.3s ease;
}
.section--paper .offer-card { background: var(--paper); }
.offer-card:hover { transform: translateY(-4px); }
.offer-card .glyph { margin-bottom: 1.2rem; }
.offer-card h3 { margin-bottom: 0.5rem; }
.offer-card p { font-size: 0.95rem; margin-bottom: 1.1rem; }
.offer-card a.link {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
}
.offer-card a.link:hover { color: var(--ink); border-color: var(--ink); }

/* -------------------- Pull quote / testimonial -------------------- */
.pull-quote {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid var(--gold-line);
}
.pull-quote .mark {
  font-family: var(--display);
  font-size: 3.2rem;
  color: var(--gold-soft);
  line-height: 1;
  display: block;
  margin-bottom: 0.2rem;
}
.pull-quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  max-width: 46ch;
}
.pull-quote .who { font-family: var(--body); font-size: 0.85rem; color: var(--ink-soft); }
.pull-quote .who b { color: var(--ink); font-weight: 500; }

/* -------------------- Testimonial grid -------------------- */
.testi-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* -------------------- Story blocks (About) -------------------- */
.story-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(43,33,24,0.08);
}
.story-block:first-of-type { border-top: none; }
.story-block h4 {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--wine);
  font-weight: 400;
}
@media (max-width: 760px) { .story-block { grid-template-columns: 1fr; } }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: left;
}
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: rgba(250,246,236,0.75); }
.cta-band .btn { border-color: var(--gold-soft); color: var(--ivory); }
.cta-band .btn:hover { background: var(--gold); border-color: var(--gold); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--paper-deep);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(43,33,24,0.12);
}
.footer-grid h4 { font-size: 0.85rem; letter-spacing: 0.02em; font-family: var(--body); font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 0.8rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------------------- Page hero (inner pages) -------------------- */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-hero p.lede { max-width: 60ch; }

/* -------------------- Utility -------------------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }

/* -------------------- Contact form -------------------- */
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid rgba(43,33,24,0.22);
  background: var(--ivory);
  color: var(--ink);
  border-radius: 2px;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 140px; }

/* -------------------- Accessibility -------------------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
