/* ============================================
   IRAYA SEVA FOUNDATION — Design Tokens
   Palette: Mahi River & 100 Islands, Banswara
   ============================================ */
:root {
  --teal-deep: #0B4F4A;
  --teal-mid: #106b63;
  --saffron: #F2A93B;
  --coral: #E85D4E;
  --cream: #FBF7EF;
  --indigo-text: #1B2A4A;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 18px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--indigo-text);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; }

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

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

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.6em;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 79, 74, 0.1);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--teal-deep);
}

.brand .dot-mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 6px 2px 0 -2px var(--coral), -6px -2px 0 -2px var(--teal-mid);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a { text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--coral); }

.nav-cta {
  background: var(--teal-deep);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--coral); transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--teal-deep); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(11,79,74,0.1);
  }
}

/* ---------- Hero with river + islands signature ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--teal-mid) 100%);
  color: var(--cream);
  padding: 90px 0 0;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 140px;
}

.hero-eyebrow { color: var(--saffron); }

.hero h1 { color: var(--white); max-width: 14ch; }

.hero p.lede {
  max-width: 46ch;
  font-size: 1.15rem;
  color: rgba(251,247,239,0.88);
}

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--saffron); color: var(--teal-deep); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(242,169,59,0.35); }
.btn-outline { border-color: rgba(251,247,239,0.5); color: var(--cream); }
.btn-outline:hover { border-color: var(--cream); }

/* floating islands (dots) representing the 100 islands of Banswara */
.islands { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.island-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* river wave divider at base of hero */
.river-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}
.river-wave svg { width: 100%; height: auto; display: block; }
.river-wave .flow {
  animation: flow 14s linear infinite;
}
@keyframes flow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .island-dot, .river-wave .flow { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(11,79,74,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(11,79,74,0.12); }

.pillar-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
  margin-bottom: 16px;
  color: var(--white);
}
.mark-1 { background: var(--saffron); }
.mark-2 { background: var(--coral); }
.mark-3 { background: var(--teal-mid); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 24px;
}
.stat { min-width: 140px; }
.stat .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--teal-deep); }
.stat .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Involve / dual CTA ---------- */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 700px) { .involve-grid { grid-template-columns: 1fr; } }

.involve-card {
  border-radius: var(--radius);
  padding: 36px;
  color: var(--white);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.involve-card:hover { transform: translateY(-6px); }
.involve-card.connect { background: linear-gradient(135deg, var(--teal-deep), var(--teal-mid)); }
.involve-card.volunteer { background: linear-gradient(135deg, var(--coral), var(--saffron)); }
.involve-card h3 { color: var(--white); font-size: 1.5rem; }
.involve-card .go { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }

/* ---------- Footer ---------- */
footer {
  background: var(--indigo-text);
  color: rgba(251,247,239,0.85);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { footer .foot-grid { grid-template-columns: 1fr; } }
footer h4 { color: var(--saffron); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
footer a { text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; }
.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(251,247,239,0.15);
  font-size: 0.8rem;
  opacity: 0.65;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Forms (Connect & Volunteer pages) ---------- */
.form-page-hero {
  background: linear-gradient(180deg, var(--teal-deep), var(--teal-mid));
  color: var(--cream);
  padding: 70px 0 60px;
  text-align: center;
}
.form-page-hero h1 { color: var(--white); }
.form-page-hero p { max-width: 50ch; margin: 0 auto; opacity: 0.9; }

.form-shell {
  max-width: 640px;
  margin: -40px auto 0;
  background: var(--white);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 24px 48px rgba(11,79,74,0.14);
  position: relative;
  z-index: 3;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--indigo-text);
}
.field .req { color: var(--coral); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(11,79,74,0.18);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(242,169,59,0.25);
}
.field textarea { resize: vertical; min-height: 110px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.checkbox-grid label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 0.92rem;
  background: var(--cream);
  border: 1.5px solid rgba(11,79,74,0.15);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.checkbox-grid input { width: auto; }

.submit-btn {
  width: 100%;
  background: var(--teal-deep);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.submit-btn:hover { background: var(--coral); transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}
.form-msg.success { display: block; background: rgba(16,107,99,0.12); color: var(--teal-deep); }
.form-msg.error { display: block; background: rgba(232,93,78,0.12); color: var(--coral); }

.setup-note {
  background: rgba(242,169,59,0.12);
  border: 1px dashed var(--saffron);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
