/* =========================================================
   SUTRASHIKHA ACADEMY — Design System
   Brand: navy / gold / maroon / cream (carried from print identity)
   Type:  Playfair Display (display) + Inter (body/UI)
   Signature motif: yantra (ancient geometry) dissolving into a
   circuit grid (modern) — echoes "Master the Basics. Master the Future."
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- color tokens ---- */
  --navy-deep:   #1B3A5C;
  --navy:        #2C4C77;
  --navy-tint:   #E7EDF4;
  --gold:        #D9A441;
  --gold-light:  #EFCB80;
  --gold-tint:   #FBF1DE;
  --maroon:      #7E2E2A;
  --maroon-deep: #5E211E;
  --cream:       #FBF6EA;
  --cream-2:     #F5EEDC;
  --ink:         #2A2118;
  --muted:       #6B5F4A;
  --white:       #FFFFFF;
  --line:        rgba(27,58,92,0.12);

  /* ---- type ---- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- scale ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  --step-5:  clamp(3rem, 2.2rem + 3.6vw, 4.8rem);

  /* ---- layout ---- */
  --container: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 10px 30px rgba(27,58,92,0.10);
  --shadow-pop: 0 18px 44px rgba(27,58,92,0.18);
  --nav-h: 84px;
}

/* ---------------- reset ---------------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}
body{ margin:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; }
h1,h2,h3,h4,p{ margin:0; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: var(--step-0);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
}

.container{
  width:100%;
  max-width: var(--container);
  margin-inline:auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

h1,h2,h3,h4{ font-family: var(--font-display); color: var(--navy-deep); font-weight:700; line-height:1.15; }
h1{ font-size: var(--step-5); }
h2{ font-size: var(--step-4); }
h3{ font-size: var(--step-2); }
h4{ font-size: var(--step-1); }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body); font-weight:700; font-size: var(--step--1);
  letter-spacing:2.2px; text-transform:uppercase; color: var(--maroon);
}
.eyebrow::before{ content:""; width:26px; height:2px; background: var(--gold); display:inline-block; }

.lede{ color: var(--muted); font-size: var(--step-1); max-width:60ch; }

:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; border-radius:4px; }

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family: var(--font-body); font-weight:700; font-size: var(--step--1);
  letter-spacing:0.3px; padding: 15px 28px; border-radius: 999px;
  border:2px solid transparent; cursor:pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-card); }
.btn-primary:hover{ background: var(--gold-light); box-shadow: var(--shadow-pop); }
.btn-outline{ background: transparent; border-color: var(--navy-deep); color: var(--navy-deep); }
.btn-outline:hover{ background: var(--navy-deep); color: var(--white); }
.btn-outline.on-dark{ border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline.on-dark:hover{ background: var(--white); color: var(--navy-deep); }
.btn-ghost{ background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover{ background: rgba(255,255,255,0.22); }
.btn-block{ width:100%; }
.btn-sm{ padding:11px 20px; font-size:0.82rem; }

/* ---------------- header / nav ---------------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: rgba(251,246,234,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  height: var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand img{ width:52px; height:52px; border-radius:50%; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text .name{ font-family: var(--font-display); font-weight:700; font-size:1.28rem; color: var(--navy-deep); }
.brand-text .kannada{ font-size:0.66rem; letter-spacing:0.5px; color: var(--muted); font-weight:600; }

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links a{
  padding:10px 16px; border-radius:999px; font-weight:600; font-size:0.94rem; color: var(--navy-deep);
  transition: background-color .16s ease, color .16s ease;
}
.nav-links a:hover{ background: var(--navy-tint); }
.nav-links a.active{ background: var(--navy-deep); color: var(--white); }

.nav-cta{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none; width:46px; height:46px; border-radius:12px; border:1.5px solid var(--line);
  background: var(--white); align-items:center; justify-content:center; cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:20px; height:2px; background: var(--navy-deep); position:relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: rotate(45deg); top:0; }
.nav-toggle[aria-expanded="true"] span::after{ transform: rotate(-45deg); top:0; }

@media (max-width: 900px){
  .nav-links, .nav-cta .btn-outline{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-links.open{
    display:flex; flex-direction:column; align-items:stretch; gap:2px;
    position:absolute; top: var(--nav-h); left:0; right:0; background: var(--cream);
    padding:14px clamp(20px,5vw,48px) 22px; border-bottom:1px solid var(--line); box-shadow: var(--shadow-card);
  }
  .nav-links.open a{ padding:14px 16px; }
}

/* ---------------- hero + yantra/circuit signature motif ---------------- */
.hero{
  position:relative; overflow:hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: clamp(64px,9vw,120px) 0 clamp(56px,8vw,96px);
}
.hero .container{ position:relative; z-index:2; }
.hero-motif{ position:absolute; inset:0; z-index:1; opacity:0.5; }
.hero-eyebrow{ color: var(--gold-light); }
.hero-eyebrow::before{ background: var(--gold-light); }
.hero h1{ color: var(--white); margin-top:14px; max-width:16ch; }
.hero h1 em{ font-style:italic; color: var(--gold-light); }
.hero .lede{ color: rgba(255,255,255,0.82); margin-top:20px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.hero-stats{ display:flex; flex-wrap:wrap; gap:clamp(24px,4vw,56px); margin-top:56px; padding-top:28px; border-top:1px solid rgba(255,255,255,0.18); }
.hero-stat .num{ font-family:var(--font-display); font-size:var(--step-3); color:var(--gold-light); font-weight:700; }
.hero-stat .label{ font-size:0.82rem; letter-spacing:0.5px; color:rgba(255,255,255,0.75); text-transform:uppercase; font-weight:600; }

.page-hero{
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color:var(--white); padding: clamp(52px,7vw,84px) 0 clamp(44px,6vw,64px); position:relative; overflow:hidden;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color:var(--white); margin-top:12px; }
.page-hero .lede{ color:rgba(255,255,255,0.82); margin-top:16px; }
.breadcrumb{ font-size:0.85rem; color: rgba(255,255,255,0.65); margin-bottom:10px; }
.breadcrumb a:hover{ color:var(--gold-light); }

/* ---------------- sections ---------------- */
section{ padding: clamp(56px,8vw,104px) 0; }
.section-head{ max-width:720px; margin-bottom:44px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-alt{ background: var(--cream-2); }
.section-navy{ background: var(--navy-deep); color:var(--white); }
.section-navy h2, .section-navy h3{ color: var(--white); }
.section-navy .lede{ color: rgba(255,255,255,0.78); }

.divider-motif{ display:flex; align-items:center; justify-content:center; gap:18px; margin: 8px 0 0; }
.divider-motif .ln{ height:1px; width:70px; background: var(--gold); opacity:0.6; }
.divider-motif svg{ width:20px; height:20px; }

/* ---------------- grid / cards ---------------- */
.grid{ display:grid; gap:28px; }
.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; } }

