/* ─── GLOBAL RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background-color: #b9d1bb;
  color: #14281c;
}

/* ─── SCROLL INDICATOR ANIMATION ─── */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ─── NAVIGATION ─── */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* ─── MOBILE MENU ─── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

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

/* ─── SERVICE CARDS ─── */
.service-card {
  will-change: transform;
}

/* ─── FADE-IN ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ─── BACK TO TOP ─── */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

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

/* ─── RESPONSIVE TWEAKS ─── */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }
}
