/* ===== CUSTOM PROPERTIES ===== */
:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --cream: #faf9f6;
  --cream-dark: #f5f3ee;
  --charcoal: #1f2937;
  --charcoal-light: #374151;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ===== 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 {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--emerald-200);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-400);
}

/* ===== NAV LINK ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-600);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
}

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

#mobile-menu.open .mobile-link {
  animation: slideUp 0.3s ease forwards;
  opacity: 0;
}

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

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

/* ===== MENU BAR ANIMATION ===== */
#menu-toggle.active .menu-bar:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-bar:last-child {
  width: 20px;
  transform: rotate(-45deg) translate(3px, -3px);
  margin-left: 0;
  margin-right: 0;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HERO DECORATIVE BLOBS ===== */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8px, -12px) scale(1.02); }
  66% { transform: translate(-6px, 6px) scale(0.98); }
}

#hero .rounded-full {
  animation: float 8s ease-in-out infinite;
}

#hero .rounded-full:nth-child(3) {
  animation-delay: -3s;
  animation-duration: 10s;
}

/* ===== FEATURE CARD HOVER ===== */
.feature-card {
  transition: transform 0.4s ease, background-color 0.5s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
}

/* ===== MENU LIST HOVER ===== */
#menu ul li {
  transition: transform 0.2s ease;
}
#menu ul li:hover {
  transform: translateX(4px);
}

/* ===== GALLERY HOVER ===== */
.grid-cols-2 .rounded-2xl,
.grid-cols-4 .rounded-2xl {
  overflow: hidden;
}

/* ===== FORM STYLES ===== */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }

  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  #hero .aspect-\[4\/5\] {
    aspect-ratio: 4/3;
  }

  .feature-card {
    padding: 2rem 1.5rem !important;
  }

  #about h2, #menu h2, #hours h2, #contact h2 {
    font-size: 2.25rem;
  }

  .grid-cols-2.gap-4 > div:first-child {
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
  }

  #hero .flex.items-center.gap-8 {
    gap: 1.5rem;
  }

  .absolute.\-bottom-4.\-right-4 {
    display: none;
  }
}

/* ===== REDUCED MOTION ===== */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
