/* ===========================================================
   CaringHandIndia, Inc. — Site Styles
   Palette:
     --navy       #1B2A41  primary / headers / nav
     --navy-deep  #10192A  footer / darkest surface
     --gold       #B8934A  accent, dividers, links
     --gold-soft  #E4D3AC  tints, hover backgrounds
     --ivory      #FAF6EE  page background (warm, card-stock feel)
     --charcoal   #2E2C28  body text
     --sage       #7C8B6A  secondary accent (growth / hope), used sparingly
   Type:
     Display: 'Playfair Display' (serif, matches wordmark letterforms)
     Body:    'Source Sans 3' (humanist sans, readable at small sizes)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --navy: #1B2A41;
  --navy-deep: #10192A;
  --gold: #B8934A;
  --gold-soft: #E4D3AC;
  --ivory: #FAF6EE;
  --charcoal: #2E2C28;
  --sage: #7C8B6A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1080px;
}

* { 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(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(184, 147, 74, 0.35);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.brand-text {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: #EDE6D6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold);
}

.nav-donate {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-donate:hover {
  background: var(--gold-soft);
  border-bottom: none !important;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #223757 100%);
  color: #F4EFE2;
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 140%;
  height: 60px;
  background: var(--ivory);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero h1 { color: #fff; }

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-soft);
  margin: 0.6rem 0 1.3rem;
}

.hero-lede {
  font-size: 1.08rem;
  max-width: 46ch;
  color: #DCD5C4;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual .logo-plate {
  background: radial-gradient(circle at 35% 30%, #2A4064, #16223650);
  border: 3px solid var(--gold);
  border-radius: 50%;
  padding: 1.4rem;
  width: min(320px, 80%);
}

.hero-visual img {
  border-radius: 50%;
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(184,147,74,0.4); }

.btn-outline {
  background: transparent;
  border-color: var(--gold-soft);
  color: #F4EFE2;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(255,255,255,0.06); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.section-intro {
  max-width: 62ch;
  font-size: 1.08rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.4rem 0 2.2rem;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-soft);
}
.section-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Pillars (cupped-hand arc cards) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.pillar-card {
  background: #fff;
  border-radius: 0 0 18px 18px;
  padding: 3.2rem 1.6rem 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 24px rgba(27,42,65,0.07);
}

/* the "cupped hand" arc: a scooped shape sitting atop each card, echoing
   the logo's hands-cupping-the-globe gesture as a structural device */
.pillar-card::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 60px;
  background: var(--navy);
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  box-shadow: 0 0 0 4px var(--ivory);
}

.pillar-icon {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  z-index: 2;
}

.pillar-card h3 { margin-top: 0.6rem; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--navy-deep);
  color: #EDE6D6;
  padding: 2.6rem 0;
}
.stats-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-soft);
}
.stats-strip span {
  font-size: 0.95rem;
  color: #C9C1AE;
}

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

/* Placeholder state — used until a real photo is supplied */
.photo-slot {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, #EFE7D3, #EFE7D3 10px, #E7DCC0 10px, #E7DCC0 20px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9C8A5E;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  border: 1px dashed #C9AF77;
}

/* Real photo state — a framed figure with caption, replaces .photo-slot */
.photo-real {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(27,42,65,0.1);
  background: #fff;
  margin: 0;
}
.photo-real .photo-img-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-real figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  border-top: 3px solid var(--gold-soft);
}

/* Square variant for single-photo spots (e.g. mission section) */
.photo-real.square .photo-img-frame {
  aspect-ratio: 1 / 1;
}
.photo-real.square {
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(27,42,65,0.12);
}
.photo-real.square img {
  object-position: 50% 35%;
}

/* Bias crop toward the lower part of a tall portrait photo in a landscape frame */
.photo-real img.obj-bottom {
  object-position: center 78%;
}

/* Real photo variant — same footprint as .photo-slot, but holding an
   actual image plus a short caption instead of the dashed placeholder */
figure.photo-real {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(27,42,65,0.1);
  background: #fff;
}
figure.photo-real .photo-img-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
figure.photo-real.square .photo-img-frame {
  aspect-ratio: 1 / 1;
}
figure.photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
figure.photo-real figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  background: #fff;
}

/* ---------- Quote / mission callout ---------- */
.callout {
  background: var(--gold-soft);
  border-left: 5px solid var(--gold);
  padding: 2rem 2.2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy-deep);
  margin: 2.5rem 0;
}

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Donate page ---------- */
.donate-hero {
  background: linear-gradient(180deg, var(--navy) 0%, #223757 100%);
  color: #F4EFE2;
  padding: 3.5rem 0 5rem;
  text-align: center;
  position: relative;
}
.donate-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 140%;
  height: 50px;
  background: var(--ivory);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.donate-hero h1 { color: #fff; }
.donate-hero p { max-width: 55ch; margin: 0 auto; color: #DCD5C4; }

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.payment-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(27,42,65,0.08);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.payment-card h3 {
  margin-bottom: 0.2rem;
}

.payment-card .method-tag {
  font-size: 0.8rem;
  color: var(--sage);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.qr-frame {
  background: var(--ivory);
  border: 2px solid var(--gold-soft);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
}
.qr-frame img { width: 220px; height: 220px; }

.payment-handle {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  word-break: break-word;
}

.placeholder-note {
  font-size: 0.85rem;
  color: #B0472F;
  background: #FBEAE5;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 1rem;
}

.donate-note {
  max-width: 68ch;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: #6B6656;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #C9C1AE;
  padding: 2.6rem 0;
  font-size: 0.92rem;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
footer.site-footer a { color: #EDE6D6; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav ul { gap: 1.1rem; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-lede { max-width: none; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .pillars, .payment-options, .photo-grid { grid-template-columns: 1fr; }
  .stats-strip .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; }
  nav.main-nav ul { gap: 0.9rem; font-size: 0.9rem; }
  section { padding: 3rem 0; }
}
