/* ==============================================================
   Pizza Town — Styles
   Structure:
     1. CSS variables (colors, sizes) — change these to re-theme
     2. Base / reset — sensible defaults
     3. Layout helpers (.wrap)
     4. Header
     5. Hero
     6. Menu
     7. About
     8. Visit (hours/address/order)
     9. Footer
    10. Buttons + shared bits
    11. Responsive breakpoints (mobile-first: base styles = mobile,
        @media rules layer on desktop enhancements)
   ============================================================== */


/* ---------- 1. CSS VARIABLES -----------------------------------
   Anything defined here can be referenced anywhere as var(--name).
   Change one line here → theme updates everywhere. Very powerful.
--------------------------------------------------------------- */
:root {
  /* Brand colors — pulled from the actual Pizza Town sign (red + cream) */
  --color-red:        #b93030;   /* deep tomato red, matches the sign */
  --color-red-dark:   #8a1e1e;   /* darker red for hover states */
  --color-cream:      #fdf6e3;   /* warm off-white background */
  --color-cream-dark: #f0e6cf;   /* slightly darker cream for cards */
  --color-ink:        #2a1a15;   /* dark warm-brown text, easier on the eyes than pure black */
  --color-ink-soft:   #5a4a45;   /* secondary text */
  --color-line:       #e6dcc4;   /* subtle divider lines */
  --color-accent:     #3d5c3a;   /* basil green — used sparingly */

  /* Fonts — using system fonts (no download needed = faster site).
     Later we can swap in Google Fonts if the owner wants something specific. */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  /* Sizing scale — used everywhere for consistent spacing */
  --space-xs:  0.5rem;   /* 8px  */
  --space-sm:  1rem;     /* 16px */
  --space-md:  1.5rem;   /* 24px */
  --space-lg:  2.5rem;   /* 40px */
  --space-xl:  4rem;     /* 64px */

  --radius: 10px;                          /* rounded corners */
  --shadow: 0 4px 20px rgba(42, 26, 21, 0.08);
}


/* ---------- 2. BASE / RESET ------------------------------------
   Undo browser defaults that would otherwise fight us.
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }   /* kills the ugly blue tap flash on iOS/Android */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* stops iOS from resizing text on orientation change */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;              /* 18px — bigger than default 16px for readability */
  line-height: 1.6;                 /* generous line spacing */
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               /* belt-and-suspenders — never allow horizontal scroll */
}


/* ==============================================================
   FUN: PIZZA CURSOR (desktop / mouse users only)
   Custom SVG cursor of a tiny pizza slice. Touch devices ignore
   `cursor:` entirely, so this only activates for PC users.
   Hotspot is the pointy tip (top-left) of the slice.
   The "pointer" variant is a slightly bigger slice for hover on
   links/buttons — visual feedback for clickable elements.
   Respects prefers-reduced-motion by falling back to system cursor
   when a user has set that preference (some folks find custom
   cursors distracting).
   ============================================================== */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url('assets/images/cursor.png') 2 2, auto;
  }

  /* Larger, "excited" pizza cursor for clickable elements */
  a, button, .btn, .add-btn, .phone-cta, .chip, .ot-btn, [role='button'], input[type='submit'], summary, label[for] {
    cursor: url('assets/images/cursor-pointer.png') 3 3, pointer;
  }
}
/* Users who prefer reduced motion get the system cursor back —
   custom cursors can feel jittery to some folks. */
@media (prefers-reduced-motion: reduce) {
  html, body { cursor: auto; }
  a, button, .btn, .add-btn, .phone-cta, .chip, .ot-btn, [role='button'], input[type='submit'], summary, label[for] {
    cursor: pointer;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-sm); }

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

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

address { font-style: normal; }


/* ---------- 3. LAYOUT HELPERS ----------------------------------
   .wrap centers content and gives it a max width. Applied inside
   every section so full-color backgrounds go edge-to-edge but the
   TEXT stays comfortable to read.
--------------------------------------------------------------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-lede {
  text-align: center;
  color: var(--color-ink-soft);
  max-width: 620px;
  margin: 0 auto var(--space-lg);
}


/* ---------- 4. HEADER ------------------------------------------
   Sticky at the top. Compact on mobile, roomier on desktop.
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
  padding-top: env(safe-area-inset-top);   /* respect iPhone notch when in landscape */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;               /* centered on mobile — desktop overrides below */
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
  flex-wrap: wrap;
}

