/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --cream-50: #fefdf8;
  --cream-100: #fdf9ef;
}

/* ── Section Label ──────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #047857;
  font-weight: 500;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #047857;
  color: #fefdf8;
  border: 1px solid #047857;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-emerald:hover {
  background: #065f46;
  border-color: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(4, 120, 87, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #047857;
  border: 1px solid #047857;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-ghost:hover {
  background: #047857;
  color: #fefdf8;
  transform: translateY(-1px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1fae5;
  border: 1px solid rgba(209, 250, 229, 0.3);
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-outline-light:hover {
  background: rgba(209, 250, 229, 0.1);
  border-color: rgba(209, 250, 229, 0.6);
  color: #fefdf8;
  transform: translateY(-1px);
}

/* ── Input Fields ───────────────────────────────────────── */
.input-field {
  background: #fefdf8;
  border: 1px solid #d1fae5;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #064e3b;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.input-field::placeholder {
  color: #a7f3d0;
}

.input-field:focus {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
  background: #ffffff;
}

.input-field:hover:not(:focus) {
  border-color: #6ee7b7;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23047857' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ── Hero Animations ────────────────────────────────────── */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-subhead {
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Dot ─────────────────────────────────────────── */
.scroll-dot {
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: 0; opacity: 1; }
  50% { top: 100%; opacity: 0.5; transform: translateY(-8px); }
  100% { top: 100%; opacity: 0; }
}

/* ── Reveal on Scroll ───────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Menu Cards ─────────────────────────────────────────── */
.menu-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.menu-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

/* ── Gallery Items ──────────────────────────────────────── */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* ── Nav Link ───────────────────────────────────────────── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #047857;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Links ───────────────────────────────────────── */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Mobile Menu Active State ───────────────────────────── */
#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Hamburger Animation ────────────────────────────────── */
.hamburger-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* ── Header Scrolled State ──────────────────────────────── */
#header.scrolled {
  box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-headline br {
    display: none;
  }

  .hero-headline span {
    display: inline;
  }

  .font-serif.text-4xl {
    font-size: 2.25rem;
  }
}

/* ── Focus Visible ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

/* ── Selection ──────────────────────────────────────────── */
::selection {
  background: #d1fae5;
  color: #064e3b;
}
