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

body {
  overflow-x: hidden;
}

::selection {
  background: #8fd3ad;
  color: #0a2540;
}

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(
    160deg,
    #f0fdf4 0%,
    #dcfce7 20%,
    #bbf7d0 40%,
    #86efac 55%,
    #4ade80 68%,
    #22c55e 78%,
    #0a2540 100%
  );
}

/* ── Nav ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3da86e;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Header scroll state ── */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

#site-header.scrolled .nav-link {
  color: #0a2540;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5fbf8a, #3da86e);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 3px 3px 0 0;
}

.service-card:hover::before {
  opacity: 1;
}

/* ── Reason Cards ── */
.reason-card {
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
  border-color: #dcfce7;
  box-shadow: 0 8px 30px rgba(61, 168, 110, 0.1);
}

/* ── Animations ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 4s ease-in-out infinite;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Hero entrance ── */
.hero-badge {
  animation: fade-up 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: fade-up 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-text {
  animation: fade-up 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-cta {
  animation: fade-up 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-stats {
  animation: scale-in 0.6s ease forwards;
  animation-delay: 1.1s;
  opacity: 0;
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: fade-up 0.3s ease;
}

.mobile-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.mobile-link:hover {
  border-bottom-color: #dcfce7;
}

/* ── Focus styles ── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5fbf8a;
  outline-offset: 2px;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .hero-gradient {
    background: linear-gradient(
      170deg,
      #f0fdf4 0%,
      #dcfce7 30%,
      #86efac 55%,
      #22c55e 72%,
      #0a2540 100%
    );
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-float-1 { display: none; }
  .hero-float-3 { display: none; }
}
