/* ===== 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 {
  max-width: 100%;
  height: auto;
}

/* ===== SCROLL REVEAL ===== */
/* Default: all content visible (no JS required) */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  /* Stagger children */
  .reveal-grid .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
  .reveal-grid .scroll-reveal:nth-child(2) { transition-delay: 80ms; }
  .reveal-grid .scroll-reveal:nth-child(3) { transition-delay: 160ms; }
  .reveal-grid .scroll-reveal:nth-child(4) { transition-delay: 240ms; }
  .reveal-grid .scroll-reveal:nth-child(5) { transition-delay: 320ms; }
  .reveal-grid .scroll-reveal:nth-child(6) { transition-delay: 400ms; }
}

/* ===== NAVBAR ===== */
#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(45, 90, 61, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

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

/* ===== MOBILE MENU ===== */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(135deg, #0f1f14 0%, #1a3322 40%, #2D5A3D 100%);
}

/* ===== BUTTONS ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: inherit;
}

/* ===== CARDS ===== */
.amenity-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
}

/* ===== GALLERY ===== */
.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 31, 20, 0.2) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}

/* ===== FORM ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(167, 201, 168, 0.2);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F5F0E8;
}

::-webkit-scrollbar-thumb {
  background: #8fb68a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a7c46;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(45, 90, 61, 0.2);
  color: #1a3322;
}
