/* ==========================================================
   Ansheshwallah Education — style.css
   Brand: deep navy + gold. Mobile-first, no frameworks.
   ========================================================== */

:root {
  --navy-900: #0a1236;
  --navy-800: #0f1b4d;
  --navy-700: #16276b;
  --navy-600: #1f3590;
  --gold-500: #f5b301;
  --gold-400: #ffc933;
  --gold-600: #d99a00;
  --ink: #16193a;
  --muted: #5b6285;
  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --line: #e3e7f5;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 27, 77, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 27, 77, 0.14);
  --font-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Poppins", "Hind", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--navy-800); }
p { margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.narrow { width: min(820px, 92%); }
.center { text-align: center; margin-top: 36px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .tab:focus-visible, summary:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--gold-400); outline-offset: 2px;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 16px rgba(245, 179, 1, .35); }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy-800); }
.btn-outline.dark { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline.dark:hover { background: var(--navy-800); color: var(--white); }
.btn-ghost { color: var(--white); background: rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-900); color: #dfe5ff; font-size: 14px; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 56px; padding: 8px 0; animation: scroll 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; object-fit: contain; background: var(--navy-800); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 18px; color: var(--navy-800); }
.brand-text small { font-size: 11px; letter-spacing: .08em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold-500); transition: width .2s ease;
}
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 9px 18px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 3px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(245,179,1,.22), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(28px, 4.2vw, 46px); font-weight: 700; }
.hero .accent { color: var(--gold-400); }
.lead { font-size: 18px; color: #dfe5ff; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.stat-row li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 14px; }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--gold-400); }
.stat-row span { font-size: 13px; color: #cdd5ff; }

.hero-visual { position: relative; display: grid; place-items: center; }
.mentor-card {
  position: relative; width: min(360px, 100%); aspect-ratio: 4/5; border-radius: 28px; overflow: hidden;
  border: 4px solid var(--gold-500); box-shadow: var(--shadow-md); background: var(--navy-700);
}
.mentor-card img { width: 100%; height: 100%; object-fit: cover; }
.mentor-caption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; display: flex; flex-direction: column;
  background: linear-gradient(to top, rgba(10,18,54,.95), transparent);
}
.mentor-caption strong { font-family: var(--font-head); font-size: 18px; }
.mentor-caption span { font-size: 14px; color: var(--gold-400); }
.float-badge {
  position: absolute; background: var(--white); color: var(--navy-800); font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-md); animation: bob 4s ease-in-out infinite;
}
.b1 { top: 6%; left: -2%; }
.b2 { top: 46%; right: -4%; animation-delay: .8s; }
.b3 { bottom: 8%; left: 0; animation-delay: 1.6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Quick links ---------- */
.quick { margin-top: -38px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.q-ico { font-size: 28px; }
.quick-card strong { font-family: var(--font-head); color: var(--navy-800); }
.quick-card small { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 8px;
}
.eyebrow.light { color: var(--gold-400); }

/* ---------- Course tabs + grid ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.tab {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy-800);
  transition: all .15s ease;
}
.tab:hover { border-color: var(--navy-600); }
.tab.active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.course-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: fadeUp .35s ease both;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.course-card .badge {
  align-self: flex-start; font-size: 12px; font-weight: 600; font-family: var(--font-head);
  padding: 4px 10px; border-radius: 999px; background: #e8ecff; color: var(--navy-700);
}
.course-card .badge.free { background: #e1f7e8; color: #17703a; }
.course-card .c-ico { font-size: 30px; }
.course-card h3 { font-size: 18px; margin: 0; }
.course-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.course-card .btn { margin-top: 6px; padding: 10px 18px; font-size: 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Why / Resources ---------- */
.why-grid, .res-grid { display: grid; gap: 20px; }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.res-grid { grid-template-columns: repeat(3, 1fr); }
.why-card, .res-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.why-card span, .res-card span { font-size: 32px; display: block; margin-bottom: 8px; }
.why-card h3, .res-card h3 { font-size: 18px; }
.why-card p, .res-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- App band ---------- */
.app-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--white); padding: 64px 0; }
.app-band h2 { color: var(--white); font-size: clamp(24px, 3.2vw, 34px); }
.app-band p { color: #dfe5ff; }
.app-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center; }
.app-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-points li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 16px; font-weight: 600; text-align: center; }

/* ---------- Updates ---------- */
.update-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.update-card { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold-500); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.update-card .tag { font-size: 12px; font-weight: 600; font-family: var(--font-head); color: var(--gold-600); text-transform: uppercase; letter-spacing: .08em; }
.update-card h3 { font-size: 17px; margin: 6px 0; }
.update-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: var(--white); padding: 64px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3.2vw, 34px); }
.cta-band p { color: #cdd5ff; }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ticks li::before { content: "✓ "; color: var(--gold-400); font-weight: 700; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions small { color: #9aa5d6; font-size: 13px; line-height: 1.5; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo img { width: 100%; max-width: 380px; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; border: 4px solid var(--gold-500); box-shadow: var(--shadow-md); margin-inline: auto; }
.about-grid h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 16px; padding: 16px 28px 16px 0; list-style: none; position: relative; color: var(--navy-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold-600); transition: transform .2s ease; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #cdd5ff; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: #9aa5d6; }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer p { font-size: 14px; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.socials a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 20px 0 28px; font-size: 13px; color: #9aa5d6; }
.footer-bottom p { margin: 0 0 6px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.5);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .app-grid, .cta-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .mentor-card { width: min(280px, 80%); }
  .quick-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 4%; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 480px; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 14px 0 10px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 64px; }
  .quick-grid, .why-grid, .res-grid, .footer-grid, .ticks { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-badge { font-size: 12px; padding: 6px 10px; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
