/* ============================================================
   Lolita's Mexican Food Truck — Stylesheet
   ============================================================ */

:root {
  --red:        #C0392B;
  --red-dark:   #922B21;
  --gold:       #F39C12;
  --gold-light: #F9C74F;
  --green:      #27AE60;
  --espresso:   #1A0A00;
  --cream:      #FDF6EC;
  --cream-dark: #F5E6D0;
  --text:       #2C1810;
  --text-muted: #7D5C4A;
  --white:      #FFFFFF;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;

  --radius:   8px;
  --radius-lg: 16px;
  --shadow:   0 4px 20px rgba(26, 10, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 10, 0, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 10, 0, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-taco { font-size: 2rem; line-height: 1; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-sub { color: var(--white); font-size: 0.85rem; font-family: var(--font-body); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

/* Order Now button in nav */
.nav-order-btn {
  background: var(--gold) !important;
  color: var(--espresso) !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius) !important;
  font-weight: 900 !important;
}
.nav-order-btn:hover {
  background: var(--gold-light) !important;
  color: var(--espresso) !important;
}

/* ── Dancing Script accent ──────────────────────────────── */
.script-accent {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4em;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* ── Papel Picado ───────────────────────────────────────── */
.papel-picado {
  position: absolute;
  top: 4rem; left: 0; right: 0;
  z-index: 2;
  overflow: hidden;
  height: 60px;
}

.pp-string {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 60px;
  gap: 0;
}

.pp-flag {
  flex: 1;
  height: 50px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: ppSway 2.5s ease-in-out infinite alternate;
  transform-origin: top center;
}

.pp-1 { background: #F39C12; animation-delay: 0s; }
.pp-2 { background: #27AE60; animation-delay: .2s; }
.pp-3 { background: #C0392B; animation-delay: .4s; }
.pp-4 { background: #F9C74F; animation-delay: .6s; }
.pp-5 { background: #9B59B6; animation-delay: .8s; }

@keyframes ppSway {
  0%   { transform: rotate(-8deg) scaleY(0.95); }
  100% { transform: rotate(8deg)  scaleY(1.05); }
}

/* ── Tile Divider ───────────────────────────────────────── */
.tile-divider {
  height: 20px;
  background-image: repeating-linear-gradient(
    90deg,
    #C0392B 0px,   #C0392B 20px,
    #F39C12 20px,  #F39C12 40px,
    #27AE60 40px,  #27AE60 60px,
    #F9C74F 60px,  #F9C74F 80px,
    #9B59B6 80px,  #9B59B6 100px
  );
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.4rem;
}

/* ── Language Toggle ───────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

.lang-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 6px center;
  background-size: 20px 15px;
  padding: 0.25rem 0.5rem 0.25rem 30px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.lang-btn[data-lang="en"] { background-image: url('https://flagcdn.com/20x15/us.png'); }
.lang-btn[data-lang="es"] { background-image: url('https://flagcdn.com/20x15/mx.png'); }

.lang-btn.lang-active {
  background-color: rgba(192, 57, 43, 0.15);
  border-color: var(--red);
  color: var(--gold-light);
}

/* ── Scroll Animations — no CDN ────────────────────────────── */
.js-ready [data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready [data-aos="fade-right"] { transform: translateX(-20px); }
.js-ready [data-aos="fade-left"]  { transform: translateX(20px); }
.js-ready [data-aos="zoom-in"]    { transform: scale(0.95); }
.js-ready [data-aos].aos-animate  { opacity: 1; transform: none; }

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 40%, #8B1A1A 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

/* ── Chili Decorations ──────────────────────────────────── */
.chili-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Hero chilies render above the mascot image */
#hero .chili-decor { z-index: 2; }

.chili {
  position: absolute;
  opacity: 0.22;
}

/* ── Hero chilies — right side only, clear of headline text ── */
.chili-1 { color: #E74C3C; font-size: 5rem;  top: 18%; right: 7%;  transform: rotate(35deg); }
.chili-2 { color: #27AE60; font-size: 4rem;  top: 38%; right: 14%; transform: rotate(-45deg); }
.chili-3 { color: #C0392B; font-size: 6rem;  top: 58%; right: 6%;  transform: rotate(-20deg); }
.chili-4 { color: #2ECC71; font-size: 3.5rem; top: 75%; right: 20%; transform: rotate(15deg); }
.chili-5 { color: #E74C3C; font-size: 7rem;  top: 82%; right: 4%;  transform: rotate(50deg); }
.chili-6 { color: #27AE60; font-size: 3rem;  top: 10%; right: 24%; transform: rotate(-60deg); }

/* ── About section chilies ── */
.chili-a1 { color: #E74C3C; font-size: 5rem;  top: 10%; left: 4%;  transform: rotate(-30deg); }
.chili-a2 { color: #27AE60; font-size: 3.5rem; top: 60%; left: 5%;  transform: rotate(25deg); }
.chili-a3 { color: #C0392B; font-size: 4rem;  top: 35%; right: 4%; transform: rotate(55deg); }

/* ── Menu section chilies ── */
.chili-m1 { color: #27AE60; font-size: 6rem;  top: 5%;  right: 4%; transform: rotate(-15deg); }
.chili-m2 { color: #E74C3C; font-size: 3.5rem; top: 50%; left: 4%;  transform: rotate(40deg); }
.chili-m3 { color: #2ECC71; font-size: 4.5rem; top: 75%; right: 5%; transform: rotate(-50deg); }

/* ── Location section chilies ── */
.chili-l1 { color: #C0392B; font-size: 5rem;  top: 15%; right: 4%; transform: rotate(30deg); }
.chili-l2 { color: #27AE60; font-size: 4rem;  top: 65%; left: 4%;  transform: rotate(-25deg); }

/* ── Contact section chilies ── */
.chili-c1 { color: #E74C3C; font-size: 4.5rem; top: 10%; left: 4%;  transform: rotate(-40deg); }
.chili-c2 { color: #2ECC71; font-size: 3.5rem; top: 70%; right: 4%; transform: rotate(20deg); }

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 50%);
  background-size: 24px 24px;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-mascot {
  flex: 0 0 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-img {
  width: 380px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

@media (max-width: 860px) {
  .hero-mascot { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(243, 156, 18, 0.2);
  border: 1px solid rgba(243, 156, 18, 0.5);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

#hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#hero h1 em {
  color: var(--gold);
  font-style: normal;
}

#hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gold);
  color: var(--espresso);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(243,156,18,0.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

.btn-green {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.btn-green:hover { background: #219a52; border-color: #219a52; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(39,174,96,0.4); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── About ─────────────────────────────────────────────────── */
#about    { background: var(--cream);      position: relative; overflow: hidden; }
#menu     {                                 position: relative; overflow: hidden; }
#location { background: var(--cream-dark); position: relative; overflow: hidden; }
#contact  { background: var(--white);      position: relative; overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--espresso);
  font-family: var(--font-head);
  font-size: 1rem;
  padding: 1.25rem;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow);
}

.about-img-badge strong { font-size: 1.6rem; display: block; }

.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.5rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.feature-card i {
  font-size: 1.75rem;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: block;
}

.feature-card h4 { font-size: 0.9rem; font-family: var(--font-body); font-weight: 700; }

/* ── Menu ──────────────────────────────────────────────────── */
#menu {
  background: var(--espresso);
  color: var(--white);
}

#menu .section-label { color: var(--gold); }
#menu h2 { color: var(--white); margin-bottom: 0.5rem; }
#menu > .container > p { color: rgba(255,255,255,0.65); margin-bottom: 3rem; }

.menu-swiper {
  padding-bottom: 3rem !important;
}

/* Slides stretch to match the tallest card in the row */
.menu-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.menu-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.menu-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.menu-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.menu-card h3 {
  color: var(--gold);
  font-family: var(--font-head);
  margin-bottom: 0.75rem;
}

.menu-items {
  list-style: none;
  text-align: left;
  margin-bottom: 1.25rem;
  flex: 1;
}

.menu-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.menu-items li:last-child { border-bottom: none; }

.menu-items .price {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.swiper-pagination-bullet { background: rgba(255,255,255,0.4) !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* Outer wrapper holds the arrows; swiper is clipped so no bleed */
.swiper-outer {
  position: relative;
  padding: 0 3rem;
}

.menu-swiper {
  overflow: hidden;
  padding-bottom: 3rem !important;
}

.swiper-button-next, .swiper-button-prev {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(calc(-50% - 1.5rem)) !important; /* offset for pagination */
  color: var(--gold) !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.swiper-button-prev { left: 0 !important; }
.swiper-button-next { right: 0 !important; }
.swiper-button-next::after, .swiper-button-prev::after {
  font-family: swiper-icons !important;
  font-size: 1rem !important;
  color: var(--gold);
}

/* ── Location ──────────────────────────────────────────────── */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

#map {
  height: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.location-info h2 { margin-bottom: 1.5rem; }

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-block i {
  font-size: 1.4rem;
  color: var(--red);
  margin-top: 0.15rem;
  min-width: 24px;
}

.info-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.info-block p { font-size: 0.95rem; line-height: 1.5; }

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.hours-row .open { color: var(--green); font-weight: 700; }
.hours-row .closed { color: var(--text-muted); }

/* ── Catering / Contact ────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.catering-callout {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.catering-callout i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: var(--gold); }
.catering-callout h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.catering-callout p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #1877F2;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s;
  margin-top: 1rem;
}

.social-link:hover { opacity: 0.85; }

.contact-form h2 { margin-bottom: 0.5rem; }
.contact-form p { color: var(--text-muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

footer p { font-size: 0.85rem; margin-bottom: 0.3rem; }

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.4;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  /* Slightly tighten nav on mobile — keep all text visible */
  .nav-logo { font-size: 1.1rem; }
  .nav-taco { font-size: 1.6rem; }
  .nav-sub { font-size: 0.72rem; }
  .lang-toggle { margin-left: 0.5rem; gap: 0.15rem; }
  .lang-btn {
    padding: 0.2rem 0.35rem 0.2rem 26px;
    font-size: 0.72rem;
    background-size: 16px 12px;
    background-position: 5px center;
  }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(26,10,0,0.98);
    padding: 1.5rem;
    gap: 1.25rem;
    text-align: center;
  }
  .nav-toggle { display: block; }

  .about-grid,
  .location-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .about-img-wrap { order: -1; }
  .about-img-wrap img { height: 260px; }
  .about-img-badge { bottom: -1rem; right: 0; width: 90px; height: 90px; font-size: 0.8rem; }
  .about-img-badge strong { font-size: 1.3rem; }

  .about-features { grid-template-columns: 1fr; }

  #map { height: 260px; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn { justify-content: center; }
}
