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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #044d38;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes scroll-indicator {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-card {
  animation: float-slow 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-name: float-medium;
  animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
  animation-name: float-fast;
  animation-delay: 1s;
}

.animate-float-slow { animation: float-slow 4s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 3.5s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 3s ease-in-out infinite; }

.animate-scroll-indicator {
  animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.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; }

/* ===== NAV LINKS ===== */
.nav-link {
  position: relative;
}

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

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

/* ===== MOBILE NAV ===== */
.mobile-nav-link {
  display: block;
}

/* ===== MENU CARDS ===== */
.menu-card {
  will-change: transform;
}

.menu-card-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-card:hover .menu-card-img {
  transform: scale(1.05);
}

/* ===== HEADER SCROLLED ===== */
.header-scrolled {
  box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
}

/* ===== BUTTON HOVER GLOW ===== */
button:hover, a:hover {
  cursor: pointer;
}

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

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

  #hero h1 {
    font-size: 2.25rem;
  }

  #hero h1 br {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  html {
    scroll-padding-top: 80px;
  }
}
