/* ===========================================================
   Vidhai Foundation — stylesheet
   =========================================================== */

:root {
  --bg: #faf6ee;
  --bg-alt: #f1e9d8;
  --band-dark: #15261c;
  --band-dark-soft: #1d3327;
  --ink: #23291f;
  --muted: #5c6459;
  --heading: #17371f;
  --accent: #c1912f;
  --accent-dark: #9c7423;
  --line: #e3d9c2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 45px -25px rgba(23, 55, 31, 0.35);
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p { margin: 0 0 16px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.eyebrow.on-dark { color: var(--accent); }

.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #1c1305;
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }

.btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  border-color: var(--heading);
  color: var(--heading);
}
.btn-outline-dark:hover { background: var(--heading); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--heading);
  display: block;
  line-height: 1.1;
}
.brand-text .tagline {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-color: var(--accent); color: var(--heading); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  transition: 0.2s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, #eee2c4 0%, var(--bg) 55%);
  padding: 100px 0 110px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-actions .btn-outline-dark { border-color: rgba(23,55,31,0.35); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: 100%; }

/* Facts band */
.facts-band {
  background: var(--band-dark);
  color: #eef2ea;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  padding: 40px 0;
}
.facts-grid .fact-value {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.facts-grid .fact-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #cfd6c9;
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.story-art {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story-art svg { width: 100%; height: 100%; display: block; }
.story-copy .meaning {
  font-family: var(--serif);
  font-style: italic;
  color: var(--heading);
  font-size: 1.1rem;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 22px 0;
}

/* Focus areas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--white); }
.card p { margin-bottom: 0; }

/* Approach split */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.approach-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 32px;
  border: 1px solid var(--line);
}
.approach-col h3 { display: flex; align-items: center; gap: 10px; }
.approach-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.approach-col li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.approach-col li:first-of-type { border-top: none; padding-top: 4px; }
.approach-col li .dot {
  flex: none;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.team-card h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.team-card p {
  font-size: 0.92rem;
}
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--heading), var(--band-dark-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.team-avatar span {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.6rem;
}
.team-role {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.team-bio-pending {
  color: var(--muted);
  font-style: italic;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--band-dark) 0%, var(--band-dark-soft) 100%);
  color: #f4f1e6;
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d7ddd0; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-row:first-of-type { border-top: none; padding-top: 0; }
.contact-row svg { width: 20px; height: 20px; stroke: var(--accent-dark); flex: none; margin-top: 3px; }
.contact-row .label { font-weight: 700; color: var(--heading); display: block; font-size: 0.9rem; }

.contact-info { margin-top: 30px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-weight: 700;
  color: var(--heading);
  font-size: 0.86rem;
}
.form-field .optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
}
.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 145, 47, 0.18);
}
.contact-form .botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-submit { align-self: flex-start; border: none; cursor: pointer; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--heading); font-weight: 600; }
.form-status.error { color: #a4382a; font-weight: 600; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--band-dark);
  color: #c9cfc3;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .name {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.2rem;
}
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-mark { width: 28px; height: 28px; flex: none; }
.footer-brand p { color: #a9b1a1; max-width: 320px; margin-top: 10px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8b9384;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .story-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .story-grid { text-align: left; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .main-nav, .nav-cta .btn-outline-dark { display: none; }
  .nav-toggle { display: block; }
  .nav-cta.open + .main-nav,
  body.nav-open .main-nav {
    display: block;
  }
  body.nav-open .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px;
  }
  body.nav-open .main-nav ul { flex-direction: column; gap: 6px; }
  .cards-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (min-width: 761px) {
  .main-nav { display: block !important; }
}
