/* ===== CUSTOM PROPERTIES ===== */
:root {
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius-lg: 1.6rem;
  --radius-xl: 2rem;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: #143a23;
  background-color: #fafaf5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

header.nav-scrolled {
  border-bottom-color: rgba(22, 101, 52, 0.08);
  box-shadow: 0 1px 20px rgba(20, 58, 35, 0.06);
}

.nav-link {
  transition: background var(--transition-fast), color var(--transition-fast);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-link {
  display: block;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding-top: 100px;
  background: linear-gradient(160deg, #fafaf5 0%, #f0f7f1 50%, #d9eddf 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-image-card {
  box-shadow: 0 25px 60px rgba(20, 58, 35, 0.12);
  transition: transform var(--transition-smooth);
}

.hero-image-card:hover {
  transform: scale(1.01);
}

/* ===== FLOATING STAT CARDS ===== */
.stat-card {
  will-change: transform;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-card:nth-child(1) { animation: float1 6s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float2 7s ease-in-out infinite; }
.stat-card:nth-child(3) { animation: float3 5.5s ease-in-out infinite; }
.stat-card:nth-child(4) { animation: float4 6.5s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ===== BADGE PILLS ===== */
.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  background: #d9eddf;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  transition: transform var(--transition-smooth), background var(--transition-fast), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

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

/* ===== ABOUT IMAGE CARDS ===== */
.about-img-card {
  box-shadow: 0 16px 40px rgba(20, 58, 35, 0.1);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(20, 58, 35, 0.15);
}

/* ===== REVIEW CARDS ===== */
.review-card {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: #166534;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 101, 52, 0.25);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background: #14532d;
  box-shadow: 0 12px 32px rgba(22, 101, 52, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== FORM INPUTS ===== */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d9d4c4;
  border-radius: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #143a23;
  background: #fafaf5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.input-field::placeholder {
  color: #a8a29e;
}

.input-field:hover {
  border-color: #86c68a;
}

.input-field:focus {
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
  background: #fff;
}

.input-field.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 88px;
  }

  .floating-cards {
    gap: 0.75rem;
  }

  .stat-card {
    border-radius: 1.1rem !important;
    padding: 1rem !important;
  }

  .stat-number {
    font-size: 1.75rem !important;
  }
}

/* ===== ACCESSIBILITY ===== */
@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, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #166534;
  outline-offset: 2px;
}
