/* Sanjeevani Academy — teal (care) + coral (life) on warm cream. Fonts: Fraunces + Plus Jakarta Sans (OFL), self-hosted. */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/fonts/jakarta.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --teal: #0f4b48; --teal-2: #1b7c74; --teal-soft: #e3f1ee;
  --coral: #e2735f; --coral-2: #c4523f; --coral-soft: #fbe9e4;
  --ink: #1d2b2a; --muted: #5b6b69; --line: #e4dccf;
  --bg: #fbf7f1; --card: #ffffff; --soft: #f3ece1;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Telugu", sans-serif;
  --radius: 18px; --shadow: 0 1px 2px rgba(15,75,72,.06), 0 8px 28px rgba(15,75,72,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--teal-2); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; color: var(--teal); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-weight: 400; }
.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }

.preview { background: #2a1f1a; color: #fff; text-align: center; font: 600 .8rem/1.4 var(--sans); padding: 7px 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251,247,241,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); }
.brand img { border-radius: 12px; }
.brand span { display: flex; flex-direction: column; }
.brand b { font: 600 1.3rem/1.05 var(--serif); }
.brand i { font: 600 .74rem/1.2 var(--sans); color: var(--muted); font-style: normal; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { font: 600 .95rem/1 var(--sans); color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { background: var(--teal-soft); color: var(--teal); }
.nav .lang { border: 1.5px solid var(--teal-2); color: var(--teal); margin-left: 6px; }
@media (max-width: 860px) {
  .bar { padding: 10px 0 6px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -6px; padding-bottom: 6px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 9px 11px; font-size: .9rem; }
  .nav .lang { order: -1; margin-left: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 1rem/1.2 var(--sans); text-decoration: none;
  color: #fff; background: var(--coral-2); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: #a9412f; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.note { font-size: .9rem; color: var(--muted); }
.hero .note { color: #cfe5e1; }
.more { font-weight: 700; text-decoration: none; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(226,115,95,.28), transparent 60%), linear-gradient(160deg, #135e59, var(--teal) 55%, #0a3533); color: #fff; padding: 72px 0 80px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: #e4f2ef; max-width: 40ch; }
.hero-sm { padding: 56px 0 52px; }
.hero-sm .lead { max-width: 60ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0 56px; } }
.eyebrow { font: 700 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-2); margin: 0 0 12px; }
.eyebrow.light { color: #ffc2b5; }

.class-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.class-card h3 { font-size: 1.45rem; margin-bottom: .2em; }
.meta { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; font-size: .95rem; }
.meta li { display: flex; gap: 10px; align-items: flex-start; }
.meta .ico { color: var(--teal-2); margin-top: 3px; }
.tag { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-2);
  background: var(--coral-soft); padding: 7px 11px; border-radius: 999px; margin: 0 0 14px; }

/* sections */
.sec { padding: 72px 0; }
.sec.soft { background: var(--soft); }
.sec-head { max-width: 720px; margin-bottom: 30px; }
.lead-sm { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--teal-2); }
.card p { color: var(--muted); margin: 0; }
.card-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-soft); color: var(--teal); margin-bottom: 14px; }
.card-ico .ico { width: 24px; height: 24px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-top: 60px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font: 600 1.1rem/1 var(--serif); color: var(--teal); background: #fff; border: 1.5px solid var(--coral); }
.steps p { color: var(--muted); margin: 0; }

.band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--teal-soft);
  border: 1px solid #cbe4df; border-radius: 24px; padding: 32px; }
.band > div { max-width: 640px; }
.band p:last-child { margin-bottom: 0; }

.teacher { display: flex; gap: 24px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.avatar { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(150deg, var(--teal-2), var(--teal));
  color: #fff; font: 600 1.6rem/1 var(--serif); border: 4px solid var(--coral-soft); }
@media (max-width: 600px) { .teacher { flex-direction: column; padding: 22px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--teal-2); margin-top: 4px; }
.ticks.big li { font-size: 1.05rem; }
ul.prose:not(.ticks) { padding-left: 1.2em; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .97rem; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { width: 34%; color: var(--teal); font-weight: 700; }
.outline th { width: 22%; white-space: nowrap; }
.prices { max-width: 680px; margin-bottom: 18px; }
.prices td:nth-child(2) { font-size: 1.15rem; color: var(--coral-2); white-space: nowrap; }

.faq { display: grid; gap: 12px; max-width: 820px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 28px 14px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--coral-2); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

.prose { max-width: 70ch; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

.cta-band { background: linear-gradient(150deg, var(--teal), #0a3533); color: #e4f2ef; padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; }

.foot { background: #0a3533; color: #b9d3cf; padding: 56px 0 40px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 { font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #ffc2b5; margin-bottom: 14px; }
.foot a { display: block; color: #e4f2ef; text-decoration: none; padding: 4px 0; }
.foot a:hover { text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 1.2rem/1 var(--serif); color: #fff; }
.foot-brand img { border-radius: 9px; }
.fine { font-size: .84rem; color: #8fb2ad; }

/* Telugu: Fraunces has no Telugu letters, so Telugu headings use the system Telugu font. */
:lang(te) h1, :lang(te) h2, :lang(te) h3, :lang(te) .brand b { font-family: "Noto Sans Telugu", "Kohinoor Telugu", "Telugu Sangam MN", var(--sans); font-weight: 700; letter-spacing: 0; line-height: 1.4; }
:lang(te) body, :lang(te) { line-height: 1.75; }
:lang(te) .eyebrow { letter-spacing: .04em; }

/* sign-up form */
.form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; max-width: 760px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.form.lead label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--teal); }
.form.lead input, .form.lead select { font: 500 1rem var(--sans); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.form.lead input:focus, .form.lead select:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px var(--teal-soft); }
.form.lead .check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.form.lead .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal-2); }
.form.lead .btn, .form.lead .note { grid-column: 1 / -1; justify-self: start; }
.form.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form.lead { grid-template-columns: 1fr; padding: 20px; } }

a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
/* motion (light): scroll reveal, card lift, floating class card, leaf breathing */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.card, .class-card, details { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15,75,72,.06), 0 16px 36px rgba(15,75,72,.14); }
.hero .class-card { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.brand img { transition: transform .4s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.btn:active { transform: translateY(0) scale(.98); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .btn, .card, .class-card, details, .brand img { transition: none; }
  .hero .class-card { animation: none; } .reveal { opacity: 1; transform: none; }
}
