﻿/* Castañeda's Meat Market — Navasota. Colors taken from the building and pole sign. */
:root {
  --paper: #fbfaf7;      /* pole-sign white */
  --tone: #efedea;       /* one step down */
  --ink: #17120f;
  --red: #b3262c;        /* tin awning */
  --red-deep: #8f1d22;
  --green: #1b6b45;      /* MEAT MARKET green */
  --green-deep: #14553a;
  --brown: #7e4b3f;      /* CASTAÑEDA'S lettering */
  --white: #ffffff;
  --gut: max(16px, min(4vw, 48px));
  --font: "Archivo", "Arial Black", Arial, sans-serif;
  --display: clamp(2.6rem, 7vw, 7.4rem);
  --h2: clamp(2.1rem, 4.6vw, 4.6rem);
  --gap: clamp(96px, 13vw, 200px);
}
:root:not([data-theme="light"]) { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #fbfaf7; }
}
:root[data-theme="dark"] { --paper: #fbfaf7; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
figure { margin: 0; min-width: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.025em; line-height: .95; text-wrap: balance; }
h2 { font-size: var(--h2); font-stretch: 88%; font-variation-settings: "wdth" 88; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }
.wrap {
  width: 100%; max-width: 1520px; margin: 0 auto;
  padding-left: max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
}
.intro { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.4; max-width: 34ch; }
.small { font-size: 15px; line-height: 1.45; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Buttons: square, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 0;
  font: 800 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a2f29; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--tone); color: var(--ink); }