/* Mobile-only: force brand + phone onto their own rows, centered.
   Desktop @media below reverts to the side-by-side layout. */
.brand      { order: 1; flex-basis: 100%; justify-content: center; }
.phone-cta  { order: 2; flex-basis: auto; }
.nav        { order: 3; }

.brand {
  display: inline-flex;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-block;
  padding: 2px 10px;
  border: 2px solid var(--color-ink);
  border-radius: 4px;
}
.brand-mark--accent {
  background: var(--color-red);
  color: var(--color-cream);
  border-color: var(--color-red);
}

.nav {
  display: none;                       /* hidden by default on mobile — hamburger opens it */
  gap: var(--space-sm) var(--space-md);
  order: 3;
  width: 100%;
  justify-content: center;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-top: 1px solid var(--color-line);
  flex-wrap: wrap;
  font-size: 1rem;
  flex-direction: column;              /* on mobile, stack the links */
  align-items: center;
}
.nav a {
  color: var(--color-ink);
  font-weight: 600;
  padding: 12px 20px;                  /* nice tappable size when in the dropdown */
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  width: 100%;
  justify-content: center;
}
.nav a:hover { background: var(--color-cream-dark); text-decoration: none; }

/* Show the nav when hamburger has toggled it open */
.site-header.is-menu-open .nav { display: flex; }


/* ---------- HAMBURGER TOGGLE ----------------------------------
   Three horizontal bars that animate into an X when open.
--------------------------------------------------------------- */
.menu-toggle {
  position: absolute;
  top: 50%;
  right: var(--space-md);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--color-ink);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.menu-toggle:hover { background: var(--color-cream-dark); }
.menu-toggle:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }

.menu-toggle-bars {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 16px;
}
.menu-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease, top 0.2s ease;
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 7px; }
.menu-toggle-bars span:nth-child(3) { top: 14px; }

/* Open state: transform into an X */
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.phone-cta {
  background: var(--color-red);
  color: var(--color-cream);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}
.phone-cta:hover { background: var(--color-red-dark); text-decoration: none; }


/* ---------- 5. HERO --------------------------------------------
   The first "wow" section. Warm cream background, big serif title.
--------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  padding: var(--space-xl) 0;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--color-red);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.hero-title { font-size: 2.75rem; margin-bottom: var(--space-sm); }

.hero-sub {
  color: var(--color-ink-soft);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.hero-hours {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Live status dot next to the hours indicator */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
}
.status-dot--open {
  background: #2f8f2c;
  box-shadow: 0 0 0 3px rgba(47, 143, 44, 0.18);
  animation: pulse-open 2.4s ease-in-out infinite;
}
.status-dot--closed {
  background: #a5988a;
}
@keyframes pulse-open {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 143, 44, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(47, 143, 44, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot--open { animation: none; }
}


/* ---------- 6. MENU --------------------------------------------
   A responsive grid of category cards. auto-fit means the columns
   adjust to whatever fits at the current window size.
--------------------------------------------------------------- */
.menu { padding: var(--space-xl) 0; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.menu-cat {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}

.menu-cat h3 {
  color: var(--color-red);
  border-bottom: 2px solid var(--color-line);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.menu-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-cat li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 6px 0;
  border-bottom: 1px dotted var(--color-line);
}
.menu-cat li:last-child { border-bottom: none; }

.price {
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;    /* keeps prices aligned */
  white-space: nowrap;
}

.menu-note {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  font-style: italic;
}


/* ---------- Subsection titles (h3 within a big section) --------
--------------------------------------------------------------- */
.subsection-title {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-red);
  text-align: center;
  margin: 0 0 var(--space-md);
  font-weight: 700;
}
.reviews-heading { margin-top: var(--space-lg); }


/* ---------- Source badges (Google / Yelp / Facebook) -----------
   Small colored pills that mark where content came from.
--------------------------------------------------------------- */
.source-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}
.source-badge--google      { background: #4285F4; }   /* Google blue */
.source-badge--yelp        { background: #d32323; }   /* Yelp red */
.source-badge--facebook    { background: #1877F2; }   /* Facebook blue */
.source-badge--tripadvisor { background: #34E0A1; color: #003b2b; }  /* Tripadvisor green */


/* ---------- Gallery caption (attribution under each photo) -----
--------------------------------------------------------------- */
.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--color-line);
  flex-wrap: wrap;
}
.gallery-item {
  /* Override the parent aspect-ratio when a caption is present so
     the whole card grows to fit it. */
  aspect-ratio: auto;
  min-height: 200px;
  flex-direction: column;
  justify-content: stretch;
}
.gallery-item .gallery-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-sm);
}
.gallery-author { font-weight: 600; }


