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

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

body {
  margin: 0;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== NAVBAR ===== */
.nav-scrolled {
  background: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(4, 78, 59, 0.08);
}

.nav-scrolled .font-display {
  color: #064e3b;
}

#navbar {
  background: transparent;
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
#mobileMenu {
  max-height: 0;
}

#mobileMenu.open {
  max-height: 400px;
}

.menu-line {
  display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
  display: block;
}

/* ===== HERO ===== */
.hero {
  background: #064e3b;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(2, 44, 34, 0.88) 0%,
    rgba(4, 78, 59, 0.80) 40%,
    rgba(5, 150, 105, 0.65) 100%
  );
}

/* ===== CTA BUTTONS ===== */
.cta-btn-emerald {
  background: #10b981;
  color: #022c22;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.cta-btn-emerald:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.cta-btn-cream {
  background: rgba(255, 251, 240, 0.15);
  border: 2px solid rgba(255, 251, 240, 0.4);
  color: #FFFBF0;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.813rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.cta-btn-cream:hover {
  background: rgba(255, 251, 240, 0.25);
  border-color: rgba(255, 251, 240, 0.7);
  transform: translateY(-2px);
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #047857, #10b981, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

/* ===== REVIEW CARDS ===== */
.review-card {
  transition: transform 0.3s ease, background 0.3s ease;
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .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; }
}

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

/* ===== UTILITY ===== */
@media (max-width: 767px) {
  .font-display {
    letter-spacing: 0.02em;
  }
}
