/* La Casita, draft two: the evening version. Colors from their logo:
   white script, cactus green, taupe "Mexican Restaurant" lettering. */
:root {
  --night: #110f0d;
  --night-2: #1c1915;
  --night-3: #27231e;
  --cream: #f3ede3;
  --brass: #c9ab80;
  --brass-2: #dcc29d;
  --cactus: #163a24;
  --m: clamp(20px, 5vw, 72px);
  --gap: clamp(110px, 13vw, 220px);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --bar-h: 74px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 40px); }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
h2 { font-size: clamp(2.8rem, 5.6vw, 5.6rem); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.sample { padding: 8px var(--m); background: var(--night-3); font-size: 14px; }

/* buttons: fully round, flat */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-brass { background: var(--brass); color: var(--night); }
.btn-brass:hover { background: var(--brass-2); }
.btn-ghost { background: var(--night-3); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--night); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 30px; height: var(--bar-h); padding: 0 var(--m); background: var(--night); }
.bar-mark img { width: 34px; height: 34px; }
.bar-links { display: flex; gap: 30px; margin-left: auto; }
.bar-links a { text-decoration: none; font-weight: 500; font-size: 16px; }
.bar-links a:hover { color: var(--brass); }
.lang { min-width: 46px; min-height: 44px; border: 0; border-radius: 999px; background: var(--night-3); color: var(--cream); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.lang:hover { background: var(--cream); color: var(--night); }
.bar-cta { min-height: 44px; padding: 0 22px; }

/* 1. hero */
.hero { display: grid; grid-template-columns: 6fr 6fr; align-items: center; gap: 40px; min-height: calc(100svh - var(--bar-h) - 40px); padding: 40px var(--m) 80px; overflow: hidden; }
.hero-copy { display: grid; gap: 26px; }
.hero-logo img { width: min(500px, 100%); }
.hero-motto { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; color: var(--brass); }
.hero-lede { font-size: 19px; max-width: 40ch; }
.open { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #6fbf86; flex: none; }
.open.is-closed .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--brass); }
.open.is-open .dot { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero-plate { position: relative; margin: 0; justify-self: end; width: min(46vw, 720px); }
.hero-plate img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; will-change: transform; }
.hero-plate figcaption { margin-top: 18px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brass); }

/* 2. carta of plates */
.carta { padding: var(--gap) var(--m) 0; }
.carta-head, .cena-head, .menu-head, .room-head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: 72px; }
.carta-head p, .cena-head p, .menu-head p, .room-head p { font-size: 19px; max-width: 42ch; }
.carta-plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px 40px; }
.carta-plates li { display: grid; gap: 6px; align-content: start; }
.carta-plates li:nth-child(4n+2), .carta-plates li:nth-child(4n+4) { margin-top: 64px; }
.carta-plates img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: 18px; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.carta-plates li:hover img { transform: rotate(-8deg) scale(1.03); }
.carta-plates h3 { font-size: clamp(2rem, 2.8vw, 2.6rem); }
.carta-plates .pr { color: var(--brass); font-weight: 600; }
.carta-plates p:last-child { font-size: 16px; }

/* 3. dinner for two */
.cena { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--cactus); }
.cena-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; }
.table { position: sticky; top: calc(var(--bar-h) + 32px); aspect-ratio: 1; border-radius: 50%; background: var(--night-2); }
.t-plate { position: absolute; border-radius: 50%; object-fit: cover; background: var(--night-3); opacity: 0; transform: scale(.85) rotate(-20deg); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1.1); }
.t-plate.on { opacity: 1; transform: none; }
.t-a { width: 38%; left: 6%; top: 34%; }
.t-b { width: 38%; right: 6%; top: 34%; }
.t-c { width: 26%; left: 37%; top: 7%; }
.t-d { width: 22%; left: 39%; bottom: 7%; }
.t-glass { position: absolute; width: 11%; aspect-ratio: 1; border-radius: 50%; background: var(--night-3); transition: background-color .4s ease, transform .4s ease; }
.t-glass { box-shadow: inset 0 0 0 5px rgba(243,237,227,.55), inset 0 0 0 9px var(--night-2); }
.t-glass.on { transform: scale(1.08); }
.t-e { left: 20%; top: 14%; }
.t-f { right: 20%; top: 14%; }
.courses { display: grid; gap: 30px; }
.courses fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.courses legend { font-family: var(--serif); font-size: 28px; margin-bottom: 12px; line-height: 1.1; }
.courses label { position: relative; cursor: pointer; }
.courses input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.courses label span { display: block; padding: 11px 18px; border-radius: 999px; background: rgba(0,0,0,.28); font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s; }
.courses label span b { font-weight: 700; margin-left: 6px; }
.courses label:hover span { background: rgba(0,0,0,.5); }
.courses input:checked + span { background: var(--cream); color: var(--night); }
.courses input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.check { padding: 28px 30px; border-radius: 24px; background: var(--night); }
.check-label { font-size: 15px; }
.check-total { font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; color: var(--brass); margin: 6px 0 10px; }
.check-lines { font-size: 15px; }

