/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #a9d4b2;
  color: #1f402b;
}

/* ── Header scroll state ── */
#header {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#header.scrolled {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

/* ── Mobile menu ── */
.mobile-link {
  display: block;
  border-bottom: 1px solid #eaf3ec;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #2D5A3D;
  padding-left: 0.5rem;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ── Service cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2D5A3D, #52ab66);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Form selects ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232D5A3D' 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 1rem center;
  padding-right: 2.5rem;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  h1 {
    font-size: 2.75rem;
    line-height: 1.1;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
}
