/*
  The Beaver Bar: site stylesheet (design 1, "Asphalt")
  One stylesheet for the whole site.

  TABLE OF CONTENTS
  1.  Variables
  2.  Font
  3.  Base
  4.  Layout helpers
  5.  Header
  6.  Buttons
  7.  Hero
  8.  Info strip
  9.  Section headings
  10. Location cards (photo tiles)
  11. Hours and map
  12. Text blocks and checklists
  13. FAQ
  14. Footer
  15. Back-to-top button
  16. Photo gallery
  17. Lightbox
  18. Menu
  19. Leather & Chrome finish
*/

/* ===== 1. VARIABLES ===== */
:root {
  /* Tattoo Flash palette: black, bone white, tattoo red, mustard */
  --bg: #121010;          /* page background: warm black */
  --bg-alt: #1b1716;      /* alternate section background */
  --panel: #1f1a19;       /* cards */
  --ink: #efe4cc;         /* body text: bone white */
  --muted: #b8ad99;       /* secondary text */
  --accent: #c8282a;      /* tattoo red: borders, badges, lines */
  --btn: #b32225;         /* button red (deeper so bone text passes contrast) */
  --btn-hover: #9a1c1f;
  --on-accent: #efe4cc;   /* text on red */
  --gold: #e0a72e;        /* mustard: labels, prices, highlights */
  --stripe: #e0a72e;      /* road line */
  --line: #3a3230;        /* borders and dividers */
  --head-font: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gap: clamp(16px, 4vw, 40px);  /* side padding */
  --sec: 80px;            /* section padding, top and bottom (same everywhere) */
}

/* ===== 2. FONT =====
   Anton (SIL Open Font License, see OFL.txt). One weight only, so headings use 400. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/heading.woff") format("woff");
}

/* ===== 3. BASE ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body-font);
}

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

a { color: inherit; }

a:hover { color: var(--gold); }

h1,
h2,
h3 {
  margin: 0 0 .5em;
  font-family: var(--head-font);
  font-weight: 400;
  line-height: 1.05;
}

h1,
h2 {
  text-transform: uppercase;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

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

/* ===== 4. LAYOUT HELPERS ===== */

/* .wrap sets ONLY left/right padding, so media queries never wipe top/bottom padding */
.wrap {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

/* Every section: the same padding above and below (see --sec) */
section {
  padding-top: var(--sec);
  padding-bottom: var(--sec);
}

@media (max-width: 760px) {
  :root { --sec: 56px; }
}

/* Trim the last element's bottom margin so the space under the content
   matches the space above it */
main section .wrap > :last-child,
main section .wrap > * > :last-child,
main section .wrap > * > * > :last-child,
.loc-body > :last-child,
.faq-item > :last-child {
  margin-bottom: 0;
}

.alt { background: var(--bg-alt); }

/* Visually hidden but read by search engines and screen readers */
.vh {
  position: absolute;
  clip-path: inset(50%);   /* stays hidden even inside headings with special text effects */
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.skip:focus { top: 8px; }

/* Small label that sits above a heading's slogan */
.h-label {
  display: block;
  margin-bottom: .6em;
  color: var(--gold);
  font-family: var(--body-font);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 .4em;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Breadcrumb on inner pages */
.crumbs {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .85rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: .6;
}

/* ===== 5. HEADER =====
   Slim and sticky. Hides on scroll down, shows on scroll up (main.js). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0b0a0a;
  border-bottom: 3px double var(--gold);
  transition: transform .25s;
}

.site-header.is-hidden { transform: translateY(-100%); }

.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.wordmark {
  font-family: var(--head-font);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Logo image (owner's orange wood-letter wordmark) */
.logo { display: block; flex: none; }

.logo img {
  width: auto;
  height: 56px;
}

.foot-logo img { height: 86px; }

.wordmark small {
  display: block;
  margin-top: 5px;
  font-family: var(--body-font);
  font-size: .6rem;
  letter-spacing: .2em;
  opacity: .75;
}

.main-nav { margin-left: auto; }   /* pushes the menu to the right, next to the call button */

.main-nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;   /* menu labels never wrap; the menu button takes over below 1140px */
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  color: var(--gold);
}

.btn.head-call {
  padding: 10px 16px;
  white-space: nowrap;   /* only the header button may use nowrap */
}

.head-call .label-short { display: none; }

/* Menu button: 3 bars turn into an X */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  .menu-btn { display: block; }
  .btn.head-call { margin-left: auto; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b0a0a;
    border-bottom: 3px double var(--gold);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gap) 16px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
  }
}

