/* Chandransh Foundation — site design system */
:root {
  --brand: #2440a8;
  --brand-ink: #172a72;
  --brand-soft: #eef2ff;
  --cyan: #0ea5e9;
  --accent: #f97316;
  --accent-ink: #c2410c;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --surface: #f6f8fc;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.cf { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
.cf img { max-width: 100%; height: auto; display: block; }
.cf a { color: var(--brand); }
.cf h1, .cf h2, .cf h3, .cf h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
.cf p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(226,232,240,.8); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.site-header .logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav .nav-cta { display: flex; gap: 8px; margin-left: 10px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .nav .nav-cta { margin: 10px 0 0; flex-direction: column; }
  .nav .nav-cta .btn { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: 700 15px/1 var(--font); padding: 13px 22px; border-radius: 999px; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff !important; box-shadow: 0 6px 18px rgba(36,64,168,.28); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #fff !important; box-shadow: 0 6px 18px rgba(249,115,22,.3); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink) !important; }
.btn-stage { background: linear-gradient(135deg, #f59e0b, #e11d48); color: #fff !important; box-shadow: 0 8px 22px rgba(225,29,72,.35); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section.alt { background: var(--surface); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--muted); font-size: 18px; }
.lead { font-size: 19px; color: var(--muted); }
@media (max-width: 640px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(14,165,233,.18), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(249,115,22,.14), transparent 60%), linear-gradient(180deg, #f8faff, #fff); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); }
.hero h1 .hl { background: linear-gradient(90deg, var(--brand), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media .main { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.hero-media .float { position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px; }
.hero-media .float b { display: block; font-size: 22px; color: var(--ink); line-height: 1.1; }
.hero-media .f1 { left: -22px; bottom: 28px; }
.hero-media .f2 { right: -14px; top: 26px; }
.dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.dot svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 36px; }
  .hero-media .f1 { left: 8px; bottom: -18px; } .hero-media .f2 { right: 8px; top: -14px; }
}

/* Event banner strip */
.event-strip { background: linear-gradient(100deg, #3b0a1e, #7f1d1d 45%, #b45309); color: #fff; }
.event-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.event-strip p { margin: 0; font-weight: 600; }
.event-strip .tag { background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-right: 8px; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-soft); color: var(--brand); }
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.o { background: #fff7ed; color: var(--accent); }
.icon-tile.c { background: #ecfeff; color: #0891b2; }
.icon-tile.g { background: #f0fdf4; color: #16a34a; }

.media-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.media-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.media-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-card .body p { color: var(--muted); margin: 0 0 8px; }
.media-card .price { font-weight: 800; color: var(--accent); }
.media-card .body .btn { margin-top: auto; align-self: flex-start; }

.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(30px, 4vw, 44px); color: var(--brand); line-height: 1; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-weight: 600; font-size: 14px; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232440a8' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }

.rounded-img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-ink), var(--brand) 60%, #0b7cc0); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { color: #c7d2fe; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, #f3f6ff, #fff); padding: 64px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }

/* Gallery */
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry a { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; break-inside: avoid; background: var(--surface); }
.masonry img { width: 100%; transition: transform .35s; }
.masonry a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(2,6,23,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .x { top: 16px; right: 16px; } .lightbox .prev { left: 12px; } .lightbox .next { right: 12px; }

/* Prose (policy pages) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field label .req { color: var(--err); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .cf select, .cf textarea { width: 100%; font: 500 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.cf select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/20px no-repeat; padding-right: 40px; }
.input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36,64,168,.12); }
.field.invalid .input, .field.invalid select, .field.invalid textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(220,38,38,.08); }
.field .error { color: var(--err); font-size: 13px; font-weight: 600; display: none; }
.field.invalid .error { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.alert { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1230; color: #a5b4cf; padding: 72px 0 28px; font-size: 15px; }
.site-footer a { color: #cbd5f5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.site-footer .social a:hover { background: var(--brand); }
.site-footer .social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.site-footer .contact li { display: flex; gap: 10px; }
.site-footer .contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; gap: 32px; } }

.fab-wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(34,197,94,.4); z-index: 40; }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.muted { color: var(--muted); }
