/* ===== Custom Base Styles ===== */
:root {
  --color-emerald-950: #022c22;
  --color-emerald-900: #064e3b;
  --color-emerald-800: #065f46;
  --color-emerald-700: #047857;
  --color-emerald-600: #059669;
  --color-emerald-500: #10b981;
  --color-cream-50: #fefdf8;
  --color-cream-100: #fdf9ee;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Section Typography ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-emerald-600);
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  padding: 0.4em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-emerald-950);
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4ade80;
  color: #6b9e7e;
}

/* ===== Stat Cards ===== */
.stat-card {
  will-change: transform;
}

/* ===== Service Cards ===== */
.service-card {
  will-change: transform;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }

  .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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Navbar ===== */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 24px rgba(6, 78, 59, 0.06);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  transition: opacity 0.3s ease;
}

/* ===== Hover Transitions ===== */
a, button {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Selection ===== */
::selection {
  background: #065f46;
  color: #fefdf8;
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* ===== Input Autofill ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fdf9ee inset !important;
  -webkit-text-fill-color: #064e3b !important;
}
