/* La Casita sample · colors from the roadside sign (red) and the cactus logo (green) */
:root {
  --ground: #fbf8f2;
  --tone: #f0e9db;
  --ink: #1b1915;
  --ink-2: #2a2722;
  --red: #c4161c;
  --red-deep: #9f1016;
  --green: #1f6b3a;
  --green-deep: #133f25;
  --white: #ffffff;
  --m: clamp(18px, 4vw, 56px);          /* outer margin */
  --gap: clamp(96px, 12vw, 200px);       /* between sections */
  --display: 850;
  --bar-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 64px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-stretch: 68%; font-weight: var(--display); text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; }
h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* sample notice */
.sample { margin: 0; padding: 8px var(--m); background: var(--ink); color: var(--white); font-size: 14px; }

/* buttons: square, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--ink); color: var(--white); }
.btn-line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 3px var(--white); }
.btn-line:hover { background: var(--white); color: var(--ink); }
.btn-line-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: var(--white); }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: var(--bar-h); padding: 0 var(--m);
  background: var(--ground);
}
.bar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.bar-logo img { width: 40px; height: 40px; }
.bar-logo span { font-stretch: 68%; font-weight: var(--display); text-transform: uppercase; font-size: 30px; line-height: 1; color: var(--red); white-space: nowrap; }
.bar-links { display: flex; gap: 28px; margin-left: auto; }
.bar-links a { text-decoration: none; font-weight: 600; font-size: 17px; }
.bar-links a:hover { color: var(--red); }
.lang {
  font: inherit; font-weight: 700; font-size: 15px;
  min-width: 48px; min-height: 44px; border: 0; border-radius: 0;
  background: var(--tone); color: var(--ink); cursor: pointer;
}
.lang:hover { background: var(--ink); color: var(--white); }
.bar-order { min-height: 46px; }

/* 1. hero */
.hero {
  display: grid; grid-template-columns: 5fr 7fr;
  min-height: calc(100svh - var(--bar-h) - 38px);
  background: var(--red); color: var(--white);
}
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; padding: 56px var(--m) 64px; }
.hero-name { font-size: clamp(5rem, 12.5vw, 13rem); line-height: .82; }
.hero-name span { display: block; }
.hero-lede { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; max-width: 30ch; }
.open { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.dot { width: 12px; height: 12px; background: var(--white); border-radius: 50%; flex: none; }
.open.is-open .dot { animation: pulse 2s ease-in-out infinite; }
.open.is-closed .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--white); }
@keyframes pulse { 50% { opacity: .35; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { position: relative; margin: 0; overflow: hidden; background: var(--ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform; }
.hero-photo figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: 12px 18px; background: var(--ink); color: var(--white); font-size: 15px;
}

/* 2. breakfast */
.breakfast { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.bk-head { grid-column: 1 / span 6; display: grid; gap: 22px; }
.bk-head p { font-size: 20px; max-width: 44ch; }
.bk-photos { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.bk-photos figure { margin: 0; position: relative; overflow: hidden; background: var(--tone); }
.bk-photos .bk-big { grid-row: span 2; }
.bk-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.bk-photos figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: var(--ground); font-weight: 700; font-size: 16px; }
.bk-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bk-list li { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--tone); font-size: 17px; }
.bk-list span { font-weight: 700; color: var(--red); }

/* 3. names */
.names { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--green-deep); color: var(--white); }
.names-head { display: grid; grid-template-columns: 6fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: 72px; }
.names-head p { font-size: 20px; max-width: 42ch; }
.names-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; }
.names-list { list-style: none; margin: 0; padding: 0; }
.names-list button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; width: 100%;
  padding: 4px 0; border: 0; background: none; color: rgba(255,255,255,.42); cursor: pointer; text-align: left;
  font: inherit; transition: color .25s ease;
}
.names-list .nm { font-stretch: 68%; font-weight: var(--display); text-transform: uppercase; font-size: clamp(3rem, 6.2vw, 6.2rem); line-height: .98; letter-spacing: -0.01em; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.names-list .pr { font-weight: 700; font-size: 20px; }
.names-list button:hover, .names-list button[aria-pressed="true"] { color: var(--white); }
.names-list button[aria-pressed="true"] .nm { transform: translateX(14px); }
.nm-detail { display: none; }
.names-stage { position: sticky; top: calc(var(--bar-h) + 40px); margin: 0; }
.names-stage img { width: 100%; aspect-ratio: 1000 / 728; object-fit: cover; background: var(--green); transition: opacity .25s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.names-stage img.swap { opacity: 0; transform: scale(.97); }
.names-stage figcaption { display: grid; gap: 8px; padding: 22px 0 0; font-size: 19px; }
.names-stage b { font-size: 24px; }

/* 4. menu */
.menu { padding: var(--gap) var(--m) 0; }
.menu-head { display: grid; grid-template-columns: 6fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.menu-head p { font-size: 20px; max-width: 42ch; }
.menu-tabs {
  position: sticky; top: var(--bar-h); z-index: 10;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--m) * -1); padding: 12px var(--m); background: var(--ground);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs button {
  flex: none; min-height: 46px; padding: 0 16px; border: 0; border-radius: 0; background: var(--tone); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s;
}
.menu-tabs button small { font-size: 14px; font-weight: 600; margin-left: 4px; }
.menu-tabs button:hover { background: var(--ink); color: var(--white); }
.menu-tabs button.on { background: var(--red); color: var(--white); }
.menu-body { min-height: 520px; }
.menu-sec { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 64px; padding: 56px 0 0; }
.menu-sec[hidden] { display: none; }
.menu-sec.enter .menu-items li { animation: ink .4s ease both; }
.menu-sec.enter .menu-items li:nth-child(2n) { animation-delay: 40ms; }
.menu-sec.enter .menu-items li:nth-child(n+5) { animation-delay: 80ms; }
.menu-sec.enter .menu-items li:nth-child(n+9) { animation-delay: 120ms; }
.menu-sec h3 { position: sticky; top: calc(var(--bar-h) + 84px); align-self: start; color: var(--red); font-size: clamp(2.4rem, 4.4vw, 4rem); }
.menu-sec .sec-note { margin-top: 12px; font-size: 17px; font-weight: 600; }
.menu-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; }
.menu-items li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 4px; align-content: start; }
.menu-items b { font-size: 19px; line-height: 1.3; }
.menu-items .p { font-weight: 800; font-size: 19px; color: var(--red); }
.menu-items .d { grid-column: 1 / -1; font-size: 16px; line-height: 1.45; }
.menu-foot { margin-top: 64px; padding: 18px 22px; background: var(--tone); font-size: 16px; }