.btn-ghost:hover { background: #e0ddd8; }

/* ---------- Awning nav: the red tin awning ---------- */
.awning {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background-color: var(--red);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 3px, rgba(255,255,255,.04) 3px 5px, transparent 5px 18px);
  padding-top: env(safe-area-inset-top);
}
.awning-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.medallion { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; }
.medallion svg { width: 32px; height: 24px; }
.brand-word { font-weight: 900; font-size: 24px; letter-spacing: -0.01em; font-variation-settings: "wdth" 118; text-transform: uppercase; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 700; font-size: 17px; padding: 6px 0; border-bottom: 3px solid transparent; transition: border-color .15s; }
.links a:hover { border-bottom-color: #fff; }
.awning-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 0; padding: 0; background: rgba(0,0,0,.22); cursor: pointer; font: 800 15px/1 var(--font); }
.lang span { padding: 12px 12px; color: rgba(255,255,255,.75); }
.lang span.on { background: #fff; color: var(--red); }
.call-top { min-height: 44px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
  min-height: min(calc(100vh - 68px), 900px);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: 56px clamp(24px, 4vw, 64px) 56px max(var(--gut), env(safe-area-inset-left));
}
.hero h1 {
  font-size: clamp(2.5rem, 5.9vw, 6.4rem); text-transform: uppercase; line-height: .9; white-space: nowrap;
  letter-spacing: -0.03em; font-variation-settings: "wdth" 82;
}
.lede { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.42; max-width: 32ch; }
.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 800; font-size: 20px; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); align-self: center; }
.status.closed .dot { background: var(--red); }
.status .confirm { font-weight: 500; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.addr { font-size: 16px; font-weight: 600; }
.hero-photo { position: relative; overflow: hidden; background: var(--tone); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 16% 40%; animation: drift 14s ease-out both; }
@keyframes drift { from { transform: scale(1.09); } to { transform: scale(1); } }

/* arch frames — the three stucco arches out front */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Taquería ---------- */
.taq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px);
  row-gap: 56px; padding-top: var(--gap); padding-bottom: var(--gap);
}
.taq-photo { grid-column: 1 / span 6; }
.taq-photo .arch { aspect-ratio: 4 / 4.6; }
.taq-copy { grid-column: 7 / span 6; align-self: center; display: flex; flex-direction: column; gap: 28px; }
.menu { margin: 8px 0 0; display: grid; gap: 4px; }
.menu > div { background: var(--tone); padding: 18px 22px; display: grid; grid-template-columns: 11rem 1fr; gap: 6px 20px; }
.menu dt { font-weight: 900; font-size: 19px; line-height: 1.25; }
.menu dd { margin: 0; font-size: 17px; }
.note { font-weight: 700; }
.taq-strip { grid-column: 1 / -1; display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.taq-strip figure { overflow: hidden; }
.taq-strip img { width: 100%; height: 100%; object-fit: cover; }
.taq-strip .s1 { aspect-ratio: 1 / 1.05; }
.taq-strip .s2 { aspect-ratio: 4 / 3; }
.taq-strip .s3 { aspect-ratio: 3 / 4; }

/* ---------- Weekend (red field) ---------- */
.weekend { background: var(--red); color: #fff; padding: clamp(80px, 10vw, 160px) 0; }
.weekend-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.wk-photo { aspect-ratio: 3 / 4; }
.wk-copy { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.wk-copy h2 { max-width: 15ch; }
.caldo { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; background: var(--red-deep); padding: 20px; width: 100%; max-width: 640px; }
.caldo figure { aspect-ratio: 1 / 1; overflow: hidden; }
.caldo img { width: 100%; height: 100%; object-fit: cover; }
.caldo h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 10px; }
.caldo .price { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 22px; margin-bottom: 10px; }
.caldo .price b { font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- Carnicería (green field) ---------- */
.carn { background: var(--green); color: #fff; padding: clamp(80px, 10vw, 160px) 0; }
.carn-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.carn-head h2 { font-size: clamp(2.4rem, 5.6vw, 5.8rem); }
.builder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cuts h3 { margin-bottom: 20px; }
.party { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.party span { font-weight: 800; margin-right: 8px; font-size: 18px; }
.party button {
  min-width: 56px; min-height: 48px; border: 0; background: var(--green-deep); color: #fff;
  font: 900 19px/1 var(--font); cursor: pointer; transition: background-color .15s, color .15s, transform .15s;
}
.party button:hover { background: #0e4430; }
.party button[aria-pressed="true"] { background: #fff; color: var(--green); }
.party button:active { transform: scale(.96); }
.cuts > .small { margin-bottom: 22px; }
.cutlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cut { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; background: var(--green-deep); padding: 14px 16px 14px 20px; }
.cut .nm { display: flex; flex-direction: column; }
.cut .nm b { font-weight: 900; font-size: 19px; line-height: 1.2; }
.cut .nm span { font-size: 15px; opacity: .92; }
.cut .pr { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cut .pr em { font-style: normal; display: block; font-size: 13px; opacity: .85; }
.step { display: flex; align-items: center; background: rgba(0,0,0,.18); }
.step button { width: 46px; height: 46px; border: 0; background: transparent; color: #fff; font: 900 24px/1 var(--font); cursor: pointer; transition: background-color .12s; }
.step button:hover { background: rgba(255,255,255,.14); }
.step button:active { background: rgba(255,255,255,.24); }
.step output { min-width: 58px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; font-size: 17px; }
.cut.has { background: #0f4a32; }

.ticket-wrap { position: sticky; top: 92px; }
.ticket { background: var(--paper); color: var(--ink); padding: 26px 26px 22px; }
.t-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 3px solid var(--ink); }
.t-head svg { width: 56px; height: 40px; flex: none; color: var(--brown); }
.t-head strong { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 18px; font-variation-settings: "wdth" 112; }
.t-head span { font-size: 14px; }
.t-lines { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.t-lines li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 10px; padding: 9px 0; font-size: 16px; animation: print .35s ease-out both; }
.t-lines li:nth-child(even) { background: transparent; }
.t-lines li .q { font-weight: 800; }
.t-lines li .s { font-size: 13px; display: block; }
@keyframes print { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.t-empty { padding: 18px 0; font-size: 16px; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 10px; border-top: 3px solid var(--ink); font-weight: 800; font-size: 18px; }
.t-total b { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.t-lbs { font-size: 15px; margin-top: 2px; }
.stamp { margin-top: 18px; background: var(--red); color: #fff; padding: 10px 14px; font-weight: 800; font-size: 15px; line-height: 1.35; }
.t-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.t-actions .btn { width: 100%; }
.t-actions .btn-red { background: var(--red); }
.t-actions .btn-ghost { background: var(--green-deep); color: #fff; }
.t-actions .btn-ghost:hover { background: #0e4430; }

/* ---------- Tienda ---------- */
.shop {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); row-gap: clamp(20px, 3vw, 48px);
  padding-top: var(--gap); padding-bottom: var(--gap); align-items: start;
}
.shop-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; }
.shop-copy h2 { max-width: 11ch; }
.shoplist { margin: 0; display: grid; gap: 22px; }
.shoplist dt { font-weight: 900; font-size: 20px; }
.shoplist dd { margin: 2px 0 0; max-width: 40ch; }
.shop-tall { grid-column: 7 / span 6; grid-row: 1 / span 2; align-self: stretch; min-height: 640px; }
.shop-wide { grid-column: 1 / span 6; aspect-ratio: 16 / 10; overflow: hidden; align-self: end; }
.shop-wide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Proof (ink field) ---------- */
.proof { background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 160px) 0; }
.proof-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.score .big { font-size: clamp(7rem, 17vw, 17rem); font-weight: 900; line-height: .8; letter-spacing: -0.05em; font-variation-settings: "wdth" 70; margin-bottom: 18px; color: #fff; }
.score h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 18px; }
.words { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.words li { background: #fff; color: var(--ink); font-weight: 900; padding: 10px 16px; font-size: 18px; }
.services { margin: 0; display: grid; gap: 26px; }
.services dt { font-weight: 900; font-size: 20px; }
.services dd { margin: 2px 0 0; }
.services a { font-weight: 800; }
.proof-photo { aspect-ratio: 3 / 4; overflow: hidden; }
.proof-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Visit ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 112px);
  padding-top: var(--gap); padding-bottom: var(--gap); align-items: center;
}
.visit-photo { aspect-ratio: 3 / 4; }
.visit-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.phone { font-size: clamp(2.2rem, 4.6vw, 4.4rem); font-weight: 900; letter-spacing: -0.03em; text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1; color: var(--red); }
.phone:hover { color: var(--ink); }
.hours { border-collapse: collapse; width: 100%; max-width: 520px; font-size: 18px; }
.hours caption { text-align: left; font-weight: 900; font-size: 22px; padding-bottom: 10px; }
.hours th, .hours td { padding: 9px 14px; text-align: left; }
.hours th { font-weight: 700; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:nth-child(odd) { background: var(--tone); }
.hours tr.today { background: var(--ink); color: #fff; }
.hours tr.today th { font-weight: 900; }

/* ---------- Footer: the awning returns ---------- */
.foot {
  background-color: var(--red); color: #fff;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 3px, rgba(255,255,255,.04) 3px 5px, transparent 5px 18px);
  padding: 96px 0 calc(120px + env(safe-area-inset-bottom));
}
.foot-mark { display: flex; align-items: center; justify-content: space-between; gap: 2vw; }
.foot-mark span { font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 9.4vw, 10rem); line-height: .9; letter-spacing: -0.035em; font-variation-settings: "wdth" 100; white-space: nowrap; }
.foot-mark svg { width: clamp(52px, 9vw, 150px); height: auto; flex: none; }
.foot-mark svg.flip { transform: scaleX(-1); }
.foot-sub { font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.8rem); margin-top: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; font-size: 16px; font-weight: 600; }
.foot-row a { font-weight: 800; }

/* ---------- Sticky call bar (phone) ---------- */
.callbar { display: none; }

/* ---------- Entrances ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img, .t-lines li { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .links { display: none; }
  .awning-actions { margin-left: auto; }
  .proof-in { grid-template-columns: 1fr 1fr; }
  .proof-photo { display: none; }
  .builder { grid-template-columns: 1fr; }
  .ticket-wrap { position: static; }
  .carn-head { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .awning-in { height: 60px; gap: 12px; }
  .call-top { display: none; }
  .brand-word { font-size: 20px; }
  .medallion { width: 38px; height: 38px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3.3; }
  .hero-photo img { object-position: 38% 40%; }
  .hero-text { padding: 28px var(--gut) 48px; gap: 20px; }
  .hero h1 { font-size: clamp(2.5rem, 12.6vw, 4rem); }
  .actions .btn { flex: 1 1 auto; }

  .taq, .shop { grid-template-columns: 1fr; row-gap: 40px; }
  .taq-photo, .taq-copy, .taq-strip, .shop-copy, .shop-tall, .shop-wide { grid-column: 1 / -1; grid-row: auto; }
  .taq-photo .arch { aspect-ratio: 1 / 1.08; }
  .menu > div { grid-template-columns: 1fr; padding: 16px 18px; }
  .taq-strip { grid-template-columns: 1fr 1fr; }
  .taq-strip .s2 { grid-column: 1 / -1; grid-row: 1; }
  .taq-strip .s1, .taq-strip .s3 { aspect-ratio: 1 / 1.1; }

  .weekend-in { grid-template-columns: 1fr; }
  .wk-photo { aspect-ratio: 1 / 1.05; }
  .caldo { grid-template-columns: 112px 1fr; gap: 16px; padding: 14px; }
  .caldo .price { font-size: 19px; }

  .cut { grid-template-columns: 1fr auto; padding: 12px 12px 12px 16px; row-gap: 8px; }
  .cut .pr { grid-column: 1; grid-row: 2; text-align: left; }
  .cut .pr em { display: inline; margin-left: 6px; }
  .cut .step { grid-column: 2; grid-row: 1 / span 2; }
  .ticket { padding: 20px 18px; }
  .t-actions { grid-template-columns: 1fr; }

  .shop-tall { aspect-ratio: 4 / 4.4; min-height: 0; align-self: auto; }
  .proof-in { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .visit-photo { aspect-ratio: 1 / 1.1; }
  .hours th, .hours td { padding: 9px 10px; }

  .callbar {
    display: grid; grid-template-columns: 1fr auto; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; padding: 0 16px; }
  .callbar .cb-call { background: var(--red); padding-left: max(16px, env(safe-area-inset-left)); }
  .callbar .cb-call b { font-weight: 900; font-variant-numeric: tabular-nums; }
  .callbar .cb-dir { padding-right: max(20px, env(safe-area-inset-right)); }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .foot-mark { justify-content: flex-start; gap: 12px; }
  .foot-mark span { font-size: 10.6vw; }
  .foot-mark svg.flip { display: none; }
}
