/* ─── Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ─── Hero Overlay ────────────────────────────────── */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(2,44,34,.72) 0%, rgba(2,44,34,.55) 50%, rgba(2,44,34,.88) 100%);
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
  background: #d1fae5;
  border: 2px solid #d1fae5;
  border-radius: 2px;
  padding: 0 2rem;
  letter-spacing: .12em;
  transition: background .25s, color .25s, box-shadow .25s, transform .15s;
}
.btn-primary:hover {
  background: #a7f3d0;
  border-color: #a7f3d0;
  box-shadow: 0 8px 30px rgba(16,185,129,.25);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  border: 2px solid rgba(253,252,245,.4);
  border-radius: 2px;
  padding: 0 2rem;
  letter-spacing: .12em;
  transition: border-color .25s, background .25s, transform .15s;
}
.btn-secondary:hover {
  border-color: rgba(253,252,245,.8);
  background: rgba(253,252,245,.08);
  transform: translateY(-1px);
}

/* ─── Pills ───────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: .45rem 1rem;
  border: 1px solid rgba(5,150,105,.25);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: #047857;
  background: rgba(209,250,229,.45);
  transition: background .2s, color .2s;
}
.pill:hover {
  background: #047857;
  color: #fdfcfa;
}

/* ─── Nav Links ───────────────────────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #34d399;
  transition: width .3s;
}
.nav-link:hover::after { width: 100%; }

/* ─── Input Fields ────────────────────────────────── */
.input-field {
  background: #faf6ef;
  border: 1px solid rgba(6,78,59,.15);
  border-radius: 4px;
  padding: .8rem 1rem;
  font-size: .95rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #022c22;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.input-field::placeholder { color: rgba(6,78,59,.35); }
.input-field:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
  background: #fff;
}
.input-field:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

/* ─── Menu Items ──────────────────────────────────── */
.menu-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(253,252,245,.08);
}
.menu-item:last-child { border-bottom: none; padding-bottom: 0; }

/* ─── Scroll Indicator ────────────────────────────── */
.scroll-indicator { animation: fadeScroll 2s ease-in-out infinite; }
@keyframes fadeScroll {
  0%, 100% { opacity: .4; transform: translateY(0); }
  50% { opacity: .8; transform: translateY(4px); }
}

/* ─── Mobile Menu ─────────────────────────────────── */
.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ─── Scroll Reveal (progressive enhancement) ─────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ─── Mobile Menu Animation ───────────────────────── */
@media (max-width: 767px) {
  #mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }
  #mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
  }
  #mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }
  #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: .05s; }
  #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: .1s; }
  #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: .15s; }
  #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: .2s; }
}

/* ─── Hero Animations ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow {
    opacity: 0;
    animation: heroIn .7s cubic-bezier(.22,.61,.36,1) .2s forwards;
  }
  h1 .font-serif {
    opacity: 0;
    animation: heroIn .7s cubic-bezier(.22,.61,.36,1) .4s forwards;
  }
  h1 ~ p {
    opacity: 0;
    animation: heroIn .7s cubic-bezier(.22,.61,.36,1) .55s forwards;
  }
  .hero-cta-group {
    opacity: 0;
    animation: heroIn .7s cubic-bezier(.22,.61,.36,1) .7s forwards;
  }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ─── Header Scrolled State ───────────────────────── */
#site-header.scrolled {
  background: rgba(2,44,34,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(253,252,245,.06);
}

/* ─── Mobile Menu Button ──────────────────────────── */
.menu-line {
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}
