/* =========================================================
   Rivera Conservation Society — stylesheet
   Palette: forest greens, Dholpur sandstone, Chambal river teal
   ========================================================= */

:root {
  --forest-900: #16281e;
  --forest-800: #1f3a2e;
  --forest-700: #2b5240;
  --forest-600: #396c53;
  --sand-100: #f6efdf;
  --sand-200: #ecdfc1;
  --sand-400: #d8bd8a;
  --sand-600: #b6935a;
  --river-600: #3d6b7a;
  --river-700: #2e5560;
  --cream: #f8f4ea;
  --paper: #fffdf8;
  --ink: #24261f;
  --ink-soft: #55584c;
  --shadow: 0 20px 45px -20px rgba(22, 40, 30, 0.35);
  --radius-lg: 22px;
  --radius-md: 14px;
  --maxw: 1180px;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--river-700); text-decoration: none; }
img { max-width: 100%; display: block; }

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

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

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

.btn-primary {
  background: var(--sand-600);
  color: var(--forest-900);
  box-shadow: 0 12px 26px -12px rgba(182, 147, 90, 0.7);
}
.btn-primary:hover { background: var(--sand-400); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-forest {
  background: var(--forest-800);
  color: var(--sand-100);
}
.btn-forest:hover { background: var(--forest-700); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 34px; width: auto; }

.brand-suffix {
  font-family: "Fraunces", serif;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-400);
  padding-left: 12px;
  border-left: 1px solid rgba(246,239,223,0.3);
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand-lockup img { height: 32px; margin-bottom: 0; }
.footer-brand-lockup .brand-suffix { border-left-color: rgba(246,239,223,0.25); }
.footer-brand img { margin-bottom: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--sand-100);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; border-bottom-color: var(--sand-600); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn-primary { 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: #fff;
  margin: 5px 0;
  transition: 0.25s;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 28px 24px;
    gap: 16px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-links.open ~ .nav-cta,
  .nav-links.open + .nav-cta { display: none; }
  body.menu-open .nav-cta.mobile-cta { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,40,30,0.55) 0%, rgba(22,40,30,0.78) 60%, rgba(22,40,30,0.92) 100%);
  z-index: -1;
}
.hero-inner { max-width: 720px; padding: 90px 0 70px; }
.hero .eyebrow { color: var(--sand-400); }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.page-hero {
  min-height: 44vh;
}
.page-hero .hero-inner { padding: 70px 0 50px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 60px 0; }
.section-alt { background: var(--paper); }
.section-forest {
  background: var(--forest-900);
  color: var(--sand-100);
}
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest p { color: rgba(246,239,223,0.78); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- grids / cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31,58,46,0.06);
}
.card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--forest-800);
  color: var(--sand-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.round-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.round-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid .g-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
}
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-video {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}
.gallery-video video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: #000;
  display: block;
}
@media (max-width: 900px) { .gallery-video { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- pillars / list rows ---------- */
.pillar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid rgba(31,58,46,0.1);
}
.pillar-row:last-child { border-bottom: none; }
.pillar-row.reverse .pillar-media { order: 2; }
@media (max-width: 900px) {
  .pillar-row, .pillar-row.reverse .pillar-media { grid-template-columns: 1fr; order: initial; }
  .pillar-row { grid-template-columns: 1fr; }
}
.pillar-num {
  font-family: "Fraunces", serif;
  color: var(--sand-600);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- stat / quote strip ---------- */
.quote-block {
  border-left: 4px solid var(--sand-600);
  padding-left: 26px;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--forest-900);
  font-style: italic;
}

/* ---------- updates / blog ---------- */
.update-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.update-card .u-body { padding: 26px 28px 30px; }
.update-card .u-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand-600);
  font-weight: 700;
}
.update-card img { height: 210px; object-fit: cover; width: 100%; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-row-2 { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(31,58,46,0.18);
  background: var(--paper);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--river-600);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- info strip ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 800px) { .info-strip { grid-template-columns: 1fr; } }
.info-strip .card { text-align: left; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--forest-900);
  color: rgba(246,239,223,0.7);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: "Fraunces", serif; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: rgba(246,239,223,0.75); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.footer-brand img { height: 32px; margin-bottom: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--forest-800), var(--river-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- breadcrumb / misc ---------- */
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand-200);
  color: var(--forest-800);
  font-weight: 600;
}

.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
@media (max-width: 700px) { .two-col-list { grid-template-columns: 1fr; } }
.check-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.check-item .dot {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--forest-800);
  color: var(--sand-400);
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
