/* ==========================================================================
   Lum's BBQ — site styles
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-slab-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap;
  src: url("../fonts/ibm-plex-sans-300.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  --c-text: #3d251f;
  --c-brown: #8c594d;
  --c-gold: #a66f3f;
  --c-board-frame: #cfb53b;
  --c-peach: #f2d7b6;
  --c-paper: #f1eee8;
  --c-white: #fff;

  --f-heading: "Roboto Slab", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;

  --sidebar-w: 280px;
  --content-w: 900px;
  --gutter: 20px;
  --section-y: 100px;
  --radius: 10px;
  --radius-xl: 100px;

  --fs-body: 18px;
  --fs-h1: 36px;
  --fs-h2: 30px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-h5: 20px;
  --fs-eyebrow: 13px;
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --fs-body: 20px; --fs-h1: 46px; --fs-h2: 38px; --fs-h3: 27px; --fs-h4: 22px; --fs-eyebrow: 14px; }
}
@media (min-width: 1120px) {
  :root { --fs-body: 22px; --fs-h1: 54px; --fs-h2: 46px; --fs-h3: 30px; --fs-h4: 24px; --fs-h5: 22px; --fs-eyebrow: 16px; }
}
@media (max-width: 767px) { :root { --section-y: 60px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font: 300 var(--fs-body)/1.67 var(--f-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-family: var(--f-heading); font-weight: 400; line-height: 1.3; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .5rem 1rem; background: var(--c-text); color: var(--c-white);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--c-brown); outline-offset: 3px; }

.eyebrow {
  display: block; margin: 0 0 .75em;
  font: 300 var(--fs-eyebrow)/1.25 var(--f-body);
  letter-spacing: .15em; text-transform: uppercase;
}
.container { width: 100%; max-width: calc(var(--content-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(700px + 2 * var(--gutter)); }
.container--wide { max-width: calc(1008px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--flush-bottom { padding-bottom: 0; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid var(--c-brown); border-radius: 40px;
  color: var(--c-brown); background: transparent;
  font: 400 16px/1 var(--f-heading); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--c-brown); color: var(--c-white); }
.button--light { border-color: var(--c-white); color: var(--c-white); }
.button--light:hover { background: var(--c-white); color: var(--c-text); }
.button--solid { background: var(--c-brown); border-color: var(--c-gold); color: var(--c-white); }
.button--solid:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-brown); }
@media (max-width: 767px) { .button { font-size: 18px; } }

/* ---------- Social icons ---------- */
.social { display: flex; align-items: center; gap: 16px; }
.social__label { font: 400 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; }
.social a { display: grid; place-items: center; width: 24px; height: 24px; }
.social svg { width: 16px; height: 16px; }
.social a:hover { color: var(--c-brown); }
.social__line { display: none; }

/* ==========================================================================
   Site header — top bar on small screens, fixed sidebar on large screens
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: var(--c-white);
}
.site-header__logo img { width: 110px; }
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; color: var(--c-text); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 100%); overflow-y: auto;
  padding: 10px var(--gutter) 30px;
  background: var(--c-white);
  box-shadow: 0 12px 20px -12px rgb(0 0 0 / .15);
}
.site-header.is-open .site-nav { display: block; }
/* keep in-page anchor targets clear of the sticky top bar */
[id] { scroll-margin-top: 90px; }
.site-nav ul { display: grid; gap: 4px; }
.site-nav a {
  display: inline-block; padding: 8px 0;
  font: 400 16px/1.25 var(--f-body); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .25s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.site-nav__anchors a { color: var(--c-brown); }
.site-nav__divider { width: 40px; height: 2px; margin: 18px 0; border: 0; background: var(--c-gold); }
.site-header .social { margin-top: 24px; }

@media (min-width: 1120px) {
  .site-header {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 60px 0 60px 65px;
  }
  .site-header__logo img { width: 150px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; max-height: none; overflow: visible;
    padding: 50px 0 0 40px; box-shadow: none; background: none;
  }
  .site-nav ul { gap: 5px; }
  .site-header .social {
    flex-direction: column; gap: 14px; margin: 70px 0 0 66px;
  }
  .site-header .social__label { writing-mode: vertical-rl; transform: rotate(180deg); }
  .site-header .social__line { display: block; width: 1px; height: 75px; background: currentColor; }

  .page { margin-left: var(--sidebar-w); }
  [id] { scroll-margin-top: 0; }
}

/* Back-to-top tab (large screens) */
.back-to-top {
  position: fixed; right: 16px; bottom: 120px; z-index: 40;
  display: none; flex-direction: column; align-items: center; gap: 12px;
  padding: 16px 12px; border-radius: 40px;
  background: rgb(255 255 255 / .6);
  font: 400 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.back-to-top span { writing-mode: vertical-rl; transform: rotate(180deg); }
.back-to-top svg { width: 12px; height: 80px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 1120px) { .back-to-top { display: flex; } }

/* ==========================================================================
   Home page
   ========================================================================== */
/* Hero */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: min(780px, 90vh);
  padding: 100px var(--gutter);
  background: #2a1a14 center / cover no-repeat;
  color: var(--c-white); text-align: center;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / .4); }
