/* =====================================================================
   PIZZA BONO — Trattoria Design System
   Warm cream + charcoal, deep brick red & basil green (Italian flag),
   touch of gold. Display serif + humanist sans + script accent.
   ===================================================================== */

:root {
  /* Paper / ink */
  --paper:      #f6efe1;   /* warm cream base */
  --paper-2:    #efe5d2;   /* deeper cream panel */
  --paper-3:    #e7dac2;   /* hairline / fill */
  --card:       #fffaf1;   /* raised card */
  --ink:        #241f1b;   /* warm charcoal */
  --ink-soft:   #5b5249;   /* muted text */
  --ink-faint:  #8c8175;   /* captions */

  /* Brand accents */
  --red:        #a8281f;   /* deep brick red */
  --red-deep:   #7f1c16;
  --red-tint:   #f0d9d2;
  --green:      #2c6a40;   /* basil green */
  --green-deep: #1f4d2e;
  --green-tint: #d8e4d6;
  --gold:       #b8862f;   /* warm gold accent */
  --gold-tint:  #efe1c4;

  /* Delivery brands */
  --uber:       #06c167;
  --doordash:   #ff3008;

  /* Type */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;
  --script:"Sacramento", cursive;

  /* Geometry */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --shadow-sm: 0 2px 10px rgba(45, 30, 18, .08);
  --shadow:    0 14px 40px -14px rgba(45, 30, 18, .28);
  --shadow-lg: 0 30px 70px -24px rgba(45, 30, 18, .42);

  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.01em; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans); font-weight: 800;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }

.script { font-family: var(--script); color: var(--green); line-height: .9; }