/* Phones: round icon-only call button */
@media (max-width: 600px) {
  .head-row { gap: 12px; }
  .wordmark { font-size: 1.45rem; }
  .site-header .logo img { height: 46px; }

  .btn.head-call {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .head-call .label,
  .head-call .label-short { display: none; }
}

/* Thinner header on landscape phones */
@media (max-height: 520px) {
  .head-row { min-height: 56px; }
  .site-header .logo img { height: 40px; }
}

/* ===== 6. BUTTONS =====
   One button style across the site: mustard pill with dark text,
   and an outlined pill (bone border) for the second choice. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #121010;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
}

.btn:hover {
  background: #f0bf55;
  border-color: #f0bf55;
  color: #121010;
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  max-width: none;   /* the global svg max-width rule would squeeze icons to 0 in tight buttons */
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== 7. HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  /* Equal space above the content and between the content and the road line:
     bottom padding = section padding + the road line's height and offset (40px) */
  padding-top: var(--sec);
  padding-bottom: calc(var(--sec) + 40px);
  background: radial-gradient(ellipse at 85% 20%, #2e2624 0, var(--bg) 60%);
}

/* Hero photo background: sits behind a dark shade so the text stays readable */
.hero.has-photo { background: var(--bg); }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* background photo fills the hero at any screen shape */
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 16, .92) 0%, rgba(18, 16, 16, .72) 45%, rgba(18, 16, 16, .3) 100%),
    linear-gradient(0deg, rgba(18, 16, 16, .9) 0%, transparent 35%);
}

.hero .wrap { position: relative; z-index: 1; }

.road-line { z-index: 1; }

@media (max-width: 760px) {
  .hero-shade { background: rgba(18, 16, 16, .82); }
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 7.4rem);
}

/* Home headline: each line stays whole ("Pull up a rocker." never splits).
   The size scales with the screen so the longest line always fits. */
.h1-line {
  display: block;
  white-space: nowrap;
}

.hero h1:has(.h1-line) {
  max-width: none;
  font-size: clamp(2.3rem, 8.4vw, 5.4rem);
}

.hero-inner h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

.hero h1 .h-label { font-size: .85rem; }

/* Home hero: text on the left, framed Beaver Bar photo on the right */
.hero-split .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.hero-split h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); }

.hero-photo {
  margin: 0;
  justify-self: end;
  width: min(540px, 100%);
  border: 6px solid #2e2624;
  box-shadow: 0 0 0 3px var(--accent), 0 24px 50px rgba(0, 0, 0, .6);
  transform: rotate(2deg);
}

.hero-photo img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero-split .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { justify-self: center; transform: rotate(1.5deg); }
}

.hero .lede {
  max-width: 62ch;
  font-size: 1.15rem;
}

/* Yellow road line across the bottom of the hero */
.road-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 70px, transparent 70px 120px);
}

/* ===== 8. INFO STRIP =====
   Mustard band between bone double rules.
   Desktop: one row of 4, icon badge beside the text.
   Tablet and phone: a 2 x 2 grid of dark tiles, each with a red icon badge
   sitting on its top edge, so it reads as four separate tiles, not one block of text. */
.strip {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--gold);
  color: #121010;
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
}

.strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-left: 3px dotted rgba(18, 16, 16, .45);
}

.strip li:first-child { border-left: 0; }

/* Red round badge holding the icon */
.strip-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--ink);
  box-shadow: 0 0 0 3px #121010;
}

.strip-icon svg {
  width: 22px;
  height: 22px;
}