/* 5. parties */
.parties { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--red); color: var(--white); display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; }
.pp-copy { display: grid; gap: 26px; }
.pp-copy p { font-size: 20px; max-width: 42ch; }
.pp-photo { margin: 18px 0 0; }
.pp-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pp-tool { background: var(--ground); color: var(--ink); padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 26px; }
.pp-count { font-stretch: 68%; font-weight: var(--display); text-transform: uppercase; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; }
.pp-count [data-pp-people] { color: var(--red); display: inline-block; min-width: 2ch; }
.pp-tool input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.pp-tool input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: var(--tone); }
.pp-tool input[type="range"]::-moz-range-track { height: 10px; background: var(--tone); }
.pp-tool input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; background: var(--ink); border: 0; border-radius: 0; }
.pp-tool input[type="range"]::-moz-range-thumb { width: 34px; height: 34px; background: var(--ink); border: 0; border-radius: 0; }
.pp-tool fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-tool legend { font-weight: 700; margin-bottom: 10px; font-size: 17px; }
.pp-tool fieldset label { position: relative; cursor: pointer; }
.pp-tool fieldset input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pp-tool fieldset span { display: block; padding: 12px 16px; background: var(--tone); font-weight: 700; font-size: 16px; transition: background-color .15s, color .15s; }
.pp-tool fieldset input:checked + span { background: var(--ink); color: var(--white); }
.pp-tool fieldset input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.ticket {
  background: var(--white); padding: 26px 26px 34px;
  --z: 12px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--z) * 2) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--z) * 2) 100%;
}
.ticket ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.ticket li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; animation: ink .35s ease both; }
.ticket li .q { font-weight: 800; }
.ticket li .n { font-weight: 700; }
.ticket li .pr { font-weight: 800; }
.ticket li .w { grid-column: 2 / -1; font-size: 15px; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 -12px; padding: 12px; background: var(--tone); font-weight: 700; }
.ticket-total b { font-size: 34px; font-stretch: 75%; color: var(--red); }
.ticket-feeds { margin-top: 6px; font-size: 16px; }
@keyframes ink { from { opacity: 0; transform: translateY(-6px); } }
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-note { font-size: 15px; }

/* 6. place */
.place { padding: var(--gap) var(--m) 0; }
.place-head { display: grid; grid-template-columns: 6fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.place-head p { font-size: 20px; max-width: 44ch; }
.place-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 15vw, 230px); gap: 16px; }
.place-grid figure { margin: 0; overflow: hidden; background: var(--tone); }
.place-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.place-grid figure:hover img { transform: scale(1.04); }
.pl-a { grid-column: 1 / span 7; grid-row: span 3; }
.pl-b { grid-column: 8 / span 5; grid-row: span 2; }
.pl-c { grid-column: 8 / span 5; grid-row: 3 / span 3; }
.pl-d { grid-column: 1 / span 4; grid-row: 4 / span 2; }
.pl-e { grid-column: 5 / span 3; grid-row: 4 / span 2; }
.place-facts { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.place-facts li { padding: 26px 24px; background: var(--green); color: var(--white); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.8rem); font-stretch: 80%; line-height: 1.15; }

