/* ── Custom Properties ── */
:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;
  --cream: #faf8f5;
  --cream-dark: #f5f0e8;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Quicksand', sans-serif;
  background: var(--cream);
  color: var(--emerald-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
.font-serif { font-family: 'DM Serif Display', serif; }
.font-sans { font-family: 'Quicksand', sans-serif; }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(250, 248, 245, 0.97);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
  backdrop-filter: blur(10px);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-600);
  border-radius: 1px;
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link {
  border-bottom: 1px solid var(--emerald-100);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ── Hero ── */
.hero-gradient {
  background: linear-gradient(135deg, #064e3b 0%, #059669 40%, #047857 70%, #065f46 100%);
}

/* ── Scroll Reveal ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-up { opacity: 0; transform: translateY(30px); }
  .reveal-left { opacity: 0; transform: translateX(-30px); }
  .reveal-right { opacity: 0; transform: translateX(30px); }
  .reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* ── Form ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--emerald-600);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: var(--emerald-200);
  color: var(--emerald-900);
}

/* ── Smooth image loading ── */
img {
  display: block;
  max-width: 100%;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--emerald-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-400); }
