/* ============ Sweet & Salty Grill — design tokens ============ */
@font-face { font-family: 'Barlow Condensed'; src: url('../assets/fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../assets/fonts/barlow-condensed-v13-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../assets/fonts/barlow-condensed-v13-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --cream: #FAF4E4; --blue: #28769A; --rust: #AA5135; --gold: #9C7F46;
  --ink: #332927; --white: #fff;
  --font: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --header-h: 76px; --subnav-h: 64px;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.55; }
.container { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.band { padding-block: 64px; }
.band--cream { background: var(--cream); }
.band--blue  { background: var(--blue);  color: var(--cream); }
.band--rust  { background: var(--rust);  color: var(--cream); }
.band--white { background: var(--white); }
.section-title { font-size: clamp(36px, 5vw, 54px); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; line-height: 1.05; }
.section-sub { font-size: 21px; font-weight: 400; margin-top: 6px; }
.btn { display: inline-block; border-radius: 999px; padding: 12px 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; font-size: 16px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rust); color: var(--cream); }
.band--rust .btn-primary { background: var(--blue); }
.btn-ghost { border: 2px solid currentColor; color: inherit; background: transparent; }
img { max-width: 100%; display: block; }

/* ============ Header / Nav ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; position: relative; min-height: 76px; gap: 20px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: space-between; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav > a:not(.header-logo-link):not(.btn) { text-transform: uppercase; font-weight: 500; letter-spacing: 1px; font-size: 15px; }
.header-logo-link { position: relative; top: 12px; z-index: 2; }
.header-social { display: flex; align-items: center; gap: 16px; }
.header-social a { display: inline-flex; color: var(--ink); width: 24px; height: 24px; }
.header-social svg { width: 100%; height: 100%; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); z-index: 3; }
  .header-inner { justify-content: center; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; background: var(--cream); visibility: hidden; }
  .site-nav.is-open { visibility: visible; }
  .site-nav .header-logo-link { visibility: visible; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .header-social { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
}

/* ============ Hero ============ */
.hero { position: relative; min-height: 82vh; display: grid; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  padding: 60px 20px 56px;
  text-align: center;
  color: var(--cream);
  background: linear-gradient(180deg, transparent 30%, rgba(51, 41, 39, .65));
}
.hero-title { font-size: clamp(44px, 7vw, 84px); font-weight: 700; text-transform: uppercase; line-height: 1.02; }
.hero-sub { font-size: clamp(17px, 2vw, 22px); margin-top: 14px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ============ Carousel ============ */
.carousel { position: relative; }
.carousel-track { display: flex; overflow: hidden; transition: transform .4s ease; border-radius: 8px; }
.carousel-slide { flex: 0 0 100%; width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.carousel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(51, 41, 39, .7));
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.carousel-prev { left: -12px; }
.carousel-next { right: -12px; }
.carousel-prev:hover, .carousel-next:hover { background: var(--rust); color: var(--cream); }

/* ============ Personality banner ============ */
.banner-line { font-size: clamp(24px, 3.6vw, 40px); font-weight: 700; text-transform: uppercase; text-align: center; }
.banner-line span { font-weight: 400; font-style: italic; text-transform: none; font-size: .6em; }

/* ============ Story bands (menu / games / Sweet Endings) ============ */
.band-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.band-split img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band-split p { margin-top: 18px; }
.band-split .btn { margin-top: 26px; }

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

.has-wave { position: relative; }
.has-wave::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('../assets/wave.svg') no-repeat center / 100% 100%;
  transform: translateY(-100%) scaleY(-1);
  pointer-events: none;
}

.sweet-endings .section-title { color: var(--gold); }
.sweet-endings { border-top: 6px solid var(--gold); }

/* ============ Utilities ============ */
.text-center { text-align: center; }
.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;
}

/* ============ Photo grid ============ */
.photo-grid-band .section-title { margin-bottom: 36px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .25s ease;
}
.photo-grid img:hover { transform: scale(1.03); }

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