.card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius-m);
  padding:32px; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.program-card{ display:flex; flex-direction:column; gap:16px; }
.program-card .icon{
  width:58px; height:58px; border-radius:14px; background: var(--navy-deep);
  display:flex; align-items:center; justify-content:center; color:var(--gold-light);
}
.program-card .icon svg{ width:28px; height:28px; }
.program-card h3{ font-size:var(--step-1); }
.program-card ul{ display:flex; flex-direction:column; gap:9px; margin-top:4px; }
.program-card ul li{ display:flex; gap:10px; align-items:flex-start; color:var(--ink); font-size:0.95rem; }
.program-card ul li::before{ content:"✓"; color:var(--gold); font-weight:800; flex-shrink:0; margin-top:1px; }
.program-card .card-foot{ margin-top:auto; padding-top:10px; }

.badge-row{ display:flex; flex-wrap:wrap; gap:12px; }
.badge{
  padding:10px 20px; border-radius:999px; background: var(--navy-deep); color: var(--gold-light);
  font-weight:700; font-size:0.85rem; letter-spacing:0.4px; border:1px solid var(--navy);
}

.stat-strip{ display:flex; flex-wrap:wrap; gap:clamp(28px,5vw,64px); justify-content:center; }
.stat{ text-align:center; }
.stat .num{ font-family:var(--font-display); font-size:var(--step-3); color:var(--navy-deep); font-weight:700; }
.stat .label{ font-size:0.85rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.5px; font-weight:600; margin-top:4px; }

