/* =============================================
   TITAN BURGERS – style.css
   Mobile-first · Red & Yellow · Dark text
   Font stack with fallbacks (font backup)
   ============================================= */

/* === CSS VARIABLES === */
:root {
  --red:        #D72B2B;
  --red-dark:   #B01E1E;
  --red-light:  #F04040;
  --yellow:     #FFC300;
  --yellow-dark:#E0A800;
  --dark:       #1A1A1A;
  --dark2:      #2C2C2C;
  --white:      #FFFFFF;
  --offwhite:   #FFF8F0;
  --gray:       #F5F5F5;
  --text:       #1A1A1A;
  --text-muted: #555;

  /* Font stacks with backups */
  --font-display: 'Poppins', 'Trebuchet MS', 'Helvetica Neue', sans-serif;
  --font-heading: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --font-body:    'Lato', 'Segoe UI', 'Helvetica', Arial, sans-serif;

  --radius:  14px;
  --shadow:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.20);
  --transition: 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--offwhite);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--red);
  padding: 0 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  filter: brightness(1.15) contrast(1.1) saturate(1.4);
  object-fit: contain;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav links – mobile slide-down */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 62px; left: 0; right: 0;
  background: var(--red-dark);
  padding: 1rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.nav-links.open { display: flex; }

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  padding: 0.75rem 2rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, padding-left 0.2s;
}

.nav-link:hover, .nav-link:active {
  background: rgba(255,255,255,0.12);
  padding-left: 2.5rem;
}

/* Desktop nav */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 0.25rem;
  }
  .nav-link {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
  }
  .nav-link:hover { background: rgba(255,255,255,0.18); padding-left: 1rem; }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 62px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Two-column layout inside hero */
.hero-layout {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: calc(100svh - 62px);
  position: relative;
  z-index: 3;
}

/* LEFT: Video panel */
.hero-video-wrap {
  position: relative;
  width: 50%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient blend: reduced red overlay so video stays clear */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(183, 24, 24, 0.05) 0%,
    rgba(183, 24, 24, 0.25) 60%,
    rgba(183, 24, 24, 0.75) 100%
  );
}

/* RIGHT: Text panel */
.hero-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 2rem;
  text-align: left;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(0,0,0,0.25);
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-hours { margin-bottom: 2rem; }

.hours-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.cta-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(255,195,0,0.45);
  transition: transform 0.22s, box-shadow 0.22s;
}

.cta-btn:hover, .cta-btn:active {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(255,195,0,0.6);
}

.hero-wave {
  position: relative;
  z-index: 4;
  line-height: 0;
  margin-top: auto;
}
.hero-wave svg { width: 100%; height: 60px; }

/* === MOBILE: stack video above text === */
@media (max-width: 767px) {
  .hero { padding-top: 62px; min-height: 100svh; }

  .hero-layout {
    flex-direction: column;
    min-height: calc(100svh - 62px);
  }

  .hero-video-wrap {
    width: 100%;
    height: 38vh;
    position: relative;
    flex-shrink: 0;
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-video-overlay {
    background: linear-gradient(
      to bottom,
      rgba(183, 24, 24, 0.05) 0%,
      rgba(183, 24, 24, 0.3) 60%,
      rgba(183, 24, 24, 0.85) 100%
    );
  }

  .hero-content {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
  }
}

/* === MENU SECTION === */
.menu-section {
  background: var(--white);
  padding: 4rem 1rem 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background: var(--yellow);
  margin: 0.3rem auto 0;
  border-radius: 2px;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.tab-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.22s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--red);
  color: var(--white);
}

/* Menu grid */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.25rem;
}

@media (min-width: 480px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (min-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== NEW MENU LAYOUT ===== */
/* Category block */
.menu-category {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* Category title */
.category-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}

/* Row of meal cards */
.meal-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

/* Individual meal card */
.meal-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(215,43,43,0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  will-change: transform;
}

.meal-card:hover,
.meal-card:active {
  transform: scale(1.045) translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
}

/* Image wrapper */
.meal-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
  background: #fff;
}

.meal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contain: shows full image without cropping (used for promo/combo cards) */
.meal-img-contain img {
  object-fit: contain;
  background: #fff;
}

/* Meal info below image */
.meal-info {
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meal-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.meal-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--red);
}

/* Mobile: 2 columns on small screens */
@media (max-width: 480px) {
  .meal-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 1.2rem 1rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-logo-wrap {
  margin-bottom: 1rem;
}

.footer-logo {
  height: 55px;
  width: auto;
  border-radius: 8px;
  filter: brightness(1.2) contrast(1.1) saturate(1.5);
  object-fit: contain;
}

.footer-hours {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.hours-time {
  color: rgba(255,255,255,0.85);
}

.closed-note {
  font-size: 0.82rem;
  color: var(--yellow);
}

.footer-phone {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
}

.footer-address {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  line-height: 1.8;
}

.footer-social { text-align: center; }

.social-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.18);
  color: var(--white);
  transition: transform var(--transition), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.social-icon svg { width: 24px; height: 24px; }

.social-icon:hover, .social-icon:active {
  transform: scale(1.22) translateY(-3px);
}

.social-icon.tiktok:hover   { background: #010101; border-color: #010101; box-shadow: 0 6px 20px rgba(1,1,1,0.6); }
.social-icon.facebook:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 6px 20px rgba(24,119,242,0.6); }
.social-icon.whatsapp:hover { background: #25D366; border-color: #25D366; box-shadow: 0 6px 20px rgba(37,211,102,0.6); }

/* Footer bottom nav */
.footer-bottom-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.8rem 0 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

.footer-bottom-nav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-bottom-nav a:hover { color: var(--yellow); }

.footer-copy {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  padding-top: 0.8rem;
  line-height: 1.6;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger menu cards on load */
.meal-card {
  animation: fadeUp 0.5s ease both;
}
.meal-card:nth-child(1)  { animation-delay: 0.05s; }
.meal-card:nth-child(2)  { animation-delay: 0.10s; }
.meal-card:nth-child(3)  { animation-delay: 0.15s; }
.meal-card:nth-child(4)  { animation-delay: 0.20s; }
.meal-card:nth-child(5)  { animation-delay: 0.25s; }
.meal-card:nth-child(6)  { animation-delay: 0.30s; }
.meal-card:nth-child(7)  { animation-delay: 0.35s; }
.meal-card:nth-child(8)  { animation-delay: 0.40s; }
.meal-card:nth-child(9)  { animation-delay: 0.45s; }
.meal-card:nth-child(10) { animation-delay: 0.50s; }
.meal-card:nth-child(11) { animation-delay: 0.55s; }
.meal-card:nth-child(12) { animation-delay: 0.60s; }
.meal-card:nth-child(13) { animation-delay: 0.65s; }

/* Touch device: activate scale on touch */
@media (hover: none) {
  .meal-card:active {
    transform: scale(1.04) translateY(-3px);
    box-shadow: var(--shadow-hover);
  }
  .social-icon:active {
    transform: scale(1.2);
  }
}

/* Scrolled navbar */
.navbar.scrolled {
  background: rgba(183,24,24,0.97);
  backdrop-filter: blur(8px);
}