/* ---------- Reviews grid + card -------------------------------
--------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.review-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  box-shadow: var(--shadow);
}
.review-stars {
  color: #f5a623;                    /* warm gold */
  font-size: 1.2rem;
  letter-spacing: 2px;
  line-height: 1;
}
.review-stars .star-empty { color: #e0d5b7; }

.review-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
  color: var(--color-ink);
  flex: 1;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  border-top: 1px dotted var(--color-line);
  padding-top: var(--space-xs);
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}
.review-author {
  font-weight: 600;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

.reviews-cta {
  text-align: center;
  margin-top: var(--space-md);
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.reviews-disclaimer {
  text-align: center;
  margin-top: var(--space-md);
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}


/* ---------- 7. ABOUT -------------------------------------------
   Simple text block on a slightly darker background.
--------------------------------------------------------------- */
.about {
  background: var(--color-cream-dark);
  padding: var(--space-xl) 0;
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}


/* ---------- 8. VISIT (hours + address + order) -----------------
   Three cards side-by-side on desktop, stacked on mobile.
--------------------------------------------------------------- */
.visit { padding: var(--space-xl) 0; }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.visit-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.visit-card h3 {
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dotted var(--color-line);
}
.hours-list li:last-child { border-bottom: none; }

.link { color: var(--color-red); font-weight: 600; }


/* ---------- 9. FOOTER ------------------------------------------
--------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-lg) 0;
  padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));  /* iPhone home-indicator area */
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
}
.footer-inner p { margin: 0; }
.socials { display: flex; gap: var(--space-md); }
.socials a { color: var(--color-cream); }


/* ---------- 10. BUTTONS (shared) -------------------------------
--------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--color-red);
  color: var(--color-cream);
}
.btn--primary:hover { background: var(--color-red-dark); }

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}
.btn--ghost:hover { background: var(--color-ink); color: var(--color-cream); }


/* ---------- HIGHLIGHTS (proof points below hero) ---------------
   Four small cards. On mobile they stack; on desktop they sit
   side-by-side.
--------------------------------------------------------------- */
.highlights {
  padding: var(--space-lg) 0;
  background: #fff;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  text-align: center;
}
.highlight {
  padding: var(--space-sm);
}
.highlight h3 {
  font-family: var(--font-body);       /* sans-serif for scannability */
  font-size: 1rem;
  color: var(--color-red);
  margin: var(--space-xs) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.highlight p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.highlight-icon {
  font-size: 2.5rem;
  display: inline-block;
  line-height: 1;
}


/* ---------- GALLERY (photo grid) -------------------------------
   Placeholders show a labeled slot. When real images are added,
   change `.gallery-placeholder` to an <img> and it'll fill the box.
--------------------------------------------------------------- */
.gallery {
  padding: var(--space-xl) 0;
  background: var(--color-cream-dark);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.gallery-item {
  aspect-ratio: 4 / 3;                 /* keeps every slot the same shape */
  background: var(--color-cream);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;                   /* image fills the box without stretching */
}
.gallery-placeholder {
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-sm);
}


/* ==============================================================
   ORDER PAGE STYLES (order.html)
   ============================================================== */

.nav-active { color: var(--color-red) !important; }

.order-banner {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  padding: var(--space-lg) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}
.order-banner h1 { font-size: 2.25rem; margin: 0 0 var(--space-xs); }
.order-banner p  { color: var(--color-ink-soft); margin: 0; }

/* Two-column layout — stacks on mobile, side-by-side on desktop */
.order-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
}

/* Pickup / Delivery toggle */
.order-type {
  display: inline-flex;
  background: var(--color-cream-dark);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: var(--space-md);
}
.ot-btn {
  border: 0;
  background: transparent;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--color-ink-soft);
  cursor: pointer;
  font-family: inherit;
}
.ot-btn.is-active {
  background: var(--color-red);
  color: var(--color-cream);
}

