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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #284822;
  color: #fefdf8;
}

/* ===== NAVIGATION ===== */
.nav-logo-text {
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
}

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

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

/* Nav background on scroll */
nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-logo-text {
  color: #1a2f16;
}

nav.scrolled .nav-link {
  color: #284822;
}

nav.scrolled .nav-link::after {
  background: #467639;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

body.menu-open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== FLOATING CARDS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

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

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

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

/* ===== MARQUEE ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

/* ===== CARD ELEVATE ===== */
.card-elevate {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-elevate:hover {
  transform: translateY(-6px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 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; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
}

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

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 767px) {
  .animate-float-slow,
  .animate-float-medium,
  .animate-float-fast {
    display: none;
  }
}

/* ===== IMAGE PLACEHOLDERS ===== */
img {
  max-width: 100%;
  height: auto;
}