/* ---------------- testimonials ---------------- */
.testimonial-card{
  background: var(--gold-tint); border:1px solid rgba(217,164,65,0.35); border-radius: var(--radius-m);
  padding:30px; display:flex; flex-direction:column; gap:16px;
}
.testimonial-card .quote-mark{ font-family:var(--font-display); font-size:2.6rem; color:var(--gold); line-height:1; }
.testimonial-card p{ color:var(--ink); font-size:1rem; }
.testimonial-card .who{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.testimonial-card .avatar{
  width:42px; height:42px; border-radius:50%; background: var(--navy-deep); color:var(--gold-light);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700;
}
.testimonial-card .who .name{ font-weight:700; color:var(--navy-deep); font-size:0.92rem; }
.testimonial-card .who .meta{ font-size:0.8rem; color:var(--muted); }
.testimonial-note{
  margin-top:20px; font-size:0.85rem; color:var(--muted); font-style:italic; text-align:center;
}

/* ---------------- achievement / gallery ---------------- */
.achieve-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:900px){ .achieve-grid{ grid-template-columns:repeat(2,1fr); } }
.achieve-item{ border-radius: var(--radius-m); overflow:hidden; position:relative; box-shadow: var(--shadow-card); aspect-ratio:3/4; }
.achieve-item img{ width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.achieve-item:hover img{ transform:scale(1.06); }
.achieve-item .cap{
  position:absolute; left:0; right:0; bottom:0; padding:16px 14px 12px;
  background: linear-gradient(0deg, rgba(27,58,92,0.88), rgba(27,58,92,0));
  color:var(--white); font-size:0.82rem; font-weight:600;
}

/* ---------------- about / director ---------------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
@media (max-width:860px){ .split{ grid-template-columns:1fr; gap:32px; } }
.split.reverse .split-media{ order:2; }
.split-media img{ border-radius: var(--radius-l); box-shadow: var(--shadow-pop); width:100%; aspect-ratio:4/5; object-fit:cover; }
.split-media.wide img{ aspect-ratio:16/10; }

.director-card{
  display:flex; gap:24px; align-items:center; background:var(--white); border:1px solid var(--line);
  border-radius: var(--radius-m); padding:28px; box-shadow: var(--shadow-card);
}
.director-card img{ width:120px; height:120px; border-radius:50%; object-fit:cover; border:3px solid var(--gold); flex-shrink:0; }
.director-card .role{ font-size:0.78rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--maroon); font-weight:700; }
.director-card h3{ margin-top:4px; }
.director-card .cred{ color:var(--muted); font-size:0.92rem; margin-top:6px; }

/* ---------------- timeline (why choose us) ---------------- */
.feature-row{ display:flex; gap:18px; align-items:flex-start; }
.feature-row .num{
  width:44px; height:44px; border-radius:50%; background: var(--gold-tint); color:var(--maroon);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; flex-shrink:0;
}
.feature-row h4{ margin-bottom:6px; }
.feature-row p{ color:var(--muted); font-size:0.95rem; }

/* ---------------- CTA band ---------------- */
.cta-band{
  background: var(--gold); border-radius: var(--radius-l); padding: clamp(36px,6vw,60px);
  display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:space-between;
}
.cta-band h2{ font-size:var(--step-2); }
.cta-band .lede{ color: var(--maroon-deep); }

/* ---------------- forms ---------------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1/-1; }
.field label{ font-weight:700; font-size:0.85rem; color: var(--navy-deep); }
.field input, .field select, .field textarea{
  font-family: var(--font-body); font-size:1rem; padding:14px 16px; border-radius: var(--radius-s);
  border:1.5px solid var(--line); background: var(--white); color:var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,0.22);
}
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:0.82rem; color: var(--muted); }
.form-status{ font-size:0.9rem; font-weight:600; padding:12px 16px; border-radius: var(--radius-s); display:none; }
.form-status.show{ display:block; }
.form-status.ok{ background: rgba(90,140,90,0.12); color:#2c5a2c; }
.form-status.err{ background: rgba(150,60,60,0.12); color:#8a2c2c; }

/* ---------------- contact info blocks ---------------- */
.contact-info{ display:flex; flex-direction:column; gap:22px; }
.contact-row{ display:flex; gap:16px; align-items:flex-start; }
.contact-row .ic{
  width:46px; height:46px; border-radius:12px; background: var(--navy-deep); color:var(--gold-light);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-row .ic svg{ width:22px; height:22px; }
.contact-row h4{ font-size:1.02rem; }
.contact-row p, .contact-row a{ color: var(--muted); font-size:0.95rem; }
.contact-row a:hover{ color: var(--maroon); }
.map-wrap{ border-radius: var(--radius-m); overflow:hidden; box-shadow: var(--shadow-card); border:1px solid var(--line); }
.map-wrap iframe{ width:100%; height:340px; border:0; display:block; }

/* ---------------- footer ---------------- */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.82); padding: 64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-brand img{ width:44px; height:44px; border-radius:50%; }
.footer-brand .name{ font-family:var(--font-display); font-weight:700; color:var(--white); font-size:1.15rem; }
.site-footer p{ font-size:0.9rem; line-height:1.7; }
.site-footer h4{ color: var(--gold-light); font-size:0.85rem; letter-spacing:1.2px; text-transform:uppercase; margin-bottom:16px; font-family:var(--font-body); }
.footer-links{ display:flex; flex-direction:column; gap:10px; }
.footer-links a{ font-size:0.92rem; transition:color .15s ease; }
.footer-links a:hover{ color: var(--gold-light); }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,0.25);
  display:flex; align-items:center; justify-content:center; transition: background-color .15s ease, border-color .15s ease;
}
.footer-social a:hover{ background: var(--gold); border-color: var(--gold); color:var(--navy-deep); }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{
  margin-top:48px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.14);
  display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:0.82rem; color:rgba(255,255,255,0.6);
}

/* ---------------- whatsapp float ---------------- */
.whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:200; width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28); transition: transform .18s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width:30px; height:30px; }

/* ---------------- reveal-on-scroll ---------------- */
/* Hidden state only applies once JS confirms it will reveal these (see .js class below).
   Without JS, or if anything goes wrong, content stays fully visible by default. */
.js .reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1 !important; transform:none !important; }

/* ---------------- misc utility ---------------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.tag-line{ font-family: var(--font-display); font-style:italic; color: var(--maroon); font-size: var(--step-1); }
.kannada-inline{ font-size:0.7em; color:var(--muted); font-weight:600; }
