/* ============================================
   TACO JOHN'S FRANCHISE LANDING PAGE
   Custom Styles & Animations
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
  --tj-red: #e4002b;
  --tj-red-dark: #b30022;
  --tj-yellow: #ffb81c;
  --tj-teal: #00a896;
  --tj-burgundy: #4a1411;
  --tj-cream: #f5f1ed;
  --tj-taupe: #8c7a72;
}

/* ========== GLOBAL RESETS ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--tj-cream);
  color: var(--tj-burgundy);
  overflow-x: hidden;
}

::selection {
  background: var(--tj-red);
  color: white;
}

/* ========== NAVIGATION ========== */
#navbar {
  background: rgba(245, 241, 237, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(74, 20, 17, 0.08);
}

#navbar.scrolled {
  background: rgba(245, 241, 237, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(74, 20, 17, 0.08);
}

#navbar.scrolled .nav-link {
  color: var(--tj-burgundy);
}

#navbar.scrolled .nav-link:hover {
  color: var(--tj-red);
}

#navbar.scrolled #mobile-menu-btn {
  color: var(--tj-burgundy);
}

.nav-link {
  color: var(--tj-burgundy);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tj-red);
  transition: width 0.3s ease;
}

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

/* ========== HERO SECTION ========== */
#hero {
  position: relative;
}

/* Slider Background */
#hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Fills subpixel seams when slides scale during crossfade */
  background-color: #000;
}

.slider-slide {
  position: absolute;
  /* Slightly larger than the viewport so scale transitions never expose edges */
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transform-origin: center center;
  backface-visibility: hidden;
  transition: opacity 1.2s ease, transform 6s ease;
}

.slider-slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

/* Slider Dots */
.slider-dot {
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ========== VALUE CARDS ========== */
.value-card {
  will-change: transform, box-shadow;
}

/* ========== QUICK ACTION TILES (square photo + white CTA) ========== */
.quick-card {
  will-change: transform, opacity;
}

.quick-action-tile {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.quick-action-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.quick-action-tile__btn {
  display: inline-block;
  max-width: 92%;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 640px) {
  .quick-action-tile__btn {
    font-size: 0.7rem;
    padding: 0.85rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .quick-action-tile__btn {
    font-size: 0.75rem;
    padding: 0.95rem 1.5rem;
  }
}

.quick-action-tile:hover .quick-action-tile__btn {
  background: #f5f5f5;
}

.quick-action-tile--hiring .quick-action-tile__btn {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ========== APP DOWNLOAD BANNER ========== */
.app-download-banner__bg {
  background-repeat: no-repeat;
}

/* Focal point shifted right (high %) so hands / phone clear the left white panel — larger % = further right */
@media (min-width: 768px) {
  .app-download-banner__bg--desktop {
    background-position: 8% 20%;
  }
}

/* Typography aligned to tacojohns.com app strip: bold caps title, smaller regular subline, much larger red headline */
.app-download-banner__title {
  font-family: Montserrat, 'Arial Black', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.app-download-banner__sub {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(0.75rem, 1.85vw, 0.9375rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #0a0a0a;
  margin-top: 0.625rem;
}

.app-download-banner__free {
  font-family: Montserrat, 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 9.5vw, 4.25rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tj-red);
  margin-top: 0.25rem;
}

.app-download-banner__box {
  position: relative;
  background: #fff;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.22));
  /* Deckled / torn-paper style edge (approximates brand banner) */
  clip-path: polygon(0% 5%,
      2% 2%,
      5% 3%,
      8% 1%,
      12% 2%,
      16% 0%,
      22% 2%,
      28% 1%,
      34% 2%,
      40% 0%,
      46% 2%,
      52% 1%,
      58% 2%,
      64% 0%,
      70% 2%,
      76% 1%,
      82% 2%,
      88% 0%,
      94% 2%,
      98% 1%,
      100% 4%,
      100% 96%,
      98% 99%,
      94% 98%,
      88% 100%,
      82% 98%,
      76% 99%,
      70% 98%,
      64% 100%,
      58% 98%,
      52% 99%,
      46% 98%,
      40% 100%,
      34% 98%,
      28% 99%,
      22% 98%,
      16% 100%,
      12% 98%,
      8% 99%,
      5% 98%,
      2% 99%,
      0% 96%);
}

@media (max-width: 639px) {
  .app-download-banner__box {
    clip-path: polygon(0 3%, 3% 0, 97% 0, 100% 3%, 100% 97%, 97% 100%, 3% 100%, 0 97%);
  }
}

.app-download-banner__pattern {
  opacity: 0.95;
  background-image: repeating-linear-gradient(105deg,
      rgba(74, 20, 17, 0.07) 0 2px,
      transparent 2px 10px);
}

/* ========== LOCATION CARDS ========== */
.location-card {
  will-change: transform, box-shadow;
}

/* Status Badge Pulse */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.location-status .animate-pulse {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========== MOBILE STICKY ORDER BAR ========== */
.mobile-sticky-order {
  transition: transform 0.3s ease;
}

.mobile-sticky-order.hidden-bar {
  transform: translateY(100%);
}

/* ========== FOOTER ========== */
footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
  transform: translateY(-1px);
}

/* ========== 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;
  }

  .slider-slide {
    transition: none;
  }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--tj-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--tj-taupe);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tj-red);
}