/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbar.scrolled {
  background: rgba(253, 249, 243, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #EB6B47;
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #E04E28, #EB6B47);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 78, 40, 0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.7);
  color: #A12C16;
  border: 2px solid rgba(161, 44, 22, 0.2);
  border-radius: 9999px;
  padding: 0.65rem 1.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover {
  background: #fff;
  border-color: #A12C16;
  transform: translateY(-2px);
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  animation: float 4s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.3s; }
.card-3 { animation-delay: 2.6s; }

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

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays */
.card-menu:nth-child(1) [data-reveal] { transition-delay: 0.05s; }
.card-menu:nth-child(2) [data-reveal] { transition-delay: 0.15s; }
.card-menu:nth-child(3) [data-reveal] { transition-delay: 0.25s; }
.card-menu:nth-child(4) [data-reveal] { transition-delay: 0.35s; }
.card-menu:nth-child(5) [data-reveal] { transition-delay: 0.45s; }
.card-menu:nth-child(6) [data-reveal] { transition-delay: 0.55s; }

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F9EDD6;
  text-decoration: none;
}
.mobile-link:last-child { border-bottom: none; }

/* ===== MISC ===== */
::selection { background: #F5B9A6; color: #6B2216; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
