/* ==========================================================
   Project Aashirwad | Sunshine Social Foundation
   Palette drawn from the logo: sunrise orange, sun yellow,
   teal and navy, on a warm white base.
   ========================================================== */

:root {
  --orange: #E8651C;
  --orange-dark: #C4500E;
  --sun: #F5A623;
  --teal: #12808A;
  --teal-dark: #0C5F67;
  --navy: #13306B;
  --navy-dark: #0B1F45;
  --ink: #1F2A37;
  --muted: #5B6675;
  --bg: #FFFFFF;
  --cream: #FFF8EF;
  --line: #EADFD0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(19, 48, 107, 0.08);
  --shadow-sm: 0 4px 14px rgba(19, 48, 107, 0.07);
  --container: 1180px;
  --header-h: 76px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy-dark);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sun); }

p { margin: 0 0 1em; }
.small { font-size: 0.9rem; color: var(--muted); }
.center { text-align: center; }
.center .cta-row { justify-content: center; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.narrow { max-width: 780px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tint { background: var(--cream); }
.section-head { max-width: 760px; margin: 0 auto 40px; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 12px;
}
.eyebrow.light { color: var(--sun); }

.tagline { font-weight: 600; color: var(--teal-dark); }
.callout {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  border-left: 4px solid var(--sun);
  padding: 8px 0 8px 18px;
  margin-top: 24px;
}
.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 101, 28, 0.28);
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--navy-dark); }
.btn-light:hover { background: var(--sun); color: var(--navy-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-dark); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(19, 48, 107, 0.05);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-dark);
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 0.98rem; font-weight: 700; }
.brand-text small { font-size: 0.78rem; color: var(--orange-dark); font-weight: 600; letter-spacing: 0.03em; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 92% -10%, rgba(245, 166, 35, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(18, 128, 138, 0.14), transparent 60%),
    linear-gradient(180deg, #FFFDF9 0%, #FFF6EA 100%);
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 14px; }
.hero-media { position: relative; }
.media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.25), rgba(18, 128, 138, 0.25)),
    repeating-linear-gradient(45deg, #FBEBD6 0 14px, #F7DFBE 14px 28px);
  border: 2px dashed rgba(19, 48, 107, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}
.media-placeholder.small { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); box-shadow: none; }

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.stat-stack { display: grid; gap: 20px; }
.big-stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--teal);
}
.big-stat.accent { border-left-color: var(--sun); }
.big-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
}
.big-label { color: var(--muted); }

.purpose {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--teal-dark);
  border: 0;
  margin: 28px 0;
  padding: 0;
}

/* ---------- Impact ---------- */
.impact { background: linear-gradient(180deg, #fff 0%, #F4F8FB 100%); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.impact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--orange);
}
.impact-card:nth-child(2) { border-top-color: var(--teal); }
.impact-card:nth-child(3) { border-top-color: var(--sun); }
.impact-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}
.impact-card h3 { color: var(--muted); font-weight: 500; font-size: 1rem; margin: 0; }
.impact-note {
  max-width: 760px;
  margin: 36px auto 12px;
  text-align: center;
  color: var(--ink);
}
.source-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card p { margin-bottom: 0; color: var(--muted); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(232, 101, 28, 0.18));
  color: var(--orange-dark);
}
.card.option { display: flex; flex-direction: column; }
.card.option p { flex: 1; margin-bottom: 20px; }
.option-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.1em;
}
.card.option h3 { margin-top: 6px; }

/* ---------- Stories ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.story-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.story-card figcaption { padding: 18px 20px 22px; }
.story-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.story-card .meta { font-size: 0.88rem; color: var(--muted); margin: 0; }
.story-card .media-placeholder { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}
.about-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.about-block p { margin: 0; color: var(--ink); }
.values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 32px;
}
.values li {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Support ---------- */
.support {
  background: linear-gradient(135deg, #FFF3E2 0%, #EAF6F6 100%);
}
.qr-card {
  margin: 0 auto;
  width: min(100%, 320px);
  background: #fff;
  padding: 14px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.qr-card img { border-radius: 12px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin-bottom: 32px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Closing ---------- */
.closing {
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal-dark) 100%);
  color: #E9F1FF;
  padding: clamp(64px, 9vw, 104px) 0;
}
.closing h2 { color: #fff; max-width: 820px; margin-left: auto; margin-right: auto; }
.closing p { max-width: 680px; margin-left: auto; margin-right: auto; color: #D6E2F5; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-list span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; word-break: break-word; }

.enquiry-form {
  background: #fff;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.enquiry-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label, .checkbox span { font-weight: 500; color: var(--navy-dark); }
.field label { display: block; margin-bottom: 6px; }
.field label .optional { color: var(--muted); font-weight: 400; }
.field label span { color: var(--orange-dark); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #FCFBF9;
  border: 1.5px solid #D9D2C7;
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 128, 138, 0.15);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #C0392B; background: #FFF7F6; }
.error {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: #B42318;
}
.error:empty { display: none; }
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 8px;
  cursor: pointer;
}
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.enquiry-form .btn { margin-top: 12px; }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #B42318; }
.form-status.busy { color: var(--muted); }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #C9D5E8;
  padding-top: 56px;
  font-size: 0.95rem;
}
.site-footer a { color: #E9F1FF; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand img {
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  margin-bottom: 14px;
}
.footer-brand p { margin-bottom: 8px; }
.site-footer h4 { color: var(--sun); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.site-footer ul.plain li { color: #C9D5E8; }
.social { display: flex !important; flex-direction: row; gap: 14px !important; }
.social a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 20px 28px;
  font-size: 0.88rem;
  color: #9FB0CC;
}
.legal p { margin: 4px 0; }

/* Placeholders are visibly marked until the Foundation confirms content */
[data-placeholder] { outline: 1px dashed rgba(245, 166, 35, 0.6); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: 0.9rem; }
  .card-grid, .story-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 20px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(19, 48, 107, 0.12);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-cta { width: 100%; }

  .hero-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .media-placeholder { aspect-ratio: 16 / 10; }
  .impact-grid { grid-template-columns: 1fr; }
  .qr-card { order: -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: min(100% - 32px, var(--container)); }
  .brand-text small { display: none; }
  .brand img { width: 42px; height: 42px; }
  .card-grid, .story-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .btn { white-space: normal; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .big-stat { padding: 24px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* prevents iOS zoom */
}
