/* =====================================================================
   Fiesta Mexicana — site.css
   Modern cantina aesthetic. Red & gold lead, green accent.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800;9..144,900&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Palette & tokens ---------- */
:root {
  --fm-red:        #B8232A;
  --fm-red-deep:   #8C1A20;
  --fm-red-soft:   #d65058;
  --fm-gold:       #F4B223;
  --fm-gold-deep:  #C68A0F;
  --fm-green:      #006847;
  --fm-green-soft: #1a7d5d;
  --fm-cream:      #FBF6EE;
  --fm-cream-2:    #F4ECD8;
  --fm-charcoal:   #2A1F17;
  --fm-charcoal-2: #4a3a2c;
  --fm-line:       #e8dcc6;

  --fm-shadow-sm:  0 2px 6px rgba(42, 31, 23, .08);
  --fm-shadow-md:  0 8px 24px rgba(42, 31, 23, .12);
  --fm-shadow-lg:  0 18px 48px rgba(42, 31, 23, .18);

  --fm-radius-sm:  6px;
  --fm-radius-md:  12px;
  --fm-radius-lg:  20px;

  --fm-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --fm-font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --fm-container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fm-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fm-charcoal);
  background: var(--fm-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--fm-red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--fm-red-deep); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.4em; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--fm-font-display);
  font-weight: 800;
  color: var(--fm-charcoal);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 60;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
.eyebrow {
  display: inline-block;
  font-family: var(--fm-font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fm-green);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--fm-gold);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--fm-container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--cream    { background: var(--fm-cream); }
.section--cream-2  { background: var(--fm-cream-2); }
.section--charcoal { background: var(--fm-charcoal); color: var(--fm-cream); }
.section--charcoal h1, .section--charcoal h2, .section--charcoal h3 { color: var(--fm-cream); }
.section--red      { background: var(--fm-red); color: #fff; }
.section--red h1, .section--red h2, .section--red h3 { color: #fff; }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--fm-red);
  color: #fff;
  box-shadow: var(--fm-shadow-md);
}
.btn--primary:hover { background: var(--fm-red-deep); color: #fff; }
.btn--gold {
  background: var(--fm-gold);
  color: var(--fm-charcoal);
  box-shadow: var(--fm-shadow-md);
}
.btn--gold:hover { background: var(--fm-gold-deep); color: var(--fm-charcoal); }
.btn--ghost {
  background: transparent;
  color: var(--fm-cream);
  border-color: var(--fm-cream);
}
.btn--ghost:hover { background: var(--fm-cream); color: var(--fm-charcoal); }
.btn--outline {
  background: transparent;
  color: var(--fm-red);
  border-color: var(--fm-red);
}
.btn--outline:hover { background: var(--fm-red); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Decorative: papel picado top border ---------- */
.papel-border {
  height: 18px;
  background:
    linear-gradient(135deg, transparent 50%, var(--fm-red) 50%) 0 0/14px 18px,
    linear-gradient(45deg,  transparent 50%, var(--fm-red) 50%) 7px 0/14px 18px,
    var(--fm-gold);
  background-repeat: repeat-x;
  position: relative;
}
.papel-border::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 4px;
  background: var(--fm-green);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fm-cream);
  border-bottom: 1px solid var(--fm-line);
  box-shadow: 0 1px 0 rgba(0,0,0,0);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--fm-shadow-sm); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--fm-container);
  margin: 0 auto;
  gap: 24px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fm-charcoal);
}
.site-header__logo {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.site-header__sub {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fm-green);
  font-weight: 700;
  line-height: 1;
  padding-left: 14px;
  border-left: 2px solid var(--fm-line);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--fm-charcoal);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--fm-red); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--fm-gold);
  border-radius: 2px;
}
.site-header__phone {
  color: var(--fm-charcoal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-header__phone svg { color: var(--fm-red); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--fm-charcoal);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--fm-red-deep) 0%, var(--fm-red) 60%, var(--fm-gold-deep) 100%);
  color: #fff;
  padding: clamp(80px, 14vw, 160px) 0 clamp(72px, 12vw, 140px);
  overflow: hidden;
}
.hero::before {
  /* Subtle radial accents for atmosphere */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(244,178,35,.32), transparent 45%),
    radial-gradient(ellipse at 85% 78%, rgba(0,104,71,.28), transparent 50%);
  pointer-events: none;
}
.hero::after {
  /* Subtle noise overlay for warmth */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: var(--fm-container); margin: 0 auto; padding: 0 24px; }