.section { padding: clamp(56px, 8vw, 110px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  letter-spacing: .01em; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg, .btn img { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-red    { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(168,40,31,.8); }
.btn-red:hover { background: var(--red-deep); }
.btn-green  { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgba(44,106,64,.8); }
.btn-green:hover { background: var(--green-deep); }
.btn-ink    { background: var(--ink); color: var(--paper); }
.btn-ghost  { background: transparent; color: var(--ink); border-color: rgba(36,31,27,.25); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(36,31,27,.04); }
.btn-cream  { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-lg     { padding: 18px 32px; font-size: 1.05rem; }
.btn-block  { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(36,31,27,.09);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1; letter-spacing: -.02em; }
.brand-name b { color: var(--red); font-weight: 400; }
.brand-name span { display: block; font-family: var(--script); font-size: .9rem; color: var(--green); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 600; font-size: .96rem; color: var(--ink-soft); position: relative; padding: 4px 0; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); border-radius: 2px;
}

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 880px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 8px;
    background: var(--paper); padding: 20px var(--gutter) 28px; border-bottom: 1px solid rgba(36,31,27,.1);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 1.1rem; padding: 10px 0; width: 100%; }
  .nav .btn { width: 100%; }
  .nav-toggle { display: block; }
  .header-cta-desktop { display: none; }
}

/* ---------- Order channel chips (Uber/DoorDash/Call) ---------- */
.order-options { display: grid; gap: 12px; }
.order-opt {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 16px 18px; border-radius: var(--r); background: var(--card);
  border: 1.5px solid rgba(36,31,27,.1); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.order-opt:hover { transform: translateY(-2px); border-color: rgba(36,31,27,.22); box-shadow: var(--shadow); }
.order-opt .ic { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; }
.order-opt .ic svg { width: 26px; height: 26px; }
.order-opt.uber .ic { background: var(--uber); }
.order-opt.uber .ic svg { width: 100%; height: 100%; padding: 5px; }
.order-opt.dd .ic { background: var(--doordash); }
.order-opt.call .ic { background: var(--ink); }
.order-opt .ot { display: flex; flex-direction: column; line-height: 1.25; }
.order-opt .ot b { font-size: 1.05rem; font-weight: 800; }
.order-opt .ot small { color: var(--ink-soft); font-size: .82rem; }
.order-opt .arrow { margin-left: auto; color: var(--ink-faint); transition: transform .2s ease; }
.order-opt:hover .arrow { transform: translateX(3px); color: var(--ink); }

/* ---------- Order modal ---------- */
.order-modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.order-modal.open { opacity: 1; pointer-events: auto; }
.order-modal .scrim { position: absolute; inset: 0; background: rgba(28,18,12,.55); backdrop-filter: blur(4px); }
.order-card {
  position: relative; width: min(460px, 100%); background: var(--paper);
  border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(36,31,27,.08);
}
.order-modal.open .order-card { transform: none; }
.order-card h3 { font-size: 1.7rem; }
.order-card .sub { color: var(--ink-soft); margin: 4px 0 20px; font-size: .96rem; }
.order-card .x {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(36,31,27,.07); display: grid; place-items: center; color: var(--ink);
}
.order-card .x:hover { background: rgba(36,31,27,.14); }
.order-note { margin-top: 16px; font-size: .82rem; color: var(--ink-faint); text-align: center; }

/* ---------- Sticky mobile order bar ---------- */
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  display: none; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid rgba(36,31,27,.12);
}
.order-bar .btn { flex: 1; padding: 14px; }
@media (max-width: 880px) {
  .order-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Promo / highlight pills ---------- */
.promo-row { display: flex; flex-wrap: wrap; gap: 12px; }
.promo {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  background: var(--card); border: 1px solid rgba(36,31,27,.1); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600;
}
a.promo { color: inherit; text-decoration: none; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
a.promo:hover { box-shadow: var(--shadow-md, 0 6px 18px rgba(36,31,27,.12)); transform: translateY(-1px); }
.promo b { color: var(--red); font-weight: 800; }
.promo .pi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.promo .pi svg { width: 17px; height: 17px; }
.promo .pi img { width: 30px; height: 30px; }

/* ---------- Cards / grids ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
  background: var(--card); border-radius: var(--r-lg); padding: 30px 26px;
  border: 1px solid rgba(36,31,27,.08); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.feature .fi { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .fi svg { width: 27px; height: 27px; }
.feature h3 { font-size: 1.5rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.bg-red   { background: var(--red-tint);   color: var(--red); }
.bg-green { background: var(--green-tint); color: var(--green-deep); }
.bg-gold  { background: var(--gold-tint);  color: var(--gold); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 14px, var(--paper-3) 14px 28px);
  border-radius: var(--r); display: grid; place-items: center; color: var(--ink-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .76rem; letter-spacing: .04em;
  text-align: center; padding: 20px; border: 1px solid rgba(36,31,27,.08);
}

/* ---------- Reviews ---------- */
.stars { color: var(--gold); display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review { background: var(--card); border-radius: var(--r-lg); padding: 28px; border: 1px solid rgba(36,31,27,.08); box-shadow: var(--shadow-sm); }
.review p { font-size: 1.05rem; line-height: 1.55; margin: 14px 0 18px; color: var(--ink); }
.review .who { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.review .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--sans); }
.review .who b { font-weight: 800; }
.review .who span { color: var(--ink-faint); display: block; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e0d2; padding: 64px 0 28px; }
.site-footer a { color: #e9e0d2; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px; }
.foot-brand p { color: #b6aa99; font-size: .94rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 800; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col li { color: #c4b9a8; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.foot-col a:hover { color: #fff; }
.foot-socials { display: flex; gap: 12px; margin-top: 18px; }
.foot-socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.foot-socials a:hover { background: var(--red); border-color: var(--red); }
.foot-socials svg { width: 19px; height: 19px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8d8170; font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Reveal on scroll (visible by default; animation only when supported) ---------- */
.reveal { opacity: 1; transform: none; }
html.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js-anim .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--green); }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: 60px; background: rgba(44,106,64,.4); }
