/* ==========================================================================
   PEAK BURGER CO — bespoke burger-joint theme
   Brand: NY Taxi Yellow #F7C52D · Dark Indigo #0C0A1F · Light Orange #FFF4E1
   Fonts: Planet Comic (primary headings) · Pacify Angry (accents) · Garet (body)
   ========================================================================== */

/* ---- Self-hosted brand fonts ---------------------------------------------- */
@font-face {
    font-family: 'Garet';
    src: url('/assets/pb/fonts/Garet-Book.woff2') format('woff2'),
         url('/assets/pb/fonts/Garet-Book.woff')  format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Garet';
    src: url('/assets/pb/fonts/Garet-Heavy.woff2') format('woff2'),
         url('/assets/pb/fonts/Garet-Heavy.woff')  format('woff');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Planet Comic';
    src: url('/assets/pb/fonts/PlanetComic.otf') format('opentype'),
         url('/assets/pb/fonts/PlanetComic.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Pacify Angry';
    src: url('/assets/pb/fonts/PacifyAngry.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
    --yellow:  #F7C52D;
    --indigo:  #0C0A1F;
    --cream:   #FFF4E1;
    --indigo-soft: #1a1733;

    --font-display: 'Planet Comic', 'Trebuchet MS', sans-serif; /* primary headings */
    --font-accent:  'Pacify Angry', 'Comic Sans MS', cursive;   /* playful accents  */
    --font-body:    'Garet', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap: 1180px;
    --r: 18px;
}

/* ---- Reset-ish ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--font-body);
    color: var(--indigo);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0; font-weight: 400; }

/* Brand eyebrow — Pacify Angry, wrapped in • • motif via markup */
.eyebrow {
    font-family: var(--font-accent);
    color: var(--yellow);
    font-size: clamp(1.3rem, 2.9vw, 1.9rem);
    letter-spacing: .03em;
    margin: 0 0 .6rem;
}
.eyebrow--dark { color: var(--indigo); }

/* Buttons ------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
    padding: .9rem 1.7rem; border-radius: 999px; text-decoration: none;
    border: 3px solid var(--indigo); transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn--primary { background: var(--yellow); color: var(--indigo); }
.btn--primary:hover { transform: translateY(-2px) rotate(-1deg); background: #ffd451; }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--indigo); transform: translateY(-2px); }
.btn--dark { background: var(--indigo); color: var(--cream); border-color: var(--indigo); }
.btn--dark:hover { transform: translateY(-2px) rotate(-1deg); background: var(--indigo-soft); }

/* ---- Header --------------------------------------------------------------- */
.hdr {
    position: sticky; top: 0; z-index: 40;
    background: var(--yellow);
    border-bottom: 4px solid var(--indigo);
}
.hdr__inner { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.hdr__logo img { height: 52px; width: auto; }
.hdr__nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.hdr__nav a {
    color: var(--indigo); text-decoration: none; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
}
.hdr__nav a.link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Header "View Menu" CTA uses the solid indigo pill (btn--dark) with cream text — highest contrast on the yellow header */
@media (max-width: 720px) {
    .hdr__nav .link { display: none; }
    .hdr__logo img { height: 44px; }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
    position: relative; color: var(--cream);
    text-align: center; overflow: hidden;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem);
    background:
        linear-gradient(rgba(12,10,31,.72), rgba(12,10,31,.82)),
        url('/assets/pb/hero.jpg') center/cover no-repeat fixed;
}
.hero__logo { width: min(78%, 460px); height: auto; margin: 0 auto 1.4rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.hero .eyebrow { font-size: clamp(1.4rem, 3.8vw, 2.4rem); margin-bottom: .8rem; }
.hero h1 {
    color: var(--cream);
    font-size: clamp(2.3rem, 6.5vw, 4.6rem);
    text-shadow: 0 4px 18px rgba(0,0,0,.5);
    margin: 0 auto;
    max-width: 16ch;
}
.hero__lede {
    max-width: 46ch; margin: 1.2rem auto 0; font-size: clamp(1rem, 2.2vw, 1.22rem);
    color: #fff8e6;
}
.hero__cta { margin-top: 2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px){ .hero { background-attachment: scroll; } }

/* ---- Provenance / mascot strip -------------------------------------------- */
.provenance { background: var(--yellow); color: var(--indigo); padding: clamp(2.5rem,6vw,4rem) 0; }
.provenance__grid { display: grid; grid-template-columns: 270px 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.provenance__mascot { width: 100%; max-width: 290px; height: auto; margin-inline: auto; }
.provenance .eyebrow { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.provenance h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: .6rem; }
.provenance p { font-size: clamp(1rem,2.2vw,1.18rem); max-width: 60ch; margin: .4rem 0 0; font-weight: 500; }
@media (max-width: 720px) {
    .provenance__grid { grid-template-columns: 1fr; text-align: center; }
    .provenance__mascot { max-width: 180px; }
    .provenance p { margin-inline: auto; }
    .hide-mobile { display: none; }
}

/* ---- Section scaffolding -------------------------------------------------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--cream { background: var(--cream); }
.section--indigo { background: var(--indigo); color: var(--cream); }
.section__head { text-align: center; margin-bottom: clamp(2rem,5vw,3.2rem); }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.section--indigo .section__head h2 { color: var(--cream); }
.section--cream  .section__head h2 { color: var(--indigo); }

/* ---- Menu ----------------------------------------------------------------- */
/* NY-taxi checker stripes flank the provenance + menu block (echoes the menu board) */
.taxi-frame {
    position: relative;
    overflow: hidden;
    background: var(--yellow);
    --taxi-w: clamp(22px, 3.5vw, 40px);
    padding-inline: calc(var(--taxi-w) + 16px);
}
.taxi-frame::before, .taxi-frame::after {
    content: "";
    position: absolute; top: 0; bottom: 0;
    width: var(--taxi-w);
    background: conic-gradient(var(--indigo) 90deg, var(--yellow) 90deg 180deg, var(--indigo) 180deg 270deg, var(--yellow) 270deg);
    background-size: 40px 40px; /* 20px squares */
    z-index: 0;
}
.taxi-frame::before { left: 0; }
.taxi-frame::after  { right: 0; }
.taxi-frame > section { position: relative; z-index: 1; }

#menu { background: var(--yellow); }

/* pale-orange (cream) rounded panel holding the menu items, like the menu board */
.menu-panel {
    background: var(--cream);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: 0 12px 34px rgba(12, 10, 31, .14);
}

.menu-note {
    text-align: center; max-width: 60ch; margin: -1rem auto 2.4rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    font-size: .92rem; color: var(--indigo);
}
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.4rem; }
.burger {
    background: #fff; border: 3px solid var(--indigo); border-radius: var(--r);
    padding: 1.5rem 1.5rem 1.6rem; position: relative;
    box-shadow: 6px 6px 0 var(--indigo); transition: transform .14s ease, box-shadow .14s ease;
}
.burger:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--yellow); }
.burger__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.burger__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--indigo); line-height: 1.05; }
.burger__price {
    flex: none; font-family: var(--font-accent); font-size: 1.35rem; color: var(--indigo);
    background: var(--yellow); border: 2.5px solid var(--indigo); border-radius: 999px;
    padding: .15rem .7rem; transform: rotate(3deg);
}
.burger__desc { margin: 0; font-size: .98rem; color: #3a3550; }
.burger__tag {
    display: inline-block; margin-top: .8rem; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em; color: var(--indigo);
    background: var(--yellow); padding: .2rem .55rem; border-radius: 6px;
}

.meal-deal {
    margin-top: 2.4rem; text-align: center; background: var(--indigo); color: var(--cream);
    border-radius: var(--r); padding: 1.8rem 1.5rem; border: 4px dashed var(--yellow);
}
.meal-deal h3 { font-family: var(--font-display); font-size: clamp(1.5rem,4vw,2.2rem); color: var(--yellow); }
.meal-deal p { margin: .5rem 0 0; font-weight: 700; letter-spacing: .03em; }
.meal-deal .price-pop {
    display: inline-block; font-family: var(--font-accent); font-size: 1.4rem; color: var(--indigo);
    background: var(--yellow); border: 2.5px solid var(--indigo); border-radius: 999px;
    padding: .15rem .7rem; transform: rotate(3deg);
}
.menu-download { text-align: center; margin-top: 1.4rem; }

/* ---- Gallery -------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery img, .gallery video { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); border: 3px solid var(--cream); display: block; }
.section--indigo .gallery img, .section--indigo .gallery video { border-color: var(--yellow); }

/* ---- Find us -------------------------------------------------------------- */
.find { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: stretch; }
.find__info { display: flex; flex-direction: column; }
.find__info h3 { font-family: var(--font-display); color: var(--indigo); font-size: clamp(1.4rem,3vw,2rem); margin-bottom: .3rem; }
.find__addr { font-style: normal; font-size: 1.12rem; line-height: 1.7; margin: .4rem 0 1.2rem; font-weight: 600; }
.find__info .btn { align-self: flex-start; }
.find__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--r); border: 3px solid var(--indigo); }
.map-embed { margin-top: 1.4rem; border-radius: var(--r); overflow: hidden; border: 3px solid var(--indigo); }
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }
/* desktop only: grow map to match the photo height (fixed height on mobile so it always renders) */
@media (min-width: 821px) {
    .map-embed { flex: 1 1 auto; }
    .map-embed iframe { height: 100%; }
}
@media (max-width: 820px) { .find { grid-template-columns: 1fr; } .find__photo { order: -1; } }
/* desktop: extra 30px breathing room below the Find Us heading */
@media (min-width: 721px) { #find-us .section__head { margin-bottom: calc(clamp(2rem, 5vw, 3.2rem) + 30px); } }

/* ---- Footer --------------------------------------------------------------- */
.ftr { background: var(--yellow); color: var(--indigo); text-align: center; padding: 3.5rem 0 2.5rem; border-top: 4px solid var(--indigo); }
.ftr__logo { width: 180px; height: auto; margin: 0 auto 1.2rem; }
.ftr__tag { font-family: var(--font-accent); color: var(--indigo); font-size: 1.3rem; margin: 0 0 1rem; }
.ftr address { font-style: normal; font-size: .95rem; opacity: .85; line-height: 1.7; }
.ftr__social { display: flex; justify-content: center; gap: .8rem; margin: 1.5rem 0 .2rem; }
.ftr__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 999px;
    background: var(--indigo); color: var(--cream); border: 3px solid var(--indigo);
    transition: transform .12s ease, background .15s ease, color .15s ease;
}
.ftr__social a:hover { transform: translateY(-3px) rotate(-5deg); background: var(--cream); color: var(--indigo); }
.ftr__social svg { width: 22px; height: 22px; fill: currentColor; }
.ftr__legal { margin-top: 1.6rem; font-size: .78rem; opacity: .7; letter-spacing: .04em; }
.ftr__legal a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.ftr__legal a:hover { opacity: .75; }
.ftr__credit { margin-top: .35rem; }
.ftr__legal--strong { font-weight: 600; opacity: .9; }

