/* ============================================================
   La Moderna Mexican Market — stylesheet
   Design system + page styles. Single file, no dependencies.
   ============================================================ */

:root {
  /* Brand palette (from menu, signage & business card) */
  --green:        #2e9e3f;
  --green-dark:   #1f7a2e;
  --magenta:      #e01e79;
  --magenta-dark: #b81563;
  --redorange:    #e8482e;
  --marigold:     #f6b200;
  --ink:          #1c1a19;
  --ink-soft:     #3a3634;
  --cream:        #fdf6ea;
  --cream-deep:   #f7ebd5;
  --white:        #ffffff;
  --muted:        #7c746c;

  --serape: repeating-linear-gradient(
      90deg,
      #e8482e 0 6px,   /* red-orange */
      #f6b200 6px 12px,/* marigold  */
      #f4e04d 12px 18px,/* yellow    */
      #2e9e3f 18px 24px,/* green     */
      #14b6c7 24px 30px,/* teal      */
      #2f6fd0 30px 36px /* blue      */
  );

  --shadow-sm: 0 2px 8px rgba(28,26,25,.08);
  --shadow-md: 0 10px 30px rgba(28,26,25,.14);
  --radius:    16px;
  --radius-lg: 26px;
  --maxw:      1140px;

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 34px); }

/* ---------- shared bits ---------- */
.serape-bar { height: 8px; width: 100%; background: var(--serape); background-size: 36px 100%; }

.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--ink);
  padding: .38em 1.1em;
  border-radius: 999px;
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  line-height: 1.2;
}

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem;
  padding: .72em 1.5em;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--magenta-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

.section { padding: clamp(48px, 8vw, 92px) 0; }
.section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-top: .5rem;
  color: var(--ink);
}
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.section-alt { background: var(--cream-deep); }

.eyebrow { /* small green kicker */
  font-family: var(--font-display); font-weight: 600; color: var(--green-dark);
  text-transform: uppercase; letter-spacing: 2px; font-size: .85rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,246,234,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28,26,25,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--shadow-sm); }
/* full horizontal logo lockup in the header */
.brand .brand-logo { width: auto; height: 52px; border-radius: 0; box-shadow: none; }
@media (max-width: 460px) { .brand .brand-logo { height: 42px; } }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .l1 { font-weight: 700; font-size: 1.15rem; color: var(--redorange); letter-spacing: .3px; }
.brand-name .l2 { font-weight: 600; font-size: .78rem; color: var(--green-dark); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  padding: .5rem .9rem; border-radius: 999px; font-size: 1.02rem;
}
.nav-links a:hover { background: rgba(224,30,121,.1); color: var(--magenta-dark); text-decoration: none; }
.nav-links a.active { background: var(--magenta); color: #fff; }
.nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 12px; padding: 10px;
}
.nav-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 3px; margin: 4px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--cream); padding: 1rem clamp(18px,4vw,34px) 1.4rem;
    border-bottom: 1px solid rgba(28,26,25,.1);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem 1rem; font-size: 1.1rem; }
  .nav-cta { margin: .4rem 0 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* overlay */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,26,25,.35) 0%, rgba(28,26,25,.55) 55%, rgba(28,26,25,.82) 100%);
}
.hero-inner {
  min-height: min(78vh, 640px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(60px, 12vw, 120px) 0;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
  margin-bottom: .3em;
}
.hero h1 .accent { color: var(--marigold); }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 34ch; margin-bottom: 1.6em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; font-family: var(--font-display); font-weight: 500; }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; font-size: .98rem; }
.hero-badges .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); }

/* ============================================================
   FEATURE CARDS ("known for")
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(18px, 3vw, 28px); }
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.1rem 1.25rem 1.4rem; }
.card-body h3 { font-size: 1.4rem; color: var(--magenta-dark); }
.card-body p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   ABOUT strip
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.about-copy p { font-size: 1.08rem; color: var(--ink-soft); }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } .about-grid img { aspect-ratio: 16/10; } }

/* ============================================================
   MENU PREVIEW (home) + MENU PAGE
   ============================================================ */
.menu-preview-list { max-width: 720px; margin: 0 auto; }
.menu-row {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .85rem 0; border-bottom: 1px dashed rgba(28,26,25,.18);
}
.menu-row:last-child { border-bottom: 0; }
.menu-row .name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.menu-row .desc { color: var(--muted); font-size: .92rem; display: block; font-family: var(--font-body); font-weight: 400; }
.menu-row .leader { flex: 1; border-bottom: 2px dotted rgba(28,26,25,.2); transform: translateY(-4px); }
.menu-row .price { font-family: var(--font-display); font-weight: 600; color: var(--green-dark); white-space: nowrap; }

