/* ==========================================================================
   Bluelight Chicago — full-site revamp
   Palette
     Midnight  #0A1230   page background (deep blue, not black)
     Deep      #070D24   footer, alternate bands
     Tube blue #4FA8FF   the neon: buttons, focus, "tonight" marker
     Tube core #D6ECFF   hot center of the neon, headings
     Bone      #EAE5D8   body text
     Mute      #9AA9CC   secondary text
   Type
     Big Shoulders Display (Chicago's own signage face) + Libre Franklin
   ========================================================================== */

:root {
  --midnight: #0A1230;
  --deep: #070D24;
  --panel: #0F1A45;
  --tube: #4FA8FF;
  --tube-core: #D6ECFF;
  --bone: #EAE5D8;
  --mute: #9AA9CC;
  --line: rgba(234, 229, 216, .16);

  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", "DejaVu Sans Condensed", Impact, sans-serif;
  --body: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --pad-y: clamp(3.5rem, 9vw, 6.5rem);
  --max: 74rem;
  --radius: 18px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--tube-core); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 30;
  padding: .6rem 1rem;
  background: var(--tube-core);
  color: var(--midnight);
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: .98;
  letter-spacing: .005em;
  color: var(--tube-core);
}

.section-title { font-size: clamp(2.5rem, 7.5vw, 4.5rem); max-width: 16ch; }

/* ---------- Top bar + navigation ---------- */

.topbar {
  position: relative;
  z-index: 20;
  background: var(--midnight);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: .6rem var(--gutter);
}

.brand { display: block; padding: .4rem 0; line-height: 0; }

.brand__logo { width: 11.5rem; height: auto; }

.nav-toggle { display: none; }

.nav { width: 100%; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: .55rem 0;
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bone);
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--tube); }
.nav__link[aria-current="page"] { color: var(--tube-core); border-bottom-color: var(--tube); }

/* With JavaScript the nav collapses into a toggle on small screens. */
.js .nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(234, 229, 216, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}
.js .nav { display: none; padding: .5rem 0 1rem; }
.js .nav[data-open="true"] { display: block; }
.js .nav__list { flex-direction: column; gap: 0; }
.js .nav__link { display: block; padding: .85rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.js .nav__link[aria-current="page"] { border-bottom-color: var(--tube); }

/* ---------- Hero (Home) ---------- */

.hero {
  --cord: 3.25rem;
  --bulb-w: 8.5rem;
  --bulb-h: calc(var(--bulb-w) * .976);

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100svh - 5rem);
  padding: calc(var(--cord) + var(--bulb-h) + 1.75rem) var(--gutter) 3.5rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #10204F, var(--deep));   /* shows if the photo is slow or missing */
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 58%;
}

/* A light shade lets the photo of the bar show; it darkens toward the bottom where the text sits
   and fades into the page below. */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 13, 36, .40) 0%, rgba(7, 13, 36, .10) 28%, rgba(7, 13, 36, .55) 62%, rgba(7, 13, 36, .88) 88%, var(--midnight) 100%);
}

.hero__title,
.hero__info { text-shadow: 0 2px 20px rgba(7, 13, 36, .75); }

/* The hanging bulb (also used on the inner-page headers) */
.hero__bulb {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--bulb-w);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__bulb::before {              /* ambient light thrown onto the photo */
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--cord) + var(--bulb-w) * .52);
  width: calc(var(--bulb-w) * 5);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(79, 168, 255, .42) 0%, rgba(47, 125, 240, .18) 30%, rgba(47, 125, 240, 0) 66%);
}

.hero__cord {
  width: 2px;
  height: var(--cord);
  background: linear-gradient(#5D6C94, #9AA9CC);
}

.bulb { position: relative; width: var(--bulb-w); height: auto; overflow: visible; }

.hero__inner { position: relative; display: grid; gap: 1.75rem; width: 100%; max-width: var(--max); margin-inline: auto; }

.hero__title { display: grid; justify-items: center; gap: .6rem; }

.sign { width: min(72vw, 18rem); height: auto; overflow: visible; }

.hero__city {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .5em;
  padding-left: .5em;
  color: var(--tube-core);
}

.hero__info { display: grid; gap: 1.5rem; }

.status { display: grid; gap: .3rem; justify-items: center; text-align: center; }

.status__main {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 4rem);
  line-height: 1;
  color: var(--tube-core);
}