/* Menu categories */
.order-cat { margin-bottom: var(--space-lg); }
.order-cat h2 {
  font-size: 1.4rem;
  color: var(--color-red);
  border-bottom: 2px solid var(--color-line);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.order-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

/* Individual menu item card */
.order-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  align-items: center;
  justify-content: space-between;
}
.oi-body { flex: 1; min-width: 0; }
.oi-body h3 { font-family: var(--font-body); font-size: 1.05rem; margin: 0 0 4px; }
.oi-body p  { margin: 0; color: var(--color-ink-soft); font-size: 0.9rem; }

.oi-actions { text-align: right; flex-shrink: 0; }
.oi-price { display: block; font-weight: 700; margin-bottom: 4px; font-variant-numeric: tabular-nums; }

.add-btn {
  background: var(--color-red);
  color: var(--color-cream);
  border: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}
.add-btn:hover  { background: var(--color-red-dark); }
.add-btn:active { transform: scale(0.96); }
.add-btn.is-added { background: var(--color-accent); }

.order-note {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  margin-top: var(--space-md);
}

/* ===== Cart ===== */
.order-cart {
  background: var(--color-cream-dark);
  border-radius: var(--radius);
  padding: var(--space-md);
  align-self: start;
}
.cart-inner { display: flex; flex-direction: column; gap: var(--space-sm); }
.cart-title {
  font-family: var(--font-display);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
}
.cart-count {
  background: var(--color-red);
  color: var(--color-cream);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

.cart-empty {
  text-align: center;
  color: var(--color-ink-soft);
  padding: var(--space-md) 0;
}
.cart-empty p { margin: 0 0 4px; }
.cart-empty-hint { font-size: 0.9rem; }

.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-line {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cl-body {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xs);
  font-weight: 600;
}
.cl-price { font-variant-numeric: tabular-nums; }
.cl-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.cl-qty button {
  border: 1px solid var(--color-line);
  background: var(--color-cream);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
}
.cl-qty button:hover { background: var(--color-cream-dark); }
.cl-remove {
  margin-left: auto;
  color: var(--color-red);
}

.cart-totals { border-top: 1px solid var(--color-line); padding-top: var(--space-sm); }
.ct-line {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.ct-line--sm { font-size: 0.9rem; color: var(--color-ink-soft); }
.ct-line--total {
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 1px dotted var(--color-line);
  margin-top: 6px;
  padding-top: 8px;
}

.cart-checkout-btn { width: 100%; margin-top: var(--space-xs); }
.cart-checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* ===== Checkout form ===== */
.checkout {
  background: #fff;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-line);
}
.checkout-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.checkout-form fieldset {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  margin: 0;
}
.checkout-form legend {
  padding: 0 8px;
  font-weight: 700;
  color: var(--color-red);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-sm); }
.field:last-child { margin-bottom: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--color-ink-soft); font-weight: 400; font-size: 0.85rem; }
.field input, .field select, .field textarea {
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;                   /* CRITICAL: iOS auto-zooms if input font-size < 16px */
  background: var(--color-cream);
  width: 100%;                       /* prevent overflow on tiny screens */
}
.cust-section textarea {
  font-size: 16px;                   /* same iOS zoom-prevention */
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-red);
  outline-offset: -1px;
  border-color: var(--color-red);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

