/* ============================================================
   SADUPYOG FOUNDATION — Stylesheet
   Design language: Sohrai mural art (Hazaribagh/Giridih, Jharkhand)
   Palette drawn from natural pigments: geru (red ochre), soot
   black, kaolin white, turmeric yellow on lime-washed mud walls.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Color tokens */
  --cream:        #EDE3CD; /* lime-washed wall */
  --cream-light:  #FAF6EA; /* kaolin white, card surface */
  --ochre:        #A23B26; /* geru / red ochre — primary */
  --ochre-dark:   #7C2A18; /* deep geru — hover/active */
  --ink:          #221A14; /* soot black — text & line art */
  --ink-soft:     #4A4038; /* softened ink for body copy */
  --turmeric:     #C28A28; /* turmeric — secondary accent */
  --turmeric-light: #E7C474;
  --line:         rgba(34, 26, 20, 0.14);

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Layout */
  --container: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--ochre); text-decoration: none; }
a:hover { color: var(--ochre-dark); }

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

img, svg { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--ochre);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--ochre);
  color: var(--cream-light);
}
.btn-primary:hover {
  background: var(--ochre-dark);
  border-color: var(--ochre-dark);
  color: var(--cream-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ochre);
}
.btn-outline:hover {
  background: var(--ochre);
  color: var(--cream-light);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-light);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 821px) {
  .nav-cta {
    display: inline-flex;
    margin-left: 8px;
  }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream-light);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav-links .nav-cta-mobile {
    display: block;
    padding: 14px 24px;
  }
}
@media (min-width: 821px) {
  .nav-cta-mobile { display: none; }
}

/* ---------- Comb-rake divider (signature element) ---------- */
.comb-divider {
  height: 46px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 64px 46px;
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: left center;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.comb-divider.is-visible {
  opacity: 1;
  transform: scaleX(1);
}
.comb-ochre {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='46' viewBox='0 0 64 46'%3E%3Cpath d='M0 8 Q16 -2 32 8 T64 8' stroke='%23A23B26' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 19 Q16 9 32 19 T64 19' stroke='%23A23B26' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 30 Q16 20 32 30 T64 30' stroke='%23A23B26' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 41 Q16 31 32 41 T64 41' stroke='%23A23B26' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.comb-ink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='46' viewBox='0 0 64 46'%3E%3Cpath d='M0 8 Q16 -2 32 8 T64 8' stroke='%23221A14' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 19 Q16 9 32 19 T64 19' stroke='%23221A14' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 30 Q16 20 32 30 T64 30' stroke='%23221A14' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 41 Q16 31 32 41 T64 41' stroke='%23221A14' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Dot border — kaolin finger-press dots */
.dot-border {
  height: 14px;
  background-image: radial-gradient(circle, var(--turmeric) 2.4px, transparent 2.6px);
  background-size: 20px 14px;
  background-position: center;
  opacity: 0.85;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background: var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ochre);
  display: block;
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Hero mural panel — built entirely from CSS/SVG, no photo assets */
.mural-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 40px -22px rgba(34, 26, 20, 0.35);
}
.mural-frame {
  width: 100%;
  height: 100%;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, var(--turmeric) 2px, transparent 2.2px);
  background-size: 26px 26px;
  background-position: 13px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head.left { margin: 0 0 44px; text-align: left; }

.bg-light { background: var(--cream-light); }
.bg-ink {
  background: var(--ink);
  color: var(--cream-light);
}
.bg-ink h2, .bg-ink h3 { color: var(--cream-light); }
.bg-ink p { color: rgba(250, 246, 234, 0.78); }

/* ---------- Sector / Program cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -20px rgba(34, 26, 20, 0.4);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.trust-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ochre); flex-shrink: 0;
}

/* ---------- Office bearers ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .people-grid { grid-template-columns: 1fr; }
}
.person-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--cream);
  border: 2.5px solid var(--ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ochre);
}
.person-card h3 { margin-bottom: 0.2em; font-size: 1.1rem; }
.person-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Registration table ---------- */
.reg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.reg-table tr { border-bottom: 1px solid var(--line); }
.reg-table tr:last-child { border-bottom: none; }
.reg-table td {
  padding: 16px 20px;
  vertical-align: top;
}
.reg-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  width: 42%;
  white-space: nowrap;
}
.reg-table td:last-child {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  word-break: break-word;
}
@media (max-width: 600px) {
  .reg-table td:first-child { white-space: normal; width: 50%; }
  .reg-table td { padding: 12px 14px; font-size: 0.88rem; }
}

/* ---------- Timeline / story ---------- */
.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .story-block { grid-template-columns: 1fr; }
}

/* ---------- Donate page ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .donate-grid { grid-template-columns: 1fr; }
}
.amount-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}
.amount-btn {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 8px;
  border: 2px solid var(--line);
  background: var(--cream-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.amount-btn:hover { border-color: var(--ochre); }
.amount-btn.active {
  border-color: var(--ochre);
  background: var(--ochre);
  color: var(--cream-light);
}
.razorpay-slot {
  background: var(--cream-light);
  border: 1.5px dashed var(--ochre);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.donate-aside {
  background: var(--ink);
  color: var(--cream-light);
  border-radius: var(--radius);
  padding: 28px;
}
.donate-aside h3 { color: var(--cream-light); }
.donate-aside p { color: rgba(250, 246, 234, 0.78); font-size: 0.92rem; }
.bank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(250, 246, 234, 0.16);
  font-size: 0.88rem;
}
.bank-row span:first-child { color: rgba(250, 246, 234, 0.6); }
.bank-row span:last-child { font-family: var(--font-mono); text-align: right; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-item .ic {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--ochre);
}
.contact-item h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: 0.95rem; }
.contact-item p { margin: 0; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--cream-light);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ochre);
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 64px 24px;
}
.cta-band .btn-primary { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-light);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.site-footer h4 {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); font-size: 0.93rem; }
.site-footer a:hover { color: var(--ochre); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  user-select: none;
  -webkit-user-select: none;
}

/* Page header (interior pages) */
.page-header {
  padding: 56px 0 40px;
  background: var(--cream);
}
.page-header .eyebrow { margin-bottom: 10px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--ochre); }


.admin-star{
  color: var(--ochre);
  font-weight:700;
  font-size:1.1em;
  cursor:pointer;
  padding:0 4px;
}