/* ============ Reviews carousel ============ */
.reviews-band .section-title,
.reviews-band .section-sub { text-align: center; }
.reviews-band .carousel { max-width: 720px; margin-inline: auto; margin-top: 36px; }
.review-slide {
  text-align: center;
  padding: 8px 60px;
}
.review-slide .stars { color: var(--gold); font-size: 24px; letter-spacing: 2px; margin-bottom: 12px; }
.review-slide blockquote { font-size: 21px; line-height: 1.5; }
.review-slide figcaption { position: static; background: none; color: var(--ink); font-weight: 500; text-transform: none; font-size: 17px; margin-top: 16px; padding: 0; }

@media (max-width: 600px) {
  .review-slide { padding: 8px 40px; }
}

/* ============ Map + hours ============ */
.map-hours-split { align-items: stretch; }
.map-embed { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: 8px; }
.hours-table { margin-top: 18px; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 4px 16px 4px 0; font-weight: 400; }
.hours-table th { font-weight: 700; }
.landmark-line { margin-top: 10px; font-style: italic; }
.pill-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.map-hours-band .btn-ghost { border-color: var(--cream); }

/* ============ Contact review CTA ============ */
.contact-review-band .stars { color: var(--gold); font-size: 24px; letter-spacing: 2px; margin-bottom: 12px; }
.contact-review-band .btn { margin-top: 22px; }

/* ============ Review popup ============ */
.review-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 300px;
  background: var(--cream);
  border: 2px solid var(--rust);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.review-popup.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.review-popup .popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.review-popup .popup-title { font-weight: 700; font-size: 19px; margin-right: 20px; }
.review-popup p { margin-top: 8px; }
.review-popup .popup-cta { margin-top: 14px; font-size: 14px; padding: 10px 22px; }

/* ============ Menu page ============ */
.menu-hero { padding-block: 48px 36px; }

.menu-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid rgba(51, 41, 39, .12);
}
.menu-subnav-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block: 14px;
  scrollbar-width: none;
}
.menu-subnav-scroll::-webkit-scrollbar { display: none; }
.menu-pill {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.menu-pill:hover, .menu-pill:focus-visible { background: var(--rust); color: var(--cream); }

.menu-section { scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 12px); }
.menu-section .section-sub { margin-top: 4px; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 36px;
}
@media (max-width: 800px) {
  .menu-grid { grid-template-columns: 1fr; gap: 26px; }
}

.menu-item-head { display: flex; align-items: baseline; gap: 8px; }
.menu-item-name { font-weight: 500; color: var(--rust); white-space: nowrap; }
.menu-item-leader { flex: 1 1 auto; border-bottom: 2px dotted rgba(51, 41, 39, .35); margin-bottom: 5px; min-width: 16px; }
.menu-item-price { font-weight: 700; text-align: right; }
.menu-item-desc { font-size: 15px; margin-top: 6px; line-height: 1.5; }
.menu-item-note { font-size: 14px; margin-top: 4px; font-style: italic; opacity: .85; }
.menu-section-note { margin-top: 28px; font-size: 15px; font-style: italic; }

.sweet-endings.menu-section .menu-section-note { max-width: 640px; margin-inline: auto; font-style: normal; }

/* ============ Allergy note ============ */
.allergy-note { padding-block: 28px; font-size: 13px; text-align: center; opacity: .75; }

/* ============ Floating mobile CTAs ============ */
.mobile-fab-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 899px) {
  .mobile-fab-stack { display: flex; }
}
.mobile-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.mobile-fab--call { background: var(--blue); color: var(--cream); }
.mobile-fab--order { background: var(--rust); color: var(--cream); }

/* ============ FluxGrid Studio credit ============ */
.fg-credit { display: flex; justify-content: center; padding: 20px 0 24px; }
.fg-credit a { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem;
  color: var(--cream); text-decoration: none; transition: text-decoration-color .2s; }
.fg-credit a:hover { text-decoration: underline; }
.fg-credit img { height: 20px; width: auto; }

/* Footer body links (e.g. phone number) inherit the band's cream text color
   instead of the browser default link blue, which fails contrast on the blue band. */
.footer-grid a:not(.btn) { color: inherit; text-decoration: underline; }

/* On pages with the fixed mobile Call/Order pills (menu.html), the footer credit
   line sits right at the bottom of the page and gets covered by the pills once
   scrolled all the way down. Give it clearance equal to the fab stack's footprint. */
@media (max-width: 899px) {
  body:has(.mobile-fab-stack) .footer-credit { padding-bottom: 108px; }
}