.hero__eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fm-gold);
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  max-width: 820px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--fm-gold);
  font-variation-settings: "opsz" 144;
}
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 580px;
  opacity: .95;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Mojo character — peeks in from the right side of the hero */
.hero__mojo {
  position: absolute;
  right: clamp(20px, 3vw, 60px);
  bottom: 40px;
  width: clamp(220px, 28vw, 420px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
  transform: rotate(-4deg);
  animation: fm-mojo-bob 6s ease-in-out infinite;
}
@keyframes fm-mojo-bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-8px); }
}

/* 404 page Mojo */
.mojo-404 {
  width: clamp(180px, 30vw, 280px);
  height: auto;
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  transform: rotate(-6deg);
}

/* ---------- Cards & feature blocks ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-md);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fm-shadow-md);
}
.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--fm-cream-2);
  color: var(--fm-red);
  border-radius: var(--fm-radius-sm);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 24px; height: 24px; }

/* ---------- Menu page styling ---------- */
.menu-section {
  margin-bottom: clamp(40px, 5vw, 64px);
  scroll-margin-top: 100px;
}
.menu-section__title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--fm-line);
}
.menu-section__title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--fm-red);
}
.menu-section__title__note {
  font-size: .85rem;
  color: var(--fm-charcoal-2);
  font-style: italic;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 56px;
}
.menu-item {
  border-bottom: 1px dashed var(--fm-line);
  padding-bottom: 18px;
}
.menu-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.menu-item__name {
  font-family: var(--fm-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fm-charcoal);
  margin: 0;
  flex: 1;
}
.menu-item__price {
  font-family: var(--fm-font-display);
  font-weight: 700;
  color: var(--fm-red);
  font-size: 1.05rem;
  white-space: nowrap;
}
.menu-item__desc {
  margin: 4px 0 0;
  color: var(--fm-charcoal-2);
  font-size: .94rem;
  line-height: 1.5;
}

/* Sticky menu nav (jump links) */
.menu-jumplinks {
  position: sticky;
  top: 80px;
  background: var(--fm-cream);
  z-index: 10;
  padding: 12px 0;
  border-bottom: 1px solid var(--fm-line);
  margin-bottom: 40px;
}
.menu-jumplinks__inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.menu-jumplinks a {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fm-line);
  color: var(--fm-charcoal-2);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.menu-jumplinks a:hover {
  background: var(--fm-gold);
  color: var(--fm-charcoal);
  border-color: var(--fm-gold);
}

/* ---------- Drinks page ---------- */
.drinks-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--fm-line);
}
.drinks-section:last-of-type {
  border-bottom: none;
}
.drinks-heading {
  font-family: var(--fm-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  color: var(--fm-red);
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.drinks-heading::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  background: var(--fm-gold);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 6px;
}
.drinks-note {
  color: var(--fm-charcoal-2);
  font-size: .92rem;
  font-style: italic;
  margin: 0 0 18px;
  padding-left: 36px;
}
.drinks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 3;
  column-gap: 36px;
  font-size: 1rem;
}
.drinks-list li {
  padding: 8px 0;
  break-inside: avoid;
  border-bottom: 1px dashed var(--fm-line);
  color: var(--fm-charcoal);
  font-weight: 500;
}
.drinks-desc {
  color: var(--fm-charcoal-2);
  font-style: italic;
  font-size: .85rem;
  font-weight: 400;
}

/* Old drink-tile styles kept in case used elsewhere */
.drink-tile {
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-md);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.drink-tile::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--fm-cream-2);
  z-index: 0;
}
.drink-tile > * { position: relative; z-index: 1; }
.drink-tile__icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.drink-tile h3 { color: var(--fm-red); margin-bottom: 8px; }
.drink-tile p { color: var(--fm-charcoal-2); margin: 0; font-size: .96rem; }

