/* ===== CUSTOM STYLES ===== */

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #7B2D3B;
  color: #FDF8F7;
}

/* ===== NAVIGATION ===== */
#navbar {
  background: rgba(253, 248, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

#navbar.scrolled {
  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: 1px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}

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

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

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

#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; }

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

/* Hamburger */
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
}

/* ===== HERO ===== */
.hero-eyebrow {
  animation: slideRight 0.8s ease forwards;
  opacity: 0;
}

.hero-headline {
  animation: slideUp 0.8s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero-subtitle {
  animation: slideUp 0.8s ease 0.4s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero-ctas {
  animation: slideUp 0.8s ease 0.6s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero-image-wrapper {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.floating-card {
  animation: floatUp 0.8s ease 0.8s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes floatUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MARQUEE ===== */
.marquee-track {
  animation: marquee 30s linear infinite;
}

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

/* ===== SECTION HEADERS ===== */
.section-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.1s;
}

.section-subtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.revealed .section-eyebrow,
.revealed .section-title,
.revealed .section-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STORE CARDS ===== */
.store-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.store-card:nth-child(1) { transition-delay: 0.05s; }
.store-card:nth-child(2) { transition-delay: 0.1s; }
.store-card:nth-child(3) { transition-delay: 0.15s; }
.store-card:nth-child(4) { transition-delay: 0.2s; }
.store-card:nth-child(5) { transition-delay: 0.25s; }
.store-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== EXPERIENCE ===== */
.experience-feature {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.experience-feature.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ===== STATS ===== */
.stat-number {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-number.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===== VISIT INFO ===== */
.visit-info {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.visit-info.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
button, a[href^="tel"] {
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 3.5rem;
  }
  
  .hero-headline br {
    display: none;
  }
  
  .hero-headline::after {
    content: 'Limits';
    display: block;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  .floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}
