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

body {
  overflow-x: hidden;
}

::selection {
  background: #aed0af;
  color: #1B4332;
}

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #1B4332 0%, #2d6a4f 35%, #40916c 60%, #52b788 80%, #74c69d 100%);
}

/* ── Hero Blobs ── */
.hero-blob-1 {
  background: radial-gradient(circle, #95d5b2 0%, transparent 70%);
  animation: float-slow 12s ease-in-out infinite;
}

.hero-blob-2 {
  background: radial-gradient(circle, #b7e4c7 0%, transparent 70%);
  animation: float-slow 15s ease-in-out infinite reverse;
}

.hero-blob-3 {
  background: radial-gradient(circle, #d8f3dc 0%, transparent 70%);
  animation: float-slow 10s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

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

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

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

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

/* ── Scroll Indicator ── */
.scroll-indicator {
  animation: fade-up 0.8s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

/* ── Service Cards ── */
.service-card {
  will-change: transform;
}

/* ── Approach Cards ── */
.approach-card {
  will-change: transform;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  will-change: transform;
}

/* ── Reveal Animations (below-fold only) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Only apply hidden state when JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Navbar Scroll State ── */
.nav-scrolled {
  background: rgba(253, 252, 248, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08), 0 4px 30px rgba(27, 67, 50, 0.06);
}

.nav-scrolled .nav-link {
  color: #1B4332;
}

.nav-scrolled .nav-link:hover {
  background: rgba(27, 67, 50, 0.06);
}

.nav-scrolled .logo-icon {
  background: #1B4332;
}

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

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CTA Blobs ── */
.cta-blob-1 {
  animation: float-slow 14s ease-in-out infinite;
}

.cta-blob-2 {
  animation: float-slow 11s ease-in-out infinite reverse;
}

/* ── Approach Blobs ── */
.approach-blob-1 {
  animation: float-slow 16s ease-in-out infinite;
}

.approach-blob-2 {
  animation: float-slow 13s ease-in-out infinite reverse;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-title br {
    display: none;
  }
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #52a856;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Print ── */
@media print {
  nav, .scroll-indicator, #mobile-menu-btn {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
