/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ── */
#site-header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

.nav-link {
  position: relative;
}

/* ── Hero Animations ── */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.1s;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.3s;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.5s;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.7s;
}

.hero-scroll {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 1s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Reveal (below-the-fold only) ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays for grid children */
.service-card.revealed:nth-child(1) { transition-delay: 0.05s; }
.service-card.revealed:nth-child(2) { transition-delay: 0.1s; }
.service-card.revealed:nth-child(3) { transition-delay: 0.15s; }
.service-card.revealed:nth-child(4) { transition-delay: 0.2s; }
.service-card.revealed:nth-child(5) { transition-delay: 0.25s; }
.service-card.revealed:nth-child(6) { transition-delay: 0.3s; }

/* ── Service Cards ── */
.service-card {
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ── FAQ ── */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content.open {
  max-height: 200px;
}

.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.06);
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link {
  display: block;
}

/* ── Form ── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
}

/* ── Selection ── */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}
