/* =============================================================================
   Monte Carlo Italian Deli & Pinocchio's Restaurant — concept redesign
   by rainearcher. Variation on the local-booking token system, re-skinned to
   the prospect's real brand: espresso maroon + cream/gold (from their logo and
   favicon), Pinocchio green, and the tomato red of their storefront sign.
   ========================================================================== */
:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --bg:           #FBF5EA;   /* warm cream */
  --surface:      #FFFFFF;
  --surface-alt:  #F4EAD6;   /* sand */
  --line:         #E7D7B9;

  --text:         #2A1712;   /* espresso */
  --text-muted:   #6A5443;
  --text-faint:   #978270;

  --inverse-bg:   #3A140F;   /* deep maroon (matches favicon) */
  --inverse-bg-2: #4A1A12;
  --inverse-text: #FBF1DC;
  --inverse-muted:#D8B98E;

  --brand:        #2F7D4F;   /* Pinocchio / Italian green */
  --brand-strong: #9B2C22;   /* tomato red — sign color */
  --brand-hover:  #7E2119;
  --gold:         #C79A3E;   /* cream-gold script accent */

  --cta-bg:       var(--brand-strong);
  --cta-text:     #FFFFFF;
  --cta-shadow:   rgba(155, 44, 34, 0.30);

  --radius:       14px;
  --radius-sm:    9px;

  --shadow-soft:  0 2px 18px rgba(42, 23, 18, 0.07);
  --shadow-card:  0 6px 26px rgba(42, 23, 18, 0.11);
  --shadow-hover: 0 12px 38px rgba(42, 23, 18, 0.18);

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s;
  --t-med:  0.30s;

  --step-eyebrow: 12px;
  --step-h3:  clamp(19px, 3vw, 24px);
  --step-h2:  clamp(25px, 5vw, 42px);
  --step-h1:  clamp(31px, 7vw, 60px);
  --space-sm: 14px;
  --space-md: 26px;
  --space-lg: 52px;
  --space-xl: 80px;
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-strong); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1.18; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step-eyebrow);
  font-weight: 700;
  color: var(--brand);
}
.section { padding: var(--space-lg) 0; }
.section--alt { background: var(--surface-alt); }
.section--pad-lg { padding: var(--space-xl) 0; }
.lede { color: var(--text-muted); font-size: 1.06rem; max-width: 62ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 22px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: transform var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  text-align: center; line-height: 1.1;
}
.btn--primary { background: var(--cta-bg); color: var(--cta-text); box-shadow: 0 6px 18px var(--cta-shadow); }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-2px); }
.btn--green { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(47,125,79,0.28); }
.btn--green:hover { background: #266740; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.btn--light { background: var(--inverse-text); color: var(--inverse-bg); }
.btn--light:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 245, 234, 0.94);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: var(--t-fast);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-menu {
  position: fixed; inset: 64px 0 auto 0; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card);
  display: none; flex-direction: column; padding: 8px 20px 20px; gap: 2px; z-index: 55;
}
.nav-menu.open { display: flex; }
.nav-menu a { color: var(--text); font-weight: 600; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.nav-menu a:last-of-type { border-bottom: 0; }
.nav-menu .btn { margin-top: 12px; }

/* ---- hero ---- */
.hero { padding: var(--space-lg) 0 var(--space-md); }
.hero-grid { display: grid; gap: var(--space-md); }
.hero-copy .eyebrow { margin-bottom: 12px; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .accent { color: var(--brand-strong); }
.hero .lede { margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 auto; min-width: 152px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.92rem; color: var(--text-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .dot { color: var(--brand); font-weight: 800; }
.hero-art {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--surface);
  border: 1px solid var(--line);
}
.hero-art img { width: 100%; }
.hero-art figcaption {
  font-size: 0.8rem; color: var(--text-faint); padding: 9px 14px; background: var(--surface);
  border-top: 1px solid var(--line); font-style: italic;
}

/* ---- two houses ---- */
.houses { display: grid; gap: 18px; }
.house {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-soft);
}
.house h3 { margin-bottom: 8px; }
.house p { color: var(--text-muted); font-size: 0.98rem; }
.house .tag { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* ---- made in-house chips ---- */
.madein { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 14px; text-align: center; box-shadow: var(--shadow-soft);
}
.chip strong { display: block; font-family: var(--font-display); font-size: 1.18rem; color: var(--brand-strong); }
.chip span { font-size: 0.86rem; color: var(--text-muted); }

/* ---- menu cards ---- */
.cards { display: grid; gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
}
.card-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-alt); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 + p { color: var(--text-muted); font-size: 0.96rem; }
.menu-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.menu-list li { font-size: 0.86rem; background: var(--surface-alt); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; color: var(--text-muted); }
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---- list section (deli / market) ---- */
.split { display: grid; gap: 22px; }
.split-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.split-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 12px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 0.98rem; }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

/* ---- gelato strip ---- */
.gelato { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.gelato h2 { color: #fff; }
.gelato .num { font-family: var(--font-display); font-size: clamp(48px, 14vw, 88px); line-height: 1; color: var(--gold); display: block; }
.gelato p { color: rgba(255,255,255,0.9); margin-top: 6px; }

/* ---- visit / info ---- */
.visit-grid { display: grid; gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-soft); }
.info-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.info-card p, .info-card a { color: var(--text-muted); font-size: 0.98rem; }
.info-card .big { font-size: 1.12rem; color: var(--text); font-weight: 700; }

/* ---- dark CTA band ---- */
.band-dark { background: var(--inverse-bg); color: var(--inverse-text); text-align: center; }
.band-dark h2 { color: var(--inverse-text); }
.band-dark p { color: var(--inverse-muted); margin: 12px auto 22px; max-width: 52ch; }
.band-dark .hero-cta { justify-content: center; }
.band-dark .btn--ghost { color: var(--inverse-text); border-color: rgba(255,255,255,0.3); }
.band-dark .btn--ghost:hover { border-color: var(--inverse-text); color: var(--inverse-text); }

/* ---- footer ---- */
.site-footer { background: var(--inverse-bg-2); color: var(--inverse-muted); padding: 36px 0 26px; font-size: 0.9rem; }
.site-footer a { color: var(--inverse-text); }
.footer-top { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; margin-bottom: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.credit { color: var(--inverse-muted); }
.credit a { color: var(--gold); }

/* ---- sticky mobile order bar ---- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(251, 245, 234, 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(42,23,18,0.12);
}
.mobile-bar .btn { flex: 1; min-height: 46px; padding: 11px 10px; font-size: 0.95rem; }
body { padding-bottom: 74px; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (min-width: 720px) {
  .madein { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .houses { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .nav-menu {
    position: static; display: flex; flex-direction: row; align-items: center;
    inset: auto; background: none; border: 0; box-shadow: none; padding: 0; gap: 22px;
  }
  .nav-menu a { border: 0; padding: 6px 0; font-size: 0.96rem; }
  .nav-menu .btn { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .hero { padding: var(--space-xl) 0 var(--space-lg); }
  .hero-art img { max-height: 520px; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
