/* ============================================================
   Mary's Bar — Broken Hill
   Mobile-first. Dark, moody, tasteful neon.
   Colour hierarchy: amber = the name/headings; blue + pink =
   accents only (dividers, borders, glow), alternated like a ring.
   ============================================================ */

:root {
  --bg:        #0A0A0A;
  --amber:     #FF8A00;
  --blue:      #5B5BE6;
  --pink:      #E64C7F;
  --white:     #FFFFFF;
  --grey:      #CFCFCF;

  --maxw:      960px;
  --nav-h:     76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h); /* anchors clear the sticky nav */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--amber); }

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

/* ---------- Headings ---------- */
.hero__title,
.section__title {
  font-family: "Anton", "Inter", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 400;
  margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 1rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  /* Neon ring border: blue → pink gradient hairline */
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--pink)) 1;
  box-shadow: 0 1px 18px -6px rgba(91, 91, 230, 0.5);
}

.nav__brand { display: flex; align-items: center; line-height: 0; }
.nav__brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(91, 91, 230, 0.45));
}

.nav__menu {
  display: flex;
  gap: 1.75rem;
}
.nav__menu a {
  color: var(--grey);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
.nav__menu a:hover,
.nav__menu a:focus {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 138, 0, 0.55);
}

/* Hamburger button (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   DIVIDERS (neon accent bars)
   ============================================================ */
.divider {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  margin: 0 auto 1.5rem;
}
.divider--blue {
  background: var(--blue);
  box-shadow: 0 0 14px 1px rgba(91, 91, 230, 0.8);
}
.divider--pink {
  background: var(--pink);
  box-shadow: 0 0 14px 1px rgba(230, 76, 127, 0.8);
}
/* Hero divider: blue→pink like the logo's rings */
.divider--ring {
  width: 120px;
  margin: 2rem auto;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  box-shadow: 0 0 16px 1px rgba(230, 76, 127, 0.6);
}

/* ============================================================
   BUTTONS — dark fill, neon border + glow. Amber text on black.
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber);
  background: rgba(255, 138, 0, 0.06);
  border: 2px solid var(--amber);
  border-radius: 4px;
  box-shadow: 0 0 18px -2px rgba(255, 138, 0, 0.5);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.btn:hover,
.btn:focus {
  background: rgba(255, 138, 0, 0.16);
  box-shadow: 0 0 26px 0 rgba(255, 138, 0, 0.7);
}
.btn:active { transform: translateY(1px); }

/* Row of buttons — wraps and centres on small screens */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Outline variant uses a blue/pink accent edge (no amber-on-colour) */
.btn--outline {
  color: var(--amber);
  background: transparent;
  border-color: var(--pink);
  box-shadow: 0 0 18px -4px rgba(230, 76, 127, 0.6);
}
.btn--outline:hover,
.btn--outline:focus {
  background: rgba(230, 76, 127, 0.10);
  box-shadow: 0 0 24px -2px rgba(230, 76, 127, 0.75);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  /* subtle radial glow behind the headline */
  background:
    radial-gradient(circle at 50% 38%, rgba(91, 91, 230, 0.18), transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(230, 76, 127, 0.12), transparent 60%),
    var(--bg);
}
.hero__inner { max-width: 720px; }

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero__title {
  font-size: clamp(3.5rem, 16vw, 8rem);
  color: var(--amber);
  /* layered neon glow */
  text-shadow:
    0 0 8px rgba(255, 138, 0, 0.55),
    0 0 22px rgba(255, 138, 0, 0.4),
    0 0 44px rgba(255, 138, 0, 0.25);
}

.hero__tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: var(--white);
  font-weight: 500;
}
.hero__tagline .shout {
  color: var(--pink);
  font-weight: 600;
  text-shadow: 0 0 14px rgba(230, 76, 127, 0.6);
}

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section {
  padding: 5rem 1.25rem;
}
.section--alt {
  background: #0d0d0d; /* a hair lighter than bg for separation */
}
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.section__title {
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 138, 0, 0.35);
  margin-bottom: 1.5rem;
}
.lead {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.12rem;
  color: var(--grey);
}

/* ============================================================
   GALLERY — masonry via CSS columns (handles mixed orientations)
   ============================================================ */
.gallery {
  columns: 2;
  column-gap: 0.75rem;
  margin-top: 0.5rem;
}
.gallery__item {
  margin: 0 0 0.75rem;
  break-inside: avoid;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 0;
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.gallery__item:hover img,
.gallery__item:focus-within img {
  transform: scale(1.04);
}
/* Alternate the hover glow blue/pink, like the neon ring */
.gallery__item:nth-child(odd):hover  { box-shadow: 0 0 22px -4px rgba(91, 91, 230, 0.7); }
.gallery__item:nth-child(even):hover { box-shadow: 0 0 22px -4px rgba(230, 76, 127, 0.7); }

@media (min-width: 720px) {
  .gallery { columns: 3; column-gap: 1rem; }
  .gallery__item { margin-bottom: 1rem; }
}

/* ============================================================
   HOURS & LOCATION
   ============================================================ */
.hours-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 1rem;
  text-align: left;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.hours th,
.hours td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.hours th {
  text-align: left;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 6rem;
}
.hours td {
  text-align: right;
  color: var(--grey);
}
/* Highlight the open days subtly */
.hours tr:nth-last-child(-n+4) td { color: var(--white); }

.location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.location__address {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--white);
}
.location__phone {
  margin: 0;
  font-size: 1.1rem;
}
.location__phone a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.location__phone a:hover,
.location__phone a:focus {
  text-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--pink), var(--blue)) 1;
}
.footer p { margin: 0; }

/* ============================================================
   RESPONSIVE — desktop layout from 720px up
   ============================================================ */
@media (min-width: 720px) {
  .nav { padding: 0 2rem; }
  .nav__brand img { width: 60px; height: 60px; }

  .hours-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }
  .location { align-items: flex-start; padding-top: 0.5rem; }
}

/* ---------- Mobile nav (below 720px): collapse to hamburger ---------- */
@media (max-width: 719px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pink);
    /* collapsed by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .nav__menu.is-open { max-height: 240px; }
  .nav__menu a {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    font-size: 1.05rem;
  }
}

/* ---------- Respect reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