/* 4. day */
.day { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.day-plate { margin: 0; }
.day-plate img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.day-copy { display: grid; gap: 28px; }
.day-copy > p { font-size: 19px; max-width: 46ch; }
.day-picks { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day-picks div { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 16px; background: var(--night-2); }
.day-picks dt { font-weight: 600; }
.day-picks dd { margin: 0; color: var(--brass); font-weight: 700; }

/* 5. menu */
.menu { padding: var(--gap) var(--m) 0; }
.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(--night); }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs button { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--night-2); color: var(--cream); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.menu-tabs button:hover { background: var(--night-3); }
.menu-tabs button.on { background: var(--brass); color: var(--night); }
.menu-tabs small { font-size: 13px; margin-left: 4px; }
.menu-body { min-height: 520px; }
.menu-sec { padding-top: 56px; }
.menu-sec[hidden] { display: none; }
.menu-sec h3 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); color: var(--brass); margin-bottom: 8px; }
.menu-sec .sec-note { margin-bottom: 8px; }
.menu-items { list-style: none; margin: 36px 0 0; padding: 0; columns: 2; column-gap: 80px; }
.menu-items li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding-bottom: 26px; }
.menu-items b { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.menu-items .p { font-weight: 700; color: var(--brass); padding-top: 4px; }
.menu-items .d { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.5; }
.menu-sec.enter .menu-items { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.menu-foot { margin-top: 48px; padding: 16px 22px; border-radius: 16px; background: var(--night-2); font-size: 15px; }

/* 6. arches */
.room { padding: var(--gap) var(--m) 0; }
.arches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: end; }
.arch { margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.arch:hover img { transform: scale(1.05); }
.a1 { aspect-ratio: 3 / 5; } .a2 { aspect-ratio: 3 / 4.2; } .a3 { aspect-ratio: 3 / 5; } .a4 { aspect-ratio: 3 / 4.2; }

/* 7. gather */
.gather { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--night-2); display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.gather-copy { display: grid; gap: 26px; justify-items: start; }
.gather-copy p { font-size: 19px; max-width: 40ch; }
.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.packs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 22px 26px; border-radius: 20px; background: var(--night); }
.packs b { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.packs .p { font-weight: 700; color: var(--brass); font-size: 18px; padding-top: 4px; }
.packs .d { grid-column: 1 / -1; font-size: 15.5px; }

/* 8. visit */
.visit { padding: var(--gap) var(--m); display: grid; grid-template-columns: 7fr 5fr; gap: 80px; }
.visit-copy { display: grid; gap: 26px; align-content: start; }
.visit .addr { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.1; max-width: 18ch; }
.visit .addr a, .visit .phone a { text-decoration: none; }
.visit .addr a:hover, .visit .phone a:hover { color: var(--brass); }
.visit .phone { font-size: 24px; font-weight: 600; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 20px; }
.hours { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 17px; align-self: start; }
.hours caption { text-align: left; font-family: var(--serif); font-size: 34px; margin-bottom: 12px; }
.hours th, .hours td { padding: 12px 18px; text-align: left; font-weight: 500; background: var(--night-2); }
.hours th { border-radius: 999px 0 0 999px; }
.hours td { text-align: right; border-radius: 0 999px 999px 0; }
.hours tr.today th, .hours tr.today td { background: var(--brass); color: var(--night); font-weight: 700; }

/* footer */
.foot { padding: 80px var(--m) 48px; background: var(--night-2); text-align: center; }
.foot-logo { width: min(560px, 86%); margin: 0 auto; }
.foot-motto { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--brass); margin-top: 10px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 64px; font-size: 15px; text-align: left; }
.foot a { text-underline-offset: 3px; }

.thumb { display: none; }

/* entrances */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.shot .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.shot .hero { min-height: 800px; }
.shot .bar, .shot .menu-tabs { position: static; }
.shot .table { position: relative; top: 0; }
.shot .t-plate { transition: none !important; }

@media (max-width: 1080px) {
  .carta-plates { grid-template-columns: repeat(2, 1fr); }
  .carta-plates li:nth-child(n) { margin-top: 0; }
  .carta-plates li:nth-child(2n) { margin-top: 48px; }
  .cena-grid { grid-template-columns: 1fr; }
  .table { position: relative; top: 0; width: min(520px, 100%); margin: 0 auto; }
  .menu-items { columns: 1; }
}

@media (max-width: 820px) {
  :root { --bar-h: 62px; }
  body { font-size: 16.5px; padding-bottom: 70px; }
  .sample { font-size: 13px; }
  .bar { gap: 10px; }
  .bar-links { display: none; }
  .lang { margin-left: auto; }
  .bar-cta { padding: 0 18px; font-size: 15px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; gap: 28px; }
  .hero-plate { order: -1; justify-self: center; width: min(82vw, 420px); }
  .hero-logo img { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .carta-head, .cena-head, .menu-head, .room-head { grid-template-columns: 1fr; margin-bottom: 44px; }
  .carta-plates { gap: 44px 18px; }
  .carta-plates h3 { font-size: 1.8rem; }
  .carta-plates p:last-child { font-size: 14.5px; }
  .day { grid-template-columns: 1fr; gap: 40px; }
  .day-plate { width: min(80vw, 380px); justify-self: center; }
  .day-picks { grid-template-columns: 1fr; }
  .arches { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gather, .visit { grid-template-columns: 1fr; gap: 48px; }
  .packs li { padding: 18px 20px; }
  .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(--night-2); padding-bottom: env(safe-area-inset-bottom); }
  .thumb a { display: flex; align-items: center; justify-content: center; min-height: 60px; text-decoration: none; font-weight: 600; }
  .thumb .thumb-main { background: var(--brass); color: var(--night); }
  .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; }
}
