/* ====== CUSTOM STYLES ====== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f5f0;
}
::-webkit-scrollbar-thumb {
  background: #8fbc8f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a7c4a;
}

/* Selection color */
::selection {
  background: #b8d4b8;
  color: #1f361f;
}

/* ====== NAVBAR ====== */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(45, 90, 45, 0.08);
}

.nav-scrolled #navbar a:not([class*="bg-"]) {
  color: #2d5a2d !important;
}

/* ====== HERO ====== */
#hero {
  min-height: 100vh;
}

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

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

/* Default state for reduced motion - always visible */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ====== BUTTONS ====== */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ====== FORM ====== */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(74, 124, 74, 0.15);
}

/* ====== IMAGE HOVER ====== */
.rounded-2xl.overflow-hidden img {
  will-change: transform;
}

/* ====== GALLERY GRID ====== */
.grid-cols-2 > :nth-child(1),
.grid-cols-2 > :nth-child(4) {
  grid-row: span 1;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 640px) {
  .font-display {
    word-spacing: -0.02em;
  }
}
