/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --forest-700: #1B4332;
  --forest-600: #356b47;
  --forest-500: #4a8a5e;
  --forest-200: #b8d1c3;
  --forest-100: #dceae2;
  --cream-50: #FDFBF7;
  --gold-400: #D4A843;
  --gold-500: #C49A30;
}

/* ===== NAVBAR ===== */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
#mobile-menu.open .mobile-nav-link { animation: slideIn 0.3s ease forwards; opacity: 0; }
#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Menu button animation */
#menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
#menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
#menu-btn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); width: 20px; }

/* ===== BUTTONS ===== */
.cta-btn {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  background: var(--forest-700);
  color: #FDFBF7;
  padding: 14px 32px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 168, 67, 0.35); }
.cta-btn span { position: relative; z-index: 1; }

.cta-dark {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  background: var(--forest-700);
  color: #FDFBF7;
  padding: 16px 36px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d231b, var(--forest-600));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.cta-dark:hover::before { opacity: 1; }
.cta-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.cta-dark span { position: relative; z-index: 1; }

.cta-secondary {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  background: transparent;
  color: var(--forest-700);
  padding: 14px 32px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--forest-700);
  transition: all 0.3s ease;
}
.cta-secondary:hover {
  background: var(--forest-700);
  color: #FDFBF7;
  transform: translateY(-2px);
}

.cta-secondary-gold {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  background: transparent;
  color: var(--forest-700);
  padding: 14px 32px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--forest-700);
  transition: all 0.3s ease;
}
.cta-secondary-gold:hover {
  background: var(--forest-700);
  color: #FDFBF7;
  transform: translateY(-2px);
}

/* ===== SERVICE CARDS ===== */
.service-card { cursor: default; }
.service-card:hover .service-card-inner { transform: translateY(-4px); }
.service-card-inner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== PROCESS STEPS ===== */
.process-step { transition: transform 0.3s ease; }
.process-step:hover { transform: translateY(-6px); }
.process-step:hover .process-circle { box-shadow: 0 0 0 8px rgba(27, 67, 50, 0.06); }
.process-circle { transition: box-shadow 0.3s ease; }

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27, 67, 50, 0.1); }

/* ===== 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; }

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  pointer-events: none;
}

/* ===== SELECTION ===== */
::selection { background: var(--gold-400)/30; color: var(--forest-700); }

/* ===== FOCUS ===== */
:focus-visible { outline: 2px solid var(--forest-700); outline-offset: 2px; border-radius: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .font-serif { line-height: 1.15; }
}

@media (min-width: 768px) {
  /* Subtle pattern on hero */
  #top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(27, 67, 50, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
  }
}