/* Full menu page */
.menu-note {
  text-align: center; font-family: var(--font-display); color: var(--magenta-dark);
  background: rgba(224,30,121,.08); border-radius: var(--radius);
  padding: .8rem 1rem; margin: 0 auto clamp(28px,4vw,40px); max-width: 640px;
}
.menu-columns { columns: 2; column-gap: clamp(28px, 5vw, 56px); }
@media (max-width: 760px) { .menu-columns { columns: 1; } }
.menu-group { break-inside: avoid; margin: 0 0 2.2rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem 1.6rem; }
.menu-group > .pill { margin-bottom: .3rem; }
.menu-group .group-sub { color: var(--muted); font-size: .88rem; margin: .5rem 0 1rem; font-style: italic; }
.menu-item { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed rgba(28,26,25,.14); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-main { flex: 1; }
.menu-item .mi-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.menu-item .mi-desc { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.menu-item .mi-price { font-family: var(--font-display); font-weight: 600; color: var(--green-dark); white-space: nowrap; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid { columns: 3; column-gap: 16px; }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 540px) { .gallery-grid { columns: 1; } }
.gallery-grid figure { margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; position: relative; }
.gallery-grid img { width: 100%; transition: transform .35s ease, filter .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); filter: brightness(.92); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(20,18,17,.9); padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 18px; right: 24px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; font-family: var(--font-display); }

/* ============================================================
   VISIT
   ============================================================ */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 54px); align-items: start; }
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }
.info-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 3vw, 2.2rem); }
.info-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(28,26,25,.1); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(46,158,63,.12); font-size: 1.3rem;
}
.info-row h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.info-row a { font-weight: 600; }
.info-row .sub { color: var(--muted); font-size: .95rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.hours-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .98rem; border-bottom: 1px dashed rgba(28,26,25,.12); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { font-family: var(--font-display); font-weight: 500; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--green-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 1.6rem; font-size: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.35rem; padding: clamp(40px,6vw,64px) 0 2.2rem; }

.footer-inner h4 { color: #fff; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; }
/* full logo on a light card so its black outlines read against the dark footer */
.footer-logo { width: auto; height: 76px; max-width: 86vw; filter: drop-shadow(0 3px 10px rgba(0,0,0,.5)); }
@media (max-width: 460px){ .footer-logo { height: 58px; } }
.footer-brand .l1 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--marigold); }
.footer-brand .l2 { font-family: var(--font-display); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55rem; }
.social-links { display: flex; gap: .7rem; margin-top: .3rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1);
  transition: background .2s;
}
.social-links a:hover { background: var(--magenta); text-decoration: none; }
.social-links svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .85rem; color: rgba(255,255,255,.55); text-align: center; }

/* ============================================================
   PAGE HERO (secondary pages)
   ============================================================ */
.page-hero { background: var(--ink); color: #fff; text-align: center; padding: clamp(50px,8vw,90px) 0 clamp(40px,6vw,64px); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 560px; margin: .4rem auto 0; font-size: 1.1rem; }

/* utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.4rem; }


/* ---- centered footer layout ---- */
.footer-tag { max-width: 560px; margin: 0; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.6rem; }
.footer-nav a { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; color: #fff; }
.footer-nav a:hover { color: var(--marigold); text-decoration: none; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem .9rem; color: rgba(255,255,255,.8); font-size: .98rem; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: #fff; }
.footer-contact .dot-sep { color: rgba(255,255,255,.35); }
.social-links { justify-content: center; margin-top: .1rem; }
@media (max-width: 480px){
  .footer-contact { flex-direction: column; gap: .35rem; }
  .footer-contact .dot-sep { display: none; }
}


/* ---- footer credit (RBC) ---- */
.footer-credit { font-size: .72rem; color: rgba(255,255,255,.42); margin-top: .55rem; letter-spacing: .2px; }
.footer-credit a { color: rgba(255,255,255,.62); text-decoration: underline; }
.footer-credit a:hover { color: #fff; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item { background: #fff; border-radius: var(--radius); padding: 1.15rem 1.4rem; box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: 1.12rem; color: var(--magenta-dark); margin-bottom: .35rem; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }


/* ============================================================
   CATEGORY MENU POPUPS (home "known for" cards)
   Opens on hover (desktop), tap (touch) and keyboard focus.
   ============================================================ */
.card.has-menu { position: relative; overflow: visible; cursor: pointer; }
.card.has-menu .card-img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.peek {
  display: inline-block; margin-top: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--magenta);
}
.card-menu {
  position: absolute; top: 0; left: 0; right: 0; min-height: 100%;
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; text-align: left;
  box-shadow: 0 18px 44px rgba(28,26,25,.28);
  border: 2px solid var(--magenta);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 30;
}
.card.has-menu:hover .card-menu,
.card.has-menu:focus-within .card-menu,
.card.has-menu.open .card-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.card-menu h4 { font-size: 1.18rem; color: var(--magenta-dark); margin: 0 0 .15rem; }
.card-menu .cm-sub { font-size: .8rem; color: var(--muted); font-style: italic; margin: 0 0 .7rem; }
.card-menu ul { list-style: none; margin: 0 0 1rem; padding: 0; flex: 1; }
.card-menu li {
  display: flex; justify-content: space-between; gap: .8rem;
  font-size: .92rem; padding: .34rem 0;
  border-bottom: 1px dashed rgba(28,26,25,.12);
}
.card-menu li:last-child { border-bottom: 0; }
.card-menu li span:last-child {
  font-family: var(--font-display); font-weight: 600;
  color: var(--green-dark); white-space: nowrap;
}
.cm-cta { width: 100%; justify-content: center; font-size: .98rem; padding: .62em 1em; margin-top: .35rem; }
.card-menu-close {
  position: absolute; top: .4rem; right: .6rem;
  background: none; border: 0; font-size: 1.7rem; line-height: 1;
  color: var(--muted); cursor: pointer; display: none; padding: 0 .2rem;
}
.card.has-menu.open .card-menu-close { display: block; }
/* touch devices: hover can't be relied on, tap opens instead */
@media (hover: none) {
  .card.has-menu:hover .card-menu { opacity: 0; visibility: hidden; }
  .card.has-menu.open .card-menu { opacity: 1; visibility: visible; }
}
