/* =============================================
   TITAN BURGERS – style.css
   Mobile-first · Red & Yellow · Dark text
   ============================================= */

/* === 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-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;
}
.hero-layout {
  display: flex; flex-direction: row; flex: 1;
  min-height: calc(100svh - 62px); position: relative; z-index: 3;
}
.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;
}
.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%
  );
}
.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;
}
.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 hero */
@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 block */
.menu-category { max-width: 1200px; margin: 0 auto 3rem; padding: 0 1rem; }
.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;
}

/* =============================================
   MEAL CARDS – DESKTOP: original grid layout
   ============================================= */
.meal-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.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);
  will-change: transform;
  animation: fadeUp 0.5s ease both;
}
.meal-card:hover, .meal-card:active {
  transform: scale(1.045) translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
}

/* Image wrapper – desktop */
.meal-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #fff;
}
.meal-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.meal-img-contain img { object-fit: contain; background: #fff; }

/* Meal info */
.meal-info {
  padding: 0.8rem 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  flex: 1;
}
.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);
}
.meal-price .currency {
  font-size: 1.21em;
  vertical-align: baseline;
  line-height: 1;
}

/* Description – hidden by default, shown via JS */
.meal-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: none;
  margin-top: 0.2rem;
}

/* See more / see less button */
.see-more-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
  transition: color 0.2s;
  width: fit-content;
}
.see-more-btn:hover { color: #444; }

/* =============================================
   MEAL CARDS – MOBILE: horizontal layout
   Image on left, info on right, full width
   ============================================= */
@media (max-width: 767px) {
  .menu-section { padding-left: 0; padding-right: 0; }
  .menu-category { padding: 0; }
  .category-title { margin-left: 1rem; }
  .section-header { padding: 0 1rem; }

  .meal-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .meal-card {
    flex-direction: row;        /* image left, info right */
    width: 100%;
    min-height: 100px;
    border-radius: 12px;
    animation: none;            /* skip stagger on mobile for perf */
  }

  /* Hover/active scale looks odd on horizontal cards – soften it */
  .meal-card:hover, .meal-card:active {
    transform: scale(1.01);
  }

  /* Image: fixed square on the left */
  .meal-img-wrap {
    width: 110px;
    min-width: 110px;
    height: auto;
    min-height: 100px;
    border-radius: 0;
    flex-shrink: 0;
  }
  .meal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Info: takes the rest of the width */
  .meal-info {
    padding: 0.75rem 0.85rem;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;               /* prevent text overflow */
  }

  .meal-name {
    font-size: 0.8rem;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .meal-price { font-size: 1rem; }

  .see-more-btn { font-size: 0.75rem; }

  .meal-desc { font-size: 0.78rem; }
}

/* Animation stagger for desktop cards */
.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; }

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

@keyframes highlightContact {
  0%   { background: transparent; border-radius: 6px; }
  20%  { background: rgba(255,195,0,0.45); border-radius: 6px; }
  80%  { background: rgba(255,195,0,0.45); border-radius: 6px; }
  100% { background: transparent; border-radius: 6px; }
}
.contact-highlight { animation: highlightContact 1.8s ease forwards; }

/* Touch device tweaks */
@media (hover: none) {
  .meal-card:active { transform: scale(1.02); 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); }
