:root {
  --black: #000;
  --white: #f3f3f1;
  --mute: #9c9ea2;
  --line: #26272a;
  --panel: #0c0c0d;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --gutter: 20px;
  --max: 620px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */

.masthead {
  padding: 48px var(--gutter) 28px;
  text-align: center;
}

.logo {
  display: block;
  width: min(340px, 82vw);
  height: auto;
  margin: 0 auto;
}

.masthead h1 {
  margin: 0;
}

.address {
  margin: 18px 0 0;
  color: var(--mute);
  font-size: 0.875rem;
  line-height: 1.4;
}

.address a {
  text-decoration: none;
}

.address a:hover {
  color: var(--white);
}

/* Comidas / Bebidas switch */
.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 320px;
  margin: 28px auto 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.switch a {
  padding: 10px 0;
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.switch a:hover {
  color: var(--white);
}

.switch a[aria-current="page"] {
  background: var(--white);
  color: var(--black);
}

/* Night Drinks (/costabravanight) */
.night-title {
  display: none;
}

.night .night-title {
  display: block;
  margin: 26px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.75rem, 14vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.night .switch,
.night .cta {
  display: none;
}

/* ---------- Category nav ---------- */

.cats {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.cats ul {
  position: relative;
  display: flex;
  gap: 4px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats ul::-webkit-scrollbar {
  display: none;
}

.cats a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.cats a:hover {
  color: var(--white);
}

.cats a.is-active {
  background: var(--white);
  color: var(--black);
}

/* ---------- Menu ---------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.note {
  margin: 28px 0 0;
  color: var(--mute);
  font-size: 0.875rem;
  text-align: center;
}

.section {
  padding-top: 56px;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.375rem, 11vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.section .lede {
  margin: 12px 0 0;
  color: var(--mute);
  font-size: 0.9375rem;
  max-width: 46ch;
}

.items {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.item:last-child {
  border-bottom: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.row h3 {
  display: flex;
  align-items: baseline;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

/* dotted leader between name and price */
.row h3::after {
  content: "";
  flex: 1;
  min-width: 16px;
  margin-left: 10px;
  border-bottom: 1px dotted #4a4b4f;
  transform: translateY(-4px);
}

.price {
  flex: none;
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.price .half {
  display: block;
  color: var(--mute);
  font-size: 0.8125rem;
  font-weight: 500;
}

.item p {
  margin: 4px 0 0;
  padding-right: 72px;
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* lists without descriptions run tighter */
.items.compact .item {
  padding: 11px 0;
}

.items.compact .row h3,
.items.compact .price {
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Eventos ---------- */

.events {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.event {
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.event header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.event h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.event .price small {
  display: block;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 500;
}

.event dl,
.event ul {
  margin: 16px 0 0;
  padding: 0;
}

.event dl div {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.event dt {
  font-weight: 600;
  font-size: 0.9375rem;
}

.event dd {
  margin: 2px 0 0;
  color: var(--mute);
  font-size: 0.9375rem;
}

.event ul {
  list-style: none;
}

.event li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9375rem;
}

.conditions {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 0.875rem;
}

/* ---------- Footer ---------- */

.cta {
  display: block;
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 0 var(--gutter);
}

.cta a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--white);
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.cta a:hover {
  background: var(--white);
  color: var(--black);
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 56px;
  color: var(--mute);
  font-size: 0.875rem;
  text-align: center;
}

footer p {
  margin: 6px 0;
}

.badge {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

footer a {
  color: var(--white);
}

/* ---------- Load moment ---------- */

@media (prefers-reduced-motion: no-preference) {
  .masthead > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .masthead > :nth-child(2) { animation-delay: 0.08s; }
  .masthead > :nth-child(3) { animation-delay: 0.16s; }
  .masthead > :nth-child(4) { animation-delay: 0.16s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .masthead { padding-top: 72px; }
}

a[href^="https://wa.me"] {
  white-space: nowrap;
}
