/* ==========================================================
   Bernie's — shared styles (loaded on every page)
   ========================================================== */

:root {
  --ink: #141110;          /* near-black charcoal */
  --ink-2: #1d1916;
  --ink-3: #2a241f;
  --cream: #f6efe4;
  --cream-2: #ede3d3;
  --paper: #fbf7f0;
  --orange: #f28a1e;       /* neon orange from the sign */
  --orange-deep: #d96f0b;
  --amber: #f6b544;
  --brick: #8a4a32;
  --wood: #5a3a24;
  --text-dark: #2b221c;
  --text-muted-dark: #6d5f53;
  --text-light: #f4ece1;
  --text-muted-light: #b9ab9b;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --script: "Yellowtail", cursive;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* Slide-in reveals start off to the side; never let them widen the page. */
main { overflow-x: clip; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--script);
  color: var(--orange);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1;
  margin: 0 0 .5rem;
}
h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: .04em; }
.lede { font-size: 1.1rem; max-width: 34em; }
.rule {
  width: 56px; height: 3px; background: var(--orange);
  border: 0; margin: 1.25rem 0 1.5rem;
}
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }
.tbd {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-deep);
  border: 1px dashed currentColor; border-radius: 99px;
  padding: .2rem .7rem;
}
.dark .tbd { color: var(--amber); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Icons ----------
   Icons live in assets/img/icons/*.svg and are painted with the text color
   (set `color` to change it). Kept out of the section .html files on purpose:
   VS Code Live Server injects its reload script before every </svg> in an
   .html file and truncates the response. */
.icon {
  display: inline-block; width: 1em; height: 1em; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.icon-star     { --icon: url("../img/icons/star.svg"); }
.icon-calendar { --icon: url("../img/icons/calendar.svg"); }
.icon-sun      { --icon: url("../img/icons/sun.svg"); }
.icon-plus     { --icon: url("../img/icons/plus.svg"); }
.icon-image    { --icon: url("../img/icons/image.svg"); }
.icon-facebook { --icon: url("../img/icons/facebook.svg"); }
.icon-users    { --icon: url("../img/icons/users.svg"); }
.icon-pin      { --icon: url("../img/icons/pin.svg"); }
.icon-phone    { --icon: url("../img/icons/phone.svg"); }
.icon-mail     { --icon: url("../img/icons/mail.svg"); }
.icon-clock    { --icon: url("../img/icons/clock.svg"); }
.icon-briefcase { --icon: url("../img/icons/briefcase.svg"); }
.icon-truck    { --icon: url("../img/icons/truck.svg"); }
.icon-utensils { --icon: url("../img/icons/utensils.svg"); }
.icon-arrow-right { --icon: url("../img/icons/arrow-right.svg"); }
.icon-close    { --icon: url("../img/icons/close.svg"); }
.icon-chevron-left  { --icon: url("../img/icons/chevron-left.svg"); }
.icon-chevron-right { --icon: url("../img/icons/chevron-right.svg"); }
.icon-upload   { --icon: url("../img/icons/upload.svg"); }
.icon-tag      { --icon: url("../img/icons/tag.svg"); }
.icon-camera   { --icon: url("../img/icons/camera.svg"); }
.icon-check    { --icon: url("../img/icons/check.svg"); }
.icon-list     { --icon: url("../img/icons/list.svg"); }
.icon-expand   { --icon: url("../img/icons/expand.svg"); }
.icon-layout   { --icon: url("../img/icons/layout.svg"); }
.icon-chevron-down { --icon: url("../img/icons/chevron-down.svg"); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: 0 1.7rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #1a1208; }
.btn-primary:hover { background: var(--amber); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { border-color: var(--text-dark); color: var(--text-dark); }
.btn-dark:hover { background: var(--text-dark); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .btn-row { justify-content: center; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: .7rem 1.1rem; border-radius: var(--radius);
  background: var(--orange); color: #1a1208; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.lightbox-open { overflow: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(20,17,16,.94);
  box-shadow: 0 1px 0 rgba(242,138,30,.25);
  padding: 8px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo img { height: 62px; width: auto; filter: drop-shadow(0 0 10px rgba(242,138,30,.45)); transition: height .3s; }
.nav.scrolled .logo img { height: 46px; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn), .sub-toggle {
  font-family: var(--display); font-weight: 500; font-size: .86rem;
  text-transform: uppercase; letter-spacing: .12em; color: #fff; white-space: nowrap;
  position: relative; padding: .4rem 0;
}
.nav-links a:not(.btn)::after, .sub-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after,
.sub-toggle:hover::after, .sub-toggle.active::after { transform: scaleX(1); }

/* "Explore" dropdown */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; cursor: pointer;
}
.sub-toggle .icon { width: 14px; height: 14px; transition: transform .2s; }
.has-sub.open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; z-index: 5;
  min-width: 220px; list-style: none; margin: 0; padding: .5rem;
  background: rgba(20,17,16,.97); border: 1px solid rgba(242,138,30,.28); border-radius: var(--radius);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1081px) {
  .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-sub:hover .sub-toggle .icon { transform: rotate(180deg); }
}
.nav-links .sub-menu a:not(.btn) { display: block; padding: .7rem .9rem; border-radius: 4px; }
.nav-links .sub-menu a:not(.btn)::after { display: none; }
.nav-links .sub-menu a:hover, .nav-links .sub-menu a:focus-visible { background: rgba(242,138,30,.12); }
.nav-links .sub-menu a.active { color: var(--orange); }
.nav-links .btn { min-height: 44px; padding: 0 1.2rem; font-size: .86rem; white-space: nowrap; }
.burger {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 60;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: #fff; content: "";
  transition: transform .25s, background-color .25s;
}
.burger span { top: 23px; }
.burger span::before { left: 0; top: -8px; }
.burger span::after { left: 0; top: 8px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
section[id] { scroll-margin-top: 64px; }
.light { background: var(--cream); color: var(--text-dark); }
.light .lede, .light p { color: var(--text-muted-dark); }
.light h2, .light h3 { color: var(--text-dark); }
.dark { background: var(--ink); }
.dark .lede, .dark p { color: var(--text-muted-light); }
.light .eyebrow { color: var(--orange-deep); }
.dark .eyebrow { color: var(--orange); }

/* ---------- Shared components ---------- */
/* Section intro block: eyebrow + h2 + rule + lede */
.section-intro { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-intro .lede { margin-bottom: 0; }

/* Centered button under a section ("Explore Entertainment", "View Gallery") */
.section-foot { margin-top: clamp(2.2rem, 4vw, 3rem); text-align: center; }

/* Text link with arrow, e.g. "View events →" */
.card-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
}
.light .card-link { color: var(--orange-deep); }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .icon { transform: translateX(3px); }

/* Empty state for content the client hasn't supplied yet */
.placeholder-panel {
  display: grid; place-items: center; align-content: center; gap: .6rem;
  text-align: center; padding: 2.4rem 1.5rem;
  border: 1px dashed rgba(242,138,30,.45); border-radius: var(--radius);
}
.placeholder-panel > .icon { width: 40px; height: 40px; color: var(--orange); }
.light .placeholder-panel > .icon { color: var(--orange-deep); }
.placeholder-panel h3 { font-size: 1.15rem; }
.dark .placeholder-panel h3 { color: #fff; }
.placeholder-panel p { margin: 0; font-size: .95rem; max-width: 30em; }

/* Label / value list (contact details, space facts, hours) */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.info-list .icon-badge {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(242,138,30,.45); color: var(--orange);
}
.light .info-list .icon-badge { color: var(--orange-deep); }
.info-list .icon-badge .icon { width: 20px; height: 20px; }
.info-list .label {
  display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 600; margin-bottom: .2rem;
}
.dark .info-list .label { color: #fff; }
.light .info-list .label { color: var(--text-dark); }
.info-list .value { margin: 0; }

/* Hours list (used for Food Truck Hours). main.js marks today's row:
   give each row data-days="1 2 …" (1 = Monday … 7 = Sunday). */
.hours-list { margin: 0; display: grid; gap: .45rem; }
.hours-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.hours-list dt {
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
}
.hours-list dd { margin: 0; text-align: right; white-space: nowrap; }
.hours-list .is-closed dd { opacity: .7; }
.hours-list .is-today dt, .hours-list .is-today dd { color: var(--orange); font-weight: 700; }
.light .hours-list .is-today dt, .light .hours-list .is-today dd { color: var(--orange-deep); }
.today-tag {
  margin-left: .45rem; padding: .05rem .4rem; border-radius: 3px; vertical-align: 1px;
  font-family: var(--body); font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  background: var(--orange); color: #1a1208;
}

/* ---------- Footer ---------- */
footer { background: #0e0c0b; color: var(--text-muted-light); padding: 64px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
footer img { height: 64px; width: auto; margin-bottom: 1rem; }
footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: #fff; margin: 0 0 1rem; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: .5rem; }
footer a:hover { color: var(--orange); }
.foot-blurb { margin: 0; max-width: 22em; }
footer .tbd { color: var(--amber); }
.foot-bottom { border-top: 1px solid #2a2420; margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border: 1px solid #3a322b; border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--orange); }
.social .is-placeholder { width: 40px; height: 40px; border: 1px dashed #3a322b; border-radius: 50%; display: grid; place-items: center; opacity: .55; cursor: default; }
.social .icon { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 1.1rem;
    padding: 96px var(--gutter) 40px; overflow-y: auto;
    background: rgba(14,11,9,.98);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { font-size: 1.3rem; }
  /* Dropdown items become regular items in the mobile menu */
  .has-sub, .sub-menu, .sub-menu li { display: contents; }
  .sub-toggle { display: none; }
  .nav-links .sub-menu a:not(.btn) { display: inline; padding: .4rem 0; border-radius: 0; }
  .nav-links .sub-menu a:not(.btn)::after { display: block; }
  .nav-links .sub-menu a:hover { background: none; }
  .nav-links .sub-menu a.active { color: #fff; }
  .nav-links .btn { min-height: 54px; padding: 0 2.4rem; font-size: 1rem; margin-top: .6rem; }
  .menu-open { overflow: hidden; }
  .logo { position: relative; z-index: 60; }
}
@media (max-width: 1080px) and (max-height: 640px) {
  .nav-links { justify-content: flex-start; gap: .8rem; }
  .nav-links a:not(.btn) { font-size: 1.1rem; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo img { height: 48px; }
  .nav.scrolled .logo img { height: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