.alert-box {
  background: #fff;
  border-left: 4px solid var(--fm-gold);
  padding: 18px 22px;
  border-radius: var(--fm-radius-sm);
  font-size: .92rem;
  color: var(--fm-charcoal-2);
  box-shadow: var(--fm-shadow-sm);
}
.alert-box--accent {
  border-left-color: var(--fm-red);
  background: var(--fm-cream-2);
  font-size: .96rem;
}

/* ---------- Contact / hours ---------- */
.info-card {
  background: #fff;
  border-radius: var(--fm-radius-md);
  padding: 32px;
  box-shadow: var(--fm-shadow-sm);
  border: 1px solid var(--fm-line);
}
.info-card h3 {
  color: var(--fm-red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.info-card h3 svg { width: 22px; height: 22px; color: var(--fm-gold); }
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--fm-line); }
.hours-table td:last-child { text-align: right; color: var(--fm-charcoal-2); }
.hours-table tr:last-child td { border: none; }

.map-frame {
  border-radius: var(--fm-radius-md);
  overflow: hidden;
  box-shadow: var(--fm-shadow-md);
  border: 4px solid #fff;
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  background: var(--fm-cream-2);
  aspect-ratio: 1 / 1;
  border-radius: var(--fm-radius-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--fm-charcoal-2);
  font-size: .9rem;
  position: relative;
  border: 1px dashed var(--fm-line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fm-charcoal);
  color: var(--fm-cream-2);
  padding: 60px 0 24px;
}
.site-footer h4 {
  color: var(--fm-gold);
  font-family: var(--fm-font-display);
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.site-footer a { color: var(--fm-cream-2); text-decoration: none; }
.site-footer a:hover { color: var(--fm-gold); }
.site-footer p, .site-footer li { font-size: .92rem; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(244, 236, 216, .12);
}
.site-footer__bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  opacity: .7;
}
.site-footer__logo {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; }
.mb-2 { margin-bottom: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }
.mb-3 { margin-bottom: 2.2rem; }
.muted { color: var(--fm-charcoal-2); }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--fm-charcoal-2); max-width: 60ch; }

/* ---------- Page hero (lighter, for inner pages) ---------- */
.page-hero {
  background: var(--fm-red);
  color: #fff;
  padding: clamp(70px, 9vw, 110px) 0 clamp(60px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(244,178,35,.18), transparent 50%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #fff; opacity: .92; max-width: 60ch; margin: 0; }
.page-hero__inner { position: relative; z-index: 2; }

/* ====================================================================
   RESPONSIVE — keep media queries at the end so they win specificity ties
   ==================================================================== */
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .drinks-list { columns: 2; column-gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }

  /* Mobile nav: hide inline nav, show toggle */
  .site-nav, .site-header__phone { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--fm-cream);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--fm-line);
    box-shadow: var(--fm-shadow-md);
  }
  .site-nav.is-open a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--fm-line);
    font-size: 1rem;
  }
  .site-nav.is-open a:last-of-type { border: none; }
  .site-nav.is-open .btn { margin-top: 10px; align-self: flex-start; }
  .nav-toggle { display: inline-flex; }

  .hero { padding: 60px 0 56px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__mojo {
    width: 160px;
    right: 12px;
    bottom: 30px;
    opacity: 0.35;  /* fade behind text on mobile so text stays legible */
  }
  .site-header__sub { display: none; }  /* hide subtitle on mobile to save room */
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .site-header__inner { padding: 12px 18px; gap: 12px; }
  .site-header__sub { display: none; }
  .site-header__logo { height: 34px; }
  .menu-jumplinks { top: 70px; }
  .drinks-list { columns: 1; }
  .drinks-note { padding-left: 0; }
}

/* Print */
@media print {
  .site-header, .site-footer, .menu-jumplinks, .nav-toggle, .lm-fab, .fm-fab { display: none !important; }
  body { background: #fff; color: #000; }
  .menu-section { page-break-inside: avoid; }
}
