/* ========== 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;
}

/* ========== NAV ========== */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
}

.nav-link {
  position: relative;
}

/* ========== MENU TABS ========== */
.menu-tab {
  background: transparent;
  color: #065F46;
  border: none;
  cursor: pointer;
}

.menu-tab.active {
  background: white;
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.menu-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

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

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

/* ========== HERO FLOATING CARDS ========== */
@media (prefers-reduced-motion: no-preference) {
  .absolute.top-0.right-0,
  .absolute.top-48.left-0,
  .absolute.bottom-0.right-8,
  .absolute.bottom-24.left-8 {
    animation: float 4s ease-in-out infinite;
  }

  .absolute.top-48.left-0 {
    animation-delay: -1s;
  }

  .absolute.bottom-0.right-8 {
    animation-delay: -2s;
  }

  .absolute.bottom-24.left-8 {
    animation-delay: -3s;
  }
}

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

/* ========== CARD HOVER ========== */
.bg-cream-50.rounded-3xl,
.bg-white.rounded-3xl {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6EE7B7;
}
