:root {
  --red: #c4452d;
  --red-dark: #9e3320;
  --yellow: #ffd23f;
  --yellow-soft: #fff1c1;
  --green: #4f8a2b;
  --cream: #fff8ec;
  --bun: #e8a75c;
  --ink: #3a2a1e;
  --ink-soft: #6b5545;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(58, 42, 30, 0.12);
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h3 { font-size: 1.35rem; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 0.7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-large { font-size: 1.15rem; padding: 0.8em 1.6em; }
.btn-small { font-size: 0.95rem; padding: 0.45em 1.1em; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 6px 16px rgba(196, 69, 45, 0.35); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.btn-yellow:hover { background: #ffdc66; color: var(--ink); }
.btn-outline { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); }

.eyebrow {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.9rem; margin: 0 0 0.4rem; color: var(--yellow);
}
.eyebrow-red { color: var(--red); }
.eyebrow-yellow { color: var(--yellow); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(58, 42, 30, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--red);
}
.brand img { border-radius: 10px; }
.site-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:not(.btn):hover { color: var(--red); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--yellow-soft); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 22px; height: 3px; border-radius: 2px;
  background: var(--ink); content: ""; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 22, 10, 0.15) 0%, rgba(40, 22, 10, 0.55) 45%, rgba(40, 22, 10, 0.88) 100%);
}
.hero-content { position: relative; padding-block: 6rem 3.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35); }
.hero h1 .hero-line { display: block; }
.hero-lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 40rem; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.hero-badges li {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-cream { background: var(--cream); }
.section-yellow { background: var(--yellow); }
.section-yellow .eyebrow { color: var(--red-dark); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }
.small-note { font-size: 0.95rem; color: var(--ink-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-2deg); border: 8px solid var(--white); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.text-link { font-weight: 800; text-decoration: none; }

/* Menu */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.menu-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow); border-top: 6px solid var(--yellow);
}
.menu-card:nth-child(2) { border-top-color: var(--red); }
.menu-card:nth-child(3) { border-top-color: var(--green); }
.menu-card p { margin: 0; color: var(--ink-soft); }
.menu-emoji { font-size: 3rem; line-height: 1; margin-bottom: 0.75rem; }

