/* ==========================================================================
   Doug's Point Pizza — styles
   Palette pulled from the logo: warm near-black, cream, gold, tomato red,
   crust brown. Mobile-first; breakpoints widen the grid, nothing else changes.
   ========================================================================== */

:root {
  --bg:      #120f0d;
  --bg-2:    #1a1512;
  --panel:   #221b17;
  --line:    #362c25;
  --cream:   #f6efe3;
  --muted:   #b9ab9a;
  --gold:    #f2b233;
  --gold-2:  #ffd169;
  --red:     #d8262b;
  --red-2:   #f0393e;
  --brown:   #4a2f1e;
  --crust:   #d9953a;
  --cheese:  #f6c95b;
  --radius:  18px;
  --nav-h:   72px;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .7em 1.2em; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: .95rem;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); }
.btn--ghost { border-color: var(--line); color: var(--cream); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--lg { padding: .9em 1.5em; font-size: 1.05rem; }

/* ---------- Closed-right-now banner (CRM /hours status.notice) ---------- */
/* Static strip above the nav, not sticky — it should be unmissable on arrival
   without permanently eating viewport on a phone. Text comes from the feed. */
.closed-banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .65rem 1rem;
  border-bottom: 2px solid var(--red-2);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(18,15,13,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand img { height: 46px; width: auto; }
.nav__links { display: none; gap: 1.5rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--gold); }
.nav__cta { margin-left: auto; }
@media (min-width: 760px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem clamp(3rem, 7vw, 5rem);
  display: grid; justify-items: center; gap: 1.4rem;
}
.hero__glow {
  position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 45% at 50% 40%, rgba(242,178,51,.22), transparent 70%),
    radial-gradient(35% 35% at 70% 65%, rgba(216,38,43,.18), transparent 70%);
  filter: blur(10px);
}
.hero__logo {
  width: min(720px, 92vw);
  /* thin cream "sticker" edge so the logo's black outlines/EST. 1974 read on the dark bg */
  filter: drop-shadow(0 0 1.5px rgba(246,239,227,.95)) drop-shadow(0 18px 40px rgba(0,0,0,.55));
}
.hero__tag { max-width: 38ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero__status {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line);
}
.hero__status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.hero__status.is-open .dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.hero__status.is-closed .dot { background: var(--red-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); max-width: 1180px; margin: 0 auto; }
.section--alt { max-width: none; background: var(--bg-2); }
.section--alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 2rem; }
.footer__pdf { margin-top: 1.5rem; }
.footer__credit { display: block; margin-top: 2rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .45; }  /* same subtlety as dixonfx */
.footer__credit a { color: inherit; text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }
/* Print: the PDF is the real printable menu, but if someone hits ⌘P anyway, keep it clean. */
@media print { .nav, .hero, #photos, .footer, .cats, .footer__pdf, .footer__credit, .lightbox { display: none !important; } body { background: #fff; color: #000; } }
.section__sub { color: var(--muted); margin: .5rem auto 0; max-width: 48ch; }

/* ---------- Category pills ---------- */
.cats {
  position: sticky; top: var(--nav-h); z-index: 40;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  padding: .75rem 0; margin: 0 -1rem 1.5rem; padding-left: 1rem; padding-right: 1rem;
  background: linear-gradient(var(--bg) 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .5em 1em; border-radius: 999px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  transition: color .15s, border-color .15s, background .15s;
}
.cats a:hover, .cats a.is-active { color: var(--bg); background: var(--gold); border-color: var(--gold); }

/* ---------- Menu ---------- */
.menu { display: grid; gap: 2.5rem; }
.menu__cat h3 {
  font-size: 1.35rem; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.menu__cat h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu__grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .menu__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .menu__grid { grid-template-columns: repeat(3, 1fr); } }

.item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: grid; gap: .45rem; align-content: start;
  transition: border-color .15s, transform .15s;
}
.item:hover { border-color: #4d3d33; transform: translateY(-2px); }
.item__top { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.item__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.item__price { font-weight: 700; color: var(--gold-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item__desc { margin: 0; color: var(--muted); font-size: .9rem; }
.item__sizes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.item__sizes span {
  font-size: .8rem; padding: .25em .6em; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.item__sizes b { color: var(--gold-2); font-weight: 700; margin-left: .35em; }
/* Add-ons: one quiet line per add-on, per-size prices inline */
.item__addons { display: flex; flex-direction: column; gap: .15rem; margin-top: .4rem; padding-top: .4rem; border-top: 1px dashed color-mix(in srgb, var(--muted) 35%, transparent); font-size: .85rem; color: var(--muted); }
.addon { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.addon__name { font-weight: 600; color: inherit; }
.addon b, .addon__sizes b { color: var(--gold-2); font-weight: 700; margin-left: .3em; font-variant-numeric: tabular-nums; }
.addon__sizes { display: flex; flex-wrap: wrap; gap: .15rem .6rem; }

.menu__note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }
.menu__empty { text-align: center; color: var(--muted); padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); }

/* loading skeletons */
.skeleton {
  height: 110px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--panel) 25%, #2b231e 50%, var(--panel) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
.menu[aria-busy="true"] { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Gallery → "From the Oven" slideshow ---------- */
/* Poster-style promo images (text top + bottom) so the frame uses
   object-fit: contain — a cropping zoom would chop the headlines.
   The "Ken Burns" drift is a small scale on the active slide; the
   crossfade is opacity. All motion is CSS; JS only flips classes. */
.gallery { max-width: 560px; margin: 0 auto; }
.slides {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  touch-action: pan-y;                /* vertical scroll passes through; we handle horizontal swipe */
}
.slide {
  position: absolute; inset: 0; opacity: 0; cursor: zoom-in;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.slide img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  /* Zoom runs 95% → 100% (never above) so the poster's printed border is never
     clipped by the frame — the drift reads the same, the edges stay honest. */
  transform: scale(.95);
  transition: transform 7s linear;   /* slow drift — runs the length of a slide */
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-active img { transform: scale(1); }
/* the slide leaving keeps its zoom so the crossfade doesn't "pop" */
.slide.is-leaving img { transform: scale(1); transition: none; }

/* arrows */
.slides__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: background .2s;
}
.slides__arrow:hover { background: var(--red-2, #c8322b); }
.slides__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.slides__arrow--prev { left: .6rem; }
.slides__arrow--next { right: .6rem; }
.slides__arrow svg { width: 20px; height: 20px; fill: currentColor; }

/* dots — below the frame so they never cover the poster art */
.slides__dots {
  display: flex; margin-top: .9rem; justify-content: center; gap: .45rem; padding: 0; list-style: none;
}
.slides__dots button {
  all: unset; cursor: pointer; width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255,255,255,.45); transition: width .3s, background .3s;
}
.slides__dots button.is-active { width: 26px; background: var(--gold); }
.slides__dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* reduced motion: instant swap, no drift; JS also disables autoplay */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity .2s; }
  .slide img, .slide.is-active img, .slide.is-leaving img { transform: none; transition: none; }
}

.gallery__empty {
  text-align: center; color: var(--muted);
  padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius);
}
.gallery__empty svg { width: 64px; height: 64px; margin: 0 auto .75rem; display: block; opacity: .8; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh;
}
.lightbox::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(6px); }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; }
.lightbox__cap { text-align: center; color: var(--cream); margin: .75rem 0 0; }
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--panel); color: var(--cream); font-size: 1.6rem; cursor: pointer;
}

