/* ============================================
   BLESSED AND HIGHLY FLAVORED TACOS & CATERING
   Custom Styles
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #e07a5f;
  color: #14171e;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #14171e;
}
::-webkit-scrollbar-thumb {
  background: #3f4554;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e07a5f;
}

/* ---------- Navbar ---------- */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(11, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196, 196, 204, 0.06);
}

/* ---------- Hero ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(11, 13, 18, 0.55) 0%,
    rgba(20, 23, 30, 0.70) 50%,
    rgba(11, 13, 18, 0.90) 100%
  );
}

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

.hero-subtitle {
  letter-spacing: 0.3em;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-animated {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-tag {
  display: block;
}

.reveal-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-card.reveal-animated {
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- Menu Card ---------- */
.menu-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  box-shadow: 0 8px 40px rgba(224, 122, 95, 0.08);
}

/* ---------- Gallery ---------- */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 13, 18, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- Catering Section ---------- */
.catering-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.catering-overlay {
  background: linear-gradient(
    to right,
    rgba(11, 13, 18, 0.85) 0%,
    rgba(11, 13, 18, 0.65) 50%,
    rgba(11, 13, 18, 0.85) 100%
  );
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(224, 122, 95, 0.2);
}

/* ---------- Input Focus ---------- */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 1px rgba(224, 122, 95, 0.3);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-card {
    opacity: 1;
    transform: none;
  }

  .gallery-item img {
    transition: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  #navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

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