.payment-placeholder {
  background: var(--color-cream);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-sm);
  position: relative;
}
.pp-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-cream);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.pp-note { font-size: 0.85rem; color: var(--color-ink-soft); margin-bottom: 0; }

.checkout-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== Confirmation ===== */
.confirmation {
  padding: var(--space-xl) 0;
  text-align: center;
  background: var(--color-cream-dark);
}
.confirmation-inner { max-width: 520px; margin: 0 auto; padding: 0 var(--space-md); }
.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-cream);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}
.confirmation-note { color: var(--color-ink-soft); font-size: 0.9rem; }


/* ==============================================================
   SPECIALS HERO (index.html — homepage preview)
   Larger, more marketing-style than the order page version.
   ============================================================== */
.specials-hero {
  padding: var(--space-xl) 0;
  background:
    radial-gradient(ellipse at top left, rgba(185,48,48,0.06), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(61,92,58,0.05), transparent 60%),
    var(--color-cream);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.specials-hero-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}
.specials-hero-head h2 {
  font-size: 2.2rem;
  margin: 4px 0 var(--space-xs);
}
.specials-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.special-hero-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.special-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42, 26, 21, 0.12);
}
.special-hero-card h3 {
  font-size: 1.5rem;
  margin: var(--space-xs) 0 0;
}
.special-hero-card p {
  color: var(--color-ink-soft);
  flex: 1;
  margin: 0;
}
.special-hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dotted var(--color-line);
}
.special-hero-foot .special-price {
  font-size: 1.2rem;
  font-weight: 700;
}
.specials-hero-cta {
  text-align: center;
  margin: var(--space-md) 0 0;
}


/* ==============================================================
   SPECIALS SECTION (order.html)
   ============================================================== */
.specials-section {
  background: linear-gradient(135deg, #fff 0%, var(--color-cream) 100%);
  border: 2px solid var(--color-red);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow);
}
.specials-head {
  text-align: center;
  margin-bottom: var(--space-md);
}
.specials-head h2 {
  color: var(--color-red);
  margin: 0 0 4px;
  font-size: 1.6rem;
}
.specials-sub {
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
}
.specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.special-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.special-ribbon {
  position: absolute;
  top: -10px;
  right: var(--space-sm);
  background: var(--color-red);
  color: var(--color-cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(185,48,48,0.35);
}
.special-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-body);
}
.special-card p {
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}
.special-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: 4px;
}
.special-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.special-price s {
  color: var(--color-ink-soft);
  font-weight: 400;
  margin-right: 4px;
}
.special-price small { color: var(--color-ink-soft); font-weight: 400; }
.specials-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  font-style: italic;
  margin: var(--space-sm) 0 0;
}


/* ==============================================================
   CUSTOMIZER MODAL (dialog)
   ============================================================== */
body.modal-open { overflow: hidden; }

.customizer {
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
  max-width: 720px;
  width: min(720px, 95vw);
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.customizer::backdrop {
  background: rgba(42, 26, 21, 0.5);
  backdrop-filter: blur(2px);
}
.customizer-inner {
  background: var(--color-cream);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.cust-head {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  background: #fff;
}
.cust-head h3 {
  margin: 0 0 4px;
  color: var(--color-red);
  font-size: 1.5rem;
}
.cust-desc {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}
.cust-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-ink-soft);
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1;
}
.cust-close:hover { background: var(--color-cream-dark); }

.cust-body {
  padding: var(--space-md);
  overflow-y: auto;
  flex: 1;
}
.cust-section { margin-bottom: var(--space-md); }
.cust-section:last-child { margin-bottom: 0; }
.cust-section h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin: 0 0 4px;
}
.cust-hint { color: var(--color-ink-soft); font-size: 0.85rem; margin: 0 0 8px; }
.cust-section textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  resize: vertical;
}

.cust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Individual selectable chip (a toggleable pill) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--color-line);
  background: #fff;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-ink);
  transition: all 0.12s ease;
}
.chip:hover { border-color: var(--color-red); }
.chip.is-on {
  background: var(--color-red);
  color: var(--color-cream);
  border-color: var(--color-red);
}
.chip-price {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;
}
.chip.is-on .chip-price { color: rgba(255,255,255,0.85); }