.strip-text strong {
  display: block;
  font-family: var(--head-font);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.strip-text span {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
}

.strip a { text-decoration-thickness: 2px; }

.strip a:hover { color: var(--btn); }

/* Tablet and phone: 2 x 2 grid of dark tiles */
@media (max-width: 1000px) {
  .strip ul {
    grid-template-columns: 1fr 1fr;
    gap: 40px 14px;           /* extra row gap leaves room for the badge on the next row */
    padding: 46px 0 26px;     /* badge sits 20px below the band's top edge; tiles (with shadow) end 20px above its bottom */
  }

  .strip li {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 34px 12px 16px;
    text-align: center;
    background: #121010;
    color: var(--ink);
    border: 0;
    border-top: 4px solid var(--btn);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 0 rgba(18, 16, 16, .35);
  }

  /* Badge sits on the tile's top edge */
  .strip-icon {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--gold);
  }

  .strip-text strong {
    color: var(--gold);
    font-size: 1.15rem;
  }

  .strip-text span { font-size: .88rem; }

  .strip a:hover { color: var(--gold); }
}

@media (max-width: 380px) {
  .strip ul { gap: 40px 10px; }
  .strip li { padding: 34px 8px 14px; }
  .strip-text strong { font-size: 1rem; }
  .strip-text span { font-size: .8rem; }
}

/* ===== 9. SECTION HEADINGS ===== */
.sec-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.sec-head h2,
.big-h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

/* ===== 10. LOCATION CARDS =====
   Bar photo on top (links to the location page), then name, address, hours
   (day on the left, time on the right), a short note and the Call / Directions buttons. */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.loc-grid.single { grid-template-columns: 1fr; max-width: 640px; }

.loc {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #2e2624;
  border-radius: 18px;
}

/* Photo: fixed 16:9 space so nothing shifts while it loads */
.loc-photo {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1514;
}

.loc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.loc-photo:hover img { transform: scale(1.03); }

.loc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px 40px 40px;
}

.loc h3 {
  margin-bottom: .3em;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.loc h3 a { text-decoration: none; }

.loc h3 a:hover { color: var(--gold); }

.loc address {
  font-size: 1.12rem;
  font-style: normal;
}

/* Hours: day left, time right, dashed line under each row */
.loc-hours {
  margin: 24px 0;
  padding: 0;
}

.loc-hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #3d3431;
  font-size: 1.08rem;
}

.loc-hours dt { font-weight: 400; }

.loc-hours dd {
  margin: 0;
  text-align: right;
}

.loc-note {
  margin: 0 0 26px;
  color: var(--muted);
}

/* Buttons sit at the bottom so both cards line up */
.loc-body .btn-row { margin-top: auto; }

@media (max-width: 860px) {
  .loc-grid { grid-template-columns: 1fr; gap: 28px; }
  .loc-body { padding: 26px 22px 30px; }
}

/* ===== 11. HOURS AND MAP ===== */
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  margin: 18px 0 24px;
  padding: 0;
  font-size: .97rem;
}

.hours dt { font-weight: 700; }

.hours dd { margin: 0; }

.visit {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.visit address {
  font-size: 1.2rem;
  font-style: normal;
}

/* Map space is reserved so the page never jumps when the iframe loads */
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--panel);
  border: 1px solid var(--line);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
}

/* ===== 12. TEXT BLOCKS AND CHECKLISTS ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split h3 {
  font-family: var(--body-font);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

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

.checks li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px solid var(--line);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* Brand images: badge (story), buffet graphic (food), mascot (404) */
figure { margin: 0; }

.badge {
  width: min(360px, 80%);
  margin-top: 28px;
}

.badge img {
  border-radius: 50%;
  box-shadow: 0 0 0 10px #2e2624, 0 0 0 13px var(--accent), 0 18px 40px rgba(0, 0, 0, .5);
  transform: rotate(-6deg);
}

.buffet {
  width: min(420px, 100%);
  margin: 0 0 24px;
}

.buffet img {
  border: 6px solid #2e2624;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.split > div > .buffet { margin-top: 8px; }

.mascot {
  width: min(460px, 90%);
  margin: 10px 0 26px;
}

@media (max-width: 860px) {
  .badge { margin-left: auto; margin-right: auto; }
}

/* Story: barrels photo behind a heavy shade */
.story {
  position: relative;
  overflow: hidden;
  background: #0d0b0b;
}

.story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}