.status__dot {
  flex: none;
  width: .5em; height: .5em;
  border-radius: 50%;
  background: var(--tube-core);
  box-shadow: 0 0 .3em .06em var(--tube), 0 0 .9em .18em rgba(79, 168, 255, .55);
}
.status[data-state="closed"] .status__dot { background: #4A5C8F; box-shadow: none; }

.status__sub { margin: 0; font-size: 1.2rem; color: var(--bone); }

.hero__address { margin: 0; color: var(--mute); text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ---------- Inner-page header ---------- */

.pagehead {
  --cord: 2.5rem;
  --bulb-w: 5.5rem;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3.25rem var(--gutter) 3rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, #10204F, var(--deep));
}

.pagehead__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-right: calc(var(--bulb-w) + 1rem);
}

.pagehead__title { font-size: clamp(3rem, 12vw, 6.5rem); }

.pagehead .hero__bulb { left: auto; right: var(--gutter); transform: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 .98rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--tube);
  color: var(--midnight);
  box-shadow: 0 0 1.5rem rgba(79, 168, 255, .4);
}
.btn--primary:hover { background: #7BC0FF; }

.btn--ghost {
  border-color: rgba(234, 229, 216, .5);
  background: rgba(7, 13, 36, .25);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--tube); color: var(--tube-core); }

/* ---------- Neon / bulb states ---------- */