/* Default (included) chips look different — they START on and toggle to "removed" style */
.chip--default { background: var(--color-cream-dark); border-color: var(--color-cream-dark); }
.chip--default .chip-x { color: var(--color-ink-soft); font-weight: 700; }
.chip--default.is-on { background: var(--color-accent); color: var(--color-cream); border-color: var(--color-accent); }
.chip--default.is-on .chip-x { color: rgba(255,255,255,0.85); }
.chip--default:not(.is-on) {
  text-decoration: line-through;
  opacity: 0.55;
}

.topping-group { margin-bottom: var(--space-sm); }
.topping-group:last-child { margin-bottom: 0; }
.topping-group-title {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  font-weight: 700;
}

.cust-foot {
  border-top: 1px solid var(--color-line);
  padding: var(--space-sm) var(--space-md);
  background: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.cust-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 4px;
}
.cust-qty button {
  border: 0;
  background: var(--color-cream);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.cust-qty button:hover { background: var(--color-cream-dark); }
.cust-qty span { min-width: 20px; text-align: center; font-weight: 700; }

.cust-add-btn {
  flex: 1;
  min-width: 180px;
  padding: 12px 20px;
  font-size: 1rem;
}


/* ==============================================================
   CART LINE MODIFICATIONS (small text under each line item)
   ============================================================== */
.cl-mods {
  font-size: 0.82rem;
  padding: 2px 0;
  line-height: 1.3;
}
.cl-mods--removed { color: #a15;  }
.cl-mods--added   { color: #4a7050; }
.cl-mods--notes   { color: var(--color-ink-soft); font-style: italic; }


/* ==============================================================
   MOBILE-SPECIFIC POLISH (up to 500px — really small screens)
   Reduces oversized spacing/typography so the hero doesn't eat
   the entire first screen on a tiny phone.
   ============================================================== */
@media (max-width: 500px) {
  .hero { padding: var(--space-lg) 0; }
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.6rem; }
  .specials-hero-head h2 { font-size: 1.7rem; }
  .menu-grid, .visit-grid, .highlights-grid, .gallery-grid, .reviews-grid, .specials-grid, .specials-hero-grid, .order-items {
    gap: var(--space-sm);
  }
  .menu, .visit, .about, .gallery, .highlights, .specials-hero { padding: var(--space-lg) 0; }
  .menu-cat, .visit-card, .review-card, .special-hero-card, .special-card {
    padding: var(--space-sm);
  }
  /* Larger tap targets for menu-item Add buttons (Apple's 44px min) */
  .add-btn, .btn { min-height: 44px; }
  .phone-cta { min-height: 44px; display: inline-flex; align-items: center; }
  /* Full-width Add-to-cart chevrons in customizer footer */
  .cust-add-btn { min-height: 48px; }
  /* Wider tap area for cart line +/- buttons */
  .cl-qty button { width: 32px; height: 32px; }
}


/* ---------- 11. RESPONSIVE (desktop enhancements) --------------
   Base styles above assume MOBILE. Everything under this @media
   only applies on screens wider than 720px.
--------------------------------------------------------------- */
@media (min-width: 720px) {
  h1 { font-size: 3.5rem; }
  .hero-title { font-size: 4rem; }

  /* Desktop header: revert to the classic side-by-side layout */
  .header-inner { justify-content: space-between; }
  .brand      { order: 0; flex-basis: auto; justify-content: flex-start; }
  .phone-cta  { order: 2; }
  .nav {
    display: flex;                   /* always visible on desktop */
    flex-direction: row;
    order: 1;
    width: auto;
    border-top: none;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav a {
    padding: 6px 4px;
    width: auto;
    min-height: 0;
    background: transparent !important;
  }

  /* Hamburger is mobile-only */
  .menu-toggle { display: none; }
}

@media (min-width: 900px) {
  /* Two-column order layout: menu on the left, sticky cart on the right */
  .order-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
  .order-cart {
    position: sticky;
    top: 80px;                       /* stays below the sticky header */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}
