/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }
p { font-family: 'Inter', system-ui, sans-serif; }

/* ── Hero Pattern ── */
.hero-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
}

/* ── Blobs ── */
.hero-blob {
  animation: blob-float 8s ease-in-out infinite;
}
.blob-2 { animation-delay: -3s; animation-duration: 10s; }
.blob-3 { animation-delay: -5s; animation-duration: 12s; }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Labels ── */
.label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #047857;
}

/* ── Prose ── */
.prose-custom p { margin-bottom: 0; }
.prose-custom p + p { margin-top: 0; }

/* ── Cards ── */
.card {
  background: white;
  border-radius: 1rem;
  padding: 0.5rem;
  border: 1px solid rgba(5, 150, 105, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: 0 20px 60px rgba(6, 78, 59, 0.1);
  transform: translateY(-4px);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}
#navbar.scrolled .font-serif { color: #064e3b !important; }
#navbar.scrolled a:not(.bg-emerald-800) { color: rgba(6, 78, 59, 0.7) !important; }
#navbar.scrolled a:not(.bg-emerald-800):hover { color: #059669 !important; }

/* ── Mobile Menu ── */
.mobile-link { display: block; }
.mobile-link:hover { color: #059669; }

/* ── Form ── */
input:focus, select:focus, textarea:focus {
  outline: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdfbf7; }
::-webkit-scrollbar-thumb { background: #a7f3d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6ee7b7; }
