/* ============================================================
   Shiksha Sudhar Foundation — Landing Page Styles
   ============================================================ */

:root {
  /* Color tokens */
  --ink: #14213D;
  --ink-soft: #1F2E52;
  --marigold: #E8A33D;
  --marigold-dark: #C6812A;
  --green: #2F855A;
  --paper: #F6F7FB;
  --card: #FFFFFF;
  --border: #E3E6F0;
  --text: #2B2F3A;
  --text-muted: #666E7D;
  --shadow-sm: 0 2px 10px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 33, 61, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Type */
  --font-head: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin-top: 10px; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--marigold);
  color: #241705;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--marigold-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--marigold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.brand-text span { display: block; font-size: 0.78rem; color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--marigold);
  transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle.open span { opacity: 0; }
.nav-toggle.open::before { transform: rotate(45deg); }
.nav-toggle.open::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-dark { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 163, 61, 0.14);
  border: 1px solid rgba(232, 163, 61, 0.35);
  color: var(--marigold);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  max-width: 560px;
}
.hero p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 28px;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--marigold);
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.hero-visual {
  position: relative;
  height: 460px;
}
.photo-block {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, #24345c, #16213E);
}
.photo-block.p1 { width: 68%; height: 300px; top: 0; right: 0; }
.photo-block.p2 { width: 52%; height: 200px; bottom: 0; left: 0; transform: rotate(-3deg); }
.photo-block.p3 {
  width: 150px; height: 150px;
  bottom: 30px; right: 18%;
  border-radius: var(--radius-md);
  background: var(--marigold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #241705; text-align: center; padding: 16px;
  transform: rotate(4deg);
}
.photo-block.p3 b { font-family: var(--font-head); font-size: 1.6rem; }
.photo-block.p3 span { font-size: 0.78rem; font-weight: 600; }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 20px;
}
.photo-placeholder svg { width: 40px; height: 40px; opacity: 0.7; }
.photo-placeholder small { font-size: 0.72rem; letter-spacing: 0.01em; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; margin-top: 24px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Mission strip ---------------- */
.mission {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mission-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow .2s ease, transform .2s ease;
}
.mission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mission-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(232, 163, 61, 0.14);
  color: var(--marigold-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.mission-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mission-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 800px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* ---------------- How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}
.step .step-num {
  counter-increment: step;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--marigold-dark);
  margin-bottom: 14px;
}
.step .step-num::before { content: "0" counter(step); margin-right: 8px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.step::after {
  content: "";
  position: absolute;
  top: 32px; right: -28px;
  width: 28px; height: 2px;
  background: var(--border);
}
.step:last-child::after { display: none; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

/* ---------------- Filter bar ---------------- */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
}
.filter-bar input { flex: 1 1 220px; }
.filter-bar select { flex: 1 1 160px; }
.filter-bar .btn { flex: 0 0 auto; }

/* ---------------- School cards ---------------- */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.school-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.school-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.school-photo {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, #EDEFF7, #E3E6F0);
}
.school-photo .photo-placeholder { color: #9AA1B2; }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
}
.badge.verified { color: var(--green); }
.badge.pending { color: #A15C00; }

.school-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.school-body .loc { font-size: 0.85rem; color: var(--text-muted); }
.school-body h3 { font-size: 1.08rem; margin-bottom: 0; }
.school-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.req-block { margin-top: auto; }
.req-title { font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; }
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 6px;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--marigold-dark), var(--marigold));
  border-radius: 999px;
  width: 0%;
  transition: width 1s ease;
}
.req-figures {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.req-figures b { color: var(--ink); }

.no-results { text-align: center; color: var(--text-muted); padding: 40px 0; display: none; }

@media (max-width: 960px) {
  .schools-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .schools-grid { grid-template-columns: 1fr; }
}

.view-all { text-align: center; margin-top: 40px; }

/* ---------------- Impact / trust ---------------- */
.trust {
  background: var(--ink);
  color: #fff;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.trust h2 { color: #fff; }
.trust p { color: rgba(255,255,255,0.75); }
.trust-list { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; }
.trust-list .dot {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232, 163, 61, 0.16);
  color: var(--marigold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.trust-list span { color: rgba(255,255,255,0.85); font-size: 0.96rem; }

.reg-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 28px;
}
.reg-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.reg-card dt { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
.reg-card dd { margin: 0; font-size: 0.88rem; color: #fff; font-weight: 500; }

@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------- CTA ---------------- */
.cta {
  background: linear-gradient(135deg, var(--marigold) 0%, var(--marigold-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #241705;
  margin: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.cta h2 { color: #241705; }
.cta p { color: rgba(36,23,5,0.75); max-width: 520px; margin: 0 auto 28px; }
.cta .btn-dark:hover { background: #000; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #0F1830;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--marigold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- WhatsApp floating button ---------------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
