/* ─── CUSTOM STYLES ─── */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Base font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── NAVBAR ─── */
#navbar.scrolled {
  box-shadow: 0 1px 12px rgba(30, 92, 30, 0.08);
}

/* ─── MOBILE MENU ─── */
.mobile-link {
  transition: background-color 0.2s ease, color 0.2s ease;
}

#mobile-menu {
  animation: slideDown 0.25s ease-out;
}

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

/* ─── 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);
}

/* ─── INDUSTRY CARDS ─── */
.industry-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

/* ─── TESTIMONIAL CARDS ─── */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 92, 30, 0.1);
}

/* ─── PROCESS STEPS ─── */
.process-step {
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
}

/* ─── SCROLL REVEAL (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    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; }
}

/* ─── FORM FOCUS STYLES ─── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ─── SELECTION ─── */
::selection {
  background-color: rgba(30, 92, 30, 0.15);
  color: #113611;
}

/* ─── RESPONSIVE TWEAKS ─── */
@media (max-width: 640px) {
  .font-display {
    word-spacing: -0.02em;
  }
}