.bl-lines { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bl-halo { stroke: #2F7DF0; stroke-width: 15; opacity: .85; filter: url(#bl-blur-lg); }
.bl-mid  { stroke: #4FA8FF; stroke-width: 7;  filter: url(#bl-blur-sm); }
.bl-core { stroke: #D6ECFF; stroke-width: 3.2; }

.bl-fill { fill: #4FA8FF; fill-opacity: .14; }
.bl-socket { fill: #0E1738; stroke: #9AA9CC; stroke-width: 2.5; stroke-linecap: round; }

/* Closed: the bulb and the sign go dark. */
[data-lit][data-state="closed"] .bl-halo { opacity: 0; }
[data-lit][data-state="closed"] .bl-mid  { opacity: .1; }
[data-lit][data-state="closed"] .bl-core { stroke: #4A5C8F; }
[data-lit][data-state="closed"] .bl-fill { fill-opacity: .03; }
[data-lit][data-state="closed"] .hero__bulb::before { opacity: 0; }

/* Open: the bulb strikes first, then the sign. Once per visit. */
@keyframes strike {
  0%   { opacity: 0; }
  8%   { opacity: .9; }
  12%  { opacity: .08; }
  20%  { opacity: .8; }
  24%  { opacity: .15; }
  34%  { opacity: 1; }
  38%  { opacity: .5; }
  46%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes spill {
  from { opacity: 0; }
  to   { opacity: 1; }
}

[data-lit][data-state="open"] .bl-tube--bulb { animation: strike 1.5s ease-out 1 both; }
[data-lit][data-state="open"] .bl-tube--sign { animation: strike 1.5s ease-out .7s 1 both; }
[data-lit][data-state="open"] .hero__bulb::before { animation: spill 1.2s ease-out .2s 1 both; }

@media (prefers-reduced-motion: reduce) {
  [data-lit] .bl-tube,
  [data-lit] .hero__bulb::before { animation: none !important; }
  html { scroll-behavior: auto; }
  .zoom img { transition: none !important; }
}

/* ---------- Shared blocks ---------- */

.block { padding: var(--pad-y) var(--gutter); }
.block--deep { background: var(--deep); }
.block__inner { max-width: var(--max); margin-inline: auto; }

/* ---------- Home: About + hours ---------- */

.about { display: grid; gap: 3rem; }

.about__copy { display: grid; gap: 1.4rem; align-content: start; }
.about__copy p { margin: 0; max-width: 38rem; font-size: 1.125rem; }

.hours {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.hours__title { font-size: 2.25rem; margin-bottom: 1rem; }

.hours__table { width: 100%; border-collapse: collapse; }

.hours__table th,
.hours__table td {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.hours__table tr:last-child th,
.hours__table tr:last-child td { border-bottom: 0; }
.hours__table td { text-align: right; }

.hours__table tr[aria-current="date"] th,
.hours__table tr[aria-current="date"] td { color: var(--tube-core); font-weight: 600; }
.hours__table tr[aria-current="date"] th { box-shadow: inset 3px 0 0 var(--tube); padding-left: .85rem; }

/* ---------- Photos: shared zoom buttons ---------- */

.zoom { display: block; overflow: hidden; border-radius: var(--radius); background: linear-gradient(160deg, #14224F, var(--midnight)); }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.zoom:hover img { transform: scale(1.04); }

/* Home: four photos */
.trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trio__item { aspect-ratio: 1; }
.trio__item:first-child,
.trio__item:last-child { grid-column: span 2; aspect-ratio: 4 / 3; }
.trio__item .zoom { height: 100%; }

/* Gallery: masonry columns keep each photo's natural proportions */
.masonry { column-count: 2; column-gap: .75rem; margin: 0; padding: 0; list-style: none; }
.masonry__item { margin: 0 0 .75rem; break-inside: avoid; }
.masonry__item .zoom img { height: auto; min-height: 8rem; }

/* Menu: photo grid */
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.thumbs__item { aspect-ratio: 4 / 5; }
.thumbs__item .zoom { height: 100%; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
}
.lightbox::backdrop { background: rgba(4, 8, 22, .94); }
.lightbox[open] { display: grid; place-items: center; }

.lightbox__img {
  max-width: min(94vw, 80rem);
  max-height: 82vh;
  width: auto; height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1px solid rgba(234, 229, 216, .35);
  border-radius: 50%;
  background: rgba(7, 13, 36, .7);
  color: var(--bone);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--tube); color: var(--tube-core); }

.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: .75rem; }
.lightbox__nav--next { right: .75rem; }
.lightbox__count { position: absolute; bottom: 1rem; left: 0; right: 0; margin: 0; text-align: center; color: var(--mute); font-size: .95rem; }

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

.menu { display: grid; gap: clamp(3.5rem, 8vw, 5.5rem); }

.menu__nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }

.chip {
  padding: .6rem 1.2rem;
  border: 1.5px solid rgba(234, 229, 216, .4);
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.chip:hover { border-color: var(--tube); color: var(--tube-core); }

.menu__section { display: grid; gap: 1.5rem; scroll-margin-top: 1.5rem; }
.menu__title { font-size: clamp(2.5rem, 7vw, 4rem); }

.drinks { margin: 0; padding: 0; list-style: none; }

.drink {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.drink__name { margin: 0; font-size: 1.75rem; line-height: 1.1; }
.drink__price { grid-column: 2; grid-row: 1; font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--tube); }
.drink__desc { grid-column: 1; margin: 0; color: var(--bone); }

.beers { margin: 0; padding: 0; list-style: none; }

.beer {
  display: grid;
  grid-template-columns: 1fr auto 2.5rem;
  gap: .25rem 1rem;
  align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.beer__abv { color: var(--mute); font-size: .92rem; }
.beer__price { text-align: right; font-weight: 600; color: var(--tube-core); }

/* ---------- Private Events ---------- */

.split { display: grid; gap: 2.5rem; align-items: center; }
.split__copy { display: grid; gap: 1.5rem; justify-items: start; }
.split__copy p { margin: 0; max-width: 34rem; font-size: 1.2rem; }

.split__media {
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, #14224F, var(--midnight));
  box-shadow: 0 0 4rem rgba(47, 125, 240, .14);
}
.split__media img { width: 100%; height: auto; }

/* ---------- Contact ---------- */

.contact { display: grid; gap: 2.5rem; }
.contact__list { display: grid; gap: 1rem; align-content: start; margin: 0; padding: 0; list-style: none; }

.contact__card {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.contact__label { margin: 0 0 .35rem; font-size: .9rem; font-weight: 600; color: var(--mute); }
.contact__value { margin: 0; font-size: 1.3rem; line-height: 1.5; font-style: normal; }
.contact__value a { color: var(--tube-core); text-underline-offset: 4px; }

.contact__hours { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.contact__hours th, .contact__hours td { padding: .5rem 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.contact__hours tr:last-child th, .contact__hours tr:last-child td { border-bottom: 0; }
.contact__hours td { text-align: right; }
.contact__hours tr[aria-current="date"] th,
.contact__hours tr[aria-current="date"] td { color: var(--tube-core); font-weight: 600; }
.contact__hours tr[aria-current="date"] th { box-shadow: inset 3px 0 0 var(--tube); padding-left: .85rem; }

.contact__map {
  overflow: hidden;
  min-height: 22rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  filter: invert(92%) hue-rotate(180deg) saturate(.7) contrast(.95);   /* dark-mode map */
}

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

.footer { padding: 3rem var(--gutter); border-top: 1px solid var(--line); background: var(--deep); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin-inline: auto;
}

.footer__address { font-style: normal; line-height: 1.7; }
.footer__address a { color: var(--tube-core); text-underline-offset: 4px; }
.footer__name { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--tube-core); }

.footer__social { display: flex; gap: .75rem; }

.social {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(234, 229, 216, .35);
  border-radius: 50%;
  color: var(--bone);
}
.social:hover { border-color: var(--tube); color: var(--tube-core); }
.social svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Larger screens ---------- */

@media (min-width: 40rem) {
  .masonry { column-count: 3; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 56rem) {
  /* Navigation sits inline again. */
  .js .nav-toggle { display: none; }
  .js .nav, .nav { display: block; width: auto; padding: 0; }
  .nav__list, .js .nav__list { flex-direction: row; gap: 0 1.8rem; }
  .js .nav__link { display: inline-block; padding: .55rem 0; font-size: 1rem; border-bottom: 2px solid transparent; }
  .js .nav__link[aria-current="page"] { border-bottom-color: var(--tube); }
  .nav__link { font-size: 1rem; }
  .brand__logo { width: 14.5rem; }

  .hero {
    --cord: clamp(5rem, 16vh, 9rem);
    --bulb-w: 16rem;
    justify-content: center;
    padding: 5rem var(--gutter);
    min-height: calc(100svh - 5rem);
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(7, 13, 36, .72) 0%, rgba(7, 13, 36, .30) 45%, rgba(7, 13, 36, 0) 75%),
      linear-gradient(180deg, rgba(7, 13, 36, .30) 0%, rgba(7, 13, 36, 0) 30%, rgba(7, 13, 36, .35) 75%, var(--midnight) 100%);
  }

  .hero__photo { object-position: center 60%; }

  .hero__bulb { left: auto; right: clamp(2rem, 13vw, 14rem); transform: none; }

  .hero__title { justify-items: start; }
  .hero__city { padding-left: 0; }
  .sign { width: min(30vw, 24rem); }

  .status { justify-items: start; text-align: left; }
  .hero__address { text-align: left; }
  .hero__info .actions { justify-content: flex-start; }

  .pagehead { --cord: 3rem; --bulb-w: 9rem; padding: 4.5rem var(--gutter) 4rem; }
  .pagehead .hero__bulb { right: max(var(--gutter), calc((100vw - var(--max)) / 2 + 4rem)); }

  .about { grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }

  .trio { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(11rem, 17vw, 16rem); }
  .trio__item, .trio__item:first-child, .trio__item:last-child { aspect-ratio: auto; }
  .trio__item:first-child { grid-column: span 2; grid-row: span 2; }
  .trio__item:last-child { grid-column: 3 / span 2; grid-row: 2; }

  .masonry { column-count: 4; }

  .drinks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .beers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }

  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }

  .contact { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
}
