
:root { color-scheme: light; }
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }


.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.modal-open { overflow: hidden; }

.glass-nav {
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 20px 60px rgba(5,46,22,.14);
  backdrop-filter: blur(18px);
}
.glass-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  height: 2.85rem;
  width: 2.85rem;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #166534, #0e7490);
  box-shadow: 0 0 0 8px rgba(34,197,94,.10);
}

.nav-link {
  position: relative;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: #166534; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #166534;
  transition: width .2s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-link {
  border-radius: 1rem;
  padding: .8rem 1rem;
  transition: background .2s ease, color .2s ease;
}
.mobile-link:hover { background: #f0fdf4; color: #166534; }

.btn-primary, .btn-secondary, .btn-white, .btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .82rem 1.25rem;
  font-size: .83rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: #166534; color: white; box-shadow: 0 12px 28px rgba(20,83,45,.18); }
.btn-primary:hover { transform: translateY(-1px); background: #15803d; }
.btn-secondary { border: 1px solid #166534; color: #14532d; background: white; }
.btn-secondary:hover { transform: translateY(-1px); background: #f0fdf4; }
.btn-white { background: white; color: #14532d; padding: 1rem 1.75rem; }
.btn-white:hover { transform: translateY(-2px); background: #f0fdf4; }
.btn-ghost-white { border: 1px solid rgba(255,255,255,.45); color: white; padding: 1rem 1.75rem; }
.btn-ghost-white:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }

.hero-bg {
  background-image: linear-gradient(135deg, rgba(5,46,22,.88), rgba(14,116,144,.64)), url('../img/hero-sierra-nevada-rio-palomino.jpg');
  background-position: center;
  background-size: cover;
}
.hero-stat {
  border-radius: 1.35rem;
  background: rgba(255,255,255,.10);
  padding: 1rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-stat p { font-size: 1.35rem; line-height: 1.1; font-weight: 900; }
.hero-stat span { display: block; margin-top: .35rem; font-size: .74rem; color: rgba(255,255,255,.72); }

.metric-card-dark {
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.metric-card-dark span { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1.1; }
.metric-card-dark small { display: block; margin-top: .35rem; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.75); }

.cred-card { border-radius: 1.5rem; padding: 1.5rem; }
.cred-card p {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #166534;
}
.cred-card strong { display: block; margin-top: .5rem; color: #0f172a; }

.section-pad { padding-top: 6rem; padding-bottom: 6rem; }
.section-label { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; }
.section-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #052e16;
}
.section-text { margin-top: 1.5rem; max-width: 42rem; font-size: 1.07rem; line-height: 1.8; color: #475569; }

.risk-card, .support-card, .program-card, .project-card, .blog-card {
  border-radius: 2rem;
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.risk-card:hover, .support-card:hover, .program-card:hover, .project-card:hover, .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(5,46,22,.13);
}
.risk-card img, .program-card img, .project-card img, .blog-card img {
  width: 100%;
  object-fit: cover;
}
.risk-card img { height: 12rem; }
.program-card img { height: 12.5rem; }
.project-card img { height: 14rem; }
.blog-card img { height: 14rem; }

.risk-content, .program-content, .project-content, .blog-content { padding: 1.5rem; }
.risk-content h3, .program-content h3, .project-content h3, .blog-content h3 {
  font-weight: 900;
  color: #052e16;
}
.risk-content p, .program-content p, .project-content p, .blog-content p {
  margin-top: .65rem;
  font-size: .9rem;
  line-height: 1.65;
  color: #64748b;
}

.territory-tab {
  border-radius: 999px;
  background: #f0fdf4;
  color: #14532d;
  padding: .82rem 1.15rem;
  font-size: .85rem;
  font-weight: 900;
  transition: background .2s ease, color .2s ease;
}
.territory-tab.active { background: #166534; color: white; }

.territory-card-image {
  min-height: 26rem;
  border-radius: 2rem;
  background-size: cover;
  background-position: center;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 20px 60px rgba(5,46,22,.14);
}

.map-pin {
  position: absolute;
  display: grid;
  height: 2.15rem;
  width: 2.15rem;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: #14532d;
  font-size: .8rem;
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(255,255,255,.18), 0 12px 28px rgba(0,0,0,.2);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.map-pin:hover { transform: translate(-50%, -50%) scale(1.12); background: #166534; color: white; }

.info-card { border-radius: 2rem; padding: 1.75rem; }
.info-card span {
  display: inline-flex;
  border-radius: 999px;
  background: #166534;
  padding: .35rem .75rem;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
}
.info-card p { margin-top: 1.2rem; line-height: 1.7; color: #475569; }

.timeline-card { border-radius: 2rem; padding: 1.5rem; position: relative; z-index: 1; }
.timeline-card small { font-weight: 900; color: #166534; }
.timeline-card h3 { margin-top: .75rem; font-weight: 900; color: #052e16; }
.timeline-card p { margin-top: .55rem; font-size: .9rem; line-height: 1.6; color: #64748b; }
.timeline-card.bg-slate-900 h3 { color: white; }

.filter-btn {
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: white;
  padding: .85rem 1.25rem;
  font-size: .82rem;
  font-weight: 900;
  transition: background .2s ease, color .2s ease;
}
.filter-btn.active { background: white; color: #052e16; }

.sim-card, .impact-card {
  border-radius: 2rem;
  padding: 1.75rem;
}
.sim-card p, .impact-card p { font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1; font-weight: 900; }
.sim-card span, .impact-card span { display: block; margin-top: .7rem; font-weight: 800; color: #0f172a; }
.impact-card { background: white; box-shadow: 0 8px 24px rgba(15,23,42,.05); }

.media-photo {
  overflow: hidden;
  border-radius: 2rem;
  background: white;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.media-photo:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(5,46,22,.13); }
.media-photo img { height: 18rem; width: 100%; object-fit: cover; }
.media-photo span { display: block; padding: 1.25rem; font-weight: 900; color: #052e16; }

.doc-card {
  border-radius: 1.5rem;
  padding: 1.25rem;
  text-align: left;
  font-weight: 900;
  color: #052e16;
  transition: transform .2s ease, box-shadow .2s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(5,46,22,.1); }

.faq-detail {
  border-radius: 1.6rem;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.faq-detail summary { cursor: pointer; list-style: none; font-weight: 900; color: #052e16; }
.faq-detail p { margin-top: 1rem; line-height: 1.7; color: #64748b; }

.form-label span { display: block; font-size: .88rem; font-weight: 800; color: #334155; }
.form-label input, .form-label select, .form-label textarea {
  margin-top: .55rem;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: .9rem 1rem;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}
.form-label input:focus, .form-label select:focus, .form-label textarea:focus {
  border-color: #166534;
  box-shadow: 0 0 0 4px #dcfce7;
}

@media (max-width: 768px) {
  .section-pad { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero-stat p { font-size: 1.1rem; }
}
