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

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

body {
  min-height: 100vh;
}

::selection {
  background-color: rgba(45, 80, 22, 0.15);
  color: #1a3a0c;
}

/* ========== NAVIGATION ========== */
#navbar {
  background: rgba(253, 252, 250, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 80, 22, 0.08);
}

#navbar.scrolled {
  background: rgba(253, 252, 250, 0.95);
  box-shadow: 0 1px 20px rgba(45, 80, 22, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2D5016, #5a7d3a);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

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

.mobile-link {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
  color: #5a7d3a;
  transform: translateX(4px);
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(135deg, #2D5016 0%, #3d5c24 50%, #5a7d3a 100%);
  color: #FDFCFA !important;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35);
  color: #FDFCFA !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: #2D5016 !important;
  border: 1.5px solid rgba(45, 80, 22, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(45, 80, 22, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.1);
}

/* ========== HERO STAT CARDS ========== */
.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(45, 80, 22, 0.1);
  border-radius: 16px;
  padding: 16px 24px;
  transition: all 0.4s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(45, 80, 22, 0.1);
}

/* ========== MENU CARDS ========== */
.menu-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-card:nth-child(2) { transition-delay: 0.15s; }
.menu-card:nth-child(3) { transition-delay: 0.3s; }

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}

.gallery-item:hover {
  box-shadow: 0 20px 50px rgba(45, 80, 22, 0.15);
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

.reveal.visible {
  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; }

/* ========== FORM ========== */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #5a7d3a !important;
  box-shadow: 0 0 0 3px rgba(90, 125, 58, 0.1) !important;
}

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

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

  .stat-card {
    padding: 12px 18px;
  }

  .stat-card .font-display {
    font-size: 1.5rem;
  }

  #about .rounded-3xl {
    border-radius: 1.5rem !important;
  }

  .gallery-item {
    border-radius: 1rem;
  }
}

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