/* =========================================================
   Time Out — neon-night pizzeria
   Palette lifted from their storefront: warm wood-at-night canvas,
   red neon (TIME OUT) as the one action accent, yellow neon
   (PIZZA & FOOD) as a brand-only glow confined to the hero.
   ========================================================= */

:root {
  --canvas:      #15110d;
  --surface:     #1e1710;
  --surface-2:   #241b12;
  --hairline:    #3a2c1d;
  --hairline-2:  #4a3826;

  --ink:         #f6ece0;   /* primary text on dark      */
  --muted:       #b6a48c;   /* secondary text (~7.5:1)   */
  --faint:       #9c8b71;   /* least-important text (AA)  */

  --red:         #ff453a;   /* the one action accent     */
  --red-soft:    #ff6a60;
  --red-deep:    #d43226;
  --ink-on-red:  #17110b;   /* dark label on red pills   */
  --yellow:      #ffcf4a;   /* brand-only neon glow      */

  --maxw: 1120px;
  --radius: 12px;
  --radius-pill: 999px;

  --shadow: 0 18px 44px rgba(0,0,0,.5);

  --ff-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --ff-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-soft); }

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.015em; }

p { margin: 0; }

::selection { background: var(--red); color: var(--ink-on-red); }

/* ---------- layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) 1.25rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: var(--ink-on-red);
  box-shadow: 0 8px 22px rgba(255,69,58,.28);
}
.btn-primary:hover { background: var(--red-soft); color: var(--ink-on-red); }

.btn-ghost {
  background: rgba(21,17,13,.35);
  border-color: rgba(255,69,58,.7);
  color: var(--ink);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { border-color: var(--red); color: var(--ink); background: rgba(255,69,58,.12); }

/* ---------- brand mark ---------- */
.brand-mark { display: inline-flex; align-items: center; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(20,16,12,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.topbar-cta {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  border: 1.5px solid rgba(255,69,58,.55);
  padding: 0.42rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.topbar-cta:hover { background: rgba(255,69,58,.12); border-color: var(--red); color: var(--red-soft); }

/* ---------- hero: the neon sign at night ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5.5rem 1.25rem 3.5rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21,17,13,.92) 0%, rgba(21,17,13,.72) 45%, rgba(21,17,13,.5) 100%),
    linear-gradient(0deg, rgba(21,17,13,.96) 2%, rgba(21,17,13,.25) 55%, rgba(21,17,13,.55) 100%),
    url("images/facade.jpg") center 38% / cover no-repeat;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.hero-tag {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(0.95rem, 3vw, 1.3rem);
  color: #fff6df;
  margin-bottom: 0.4rem;
  text-shadow:
    0 0 6px rgba(255,207,74,.9),
    0 0 18px rgba(255,207,74,.55),
    0 0 40px rgba(255,183,30,.35);
}
.hero h1.neon {
  font-size: clamp(4.5rem, 20vw, 11rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.005em;
  color: #fff1ee;
  margin: 0 0 1.2rem;
  text-shadow:
    0 0 8px rgba(255,255,255,.35),
    0 0 20px rgba(255,69,58,.95),
    0 0 44px rgba(255,69,58,.7),
    0 0 90px rgba(255,40,30,.45);
}
.hero-sub {
  max-width: 34ch;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: 1.9rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- intro ---------- */
.intro { display: grid; gap: 2rem; }
.intro-lead h2 { margin-bottom: 1rem; max-width: 18ch; }
.intro-lead p { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }

.intro-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  padding-top: 0.4rem;
}
.stars { color: var(--red); font-size: 1.25rem; letter-spacing: 0.08em; }
.stars .star-half {
  background: linear-gradient(90deg, var(--red) 45%, var(--faint) 45%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-num { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.rating-lbl { color: var(--muted); font-size: 0.98rem; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.facts li {
  border: 1px solid var(--hairline-2);
  color: var(--ink);
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  font-weight: 500;
}

/* ---------- menu ---------- */
.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  border-bottom: 2px solid var(--hairline);
  padding-bottom: 1.1rem;
  margin-bottom: 2rem;
}
.menu-allprice {
  color: var(--muted);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.menu-allprice strong {
  color: var(--red);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.menu-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.7rem 3rem;
}
.dish h3 { color: var(--red); margin-bottom: 0.25rem; }
.dish p { color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 44ch; }
.menu-note {
  margin-top: 2.2rem;
  color: var(--faint);
  font-size: 0.92rem;
  font-style: italic;
  max-width: 60ch;
}

/* ---------- feature ---------- */
.feature { display: grid; gap: 2rem; align-items: center; }
.feature-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 60%;
  box-shadow: var(--shadow);
}
.feature-copy h2 { margin-bottom: 1rem; max-width: 16ch; }
.feature-copy p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.feature-line { color: var(--ink) !important; font-weight: 600; margin-top: 1rem !important; }

/* ---------- gallery ---------- */
.gallery h2 { margin-bottom: 1.8rem; }
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* ---------- reviews ---------- */
.reviews h2 { margin-bottom: 1.8rem; }
.reviews-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.reviews blockquote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  position: relative;
}
.reviews blockquote::before {
  content: "";
  position: absolute;
  top: 0; left: 1.5rem;
  width: 42px; height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}
.reviews blockquote p { color: var(--ink); font-size: 1.03rem; line-height: 1.55; }
.reviews cite {
  display: block;
  margin-top: 0.9rem;
  color: var(--faint);
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- orari & dove ---------- */
.dove h2 { margin-bottom: 1.8rem; }
.info-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.info-hours h3, .info-contact h3 { color: var(--ink); margin-bottom: 1rem; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500;
}
.hours th { color: var(--muted); font-weight: 600; width: 42%; }
.hours td { color: var(--ink); font-variant-numeric: tabular-nums; }
.hours td.closed { color: var(--faint); }
.hours tr.is-today th { color: var(--red); }
.hours tr.is-today td { color: var(--ink); }
.today-tag {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-on-red);
  background: var(--red);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.addr { color: var(--ink); font-size: 1.05rem; margin-bottom: 1rem; }
.contact-lines { margin-bottom: 1.3rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--red);
}
.contact-link:hover { color: var(--red-soft); }
.info-contact .btn { margin-top: 0.2rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  background: #120e0a;
  padding: 2.6rem 1.25rem 3rem;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.footer-name {
  font-family: var(--ff-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  color: var(--ink);
}
.footer-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer-meta a { color: var(--red); }
.footer-copy { color: var(--faint); font-size: 0.85rem; }
.demo-note { color: var(--faint); font-size: 0.78rem; margin-top: 0.9rem; opacity: 0.75; }

/* =========================================================
   Reveal-on-scroll (motivated: sequences content as you arrive)
   ========================================================= */
/* Scroll-linked reveal, applied ONLY where scroll timelines are supported
   (so any other browser always renders content at full opacity). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section {
      animation: rise .7s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 700px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1.55fr 1fr; }
  .gallery-grid .g-big img { aspect-ratio: 4 / 3; }
  .gallery-grid .g-small img { aspect-ratio: 3 / 4; }
}

@media (min-width: 860px) {
  body { font-size: 18px; }
  .intro {
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas:
      "lead rating"
      "facts facts";
    column-gap: 3rem;
    align-items: start;
  }
  .intro-lead { grid-area: lead; }
  .intro-rating { grid-area: rating; justify-content: flex-end; align-content: start; }
  .facts { grid-area: facts; margin-top: 0.5rem; }
  .feature { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

@media (min-width: 1000px) {
  .menu-grid { gap: 2rem 4rem; }
}