.story .wrap { position: relative; }

/* Events: pavilion section gets an orange rule down the left */
.events {
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 8px 100% no-repeat,
    var(--bg);
}

.prose {
  max-width: 760px;
}

.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.4em; }

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===== 13. FAQ =====
   All questions and answers always visible (no accordions). */
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

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

.faq-item h3 {
  margin-bottom: .4em;
  font-family: var(--body-font);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.faq-item p { margin: 0; }

@media (max-width: 860px) {
  .faq-list { grid-template-columns: 1fr; }
}

/* ===== 14. FOOTER ===== */
.site-footer {
  padding-top: 48px;
  padding-bottom: 48px;
  background: #0b0a0a;
  color: #d9cfba;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.foot-grid h2 {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.foot-grid address { font-style: normal; }

.foot-grid .wordmark { display: inline-block; margin-bottom: 14px; }

/* Clear link to each location page */
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 2px solid var(--accent);
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.foot-link:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem;
}

.foot-base p { margin: 0; }

/* House standard: credit in the lower right, smaller and muted, not hidden */
.credit {
  margin-left: auto;
  color: #5a524a;        /* close to the footer background so it sits back, still readable */
  font-size: .78rem;
}

.credit a:hover { color: #8a8070; }

.credit a { text-decoration: none; }

.credit a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ===== 15. BACK-TO-TOP BUTTON (house standard) ===== */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--btn);
  color: var(--on-accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ===== 16. PHOTO GALLERY =====
   Even-height rows: each photo grows by its aspect ratio (--r = width / height), never cropped. */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.gal-item {
  flex: var(--r) 1 calc(var(--r) * 230px);
  margin: 0;
}

.gal-item a {
  display: block;
  overflow: hidden;
  border: 3px solid #2e2624;
  background: var(--panel);
}

.gal-item a:hover { border-color: var(--accent); }

.gal-item img {
  width: 100%;
  height: auto;
  transition: transform .3s;
}

.gal-item a:hover img { transform: scale(1.03); }

.gal-item figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 600px) {
  .gal-item { flex-basis: 100%; }
}

/* ===== 17. LIGHTBOX =====
   Dark backdrop, image only, close, previous/next, caption with "2 / 7". Built by main.js. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .94);
}

.lightbox.is-open { display: flex; }

.lb-figure {
  margin: 0;
  max-width: 92vw;
  text-align: center;
}

.lb-figure img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform .25s;
}

.lb-figure img.is-zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

.lb-caption {
  margin-top: 12px;
  color: #ddd;
  font-size: .95rem;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover { background: var(--accent); color: var(--on-accent); }

.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* Locations section on the home page: tighter spacing */
#locations .sec-head { margin-bottom: 32px; }

.loc .hours { font-size: .92rem; gap: 2px 16px; }

/* Phones: tighter location cards (buttons share one row) */
@media (max-width: 600px) {
  #locations .sec-head { margin-bottom: 24px; }
  #locations .sec-head h2 { font-size: 1.9rem; }
  .loc-grid { gap: 18px; }
  .loc-body { padding: 14px 16px 18px; }
  .loc h3 { font-size: 1.3rem; margin-bottom: .3em; }
  .loc .hours { margin-top: 8px; font-size: .88rem; }
  .loc-body .btn-row { gap: 10px; margin-top: 14px; flex-wrap: nowrap; }
  .loc-body .btn { padding: 9px 12px; font-size: .86rem; }
  .loc-body .btn svg { width: 15px; height: 15px; }
}

/* Keep hours rows packed at the top when the address column is taller */
.loc-body .hours { align-self: start; align-content: start; }

/* Home hero background: the fence mural.
   Desktop: the whole mural sits on the right, uncropped, fading into the dark toward the text.
   Phones: centered behind the text with a darker tint. */
@media (min-width: 861px) {
  /* Full height: the photo runs the full height of the hero, and its mural ends 3% from the right.
     The mural ends 19% of the photo's width before the photo's right edge (it's 1000px wide and the
     lettering ends at 810px), so translateX(19%) lines the mural up with the 3% mark at any width. */
  .hero-bg-mural {
    left: auto;
    right: 3%;
    width: auto;
    max-width: none;
    height: 100%;
    transform: translateX(19%);
    /* The photo's left edge fades into the dark hero background */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  }

  /* Gradient from the left: dark behind the text, easing off across the mural */
  .hero-bg-mural + .hero-shade {
    background:
      linear-gradient(90deg,
        rgba(18, 16, 16, .92) 0%,
        rgba(18, 16, 16, .82) 28%,
        rgba(18, 16, 16, .45) 50%,
        rgba(18, 16, 16, .15) 100%),
      linear-gradient(0deg, rgba(18, 16, 16, .6) 0%, transparent 22%);
  }

  /* A slightly smaller headline keeps the hero shorter */
  .hero-bg-mural ~ .wrap h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
  .hero-bg-mural ~ .wrap .lede { max-width: 48ch; }
  .hero-bg-mural ~ .wrap h1,
  .hero-bg-mural ~ .wrap .lede { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
}

@media (max-width: 860px) {
  .hero-bg-mural { object-position: 45% center; }    /* centers the mural on phones */
  .hero-bg-mural + .hero-shade { background: rgba(18, 16, 16, .74); }
}

/* ===== 18. MENU =====
   Three rounded cards. Heading with a mustard rule, then name, dotted leader and price.
   Add-ons and notes sit on a muted line under the item. */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.menu-group {
  padding: 32px 34px 36px;
  background: var(--panel);
  border: 1px solid #2e2624;
  border-radius: 18px;
}

.menu-group h3 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
  font-size: 2.1rem;
  text-transform: uppercase;
}

.menu-note {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.menu-item { padding-top: 24px; }

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

.menu-name {
  font-size: 1.12rem;
  font-weight: 700;
}

.menu-dots {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted #5a4f4a;
  transform: translateY(-5px);
}

.menu-price {
  color: var(--gold);
  font-size: 1.12rem;
  font-weight: 700;
  white-space: nowrap;
}

.menu-extra {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; gap: 24px; }
  .menu-group { padding: 26px 22px 30px; }
}

/* ===== 19. LEATHER & CHROME FINISH =====
   Worn leather texture, dashed stitching, chrome headlines and sewn-on patches,
   in the Tattoo Flash colors. Layout and spacing come from the sections above. */
:root {
  --stitch: rgba(224, 167, 46, .55);   /* mustard thread */
  --stitch-dark: rgba(18, 16, 16, .5); /* dark thread on mustard */
  --chrome: linear-gradient(180deg, #ffffff 0%, #e6dfd2 36%, #6f6a63 50%, #efe8da 62%, #a59e92 100%);
  --gold-metal: linear-gradient(180deg, #fff1c4 0%, #e9b84a 38%, #8a5b0e 50%, #f0c25a 62%, #c58d1f 100%);
}

/* Leather texture on the page; alternate sections are a see-through tint so the texture shows */
body {
  background-color: var(--bg);   /* dark base under the textures */
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJsIj48ZmVUdXJidWxlbmNlIHR5cGU9InR1cmJ1bGVuY2UiIGJhc2VGcmVxdWVuY3k9Ii4wNiIgbnVtT2N0YXZlcz0iMyIgc2VlZD0iMTEiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwIDAgIDAgMCAwIC40NSAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbHRlcj0idXJsKCNsKSIvPjwvc3ZnPg=="), url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjkiIG51bU9jdGF2ZXM9IjIiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwIDAgIDAgMCAwIC4zNSAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbHRlcj0idXJsKCNuKSIvPjwvc3ZnPg=="), radial-gradient(ellipse at 50% 0, #241c19, var(--bg) 70%);
  background-repeat: repeat, repeat, no-repeat;
  background-size: 300px, 200px, 100% 1400px;
}

.alt { background: rgba(43, 32, 28, .55); }

/* Header: stitched bottom edge */
.site-header {
  border-bottom: 2px dashed var(--stitch);
  box-shadow: 0 4px 0 #0b0a0a;
}

@media (max-width: 1140px) {
  .main-nav { border-bottom: 2px dashed var(--stitch); }
}

/* Chrome headlines. The metal band repeats once per line, lined up from the bottom,
   so every line gets the same chrome stripe. The small gold label above keeps its own color. */
.hero h1,
section h2 {
  background: var(--chrome);
  background-size: 100% 1.05em;
  background-position: 0 100%;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 #0b0a0a);
}

.hero h1 .h1-line + .h1-line,
.hero-inner h1 {
  background: var(--gold-metal);
  background-size: 100% 1.05em;
  background-position: 0 100%;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero h1 .h1-line + .h1-line { color: transparent; }

.hero .h-label,
section h2 .h-label { color: var(--gold); -webkit-text-fill-color: var(--gold); }

.hero-bg-mural ~ .wrap h1 { text-shadow: none; }

/* Info strip: stitched inside the band and inside each tile */
.strip {
  outline: 2px dashed var(--stitch-dark);
  outline-offset: -9px;
}

@media (max-width: 1000px) {
  .strip li {
    border-radius: 10px;
    outline: 2px dashed var(--stitch);
    outline-offset: -7px;
  }
}

/* Photos and graphics: stitched leather frames */
.gal-item a,
.buffet img,
.hero-photo {
  border: 8px solid #2b211d;
  border-radius: 10px;
  outline: 2px dashed var(--stitch);
  outline-offset: -5px;
}

.gal-item a:hover { border-color: #3a2c26; }

/* Dividers become stitching */
.faq-item { border-top: 2px dashed rgba(224, 167, 46, .3); }

.checks li { border-bottom: 1px dashed rgba(224, 167, 46, .25); }

.site-footer {
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJsIj48ZmVUdXJidWxlbmNlIHR5cGU9InR1cmJ1bGVuY2UiIGJhc2VGcmVxdWVuY3k9Ii4wNiIgbnVtT2N0YXZlcz0iMyIgc2VlZD0iMTEiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwIDAgIDAgMCAwIC40NSAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbHRlcj0idXJsKCNsKSIvPjwvc3ZnPg=="), #0b0a0a;
  background-size: 300px, auto;
  border-top: 2px dashed var(--stitch);
}


/* The chrome effect paints every letter in a heading, even hidden ones, so the hidden
   separator after each label is shrunk to nothing and kept see-through (screen readers still read it) */
.h-label .vh {
  font-size: 1px;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Home food section: Sunday Mornings and The Rest of the Week stacked in one column, split by stitching */
.food-stack > div > :last-child { margin-bottom: 0; }

.food-stack > div + div {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px dashed rgba(224, 167, 46, .3);
}

/* Footer links and back-to-top use the same button style */
.foot-link {
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

.foot-link:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.to-top {
  background: var(--gold);
  color: #121010;
}

/* ===== 20. BIKE WEEK, RALLIES & PRIVATE EVENTS CARDS =====
   Home: four cards, each one a link to its location page.
   Location pages: the two cards for that bar, under the rally text. */
.rides-intro { max-width: 70ch; }

/* Location links in the intro: mustard, no underline */
.rides-intro a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.rides-intro a:hover { color: var(--ink); }

.ride-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ride-grid-2 { grid-template-columns: repeat(2, 1fr); }

.rides-local { margin-top: 40px; }

.ride-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--panel);
  border: 1px solid #2e2624;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

a.ride-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

a.ride-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.ride-when {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--head-font);
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.ride-card h3 {
  margin: 0 0 4px;
  font-family: var(--body-font);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;   /* card titles always take one line */
}

.ride-place {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ride-body { margin: 0; }

.ride-more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--gold);
  font-weight: 700;
}

a.ride-card:hover .ride-more { color: var(--ink); }

@media (max-width: 1180px) {
  .ride-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ride-grid,
  .ride-grid-2 { grid-template-columns: 1fr; }
}

/* Info strip: every item shows its detail on two fixed lines, and links have no underline */
.strip-text > span {
  display: block;
  white-space: nowrap;
}

.strip-text a {
  color: inherit;
  text-decoration: none;
}

.strip-text strong a:hover,
.strip-text span a:hover { color: var(--btn); }

@media (max-width: 1000px) {
  .strip-text strong a:hover,
  .strip-text span a:hover { color: var(--gold); }
}
