/* =====================================================
   Megha Subramanian — Warm & Earthy Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --cream:      #FBF6EC;
  --cream-2:    #F3EAD8;
  --ivory:      #FFFDF8;
  --terracotta: #B85C38;
  --terracotta-d:#9A4A2B;
  --maroon:     #6E2A2A;
  --maroon-d:   #521E1E;
  --gold:       #C89B3C;
  --gold-soft:  #E4C879;
  --ink:        #2B2018;
  --ink-soft:   #5C4E42;
  --line:       #E1D4BE;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--maroon); }

h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 15px 30px; border-radius: 40px;
  border: 1.5px solid var(--maroon);
  background: var(--maroon); color: var(--ivory);
  cursor: pointer; transition: all 0.3s var(--ease);
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--maroon); }
.btn--ghost:hover { background: var(--maroon); color: var(--ivory); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--maroon); letter-spacing: 0.5px;
}
.brand span { color: var(--terracotta); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--terracotta); transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--maroon); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--maroon); margin: 5px 0; transition: 0.3s; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-sm { padding: 64px 0; }

.divider-mark {
  width: 46px; height: 46px; margin: 0 auto 26px;
  color: var(--gold); opacity: 0.85;
}
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(200,155,60,0.14), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(184,92,56,0.12), transparent 55%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--maroon); margin-bottom: 22px; }
.hero .lead { max-width: 30ch; margin-bottom: 32px; }
.hero-img {
  border-radius: 6px; overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -30px rgba(94,42,42,0.5);
  border: 1px solid var(--line);
}
.hero-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Intro band ---------- */
.band { background: var(--maroon); color: var(--cream); }
.band h2 { color: var(--ivory); }
.band .eyebrow { color: var(--gold-soft); }
.band p { color: rgba(251,246,236,0.85); }

.band-cream { background: var(--cream-2); }

/* ---------- Two-col feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature--rev .feature-media { order: 2; }
.feature-media {
  border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(94,42,42,0.4);
}
.feature-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.feature-media.landscape img { aspect-ratio: 4/3; }

/* ---------- Modalities grid ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 8px;
  padding: 38px 34px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(94,42,42,0.35); }
.card h3 { color: var(--terracotta-d); margin-bottom: 12px; }
.card h3 a:hover { color: var(--maroon); }
.card .num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); display:block; margin-bottom: 6px; }

/* ---------- Offering / program cards ---------- */
.program {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: grid; grid-template-columns: 44px 1fr;
  margin-bottom: 34px;
}
.program-accent { background: var(--terracotta); }
.program.samya .program-accent { background: var(--maroon); }
.program.abhinayam .program-accent { background: var(--terracotta); }
.program.oneon .program-accent { background: var(--gold); }
.program-body { padding: 42px 44px; }
.program-body .eyebrow { margin-bottom: 10px; }
.program-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.program-title h3 { color: var(--maroon); }
.sanskrit { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.15rem; }
.price-tag {
  font-family: var(--serif); font-size: 2rem; color: var(--terracotta-d);
  font-weight: 600; line-height: 1;
}
.price-tag small { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }

.meta-list { list-style: none; margin: 22px 0; display: grid; gap: 12px; }
.meta-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.meta-list .k {
  flex: 0 0 118px; font-weight: 700; color: var(--terracotta-d);
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; padding-top: 3px;
}
.meta-list .v { color: var(--ink-soft); }

.schedule-pill {
  display: inline-block; background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 30px; padding: 5px 14px; font-size: 0.82rem; margin: 3px 6px 3px 0;
  color: var(--ink-soft);
}
.schedule-pill b { color: var(--maroon); font-weight: 700; }

.program-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.note-fin {
  margin-top: 40px; padding: 24px 28px; border-left: 3px solid var(--gold);
  background: var(--cream-2); border-radius: 4px; font-size: 0.94rem; color: var(--ink-soft);
}
.note-fin a { color: var(--terracotta-d); font-weight: 700; text-decoration: underline; }

/* ---------- Works list ---------- */
.work-list { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 6px; border-bottom: 1px solid var(--line); transition: background 0.25s, padding 0.25s;
}
.work-row:hover { background: var(--cream-2); padding-left: 18px; }
.work-row .idx { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.work-row .work-title { font-family: var(--serif); font-size: 1.5rem; color: var(--maroon); }
.work-row .work-role { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.prose strong { color: var(--maroon); font-weight: 700; }

/* ---------- Social / contact ---------- */
.social-grid { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.social-grid a {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 40px; padding: 12px 24px;
  font-weight: 600; font-size: 0.9rem; color: var(--maroon); transition: all 0.25s;
}
.social-grid a:hover { border-color: var(--terracotta); background: var(--ivory); transform: translateY(-2px); }

.contact-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px;
  padding: 48px; max-width: 620px; margin: 0 auto; text-align: center;
}
.contact-card .email { font-family: var(--serif); font-size: clamp(1.4rem,3vw,2.1rem); color: var(--terracotta-d); }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-d); color: var(--cream); padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: var(--gold-soft); font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer .fbrand { font-family: var(--serif); font-size: 1.7rem; color: var(--ivory); margin-bottom: 14px; }
.site-footer p, .site-footer a { color: rgba(251,246,236,0.78); font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(251,246,236,0.15);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(251,246,236,0.6);
}

/* ---------- Reveal animation (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 0; transform: translateY(-120%); transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 28px; width: 100%; }
  .nav-toggle { display: block; }
  .hero-grid, .feature, .feature--rev .feature-media { grid-template-columns: 1fr; }
  .feature--rev .feature-media { order: 0; }
  .grid-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 66px 0; }
  .hero { padding: 60px 0; }
  .program { grid-template-columns: 14px 1fr; }
  .program-body { padding: 32px 26px; }
  .work-row { grid-template-columns: 40px 1fr; }
  .work-row .work-role { grid-column: 2; }
}
