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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #7B2D3B;
  color: #FDF6F0;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(253, 246, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

#navbar.scrolled .nav-link {
  color: #7B2D3B !important;
}

#navbar.scrolled .nav-link::after {
  background: #7B2D3B;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 1;
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger */
.menu-line {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* ===== HERO ===== */
.hero-blob {
  animation: float 8s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -3s; }
.blob-3 { animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-eyebrow {
  animation: fadeDown 0.8s ease 0.2s both;
}

.hero-headline {
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-sub {
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero-ctas {
  animation: fadeUp 0.8s ease 0.8s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

/* On reduced motion, keep everything visible */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up.is-hidden { opacity: 0; transform: translateY(32px); }
  .reveal-left.is-hidden { opacity: 0; transform: translateX(-32px); }
  .reveal-right.is-hidden { opacity: 0; transform: translateX(32px); }
}

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

.menu-tab.active {
  background: #7B2D3B;
  color: white;
  box-shadow: 0 4px 15px rgba(123, 45, 59, 0.3);
}

.menu-tab:not(.active):hover {
  background: rgba(123, 45, 59, 0.08);
}

.menu-panel {
  animation: fadeIn 0.4s ease;
}

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

/* ===== SMOOTH SCROLL OFFSET FOR FIXED NAV ===== */
section[id] {
  scroll-margin-top: 80px;
}

/* ===== UTILITIES ===== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
  section[id] {
    scroll-margin-top: 70px;
  }
}
