/* Concept 2, Ruta 73: the night drive. Navy night, the New Jersey Route 73 marker, highway-sign lettering
   (Overpass, drawn from the US road-sign alphabet), guide signs as page exits, the menu as a lit board. */

@font-face { font-family: "Overpass"; src: url("../../assets/fonts/overpass.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0f1636;
  --night-2: #18214a;
  --navy: #1d2756;
  --sign: #233070;
  --orange: #ff7a2f;
  --orange-2: #ff9354;
  --cream: #f6efe2;
  --muted: #b9bfd8;
  --line: rgb(246 239 226 / 0.16);
  --font: "Overpass", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1280px;
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --top: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 4.5rem); }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 1.0625rem/1.6 var(--font); }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--orange); color: var(--night); }
.skip:focus { top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3.25rem; padding: 0.85rem 1.35rem 0.75rem; border-radius: 6px;
  font: 800 1rem/1 var(--font); text-decoration: none; letter-spacing: 0.01em;
  transition: background-color 0.2s, translate 0.2s var(--ease);
}
.btn:active { translate: 0 2px; }
.btn--go { background: var(--orange); color: var(--night); }
.btn--go:hover { background: var(--orange-2); }
.btn--line { border: 2px solid var(--cream); }
.btn--line:hover { background: rgb(246 239 226 / 0.08); }
.btn--dark { background: var(--navy); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.kicker { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }

.status { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.status::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #8e94ad; box-shadow: 0 0 0 4px rgb(142 148 173 / 0.25); }
.status[data-open="true"]::before { background: #3ad07a; box-shadow: 0 0 0 4px rgb(58 208 122 / 0.22); }

.shield { width: 4.5rem; height: 4.5rem; flex: none; }
.shield--sm { width: 3.5rem; height: 3.5rem; }

/* ---------- header: the logo on a white sign plate ---------- */

.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  min-height: var(--top); padding: 0.55rem var(--gutter); background: rgb(15 22 54 / 0.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top__plate { display: inline-block; margin-right: auto; padding: 0.35rem 0.6rem; background: #fff; border-radius: 7px; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--navy); }
.top__plate img { width: clamp(8.5rem, 13vw, 11rem); }
.top__nav { display: flex; gap: 1.6rem; font-weight: 700; letter-spacing: 0.02em; }
.top__nav a { text-decoration: none; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-color: var(--orange); }
.switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; font-size: 0.9rem; }
.switch > * { display: inline-flex; align-items: center; gap: 0.25em; min-height: 2.2rem; padding: 0.15rem 0.85rem 0; border-radius: 5px; text-decoration: none; white-space: nowrap; }
.switch b { background: var(--cream); color: var(--night); }
.switch a:hover { background: rgb(246 239 226 / 0.1); }
.switch .icon { width: 0.9em; height: 0.9em; }
.top__call { min-height: 2.9rem; }

/* ---------- hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(52rem, calc(100svh - var(--top))); }
.hero__copy { align-self: center; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); max-width: 44rem; justify-self: end; }
.hero__marker { display: flex; align-items: center; gap: 0.9rem; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.15; color: var(--muted); }
.hero h1 { margin-top: 1.5rem; font-size: clamp(3.2rem, 1.6rem + 5.6vw, 7rem); }
.hero__lede { margin-top: 1.4rem; max-width: 36ch; color: var(--muted); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.hero .status { margin-top: 1.5rem; }
.hero .actions { margin-top: 1.5rem; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- exits: guide signs with a tab on top ---------- */

.exits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); max-width: var(--max); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0 var(--gutter); }
.exit {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.15rem 1rem;
  padding: 1.5rem 1.4rem 1.25rem; margin-top: 1.1rem; background: var(--sign); border-radius: 10px; text-decoration: none;
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px var(--cream); transition: translate 0.25s var(--ease), background-color 0.2s;
}
.exit:hover { translate: 0 -3px; background: #2a3984; }
.exit__tab { position: absolute; left: 1.1rem; top: -1.05rem; padding: 0.3rem 0.65rem 0.15rem; background: var(--sign); border-radius: 6px 6px 0 0; box-shadow: inset 0 0 0 2px var(--cream); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.exit b { grid-column: 1; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.05; }
.exit span:not(.exit__tab) { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.exit .icon { grid-column: 2; grid-row: 1 / span 2; width: 2rem; height: 2rem; color: var(--orange); }

/* ---------- feature ---------- */

.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: var(--max); margin-inline: auto; padding: var(--section) var(--gutter); }
.feature__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature__photos figure { margin: 0; }
.feature__photos figure:last-child { margin-top: 3rem; }
.feature__photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.feature__photos figcaption { margin-top: 0.6rem; font-weight: 700; font-size: 0.95rem; color: var(--muted); }
.feature h2 { margin-top: 0.9rem; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.5rem); }
.feature__copy > p:not(.kicker) { margin-top: 1.2rem; color: var(--muted); font-size: 1.15rem; max-width: 38ch; }
.quote { margin: 2rem 0 0; padding-left: 1.1rem; border-left: 4px solid var(--orange); }
.quote p { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.quote footer { margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- menu board ---------- */

.board { padding: var(--section) var(--gutter); background: var(--night-2); border-block: 1px solid var(--line); }
.board__head { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.board__head h2 { font-size: clamp(3.2rem, 1.6rem + 6vw, 7rem); }
.board__head p { max-width: 34ch; color: var(--muted); }
.tabs {
  position: sticky; top: calc(var(--top) - 1px); z-index: 20; display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none;
  max-width: var(--max); margin: 2rem auto 0; padding: 0.75rem 0; background: var(--night-2);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 0.6rem 0.95rem 0.45rem; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.tabs a:hover { border-color: var(--cream); }
.tabs a[aria-current] { background: var(--orange); border-color: var(--orange); color: var(--night); }
.board__grid { max-width: var(--max); margin: 1.5rem auto 0; columns: 3 20rem; column-gap: 1.25rem; }
.board__col { break-inside: avoid; margin-bottom: 1.25rem; padding: 1.5rem 1.4rem 1.4rem; background: var(--night); border: 1px solid var(--line); border-radius: 10px; }
.board__col h3 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--orange); }
.board__note { margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); }
.rows { margin: 0.9rem 0 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0 0.45rem; border-top: 1px solid var(--line); font-weight: 700; }
.rows li:first-child { border-top: 0; }
.rows small { display: block; margin-top: 0.15rem; font-size: 0.9rem; font-weight: 400; color: var(--muted); line-height: 1.45; }
.rows b { color: var(--orange); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.rows--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.rows--grid li:nth-child(2) { border-top: 0; }
.board__ask { margin-top: 0.8rem; font-size: 0.9rem; font-weight: 700; }
.board__ask a { color: var(--orange-2); text-underline-offset: 3px; }
.board__fine { max-width: var(--max); margin: 1.25rem auto 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- late night ---------- */

.late { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); background: var(--orange); color: var(--night); text-align: center; }
.late h2 { font-size: clamp(2.6rem, 1.3rem + 5.4vw, 6.25rem); text-transform: uppercase; letter-spacing: -0.03em; }
.late p { margin-top: 1rem; font-size: 1.2rem; font-weight: 600; }

/* ---------- party boxes + aguas ---------- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); max-width: var(--max); margin-inline: auto; padding: var(--section) var(--gutter); }
.duo__card { display: flex; flex-direction: column; background: var(--night-2); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.duo__photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.duo__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 1.75rem 1.6rem 2rem; flex: 1; }
.duo h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); }
.duo__body > p:not(.kicker) { color: var(--muted); font-size: 1.1rem; max-width: 38ch; }
.duo .btn { margin-top: auto; }

/* ---------- reviews ---------- */

.reviews { max-width: 56rem; margin-inline: auto; padding: 0 var(--gutter) var(--section); text-align: center; }
.reviews__score { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1rem; }
.reviews__score b { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; }
.reviews__score > span:last-child { color: var(--muted); }
.stars { display: inline-flex; gap: 0.15rem; }
.star { width: 1.5rem; height: 1.5rem; fill: var(--orange); }
.quote--big { margin-top: 2rem; padding: 0; border: 0; }
.quote--big p { font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); }

/* ---------- visit ---------- */

.visit { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--night-2); border-top: 1px solid var(--line); }
.visit__copy { padding: var(--section) var(--gutter); max-width: 38rem; justify-self: end; }
.visit h2 { margin-top: 1.25rem; font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); }
.visit__city { margin-top: 0.4rem; font-size: 1.3rem; color: var(--muted); }
.visit .status { margin-top: 1.5rem; }
.hours { width: 100%; max-width: 24rem; margin-top: 1rem; border-collapse: collapse; }
.hours th, .hours td { padding: 0.5rem 0 0.4rem; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today th, .hours .is-today td { color: var(--orange); font-weight: 800; }
.visit__note { margin-top: 1rem; color: var(--muted); }
.visit .actions { margin-top: 1.5rem; }
.visit__map iframe { width: 100%; height: 100%; min-height: 30rem; border: 0; filter: grayscale(0.2); }

/* ---------- footer ---------- */

.foot { display: grid; justify-items: center; gap: 0.6rem; padding: 3.5rem var(--gutter) calc(2rem + var(--bar, 0px)); text-align: center; color: var(--muted); }
.foot .top__plate { margin: 0 0 1rem; }
.foot a { color: var(--cream); text-underline-offset: 3px; }
.foot .icon { width: 0.9em; height: 0.9em; vertical-align: -0.1em; margin-left: 0.15em; }
.foot__base { margin-top: 1rem; font-size: 0.88rem; }
.actionbar { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .top__nav { display: none; }
}

@media (max-width: 900px) {
  .hero, .feature, .duo, .visit { grid-template-columns: minmax(0, 1fr); }
  .hero__copy, .visit__copy { justify-self: start; }
  .hero__photo { order: -1; }
  .hero__photo img { aspect-ratio: 4 / 3; height: auto; }
  .exits { grid-template-columns: minmax(0, 1fr); }
  .visit__map iframe { min-height: 22rem; }
}

@media (max-width: 640px) {
  :root { --bar: 4.4rem; --top: 4.1rem; }
  .top { gap: 0.6rem; }
  .top__plate img { width: 7.5rem; }
  .top__call span { display: none; }
  .top__call { width: 2.9rem; padding: 0; }
  .switch { font-size: 0.82rem; }
  .switch > * { padding-inline: 0.6rem; min-height: 2rem; }
  .shield { width: 3.5rem; height: 3.5rem; }
  .feature__photos figure:last-child { margin-top: 1.5rem; }
  .actionbar {
    position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.4rem;
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--line);
  }
  .actionbar .btn { min-height: 3rem; padding-inline: 0.5rem; font-size: 0.95rem; gap: 0.35rem; }
}

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