.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  padding: 22px 0 14px;
  z-index: 5;
}

.nav__home {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.nav__mark {
  display: block;
  /* +20% over the previous size */
  width: clamp(115px, 13vw, 173px);
  height: clamp(58px, 7.2vw, 80px);
  /* Wave logo picks up the palette's secondary accent so it shifts color
     each palette, not just on the dark palette. */
  background: var(--p2);
  -webkit-mask: url("/assets/svg/rbco-logo-wave-01.svg") no-repeat center / contain;
          mask: url("/assets/svg/rbco-logo-wave-01.svg") no-repeat center / contain;
  transition: background-color var(--fade) var(--ease), transform .25s cubic-bezier(.2,.7,.2,1);
}
.nav__home:hover .nav__mark { transform: rotate(-3deg) scale(1.04); }

/* Page-centered group: nav links sit at the same vertical line as the
   logo and the open/closed pill. The optional snipe is parked just below
   the links so it doesn't pull the centerline off-axis. */
.nav__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nav__center > * { pointer-events: auto; }

.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav__links a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: inherit;
  position: relative;
  padding: 6px 2px;
  transition: color var(--fade) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--p1);
  transition: right .25s cubic-bezier(.2,.7,.2,1), background-color var(--fade) var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { right: 0; }

.nav__snipe {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color var(--fade) var(--ease),
    color var(--fade) var(--ease);
}

/* The pill itself carries the state color. data-state drives the bg / border
 * (green / amber / red) and an "alive" pulse for the open + soon states.
 * State machine and wording lives in /assets/js/open-closed.js. */
.nav__status {
  position: relative;            /* anchors the happy-hour starburst */
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition:
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease,
    transform .15s ease;
}
.nav__status:hover,
.nav__status:focus-visible {
  transform: translateY(-1px);
  filter: brightness(.96);
}
.nav__status:focus-visible { outline-offset: 3px; }

/* OPEN: solid green pill, lively pulse halo. */
.nav__status[data-state="open"] {
  background: var(--status-green);
  border-color: var(--status-green);
  color: #fff;
  animation: nav-status-pulse 2.6s ease-in-out infinite;
  --pulse-color: var(--status-green);
}

/* CLOSING SOON / OPENING SOON: amber, same pulse. */
.nav__status[data-state="closing"],
.nav__status[data-state="opening"] {
  background: var(--status-amber);
  border-color: var(--status-amber);
  color: #2A1A0A;
  animation: nav-status-pulse 2.6s ease-in-out infinite;
  --pulse-color: var(--status-amber);
}

/* CLOSED: solid red pill, no pulse (intentionally calm). */
.nav__status[data-state="closed"] {
  background: var(--status-red);
  border-color: var(--status-red);
  color: #fff;
}

/* While the JS hasn't computed yet — neutral pill, no pulse. */
.nav__status[data-state="loading"] {
  background: color-mix(in srgb, var(--ink) 6%, var(--paper));
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
  color: var(--ink);
}

@keyframes nav-status-pulse {
  0%   { box-shadow: 0 0 0 0 var(--pulse-color, currentColor); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Happy-Hour starburst — sits BELOW the open/closed pill, just barely
 * overlapping the bottom edge so it reads as attached. Hidden by
 * default; the `[data-happy="true"]` state (set by open-closed.js)
 * pops it in.
 *
 * The starburst is a CSS clip-path polygon — no SVG, no extra request.
 * 16 points (32 vertices) with a shallow inner-radius (45/50 = 90%) so
 * the silhouette reads as a fat round sun rather than a pointy star. */
.nav__happy {
  position: absolute;
  top: calc(100% - 6px);                  /* just kissing the pill bottom */
  left: 50%;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  background: var(--p1);
  color: var(--on-p1);
  text-align: center;
  pointer-events: none;
  /* `translate`, `rotate`, `scale` are individual properties so they
   * stack with the wobble animation without fighting `transform`. */
  translate: -50% 0;
  rotate: -6deg;
  scale: 0;
  opacity: 0;
  transition:
    scale .35s cubic-bezier(.4, 1.7, .4, 1),
    opacity .25s ease,
    background-color var(--fade) var(--ease);
  clip-path: polygon(
    50% 0%,    58.8% 5.9%,  69.1% 3.8%,  75% 12.6%,
    85.4% 14.6%, 87.4% 25%, 96.2% 30.9%, 94.1% 41.2%,
    100% 50%,  94.1% 58.8%, 96.2% 69.1%, 87.4% 75%,
    85.4% 85.4%, 75% 87.4%, 69.1% 96.2%, 58.8% 94.1%,
    50% 100%,  41.2% 94.1%, 30.9% 96.2%, 25% 87.4%,
    14.6% 85.4%, 12.6% 75%, 3.8% 69.1%,  5.9% 58.8%,
    0% 50%,    5.9% 41.2%,  3.8% 30.9%,  12.6% 25%,
    14.6% 14.6%, 25% 12.6%, 30.9% 3.8%,  41.2% 5.9%
  );
}
.nav__happy-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 6px;
}
.nav__happy-line {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nav__status[data-happy="true"] .nav__happy {
  scale: 1;
  opacity: 1;
  animation: nav-happy-wobble 1.8s ease-in-out infinite;
}
@keyframes nav-happy-wobble {
  0%, 100% { rotate: -6deg;  scale: 1;     }
  50%      { rotate:  2deg;  scale: 1.06;  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__status[data-happy="true"] .nav__happy { animation: none; }
}

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav__center {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    pointer-events: auto;
  }
  .nav__links { flex-wrap: wrap; gap: 18px; }
  .nav__snipe { font-size: 10px; padding: 5px 12px; }
}

.footer {
  margin-top: 60px;
  padding-top: 40px;
  padding-bottom: 60px;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 50px;
}
@media (max-width: 720px) { .footer__cols { grid-template-columns: 1fr; } }

.footer__h {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: .6;
}
.footer__name {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.footer__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .2s ease;
}
.footer__link:hover { color: var(--p1); }
.footer__small {
  margin-top: 20px;
  font-size: 12px;
  opacity: .65;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__big {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 130px);
  line-height: .9;
  letter-spacing: -.02em;
  margin: 30px 0 24px;
}
.footer__big .stroke {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.footer__big .accent {
  color: var(--p1);
  font-style: italic;
  transition: color var(--fade) var(--ease);
}

.footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}
