/* Lopez de Mexico: native rebuild of the Duda site. Fonts: Abril Fatface (display), Alegreya Sans (headings), Mulish (body). */
:root {
  --ink: #000;
  --ink-2: #1b1919;
  --cream: #f9f9f1;
  --muted: #646464;
  --white: #fff;
  --max: 1200px;
  --display: "Abril Fatface", "Alegreya Sans", Georgia, serif;
  --head: "Alegreya Sans", "Segoe UI", sans-serif;
  --body: "Mulish", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.1; }
hr { border: 0; border-top: 1px solid var(--ink-2); width: 120px; margin: 18px auto; }
.uc { text-transform: uppercase; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #1a5fd0; outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; }
.hdr-inner { max-width: 1440px; margin: 0 auto; padding: 8px 32px; display: flex; align-items: center; gap: 24px; min-height: 84px; }
.hdr-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.hdr-brand img { width: 54px; height: 54px; object-fit: contain; }
.hdr-brand address { font-style: normal; font-family: var(--head); font-size: 16px; line-height: 1.2; color: var(--ink); max-width: 130px; }
.hdr-nav { flex: 1 1 auto; display: flex; justify-content: center; gap: 12px 34px; flex-wrap: wrap; }
.hdr-nav a { font-family: var(--body); font-weight: 400; font-size: 14.5px; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; letter-spacing: .01em; }
.hdr-nav a:hover { border-bottom-color: var(--ink); }
.hdr-nav a.is-active { border-bottom-color: var(--ink); }
.hdr-phone { flex: 0 0 auto; border: 1px solid var(--ink); padding: 14px 26px; font-family: var(--head); font-weight: 700; font-size: 14px; text-decoration: none; letter-spacing: .02em; }
.hdr-phone:hover { background: var(--ink); color: var(--white); }
.hdr-phone-icon, .hdr-toggle { display: none; }

/* ---------- home ---------- */
.hero { height: min(62vw, 640px); background-size: cover; background-position: center; background-color: #222; }
.welcome { text-align: center; padding: 72px 24px 40px; }
.welcome h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 72px); color: var(--ink-2); letter-spacing: -.01em; }
.welcome .lede { font-size: clamp(20px, 2.4vw, 30px); max-width: 720px; margin: 0 auto; }
.welcome .est { font-family: var(--display); font-size: clamp(32px, 4vw, 50px); color: var(--ink-2); margin-top: 6px; }
.hours { padding: 60px 24px 70px; }
.hours h2 { text-align: center; font-size: clamp(40px, 5vw, 70px); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; margin-bottom: 26px; }
.hours-table { max-width: 1000px; margin: 0 auto; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 20px; padding: 3px 0; }
.fresh { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.fresh-text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px max(24px, 8%); }
.fresh-text img { width: 46px; height: 46px; }
.fresh-text h2 { font-size: clamp(34px, 4vw, 48px); text-transform: uppercase; max-width: 8em; }
.fresh-photo img { width: 100%; height: 100%; object-fit: cover; max-height: 640px; }
.menu-strip { padding: 80px 24px 90px; text-align: center; }
.menu-strip h2, .menu-strip h1 { font-size: clamp(36px, 4.5vw, 56px); }
.menu-strip .sub { font-family: var(--head); font-weight: 400; font-size: 18px; margin: 10px auto 40px; max-width: 760px; }
.thumbs { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.thumbs li { background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,.25); }
.thumbs a { display: block; }
.thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thumbs li:nth-child(-n+4) img { object-fit: contain; background: #fff; }
.menu-page { padding-top: 70px; }
.menu-page h1 { margin-bottom: 40px; }
.thumbs.four img { aspect-ratio: auto; object-fit: contain; }
.menu-note { font-family: var(--head); font-weight: 400; font-size: 17px; margin-top: 34px; }

.hero--home { background-image: url(/img/storefront.jpg); }
.hero--catering { background-image: url(/img/catering-hero.jpg); }

/* ---------- our story ---------- */
.story { max-width: 1080px; margin: 0 auto; padding: 90px 24px 110px; display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.story h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 16px; text-align: left; }
.story-text p { font-style: italic; text-align: center; font-size: 14.5px; line-height: 1.45; margin: 0; }
.story-photo img { width: 100%; height: auto; }

/* ---------- catering ---------- */
.cat-hero { height: min(52vw, 520px); background-size: cover; background-position: center 55%; border: 6px solid #000; border-radius: 28px; margin: 8px 8px 0; }
.cat { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.cat h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 14px; }
.cat p { font-size: 17px; }
.cat h2 { font-size: 32px; margin: 36px 0 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form .wide, .form .status { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #767676; border-radius: 0; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.btn { font: inherit; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .04em; background: var(--ink-2); color: #fff; border: 1px solid var(--ink-2); padding: 14px 38px; cursor: pointer; }
.btn:hover { background: #fff; color: var(--ink-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.status { margin: 0; padding: 14px 16px; border: 1px solid; }
.status.ok { border-color: #2f6b34; background: #eef8ee; color: #1d4a21; }
.status.err { border-color: #a12622; background: #fdeeed; color: #7b1d1a; }
.field-err { margin: 5px 0 0; font-size: 14px; font-weight: 700; color: #7b1d1a; }
.field [aria-invalid="true"] { border: 2px solid #a12622; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- gallery ---------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: 70px 24px 100px; text-align: center; }
.gallery h1 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 40px; }
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.gal-grid a { display: block; text-decoration: none; }
.gal-grid .cap { display: block; font-family: var(--head); font-weight: 700; font-size: 20px; margin-bottom: 10px; min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center; line-height: 1.2; }
.gal-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: #fff; }
.ft-main { max-width: 1100px; margin: 0 auto; padding: 70px 24px 56px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: start; }
.ft-info h2 { font-family: var(--head); font-weight: 700; font-size: 22px; margin: 0 0 12px; }
.ft-info p { margin: 0 0 14px; font-weight: 400; font-size: 14px; }
.ft-info a { text-decoration: none; }
.ft-info a:hover { text-decoration: underline; }
.ft-hours { margin-bottom: 18px; max-width: 260px; }
.ft-row { display: flex; justify-content: space-between; gap: 18px; font-weight: 400; font-size: 14px; line-height: 1.8; }
.ft-social { display: flex; gap: 14px; margin-top: 18px !important; }
.ft-social a { display: inline-flex; padding: 4px; }
.ft-map iframe { width: 100%; height: 300px; border: 0; background: #ddd; }
.ft-map-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 400; color: #fff; }
.ft-bar { border-top: 1px solid #4a4747; max-width: none; padding: 24px max(24px, calc((100% - 1100px) / 2)); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo nav" "logo copy"; gap: 10px 24px; align-items: center; }
.ft-logo { grid-area: logo; }
.ft-logo img { width: 42px; height: 42px; object-fit: contain; background: #fff; }
.ft-nav { grid-area: nav; display: flex; gap: 14px 30px; flex-wrap: wrap; justify-content: flex-end; }
.ft-nav a { text-decoration: none; font-size: 14px; font-weight: 400; padding: 3px 0; border-bottom: 2px solid transparent; }
.ft-nav a.is-active, .ft-nav a:hover { border-bottom-color: #fff; }
.ft-copy { grid-area: copy; margin: 0; text-align: center; font-size: 11px; font-weight: 400; line-height: 1.5; justify-self: end; }
.ft-copy a { color: #bbb; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb img { max-width: min(94vw, 1100px); max-height: 92vh; width: auto; height: auto; background: #fff; }
.lb button { position: absolute; top: 14px; right: 18px; font-size: 34px; line-height: 1; color: #fff; background: transparent; border: 0; cursor: pointer; padding: 6px 12px; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 1023px) {
  .hdr-inner { padding: 8px 18px; gap: 14px; }
  .hdr-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-top: 1px solid #ddd; box-shadow: 0 8px 14px rgba(0,0,0,.12); padding: 6px 18px 14px; }
  .hdr-nav.is-open { display: flex; }
  .hdr-nav a { font-size: 18px; padding: 13px 4px; border-bottom: 1px solid #eee; }
  .hdr-phone { display: none; }
  .hdr-phone-icon { display: inline-flex; margin-left: auto; padding: 8px; }
  .hdr-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 11px; background: none; border: 0; cursor: pointer; }
  .hdr-toggle span { display: block; height: 2px; background: #333; }
  .fresh { grid-template-columns: 1fr; }
  .fresh-photo img { max-height: 420px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .thumbs.four { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; padding: 50px 20px 70px; gap: 28px; }
  .story-photo { max-width: 420px; margin: 0 auto; }
  .story h1 { text-align: center; }
  .ft-main { grid-template-columns: 1fr; padding-top: 50px; }
}
@media (max-width: 640px) {
  .hdr-brand address { font-size: 14px; max-width: 110px; }
  .hdr-brand img { width: 46px; height: 46px; }
  .welcome { padding: 48px 20px 28px; }
  .hours { padding: 40px 20px 50px; }
  .hours-row { font-size: 17px; }
  .menu-strip { padding: 56px 16px 64px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal-grid { grid-template-columns: 1fr; gap: 28px; }
  .form { grid-template-columns: 1fr; }
  .cat-hero { height: 260px; border-width: 4px; border-radius: 18px; }
  .ft-bar { grid-template-columns: 1fr; grid-template-areas: "logo" "nav" "copy"; justify-items: center; text-align: center; }
  .ft-nav { justify-content: center; }
  .ft-copy { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- preview gate (removed at go-live by tools/golive.ps1) ---------- */
html.pv-locked body > :not(.pv-gate) { display: none !important; }
.pv-gate { position: fixed; inset: 0; background: #1b1919; display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 999; }
.pv-card { background: #fff; max-width: 400px; width: 100%; padding: 32px 28px; text-align: center; font-weight: 400; }
.pv-card img { margin: 0 auto 10px; }
.pv-card h1 { font-size: 34px; margin-bottom: 8px; }
.pv-card p { font-size: 15px; }
.pv-card input { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #767676; margin: 6px 0 4px; }
.pv-card .sr { position: absolute; left: -9999px; }
.pv-err { color: #a12622; min-height: 1.3em; margin: 4px 0 10px; }
