/* ══════════════════════════════════════════════════════════════
   SAATHI EDUCATION CONSULTANCY — SHARED STYLESHEET
   ══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --ink:        #0D1B2A;
  --ink-soft:   #3A4A5C;
  --ink-muted:  #7A8A9A;
  --page:       #F7F5F0;
  --cream:      #EDE9E0;
  --teal:       #0B6E6E;
  --teal-mid:   #138585;
  --teal-light: #E0F2F2;
  --teal-dark:  #074F4F;
  --amber:      #D97706;
  --amber-warm: #FEF3C7;
  --white:      #FFFFFF;
  --red:        #DC2626;
  --green:      #16A34A;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --shadow-sm:  0 1px 3px rgba(13,27,42,.08);
  --shadow-md:  0 4px 16px rgba(13,27,42,.10);
  --shadow-lg:  0 12px 40px rgba(13,27,42,.14);
  --font-head:  'Fraunces', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --max:        1200px;
  --nav-h:      72px;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--page); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── UTILITIES ────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); padding: 6px 14px;
  background: var(--teal-light); border-radius: 20px; margin-bottom: 20px;
}
.section-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.section-label.light { background: rgba(255,255,255,.15); color: var(--white); }
.section-label.light::before { background: var(--white); }

.section-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.section-title.light { color: var(--white); }
.section-sub { font-size: 17px; color: var(--ink-soft); line-height: 1.7; max-width: 560px; }
.section-sub.light { color: rgba(255,255,255,.78); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white);
  font-size: 15px; font-weight: 500; padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11,110,110,.25); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--teal);
  font-size: 15px; font-weight: 500; padding: 13px 27px;
  border-radius: var(--radius-md); border: 1.5px solid var(--teal);
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--teal-light); }

.btn-amber {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--white);
  font-size: 15px; font-weight: 600; padding: 15px 32px;
  border-radius: var(--radius-md);
  transition: background .2s, transform .15s;
}
.btn-amber:hover { background: #B45309; transform: translateY(-1px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--teal);
  font-size: 15px; font-weight: 600; padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: background .2s, transform .15s;
}
.btn-white:hover { background: var(--teal-light); transform: translateY(-1px); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulseDot { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.4); opacity:.6; } }

.fade-up { animation: fadeUp .6s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }
.fade-up-d4 { animation-delay: .4s; }

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247,245,240,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13,27,42,.06);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 16px rgba(13,27,42,.09); }

.nav-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  width: 38px; height: 38px; background: var(--teal);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 22px; height: 22px; fill: white; }
.nav-logo-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--teal); letter-spacing: -.02em; }
.nav-logo-tagline { font-size: 11px; color: var(--ink-muted); line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--teal-light); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-whatsapp {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #15803d;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: #dcfce7; transition: background .2s;
}
.nav-whatsapp:hover { background: #bbf7d0; }
.nav-book {
  font-size: 13px; font-weight: 600; color: var(--white);
  padding: 10px 20px; background: var(--teal);
  border-radius: var(--radius-sm); transition: background .2s;
}
.nav-book:hover { background: var(--teal-mid); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; width: 32px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--cream);
  padding: 20px 24px 28px; box-shadow: var(--shadow-lg);
  z-index: 999; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; animation: fadeIn .2s ease; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 12px 14px; border-radius: var(--radius-sm); transition: background .2s; }
.mobile-menu a:hover { background: var(--teal-light); color: var(--teal); }
.mobile-menu-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--cream); }

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 72px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-mid) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page-hero-inner { position: relative; max-width: 720px; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.page-hero-breadcrumb a:hover { color: white; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; color: white; line-height: 1.15; margin-bottom: 20px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.8); line-height: 1.7; max-width: 560px; }

/* ── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a5a5a 0%, var(--teal) 50%, var(--teal-mid) 100%);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.cta-text p { font-size: 16px; color: rgba(255,255,255,.8); max-width: 440px; }
.cta-note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.65); text-align: center; }

/* ── FORM ELEMENTS ────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; display: block; }
.form-label span { color: var(--amber); }
.form-input, .form-select, .form-textarea {
  width: 100%; font-family: inherit; font-size: 14px;
  padding: 12px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--cream); background: var(--page);
  color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,110,110,.1);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%237A8A9A' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 16px; background: var(--teal); color: white;
  font-family: inherit; font-size: 16px; font-weight: 600;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.form-submit:hover { background: var(--teal-mid); transform: translateY(-1px); }
.form-submit:disabled { background: var(--ink-muted); transform: none; cursor: not-allowed; }

/* ── CARDS ────────────────────────────────────────────────── */
.card-base {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--cream); padding: 28px;
  transition: box-shadow .25s, transform .2s;
}
.card-base:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Tags / badges */
.tag { font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 20px; }
.tag-teal  { background: var(--teal-light);  color: var(--teal); }
.tag-amber { background: var(--amber-warm);  color: var(--amber); }
.tag-ink   { background: var(--cream);       color: var(--ink-soft); }
.tag-green { background: #dcfce7;            color: var(--green); }
.tag-red   { background: #fee2e2;            color: var(--red); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-mark { width: 34px; height: 34px; background: var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-logo-mark svg { width: 20px; height: 20px; fill: white; }
.footer-logo-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: white; letter-spacing: -.02em; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background .2s; cursor: pointer; color: white;
}
.footer-social:hover { background: var(--teal); }
.footer-col h4 { font-size: 13px; font-weight: 600; color: white; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-newsletter-wrap input {
  width: 100%; padding: 10px 14px; margin-bottom: 8px;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: white; font-family: inherit; font-size: 13px; outline: none;
  transition: border-color .2s;
}
.footer-newsletter-wrap input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter-wrap input:focus { border-color: var(--teal); }
.footer-newsletter-wrap button {
  width: 100%; padding: 10px; background: var(--teal); color: white;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .2s;
}
.footer-newsletter-wrap button:hover { background: var(--teal-mid); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom a:hover { color: white; }

/* ── FLOATING WHATSAPP ────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); cursor: pointer;
  animation: float 3s ease-in-out infinite;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-4px) !important; animation: none; }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,27,42,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 44px; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg); animation: fadeUp .3s ease; position: relative;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--page); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-soft); transition: background .2s;
}
.modal-close:hover { background: var(--cream); }
.modal-title { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 28px; }
.modal-step { display: none; }
.modal-step.active { display: block; }
.modal-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.modal-prog-dot { flex: 1; height: 3px; border-radius: 2px; background: var(--cream); transition: background .3s; }
.modal-prog-dot.done { background: var(--teal); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; }
  .modal { padding: 28px; }
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-muted);
  padding: 16px 0; margin-bottom: 8px;
}
.breadcrumb a { color: var(--ink-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--ink); font-weight: 500; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