/* 7. visit */
.visit { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--ink); color: var(--white); display: grid; grid-template-columns: 7fr 5fr; gap: 64px; }
.visit-copy { display: grid; gap: 28px; align-content: start; }
.visit .addr { font-size: clamp(1.9rem, 3.6vw, 3.4rem); font-weight: 800; font-stretch: 75%; line-height: 1.05; }
.visit .addr a, .visit .phone a { text-decoration: none; }
.visit .addr a:hover, .visit .phone a:hover { color: #ff8a8e; }
.visit .phone { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 700; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.visit-hours h3 { margin-bottom: 20px; }
.visit-hours table { width: 100%; border-collapse: collapse; font-size: 18px; }
.visit-hours th, .visit-hours td { padding: 12px 14px; text-align: left; font-weight: 500; }
.visit-hours td { text-align: right; }
.visit-hours tr.today { background: var(--red); }
.visit-hours tr.today th, .visit-hours tr.today td { font-weight: 800; }
.map-btn { margin-top: 20px; width: 100%; min-height: 52px; border: 0; border-radius: 0; background: var(--ink-2); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.map-btn:hover { background: #3a362f; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; margin-top: 12px; }

/* footer */
.foot { background: var(--red); color: var(--white); padding: 48px var(--m) 40px; overflow: hidden; }
.foot-name { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(5rem, 21vw, 22rem); line-height: .8; letter-spacing: -0.02em; white-space: nowrap; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 32px; font-size: 16px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.credit a { font-weight: 700; }

/* phone thumb bar */
.thumb { display: none; }

/* reveal motion (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .bar-links { gap: 18px; }
  .bk-list { grid-template-columns: repeat(2, 1fr); }
  .menu-sec { grid-template-columns: 1fr; }
  .menu-sec h3 { position: static; }
}

/* ---------- phone ---------- */
@media (max-width: 820px) {
  :root { --bar-h: 64px; }
  body { font-size: 17px; padding-bottom: 72px; }
  .bar { gap: 10px; }
  .bar-logo img { width: 32px; height: 32px; }
  .bar-logo span { font-size: 24px; }
  .sample { font-size: 13px; }
  .bar-links { display: none; }
  .lang { margin-left: auto; }
  .bar-order { padding: 0 16px; min-height: 44px; font-size: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 46svh; min-height: 280px; }
  .hero-copy { padding: 30px var(--m) 40px; gap: 20px; }
  .hero-name { font-size: clamp(4.4rem, 27vw, 8rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .breakfast { grid-template-columns: 1fr; row-gap: 32px; }
  .bk-head, .bk-photos, .bk-list { grid-column: 1; }
  .bk-photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bk-photos .bk-big { grid-column: 1 / -1; grid-row: auto; }
  .bk-photos figcaption { font-size: 14px; padding: 8px 10px; }
  .bk-list { grid-template-columns: 1fr; }
  .names-head, .menu-head, .place-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .names-grid { grid-template-columns: 1fr; }
  .names-stage { display: none; }
  .names-list li { padding: 4px 0; }
  .names-list .nm { font-size: clamp(2.8rem, 14vw, 4rem); }
  .names-list button[aria-pressed="true"] .nm { transform: none; }
  .names-list button[aria-pressed="true"] + .nm-detail { display: grid; gap: 12px; padding: 10px 0 22px; animation: ink .35s ease both; }
  .nm-detail p { font-size: 17px; }
  .menu-items { grid-template-columns: 1fr; gap: 24px; }
  .menu-sec { padding-top: 56px; }
  .parties { grid-template-columns: 1fr; gap: 40px; }
  .pp-photo { display: none; }
  .pp-actions .btn { flex: 1 1 100%; }
  .place-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .pl-a { grid-column: 1 / -1; grid-row: span 2; }
  .pl-b, .pl-c, .pl-d, .pl-e { grid-column: auto; grid-row: span 1; }
  .place-facts { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .visit { grid-template-columns: 1fr; gap: 48px; }
  .visit-actions .btn { flex: 1 1 100%; }
  .foot-row { flex-direction: column; }
  .thumb {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1.3fr 1fr;
    background: var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .thumb a { display: flex; align-items: center; justify-content: center; min-height: 60px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 16px; }
  .thumb .thumb-main { background: var(--red); }
}

/* full-page screenshot mode (?shot): pin viewport-based heights */
.shot .hero { min-height: 790px; }
.shot .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.shot .bar, .shot .menu-tabs, .shot .names-stage, .shot .menu-sec h3 { position: static; }
@media (max-width: 820px) { .shot .hero-photo { height: 390px; } .shot .thumb { position: static; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
