/* ===== Base & Utilities ===== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #e9b8a3;
  color: #65362c;
}

/* ===== Floating Card Animation ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

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

/* ===== Menu Tabs ===== */
.menu-tab {
  background: transparent;
  color: #78716c;
  border: none;
  cursor: pointer;
}

.menu-tab.active {
  background: #C67B5C;
  color: white;
  box-shadow: 0 4px 12px rgba(198, 123, 92, 0.3);
}

.menu-tab:hover:not(.active) {
  background: #faf0e0;
  color: #b56243;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Navbar Scroll State ===== */
nav.scrolled {
  background: rgba(253, 248, 240, 0.92) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f4;
  transition: color 0.2s;
}

.mobile-link:hover {
  color: #C67B5C;
}

.mobile-link:last-child {
  border-bottom: none;
}

#mobileMenu.open {
  animation: slideDown 0.3s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 767px) {
  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .floating-card {
    display: none;
  }

  .floating-card:nth-child(1) {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    margin-top: 24px;
    animation: none;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .floating-card {
    display: none;
  }

  .floating-card:nth-child(1) {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    margin-top: 24px;
    animation: none;
  }
}
