/* ══════════════════════════════════════════════════
   AVANIYAAN NATURE TRUST — SHARED DESIGN TOKENS
   Used by desktop (index), tablet, and mobile builds.
   Layout lives in each build's own stylesheet.
════════════════════════════════════════════════════ */

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

:root {
  /* Forest Greens */
  --g-deep:    #1F4D3A;
  --g-primary: #2E5E4E;
  --g-pine:    #355E3B;
  --g-mid:     #4A7A65;
  --g-light:   #7AAF96;
  /* Sand Beige */
  --beige:     #F4EBD0;
  --beige-mid: #E8DFCF;
  --beige-dark:#DCC9A3;
  /* Sky Blue */
  --blue:      #6FA3BF;
  --blue-light:#89C2D9;
  --blue-deep: #4A90A4;
  /* Terracotta */
  --terra:     #C96B3B;
  --terra-warm:#D17A22;
  /* Ivories */
  --ivory:     #FAF8F2;
  --ivory-dark:#F7F5EF;
  /* Text */
  --ink:       #1A2418;
  --ink-mid:   #3D4F46;
  --ink-muted: #5A6B62;
  --ink-light: #8A9B92;
  --border:    rgba(46,94,78,0.13);
  /* Footer ground */
  --footer-bg: #0D2218;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }

/* ── Type roles ───────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--blue); }

.section-h {
  font-family: 'Sora', sans-serif;
  font-weight: 700; line-height: 1.12;
  color: var(--g-deep); margin-bottom: 18px;
  letter-spacing: -0.5px; text-wrap: balance;
}
.section-h em { font-style: normal; color: var(--terra); }
.section-p { font-weight: 300; color: var(--ink-muted); line-height: 1.85; }

/* ── Buttons ──────────────────────────────────── */
.btn-terra {
  background: var(--terra); color: #fff;
  border-radius: 6px; font-weight: 600;
  letter-spacing: 0.5px; text-decoration: none;
  transition: all 0.3s; display: inline-block; text-align: center;
}
.btn-terra:hover { background: var(--terra-warm); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,107,59,0.4); }

.btn-beige {
  background: var(--beige); color: var(--g-deep);
  border-radius: 6px; font-weight: 700;
  text-decoration: none; transition: all 0.3s; display: inline-block; text-align: center;
}
.btn-beige:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244,235,208,0.3); }

.btn-outline-beige {
  background: transparent; color: rgba(255,255,255,0.72);
  border-radius: 6px; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  transition: all 0.3s; display: inline-block; text-align: center;
}
.btn-outline-beige:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

:where(a, button):focus-visible {
  outline: 2px solid var(--terra-warm);
  outline-offset: 3px; border-radius: 4px;
}

/* ── Chips, tags, seals ───────────────────────── */
.badge-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 30px;
}
.badge-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra-warm); flex-shrink: 0; }

.prog-tag {
  display: inline-block; background: rgba(111,163,191,0.14); color: var(--blue-deep);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px;
}
.cert-seal {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(31,77,58,0.07); color: var(--g-primary);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 4px;
}
.species-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 30px; padding: 8px 15px 8px 12px;
}
.species-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.species-dot.en { background: var(--terra); }
.species-dot.vu { background: var(--terra-warm); }
.species-name { font-size: 12.5px; font-weight: 600; color: #fff; }
.species-status { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.45); text-transform: uppercase; }

/* ── Card shells ──────────────────────────────── */
.prog-card {
  background: var(--ivory); border: 1px solid var(--border);
  border-radius: 14px; position: relative; overflow: hidden;
}
.prog-card.featured { background: var(--g-primary); border-color: transparent; }
.prog-card.featured .prog-n, .prog-card.featured .prog-title { color: #fff; }
.prog-card.featured .prog-body { color: rgba(255,255,255,0.65); }
.prog-card.featured .prog-tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.prog-card.featured .prog-icon { color: var(--beige-dark); }
.prog-n { font-family: 'Sora', sans-serif; font-weight: 800; color: rgba(31,77,58,0.06); line-height: 1; }
.prog-card.featured .prog-n { color: rgba(255,255,255,0.06); }
.prog-icon { color: var(--blue-deep); transition: color 0.4s; }
.prog-title { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--g-deep); letter-spacing: -0.2px; line-height: 1.25; }
.prog-body { font-weight: 300; color: var(--ink-muted); line-height: 1.75; }

.cert-card {
  background: var(--ivory); border: 1px solid var(--border);
  border-radius: 14px; text-align: center; position: relative; overflow: hidden;
}
.cert-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--g-primary), var(--blue)); }
.cert-logo { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--g-primary); letter-spacing: 4px; }
.cert-fullname { font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-light); line-height: 1.5; }
.cert-desc { font-weight: 300; color: var(--ink-muted); line-height: 1.85; }

/* ── Stats ────────────────────────────────────── */
.stat-n { font-family: 'Sora', sans-serif; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.stat-n span { color: var(--terra-warm); }
.stat-l { font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.38); }

/* ── Footer (shared shell) ────────────────────── */
footer { background: var(--footer-bg); }
.footer-brand { font-family: 'Sora', sans-serif; font-weight: 800; color: #fff; letter-spacing: 0.5px; line-height: 1.2; }
.footer-brand-sub { font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--terra-warm); }
.footer-desc { font-weight: 300; color: rgba(255,255,255,0.38); line-height: 1.85; }
.footer-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { color: rgba(255,255,255,0.32); text-decoration: none; font-size: 13.5px; font-weight: 300; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--beige); }
.footer-badge {
  background: rgba(201,107,59,0.12); border: 1px solid rgba(201,107,59,0.22); color: var(--terra-warm);
  padding: 5px 16px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}

/* ── Motion ───────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bobDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes idleFloat3d { 0%,100% { transform: perspective(400px) rotateY(-10deg) rotateX(2deg); } 50% { transform: perspective(400px) rotateY(10deg) rotateX(-2deg); } }
@keyframes blobDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(4%,-6%) scale(1.08); }
  66%  { transform: translate(-5%,5%) scale(0.94); }
  100% { transform: translate(0,0) scale(1); }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.16s; }
.rd3 { transition-delay: 0.24s; }
.rd4 { transition-delay: 0.32s; }
.rd5 { transition-delay: 0.40s; }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; animation: blobDrift 24s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Build switcher (footer link on every build) ─ */
.build-switch {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 10.5px; color: rgba(255,255,255,0.3);
}
.build-switch a { color: rgba(255,255,255,0.45); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.25); }
.build-switch a:hover { color: var(--beige); }
