/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Navigation ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2d7d3a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(26, 92, 42, 0.1);
  transition: color 0.2s;
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ── Hero Geometric Shapes ── */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.geo-circle--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 125, 58, 0.08) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}
.geo-circle--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.08) 0%, transparent 70%);
  top: 30%;
  left: 25%;
}
.geo-circle--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45, 125, 58, 0.06) 0%, transparent 70%);
  bottom: 10%;
  left: 15%;
}
.geo-rect {
  position: absolute;
  pointer-events: none;
}
.geo-rect--1 {
  width: 120px;
  height: 120px;
  background: rgba(45, 125, 58, 0.05);
  border-radius: 24px;
  top: 20%;
  right: 15%;
  transform: rotate(15deg);
}
.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(240, 165, 0, 0.06);
  bottom: 20%;
  right: 35%;
  pointer-events: none;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  display: flex;
  justify-content: center;
}
.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Fallback: ensure content is visible even without JS */
.scroll-reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* ── Focus Styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #2d7d3a;
  outline-offset: 2px;
}

/* ── Form Success Animation ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
#form-success {
  animation: fadeInUp 0.4s ease;
}