/* ---- Mobile: clean narrow rails + tighter gap to the cream panel ---------- */
@media (max-width: 720px) {
    /* exact 20px rail with a matching 20px checker tile = crisp squares, no sliver line */
    .taxi-frame { --taxi-w: 20px; padding-inline: calc(var(--taxi-w) + 4px); }
    .taxi-frame::before, .taxi-frame::after { background-size: 20px 20px; }
    .taxi-frame .wrap { width: min(100% - 1rem, var(--wrap)); }
    .menu-panel { padding: 1.3rem 1rem 1.5rem; }
    /* offset the #menu anchor so the sticky header doesn't clip "• The Menu •" */
    #menu { scroll-margin-top: 30px; }
}

/* ---- 404 page (Peak Burger) ---------------------------------------------- */
.err404 {
    min-height: 100vh; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; background: var(--yellow); color: var(--indigo);
    padding: 3.5rem 1.25rem; position: relative; overflow: hidden;
}
.err404::before, .err404::after {
    content: ""; position: absolute; left: 0; right: 0; height: 20px;
    background: conic-gradient(var(--indigo) 90deg, var(--yellow) 90deg 180deg, var(--indigo) 180deg 270deg, var(--yellow) 270deg);
    background-size: 20px 20px;
}
.err404::before { top: 0; }
.err404::after  { bottom: 0; }
.err404__mascot { width: min(46%, 230px); height: auto; margin: 0 auto .6rem; }
.err404 .eyebrow { color: var(--indigo); }
.err404__code {
    font-family: var(--font-display); line-height: .85; color: var(--indigo);
    font-size: clamp(5rem, 26vw, 12rem); text-shadow: 5px 6px 0 var(--cream); margin: .1rem 0 .3rem;
}
.err404__title { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.7rem); margin: 0 0 .7rem; }
.err404__text { max-width: 44ch; margin: 0 auto 1.8rem; font-size: clamp(1rem, 2.4vw, 1.18rem); font-weight: 500; }
.err404__cta { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---- Motor Club cross-promo (twin: Peak Motor Club) ----------------------- */
/* Dark indigo card on the cream band — nods to PMC's black aesthetic and ties
   the two brands together via the shared "Cars & Burgers" badge. */
.motorclub__card {
    display: grid; grid-template-columns: 220px 1fr; align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    background: var(--indigo); color: var(--cream);
    border: 4px solid var(--indigo); border-radius: 28px;
    box-shadow: 10px 10px 0 var(--yellow);
    padding: clamp(1.8rem, 4vw, 3rem);
    max-width: 980px; margin-inline: auto;
}
.motorclub__badge { width: 100%; max-width: 220px; height: auto; margin-inline: auto; filter: drop-shadow(0 8px 22px rgba(0,0,0,.45)); }
.motorclub .eyebrow { font-size: clamp(1.4rem, 3vw, 2rem); }
.motorclub h2 { color: var(--cream); font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .5rem; }
.motorclub__tag {
    font-family: var(--font-accent); color: var(--yellow);
    font-size: clamp(1.3rem, 2.8vw, 1.8rem); letter-spacing: .04em; margin: 0 0 .8rem;
}
.motorclub p { margin: 0 0 1.4rem; font-size: clamp(1rem, 2.1vw, 1.12rem); max-width: 52ch; }
.motorclub .btn { align-self: flex-start; }
@media (max-width: 720px) {
    .motorclub__card { grid-template-columns: 1fr; text-align: center; }
    .motorclub__badge { max-width: 160px; }
    .motorclub p { margin-inline: auto; }
    .motorclub .btn { margin-inline: auto; }
}

/* ---- FAQ accordion -------------------------------------------------------- */
.faq-list { max-width: 840px; margin-inline: auto; display: grid; gap: 1rem; }
.faq-item {
    background: var(--cream); color: var(--indigo);
    border: 3px solid var(--indigo); border-radius: var(--r);
    box-shadow: 5px 5px 0 var(--yellow);
    overflow: hidden;
}
.faq-item > summary {
    list-style: none; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.15;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: "+"; flex: none;
    font-family: var(--font-accent); font-size: 1.7rem; line-height: 1; color: var(--indigo);
    background: var(--yellow); border: 2.5px solid var(--indigo); border-radius: 999px;
    width: 1.7em; height: 1.7em; display: grid; place-items: center;
    transition: transform .18s ease;
}
.faq-item[open] > summary::after { content: "\2013"; transform: rotate(180deg); }
.faq-item__a { padding: 0 1.3rem 1.25rem; }
.faq-item__a p { margin: 0; font-size: 1rem; color: #3a3550; }
.faq-item__a a { color: var(--indigo); font-weight: 700; text-underline-offset: 2px; }
.section--indigo .faq-intro { color: #efe7d2; }
.faq-intro { text-align: center; max-width: 60ch; margin: -1rem auto 2.4rem; font-weight: 500; }

/* ---------- Scroll reveal — subtle, JS-gated, motion-safe ----------
   .has-reveal is only added to <html> when IntersectionObserver exists and the
   visitor hasn't requested reduced motion (see layout head), so no-JS and
   reduced-motion users always see fully-rendered content with no flash. */
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                    transform .7s cubic-bezier(.22, .61, .36, 1);
    }
    .has-reveal .reveal.is-visible { opacity: 1; transform: none; }
    /* gentle per-card stagger (delay set inline via --reveal-delay) */
    .has-reveal .reveal--stagger.is-visible { transition-delay: var(--reveal-delay, 0s); }
}
