/* ========================================
   La Palapa — Custom Styles
   ======================================== */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #f9cdd8;
  color: #681638;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(58, 10, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Hero
   ======================================== */
.hero-bg {
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.02);
}

.hero-title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

/* Hero entrance animations */
.hero-badge {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards 0.8s;
}

.hero-buttons {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards 1.1s;
}

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

/* Scroll indicator */
.scroll-indicator {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
  box-shadow: 0 4px 20px rgba(255, 110, 63, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 110, 63, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ========================================
   Section Labels & Titles
   ======================================== */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e04372;
  background: linear-gradient(135deg, #fdf2f4, #fce7eb);
  padding: 0.4em 1em;
  border-radius: 100px;
  display: inline-block;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #3a0a1c;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.body-text {
  color: #7f163d;
  line-height: 1.75;
  font-size: 1.05rem;
}

/* ========================================
   About
   ======================================== */
.about-img-wrapper {
  box-shadow: 0 25px 60px rgba(104, 22, 56, 0.2);
}

.about-floating-card {
  box-shadow: 0 15px 40px rgba(104, 22, 56, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.75rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #a01644;
  font-weight: 500;
}

/* ========================================
   Menu Cards
   ======================================== */
.menu-card {
  background: #FFF8F4;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(244, 163, 184, 0.2);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(104, 22, 56, 0.12);
}

.menu-card-img {
  height: 190px;
  box-shadow: 0 8px 20px rgba(104, 22, 56, 0.1);
}

.menu-card-icon {
  display: inline-block;
}

/* ========================================
   Vibe Cards
   ======================================== */
.vibe-card {
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.vibe-card:hover {
  transform: translateY(-4px);
}

.vibe-card-img {
  height: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Contact Form
   ======================================== */
#contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a01644' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 110, 63, 0.15);
}

/* ========================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
  border-radius: 0.75rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .about-floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* ========================================
   Focus Visible (Accessibility)
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ff6e3f;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  #navbar, .hero-scroll, .btn-primary, .btn-secondary {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section-title {
    color: #000;
  }
}
