/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #064E3B;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
}

.mobile-link:hover {
  font-style: italic;
}

/* Menu button animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

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

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  width: 6;
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== HERO ========== */
#hero {
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(22, 101, 52, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 78, 59, 0.15), transparent);
}

/* ========== MENU SECTION ========== */
#menu .border-emerald-800/50 {
  transition: border-color 0.2s ease;
}

#menu .border-emerald-800/50:hover {
  border-color: rgba(217, 119, 6, 0.3);
}

#menu h4:hover + p,
#menu .space-y-6 > div:hover h4 {
  color: #D97706;
  transition: color 0.2s ease;
}

/* ========== GALLERY ========== */
#gallery img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#gallery img:hover {
  transform: scale(1.05);
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D97706;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lg\:grid-cols-2 {
    gap: 3rem;
  }
}
