/* Saksham Charitable Trust — brand palette (from official logo brand guide)
   Navy:  #2C3E57   Deep navy: #1A1245   Gold: #9C8B58   Background: #F9F7F7 */

:root {
  --navy: #2C3E57;
  --navy-deep: #1A1245;
  --gold: #9C8B58;
  --gold-light: #C9BA92;
  --bg: #F9F7F7;
  --bg-alt: #F1EEE7;
  --white: #FFFFFF;
  --text: #2C2A26;
  --text-muted: #6B6860;
  --border: #E4E0D6;
  --shadow: 0 8px 24px rgba(44, 62, 87, 0.08);
  --radius: 16px;
  --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-tagline: 'Montserrat', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
}

h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

.eyebrow {
  font-family: var(--font-tagline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section { padding: 80px 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(44, 62, 87, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-tagline);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
}

.nav-cta:hover { background: var(--navy) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
}

.hero-inner { max-width: 780px; margin: 0 auto; }

.hero h1 {
  font-size: 2.75rem;
  margin: 1rem 0 1.25rem;
}

.hero h1 span { color: var(--gold); }

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-tagline);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p { margin-bottom: 1rem; color: var(--text); }

.value-list { list-style: none; margin-top: 1.5rem; }

.value-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.value-list li:last-child { border-bottom: 1px solid var(--border); }

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-card dl { display: grid; gap: 12px; }
.about-card dt {
  font-family: var(--font-tagline);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}
.about-card dd { color: var(--text); margin-bottom: 8px; }

/* ---------- Programs ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.program-card:hover { transform: translateY(-4px); }

.program-icon { font-size: 2rem; margin-bottom: 12px; }
.program-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.section-note { color: var(--text-muted); margin-bottom: 1.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(26, 18, 69, 0.82), rgba(26, 18, 69, 0));
  color: var(--white);
  font-family: var(--font-tagline);
  font-size: 0.85rem;
  font-weight: 600;
}

.placeholder-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gold-light), var(--bg-alt));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: var(--font-tagline);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ---------- Donate ---------- */
.donate-inner { max-width: 640px; margin: 0 auto; text-align: center; }

.donate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 2rem auto;
  max-width: 360px;
}

.qr-code {
  width: 220px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.donate-note { font-size: 0.9rem; color: var(--text-muted); }
.donate-cta-note { color: var(--text-muted); margin-top: 1.25rem; }

.donate-or {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.75rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-list { list-style: none; }
.contact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 1px solid var(--border); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  align-self: start;
}

.contact-form-card h3 { margin-bottom: 0.75rem; }

.contact-form-card p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-form-link { display: inline-block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 32px 0;
  text-align: center;
}

.footer-inner p { font-size: 0.9rem; }
.footer-note { color: var(--gold-light); margin-top: 4px; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
  transform: translateY(-2px);
}

.social-links a.fb:hover, .social-links a.fb:focus-visible { background: #1877F2; }
.social-links a.ig:hover, .social-links a.ig:focus-visible {
  background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}
.social-links a.x:hover, .social-links a.x:focus-visible { background: #000000; }
.social-links a.yt:hover, .social-links a.yt:focus-visible { background: #FF0000; }

.footer-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-meta p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-meta p:last-child { border-right: none; }

.visitor-counter-img {
  vertical-align: middle;
  height: 20px;
  width: auto;
  display: inline-block;
  border-radius: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 16px;
  }

  .site-nav.open { display: flex; }

  .hero h1 { font-size: 2rem; }

  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }

  .footer-meta p {
    padding: 0;
    border-right: none;
  }
}