.hero__logo { width: min(300px, 80vw); margin: 0 auto 30px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero__actions { flex-direction: column; align-items: center; }
}

/* Intro */
.display { font-size: var(--fs-h1); line-height: 1.32; }
.tagline { margin-bottom: 1.25em; font: 400 var(--fs-h4)/1.4 var(--f-heading); }

/* Featured food */
.featured {
  background: var(--c-paper) url("../images/texture-paper.webp") center / cover;
  text-align: center;
}
.featured h3 { margin-bottom: .75em; }
.food-grid { display: grid; gap: 30px; margin-bottom: 60px; }
@media (min-width: 640px) { .food-grid { grid-template-columns: repeat(3, 1fr); } }
.food-card h4 { margin-bottom: .6em; font: 500 var(--fs-h5)/1.4 var(--f-body); }
.food-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Reviews slider */
.reviews { padding-block: var(--section-y) 0; }
.reviews__inner { position: relative; display: grid; }
.reviews__image img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.reviews__card {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 50px 30px 90px;
  background: #b5340f url("../images/texture-red.webp") center / cover;
  color: var(--c-white);
}
.stars { display: flex; gap: 4px; margin-bottom: 14px; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.review { display: none; margin: 0; }
.review.is-active { display: block; animation: fade .5s ease; }
.review blockquote { margin: 0 0 1.25em; font: 400 var(--fs-h3)/1.5 var(--f-heading); }
.review figcaption { font-size: 14px; }
.review figcaption a { text-decoration: none; }
.review figcaption a:hover { text-decoration: underline; }
.reviews__controls { position: absolute; right: 30px; bottom: 30px; display: flex; gap: 10px; }
.reviews__controls button {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 3px; background: var(--c-white); color: var(--c-brown); cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / .1);
}
.reviews__controls button:hover { background: var(--c-peach); }
.reviews__controls svg { width: 18px; height: 18px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) {
  .reviews__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .reviews__image { align-self: stretch; }
  .reviews__image img { max-height: none; border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
  .reviews__card {
    margin-left: -60px; min-height: 85%;
    padding: 70px 60px 100px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }
}

/* The pits */
.pits { position: relative; overflow: hidden; }
.pits h2 { text-align: center; margin-bottom: 1.2em; }
.pits__photos { display: grid; gap: 20px; }
@media (min-width: 640px) { .pits__photos { grid-template-columns: 1fr 1fr; gap: 40px; } }
.pits__photos img { width: 100%; aspect-ratio: 3 / 2.1; object-fit: cover; }
.pits__body { position: relative; max-width: 700px; margin: 10px auto 0; padding-top: 70px; }
.pits__pepper {
  position: absolute; top: -90px; left: -70px; width: 340px; pointer-events: none;
}
.pits__body > p { position: relative; }
.pits__flame {
  position: absolute; right: -40px; bottom: 0; width: 170px; z-index: -1; pointer-events: none;
}
.press-quote {
  position: relative; margin: 0 0 1em; padding-left: 20px;
  border-left: 2px solid var(--c-text);
  font: 400 var(--fs-h4)/1.4 var(--f-heading);
}
.press-quote cite { font-size: 12px; font-style: italic; white-space: nowrap; }
.press-quote cite a { text-decoration: none; }
.press-quote cite a:hover { text-decoration: underline; }
.pits__body p:last-child { margin: 0; line-height: 1.8; }
.rule { height: 1px; margin: var(--section-y) 0 0; border: 0; background: var(--c-text); }
@media (max-width: 767px) { .pits__pepper { width: 220px; top: -50px; left: -30px; } .pits__flame { display: none; } }

/* Our story */
.story-quote {
  margin: 30px 0 0; padding: 40px 50px 50px;
  border: 2px solid var(--c-brown);
  border-radius: 0 var(--radius-xl);
}
.story-quote svg { width: 28px; height: 22px; margin-bottom: 18px; fill: var(--c-brown); }
.story-quote blockquote { margin: 0 0 30px; font: 400 17px/1.75 var(--f-heading); }
.story-quote figcaption { display: flex; align-items: center; gap: 14px; font: 400 12px/1.5 var(--f-body); }
.story-quote figcaption img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.story-quote figcaption strong { display: block; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 767px) { .story-quote { padding: 30px; } .story-quote blockquote { font-size: 16px; } }

/* Timeline */
.timeline { position: relative; margin-top: var(--section-y); }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px;
  background: linear-gradient(var(--c-text) 85%, transparent);
}
.timeline__event { position: relative; padding: 0 0 50px 40px; }
.timeline__event::before { /* dot */
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--c-brown);
}
.timeline__event h4 { margin: 0 0 .8em; font: 500 var(--fs-h5)/1.4 var(--f-body); }
.timeline__event .eyebrow { margin-bottom: .4em; }
.timeline__event img { width: 100%; max-width: 260px; border-radius: var(--radius); }

