/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
}

::selection {
  background: #047857;
  color: #fff;
}

/* ===== NAVIGATION ===== */
#site-header {
  background: rgba(254, 252, 232, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(4, 120, 87, 0.08);
}

#site-header.scrolled {
  background: rgba(254, 252, 232, 0.97);
  box-shadow: 0 4px 30px rgba(4, 120, 87, 0.08);
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.shape-circle-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 15%;
  left: 5%;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(4, 120, 87, 0.06);
  border-radius: 24px;
  top: 25%;
  left: 8%;
  transform: rotate(15deg);
}

.shape-rect-2 {
  width: 80px;
  height: 80px;
  background: rgba(180, 83, 9, 0.08);
  border-radius: 16px;
  top: 60%;
  right: 12%;
  transform: rotate(-20deg);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(4, 120, 87, 0.05);
  top: 18%;
  left: 3%;
  transform: rotate(-10deg);
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-stat-1 {
  animation-delay: 0s;
}

.card-stat-2 {
  animation-delay: -2s;
}

.card-stat-3 {
  animation-delay: -4s;
}

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

/* ===== MARQUEE ===== */
.marquee-track {
  width: 200%;
}

.marquee-content {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== 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, #047857, #10b981, #fbbf24);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

/* ===== WHY US CARDS ===== */
.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.why-card:hover::before {
  border-color: rgba(4, 120, 87, 0.2);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(4, 120, 87, 0.12);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.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; }

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: rgb(4, 78, 59);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-link:hover {
  background-color: rgb(236, 253, 245);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .shape-circle-1 {
    width: 250px;
    height: 250px;
  }
  .shape-circle-2 {
    width: 160px;
    height: 160px;
  }
  .shape-rect-1 {
    width: 70px;
    height: 70px;
  }
  .shape-rect-2 {
    width: 50px;
    height: 50px;
  }
  .shape-triangle {
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 69px;
  }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-content {
    animation: none;
  }
  .floating-card {
    animation: none;
  }
}
