/* ============================================================
   Art of Living Teacher — serene, soothing, uplifting
   Palette: ivory/cream base · lotus saffron · deep teal · gold
   ============================================================ */

:root {
  --bg: #fdfbf5;
  --bg-alt: #f6f1e4;
  --card: #ffffff;
  --ink: #3d4238;
  --ink-soft: #6b7263;
  --teal: #2f6f6a;
  --teal-deep: #1f4e4a;
  --saffron: #e8912d;
  --saffron-soft: #f7d9ac;
  --gold: #c9a227;
  --shadow: 0 10px 30px rgba(61, 66, 56, 0.10);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Nunito Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { width: min(760px, 92%); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-serif); color: var(--teal-deep); line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 600; }
h1 em { color: var(--saffron); font-style: italic; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; margin-bottom: 1.4rem; text-align: center; }

.section-eyebrow, .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--saffron);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-lead { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; color: var(--ink-soft); }
.section-lead a { font-weight: 600; }

.prose p { margin-bottom: 1.1rem; font-size: 1.05rem; color: var(--ink-soft); }
.prose strong { color: var(--teal-deep); }
.prose a { font-weight: 600; }

.highlight {
  font-family: var(--font-serif);
  font-size: 1.35rem !important;
  font-style: italic;
  color: var(--teal-deep) !important;
  border-left: 3px solid var(--saffron);
  padding-left: 1.1rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61, 66, 56, 0.08);
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }

.nav-brand {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700;
  color: var(--teal-deep); text-decoration: none;
}
.nav-brand span { color: var(--saffron); font-weight: 500; }

.nav-links { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 600; transition: color .25s; }
.nav-links a:hover { color: var(--saffron); }
.nav-cta {
  background: var(--teal); color: #fff !important;
  padding: 0.45rem 1rem; border-radius: 999px; transition: background .25s;
}
.nav-cta:hover { background: var(--teal-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal-deep); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%;
  background: radial-gradient(ellipse at 50% 0%, rgba(247, 217, 172, 0.45), transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-eyebrow { margin-bottom: 0.8rem; }
.hero-sub { max-width: 620px; margin: 1rem auto 2.5rem; font-size: 1.15rem; color: var(--ink-soft); }

.hero-figure {
  max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: var(--radius);
  padding: 14px 14px 10px; box-shadow: var(--shadow);
}
.hero-figure img {
  width: 100%; border-radius: calc(var(--radius) - 8px);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%;
}
.hero-figure figcaption {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.1rem; color: var(--teal-deep); padding: 0.8rem 0 0.4rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Benefits ---------- */
.benefit-grid {
  list-style: none; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 900px; margin: 0 auto;
}
.benefit-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem; display: flex; align-items: center; gap: 0.9rem;
  font-weight: 600; color: var(--teal-deep); font-size: 1.02rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(61,66,56,.14); }
.benefit-icon { font-size: 1.5rem; }

/* ---------- Upcoming Programs ---------- */
#programGroups { max-width: 980px; margin: 0 auto; }

.format-group { margin-bottom: 3rem; }
.format-group:last-child { margin-bottom: 0; }
.format-title {
  font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600;
  color: var(--teal-deep); text-align: center; margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: 1rem;
}
.format-title::before, .format-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron-soft));
}
.format-title::after { background: linear-gradient(90deg, var(--saffron-soft), transparent); }

.program-grid {
  display: grid; gap: 1.6rem; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
}

.program-card {
  display: block; text-decoration: none;
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(61,66,56,.16); }
.program-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }

/* marquee strip */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  padding: 0.65rem 0; position: relative;
}
.marquee-inner {
  display: inline-flex; animation: marquee 14s linear infinite;
}
.program-card:hover .marquee-inner { animation-play-state: paused; }
.marquee-inner span {
  color: #fff; font-size: 0.92rem; font-weight: 600;
  padding-right: 3.5rem; letter-spacing: 0.02em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* inner contains the text twice */
}

/* ---------- Testimonials carousel ---------- */
.carousel {
  position: relative; max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; height: auto; object-fit: contain; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 1.05rem;
  background: rgba(253, 251, 245, 0.85); color: var(--teal-deep);
  box-shadow: var(--shadow); transition: background .25s, color .25s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--saffron); color: #fff; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots { display: flex; gap: 8px; justify-content: center; padding: 0.9rem 0 1rem; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--saffron-soft); transition: background .25s, transform .25s;
}
.carousel-dots button.active { background: var(--saffron); transform: scale(1.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #eef3ef; text-align: center; padding: 3rem 0; }
.footer-quote { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; margin-bottom: 0.8rem; }
.footer-copy { margin-top: 1rem; font-size: 0.85rem; color: rgba(238, 243, 239, 0.7); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid rgba(61,66,56,.1);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { padding: 0.7rem 1.4rem; }
  .nav-links a { display: block; }
  .nav-cta { text-align: center; }
  .section { padding: 3.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-inner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-track { transition: none; }
}