.toppings {
  display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  margin-top: 3.5rem; background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow);
}
.toppings-photo img { border-radius: calc(var(--radius) - 6px); }
.topping-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; font-weight: 700; }
.topping-list li { display: flex; align-items: center; gap: 0.55rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid rgba(58, 42, 30, 0.15); }
.dot-yellow { background: #f2c230; }
.dot-white { background: #fbf6ea; }
.dot-green { background: #39b54a; }
.dot-red { background: #e04b3a; }
.dot-tan { background: var(--bun); }

/* Parties */
.party-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.party-card {
  background: var(--cream); border-radius: var(--radius); padding: 1.5rem; border: 2px dashed rgba(196, 69, 45, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.party-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.party-card > span { font-size: 2.2rem; display: block; margin-bottom: 0.4rem; }
.party-card h3 { margin-bottom: 0.25rem; }
.party-card p { margin: 0; color: var(--ink-soft); }

.sizes-title { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2rem); margin: 4rem 0 1.75rem; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; align-items: stretch; }
.size-card {
  position: relative; background: var(--white); border: 3px solid var(--yellow-soft); border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem; text-align: center;
}
.size-card h4 { font-size: 1.5rem; margin-bottom: 0.1rem; }
.size-card p { margin: 0; color: var(--ink-soft); }
.size-card .size-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 0.5rem; }
.size-card .size-range { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--red); margin-bottom: 0.5rem; }
.size-card-featured { border-color: var(--red); box-shadow: var(--shadow); }
.size-card .size-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.8rem; border-radius: 999px; white-space: nowrap;
}
.sizes-note { text-align: center; max-width: 44rem; margin: 2rem auto 0; color: var(--ink-soft); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; box-shadow: 0 6px 0 rgba(58, 42, 30, 0.12); }
.steps p { margin: 0; color: var(--ink-soft); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 0.75rem;
}

/* Calendar */
.calendar-card { max-width: 720px; margin: 0 auto; background: var(--cream); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-toolbar h3 { margin: 0; font-size: 1.6rem; }
.cal-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); font-size: 1.8rem; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.cal-nav:hover:not(:disabled) { background: var(--yellow); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); padding-bottom: 0.25rem; }
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px; font-weight: 800; font-size: 1rem; border: 0; font-family: inherit; padding: 0;
}
button.cal-day { background: var(--white); color: var(--ink); cursor: pointer; border: 2px solid #cfe5c2; }
button.cal-day:hover { background: #e6f4dc; border-color: var(--green); }
.cal-day.is-today { box-shadow: inset 0 0 0 3px var(--yellow); }
.cal-day.is-booked { background: var(--red); color: var(--white); }
.cal-day.is-booked small { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-day.is-past { background: transparent; color: rgba(58, 42, 30, 0.3); }
.cal-day.is-empty { background: transparent; }
.calendar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0 0; font-weight: 700; font-size: 0.95rem; }
.calendar-legend li { display: flex; align-items: center; gap: 0.45rem; }
.legend-swatch { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.legend-open { background: var(--white); border: 2px solid #cfe5c2; }
.legend-booked { background: var(--red); }
.calendar-error { text-align: center; font-weight: 700; margin: 1rem 0 0; }

.announcements { max-width: 720px; margin: 3rem auto 0; }
.announcements > h3 { text-align: center; }
.announcement {
  background: var(--white); border-left: 6px solid var(--yellow); border-radius: 12px; padding: 1.1rem 1.4rem; margin-top: 1rem;
  box-shadow: 0 4px 14px rgba(58, 42, 30, 0.08);
}
.announcement h4 { font-size: 1.25rem; margin: 0 0 0.2rem; }
.announcement-date { font-weight: 800; color: var(--red); margin: 0 0 0.4rem; }
.announcement p:last-child { margin: 0; }

/* Gallery */
.gallery-grid { list-style: none; padding: 0; margin: 0; columns: 4 220px; column-gap: 1rem; }
.gallery-grid li { break-inside: avoid; margin-bottom: 1rem; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 18, 10, 0.85); }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: -18px; right: -10px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--yellow); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}

/* Request */
.request { background: var(--red); color: var(--white); background-image: radial-gradient(circle at 10% 10%, rgba(255, 210, 63, 0.18), transparent 45%); }
.request-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.request-intro p { font-size: 1.15rem; }
.request-intro a:not(.btn) { color: var(--white); font-weight: 800; }
.request-or { font-weight: 800; margin-top: 2rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; font-size: 1.1rem; }

.request-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field label { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 2px solid #ead9c2; border-radius: 12px; padding: 0.7rem 0.9rem; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.field textarea { resize: vertical; }
.field-msg { margin: 0.35rem 0 0; font-size: 0.92rem; font-weight: 700; }
.field-msg:empty { display: none; }
.field-msg.is-error { color: var(--red-dark); }
.field-msg.is-ok { color: var(--green); }
.request-form .small-note { text-align: center; margin: 0.75rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #f3e6d6; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--yellow); margin: 0; }
.footer-inner p { margin: 0.25rem 0 0; max-width: 28rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-links a { color: var(--white); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.copyright { text-align: center; margin: 2.5rem 0 0; font-size: 0.9rem; opacity: 0.75; }

/* Mobile quick-action bar (shown on small screens only) */
.mobile-bar { display: none; }

/* Thank-you page */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--cream); padding: 2rem; }
.thanks-card { max-width: 34rem; background: var(--white); border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow); }
.thanks-emoji { font-size: 4rem; margin: 0; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

@media (max-width: 900px) {
  .about-grid, .toppings, .request-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid rgba(58, 42, 30, 0.1); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: 0.8rem 0; border-bottom: 1px solid rgba(58, 42, 30, 0.08); }
  .site-nav .btn { margin-top: 1rem; width: 100%; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .brand { font-size: 1.35rem; }
  .hero { min-height: 88vh; }
  .hero-content { padding-block: 5rem 2.5rem; }
  .hero h1 .hero-line { display: inline; }
  .hero-overlay { background: linear-gradient(180deg, rgba(40, 22, 10, 0.45) 0%, rgba(40, 22, 10, 0.7) 40%, rgba(40, 22, 10, 0.9) 100%); }
  .hero-actions .btn { width: 100%; }
  .hero-badges li { font-size: 0.85rem; }
  .field-row { grid-template-columns: 1fr; }
  .topping-list { font-size: 0.95rem; }
  .gallery-grid { columns: 2; column-gap: 0.6rem; }
  .gallery-grid li { margin-bottom: 0.6rem; }
  .calendar-grid { gap: 4px; }
  .cal-day { border-radius: 8px; font-size: 0.9rem; }
  .cal-day.is-booked small { display: none; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    background: var(--white); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 48px;
    border-radius: 999px; background: var(--yellow-soft); color: var(--ink);
    font-family: var(--font-display); font-weight: 800; text-decoration: none; font-size: 1.05rem;
  }
  .mobile-bar .mobile-bar-primary { background: var(--red); color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