/* ---------- Hours + Visit ---------- */
.twin { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .twin { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; align-content: start;
}
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.hours li {
  display: flex; justify-content: space-between; padding: .5rem .75rem; border-radius: 10px;
  color: var(--muted);
}
.hours li.is-today { background: var(--bg); color: var(--cream); font-weight: 600; border: 1px solid var(--line); }
.hours li.is-today span:last-child { color: var(--gold-2); }
.hours li.is-closed span:last-child { color: var(--red-2); }
.hint { margin: 0; color: var(--muted); font-size: .85rem; }

.visit { font-style: normal; display: grid; gap: .9rem; }
.visit__addr {
  display: flex; gap: .6rem; align-items: flex-start; text-decoration: none; font-size: 1.05rem;
  line-height: 1.4;
}
.visit__addr .ico { color: var(--red-2); margin-top: .15em; }
.visit__addr:hover span { text-decoration: underline; text-decoration-color: var(--gold); }
.visit__phones { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.visit__phones a {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 600;
  padding: .55em 1em; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.visit__phones a:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Footer + social pizza ---------- */
.footer {
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: clamp(3rem, 7vw, 5rem) 1rem 2rem; text-align: center;
}
.footer__h { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.pizza { width: min(320px, 80vw); margin: 0 auto; }
.pizza svg { width: 100%; height: auto; overflow: visible; }
/* Each slice: translate outward along its bisector on hover. --dx/--dy set by JS. */
.slice { transition: transform .25s cubic-bezier(.2,.8,.2,1.2); transform-box: fill-box; }
.slice--link { cursor: pointer; }
.slice--link:hover, .slice--link:focus-visible { transform: translate(calc(var(--dx) * 14px), calc(var(--dy) * 14px)); outline: none; }
.slice--link:focus-visible .slice__icon { filter: drop-shadow(0 0 6px #fff); }
.slice--plain { opacity: .9; }
.pizza__legend {
  list-style: none; padding: 0; margin: 1.25rem auto 0; display: flex; flex-wrap: wrap;
  gap: .5rem 1.25rem; justify-content: center;
}
.pizza__legend a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.pizza__legend a:hover { color: var(--gold); }
.footer__fine { color: var(--muted); font-size: .85rem; margin: 2.5rem 0 0; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
