/* ── Custom Properties ── */
:root {
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Header Scrolled State ── */
#header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-blur: 16px;
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06), 0 4px 24px rgba(10, 22, 40, 0.04);
}

/* ── Nav Links ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #34D399;
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-link { transition: all 0.3s ease; }
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }

/* ── Animations ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 5s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 4s ease-in-out infinite; }
.animate-fade-up { animation: fade-up 0.7s ease forwards; opacity: 0; }

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }

/* ── FAQ ── */
.faq-btn { cursor: pointer; }
.faq-icon svg { transition: transform 0.3s ease; }
.faq-item.active .faq-icon svg { transform: rotate(45deg); }
.faq-item.active .faq-btn { border-color: #34D399; background: #F0FFF8; }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-content {
  max-height: 200px;
}

/* ── Form Focus States ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #34D399 !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

/* ── Selection ── */
::selection { background: rgba(52, 211, 153, 0.2); color: #0A1628; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .font-serif { line-height: 1.1; }
  #hero h1 { font-size: 2.75rem; }
}