@media (min-width: 768px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline__list { display: grid; grid-template-columns: 1fr 1fr; }
  .timeline__event { width: 100%; padding: 0 40px; margin-bottom: 40px; }
  .timeline__event:nth-child(odd) { grid-column: 1; }
  .timeline__event:nth-child(even) { grid-column: 2; margin-top: 170px; }
  .timeline__event:nth-child(n+2) { grid-row: span 2; }
  .timeline__event:nth-child(odd)::before { left: auto; right: -8px; }
  .timeline__event:nth-child(even)::before { left: -8px; }
  .timeline__event::before { top: 30px; }
  .timeline__event::after { /* connector */
    content: ""; position: absolute; width: 32px; height: 1px; background: var(--c-text);
  }
  .timeline__event:nth-child(odd)::after { right: 8px; top: 38px; }
  .timeline__event:nth-child(even)::after { left: 8px; top: 38px; }
}

/* Reveal on scroll (only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.family-photo { margin: 40px 0 0; }
.family-photo img { width: 100%; filter: grayscale(1); border-radius: var(--radius); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.gallery > :nth-child(-n+2) { grid-column: span 3; }
.gallery > :nth-child(n+3) { grid-column: span 2; }
.gallery > :nth-child(n+3) img { aspect-ratio: 10 / 9; }
.gallery a { display: block; }
@media (max-width: 639px) {
  .gallery > :nth-child(n) { grid-column: span 3; }
  .gallery > :nth-child(n) img { aspect-ratio: 1; }
  .gallery > :last-child { grid-column: span 6; }
  .gallery > :last-child img { aspect-ratio: 5 / 3; }
}

/* Call to action */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px;
  padding: 40px 40px 50px;
  background: #b5340f url("../images/texture-red.webp") center / cover;
  color: var(--c-white);
}
.cta h2 { flex: 1 1 420px; max-width: 650px; margin: 0; }
@media (max-width: 767px) { .cta { padding: 40px 20px; text-align: center; justify-content: center; } }

/* ==========================================================================
   Menu page
   ========================================================================== */
.menu-page { padding-bottom: 0; }
.menu-page h1 { text-align: center; margin-bottom: 1.2em; }
.letter-board {
  padding: 2rem;
  border: 1rem solid var(--c-board-frame);
  background: repeating-linear-gradient(#000 0 2.5px, #282828 2.5px 5px);
  color: var(--c-white);
  columns: 3 260px; column-gap: 40px;
}
.menu-section { break-inside: avoid; padding: 12px 0 24px; }
.menu-section h2 { margin-bottom: .45em; }
.menu-section .eyebrow { margin: -.25em 0 1.2em; }
.menu-section li { position: relative; padding-left: 26px; }
.menu-section li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 13px; height: 13px; background: var(--c-brown);
}
.menu-section li ul { margin: 0 0 0 0; font-size: .95em; }
.menu-section li strong { font-weight: 400; }
.menu-section li .eyebrow { display: inline; margin: 0 0 0 4px; font-size: .55em; }
@media (max-width: 767px) { .letter-board { border-width: .75rem; padding: 1.5rem; } }

.menu-cta { margin-top: 50px; }

/* ==========================================================================
   404 page
   ========================================================================== */
.not-found { text-align: center; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 50px var(--gutter) 30px; text-align: center; }
.site-footer h2 { margin-bottom: 1em; font-size: var(--fs-h3); line-height: 1.4; }
.site-footer .social { flex-direction: column; gap: 10px; margin-bottom: 30px; }
.site-footer .social > div { display: flex; gap: 16px; }
.site-footer small { display: block; font: 400 12px/1.8 var(--f-body); }
.site-footer small a { text-decoration: none; }
.site-footer small a:hover { text-decoration: underline; }

/* ==========================================================================
   Catering page
   ========================================================================== */
.catering {
  display: grid; max-width: 1360px; margin: 0 auto;
}
.catering__photo img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.catering__panel { padding: 50px var(--gutter) 60px; background: var(--c-peach); }
.catering__panel .logo { display: inline-block; margin-bottom: 40px; }
.catering__panel .logo img { width: 150px; }
.catering__intro { margin-bottom: 30px; }
@media (min-width: 900px) {
  .catering { grid-template-columns: 1fr 1fr; padding: 0 var(--gutter); }
  .catering__photo img { max-height: none; }
  .catering__panel { padding: 50px 80px 60px 70px; }
}

.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 4px; font: 400 14px/1.5 var(--f-body); }
.form-field .required { color: var(--c-brown); }
.form-field input, .form-field select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--c-peach); border-radius: 0;
  background: var(--c-white); color: var(--c-text);
  font: 400 17px/1.4 var(--f-body);
}
.form-field select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d251f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--c-brown); outline-offset: 0; }
.form-field input[aria-invalid="true"] { border-color: #b5340f; }
.form-error { margin: 0 0 20px; color: #9d2b0b; font: 400 14px/1.5 var(--f-body); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-thanks h2 { font-size: var(--fs-h3); }
.catering__panel .button { margin-top: 10px; }
.catering__panel .button:disabled { opacity: .6; cursor: wait; }

.catering-footer { padding-top: 60px; }
