/**
 * Food Dynasty website styles. Mobile-first: base rules target phones,
 * section 12 adds tablet and desktop layouts.
 */
/* ============ 1. VARIABLES ============ */
:root {
  --yellow: #ffd100;      /* brand yellow (logo crown) */
  --yellow-dark: #e6bc00; /* slightly darker, for hover effects */
  --black: #111111;
  --gray-light: #f6f6f4;  /* soft background for alternating sections */
  --text: #222222;
  --max-width: 1100px;    /* content never gets wider than this on big screens */
}

/* ============ 2. BASE STYLES ============ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;  /* Poppins first; Arial if it fails to load */
  color: var(--text);
  background: white;
  line-height: 1.6;  /* space between lines of text: easier to read */
}

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

h1, h2, h3 {
  line-height: 1.2;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============ 3. TOP INFO BAR ============ */
.top-bar {
  background: var(--yellow);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
}

/* ============ 4. HEADER & NAVIGATION ============ */
.site-header {
  background: var(--black);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  width: 120px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;  /* 4px between rows, 20px between links */
}

.main-nav a {
  color: white;
  text-decoration: none;  /* removes the underline */
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 3px solid transparent;  /* invisible line, shown on hover below */
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* Current page (aria-current) */
.main-nav a[aria-current="page"] {
  color: var(--yellow);
}

/* ============ 5. HERO (the big banner) ============ */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../images/store-front.jpg") center / cover;
  color: white;
  padding: 80px 0;
  text-align: center;
}

/* Keep a phrase on one line, and a line break that only appears on bigger screens */
.nw {
  white-space: nowrap;
}

.br-wide {
  display: none;
}

.hero .eyebrow {
  color: var(--yellow);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 auto 10px;
  /* A soft dark glow behind the letters keeps yellow readable over a bright photo */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ============ 6. BUTTONS ============ */
.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;  /* rounded corners */
  margin: 4px;
  transition: background 0.2s;  /* animates the color change on hover */
}

.button:hover,
.button:focus-visible {
  background: var(--yellow-dark);
}

/* A second style: outlined instead of filled. Used together: class="button button-outline" */
.button-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.button-outline:hover,
.button-outline:focus-visible {
  background: white;
  color: var(--black);
}

/* ============ 7. SECTIONS ============ */
.section {
  padding: 56px 0;
}

/* Alternating gray background so sections are easy to tell apart */
.section-alt {
  background: var(--gray-light);
}

.section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 32px;
}

/* ============ 8. STORE HOURS ============ */
.hours {
  max-width: 420px;
  margin: 0 auto;
  background: white;
  border-top: 6px solid var(--yellow);
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);  /* soft shadow: x y blur color */
}

.hours p {
  display: flex;
  justify-content: space-between;  /* day on the left, time on the right */
  margin: 8px 0;
}

/* ============ 8b. PAYMENT METHODS ============ */
.pay-title {
  text-align: center;
  margin: 32px 0 12px;
}

.pay-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pay-list li {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.pay-note {
  text-align: center;
  font-size: 0.85rem;
  color: #666666;
  margin: 10px 0 0;
}

/* Modifiers for the About page, where everything is left-aligned */
.pay-list-left {
  justify-content: flex-start;
}

.pay-note-left {
  text-align: left;
}

/* ============ 9. DEPARTMENT CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;  /* every photo gets the same shape... */
  object-fit: cover;    /* ...cropped to fill it, without stretching */
}

.card h3 {
  margin: 16px 16px 4px;
}

.card p {
  margin: 0 16px 16px;
}

.card a {
  color: var(--black);
  font-weight: 700;
}

/* ============ 10. CATERING BAND ============ */
.catering {
  background: var(--yellow);
  text-align: center;
}

.catering p {
  font-size: 1.1rem;
}

/* On the yellow background a yellow button would disappear, so make it black */
.catering .button {
  background: var(--black);
  color: white;
}

/* ============ 11. FOOTER ============ */
.site-footer {
  background: var(--black);
  color: #cccccc;
  text-align: center;
  padding: 32px 0;
  font-size: 0.9rem;
}

.site-footer address {
  font-style: normal;  /* <address> is italic by default */
}

.site-footer a {
  color: var(--yellow);
}

/* Instagram / Facebook links: icon + word, side by side, wrapping on tiny screens */
.site-footer .social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}

.site-footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #444444;
  border-radius: 999px;
  padding: 6px 14px;
}

.site-footer .social a:hover,
.site-footer .social a:focus-visible {
  background: var(--yellow);
  color: var(--black);
}

/* ============ 11b. BUFFET MENU PAGE ============ */

.hero-buffet {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../images/hot-food-2.jpg") center / cover;
  background-size: 180%;
}

.menu-note {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.menu-note a {
  color: var(--black);
  font-weight: 700;
  white-space: nowrap;
}

/* Each category box. Similar to .card, but with no photo and a yellow label on top. */
.menu-card {
  background: white;
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 0 0 16px;
  overflow: hidden;
}

.section .menu-card h2 {
  background: var(--yellow);
  font-size: 1.2rem;
  text-transform: uppercase;  /* displays as capitals without retyping the text */
  margin: 0 0 12px;
  padding: 10px;
}

.menu-card ul {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  text-align: center;
}

.menu-card li {
  padding: 6px 0;
  border-bottom: 1px solid #eeeeee;  /* thin divider between dishes */
}

.menu-card li:last-child {
  border-bottom: none;
}

/* ============ 11c. CATERING PAGE ============ */

.hero-catering {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/hot-food.jpg") center / cover;
  background-size: 180%;
}

/* Smooth scrolling when a jump link like href="#pasta" is clicked */
html {
  scroll-behavior: smooth;
}

/* "How to Order" numbered steps */
.steps {
  max-width: 520px;
  margin: 0 auto;
  padding-left: 24px;
  font-size: 1.05rem;
}

.steps li {
  margin-bottom: 10px;
}

.steps a {
  color: var(--black);
  font-weight: 700;
  white-space: nowrap;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  padding: 10px 0;
}

.category-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.category-nav a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border: 1px solid #555555;
  border-radius: 999px;  /* a huge radius makes "pill" shaped buttons */
}

.category-nav a:hover,
.category-nav a:focus-visible {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.menu-section,
#packages {
  scroll-margin-top: 60px;
}

@media (min-width: 768px) {
  .menu-section,
  #packages {
    scroll-margin-top: 110px;
  }
}

/* Less space under headings in menu sections, since a price line follows */
.section.menu-section h2 {
  margin-bottom: 8px;
}

/* "Half tray $50 · Full tray $80" line under each category heading */
.price-line {
  text-align: center;
  font-weight: 700;
  background: var(--yellow);
  display: table;       /* shrinks the yellow box to fit the text... */
  margin: 0 auto 28px;  /* ...so "auto" margins can center it */
  padding: 4px 16px;
  border-radius: 999px;
}

/* PACKAGE CARDS (per-person buffets) */
.package-card {
  background: white;
  border-radius: 10px;
  border-top: 6px solid var(--yellow);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.package-card h3 {
  margin: 0;
}

.package-card .package-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 4px 0 12px;
}

.package-price span {
  font-size: 0.9rem;
  font-weight: 400;
}

.package-card p {
  font-size: 0.95rem;
}

/* Collapsible menu sections */
.info-box {
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
}

.info-box summary {
  font-weight: 700;
  cursor: pointer;  /* hand cursor, so it's obvious you can click it */
}

.section-alt .menu-note {
  margin-top: 24px;
  margin-bottom: 0;
}

/* MENU ITEMS with descriptions: 1 column on phones, 2 on wider screens (section 12) */
.menu-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 40px;
}

.menu-item {
  padding: 12px 0;
  border-bottom: 1px dashed #cccccc;
}

.menu-item h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.menu-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #555555;
}

/* Name on the left, price on the right, on the same line */
.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;  /* lines up the bottoms of the text, not the boxes */
  gap: 12px;
}

.price {
  font-weight: 800;
  white-space: nowrap;
}

.tray-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
  columns: 1;
}

.tray-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #cccccc;
  break-inside: avoid;  /* never split one dish across two columns */
  font-weight: 600;
}

/* Ordering policies: a plain bulleted list, centered with a max width */
.policy-list {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 20px;
}

.policy-list li {
  margin-bottom: 8px;
}

/* The small grey note after a dish name, like "red or white sauce" */
.tray-list span {
  font-weight: 400;
  font-size: 0.85rem;
  color: #666666;
}

/* ============ 11d. DEPARTMENTS PAGE ============ */

.hero-departments {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../images/store-aisles.jpg") center / cover;
}

/* The 4 photo departments, stacked with space between them */
.dept-list {
  display: grid;
  gap: 32px;
}

.dept-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 16px;
}

.dept-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dept-text {
  padding: 20px 24px 24px;
}

.dept-text h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.dept-text a {
  color: var(--black);
  font-weight: 700;
}

/* Cards without photos: a yellow stripe on the left instead */
.dept-card-simple {
  background: white;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.dept-card-simple h3 {
  margin: 0 0 6px;
}

.dept-card-simple p {
  margin: 0;
}

/* ============ 11e. WEEKLY SALES PAGE ============ */

.hero-sales {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/snacks.jpg") center / cover;
}

/* The small grey-ish line under the hero button */
.hero .hero-small {
  font-size: 0.85rem;
  opacity: 0.85;  /* slightly see-through = softer than the main text */
  margin: 8px auto 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.save-card {
  text-align: center;
  background: var(--gray-light);
  border-radius: 12px;
  padding: 28px 20px;
}

.save-card h3 {
  margin: 12px 0 8px;
}

.save-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.4rem;
  font-weight: 800;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--black);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A black version of the button, for light or yellow backgrounds */
.button-dark {
  background: var(--black);
  color: white;
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #333333;
}

.app-section {
  text-align: center;
  max-width: 640px;
}

.sales-band {
  background: var(--black);
  color: white;
  text-align: center;
}

.sales-band p {
  font-size: 1.1rem;
}

.center-button {
  text-align: center;
  margin: 32px 0 0;
}

/* ============ 11f. ABOUT PAGE ============ */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.section .split-text h2 {
  text-align: left;
  margin-bottom: 16px;
}

.split-text h3 {
  margin: 24px 0 4px;
}

.split-text h3:first-child {
  margin-top: 0;
}

.split-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* The .hours card from the homepage is centered; this modifier lines it up left */
.hours-left {
  margin: 0;
}

.phone-link {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
}

/* The Google Map iframe */
.map {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 12px;
}

/* ============ 11g. ONLINE ORDER PAGE ============ */

.hero.hero-short {
  padding: 48px 0;
}

.test-banner {
  background: #fff3cd;
  border-bottom: 2px solid var(--yellow-dark);
  text-align: center;
  padding: 10px 16px;
}

.how-it-works {
  background: var(--gray-light);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 28px;
}

.how-it-works p {
  margin: 6px 0;
}

.how-it-works a {
  color: var(--black);
  font-weight: 700;
  white-space: nowrap;
}

/* Phones: menu, then tray + form, stacked. Computers: side by side (section 12). */
.order-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

/* --- The menu: one <details> box per category --- */
.order-cat {
  border: 1px solid #dddddd;
  border-radius: 10px;
  margin-bottom: 12px;
  background: white;
  overflow: hidden;
}

.order-cat summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 18px;
  background: var(--gray-light);
}

.order-cat[open] summary {
  border-bottom: 3px solid var(--yellow);
}

.order-cat-count {
  font-weight: 400;
  font-size: 0.85rem;
  color: #666666;
}

.order-cat-note {
  margin: 12px 18px 0;
  font-size: 0.9rem;
  color: #555555;
}

.order-items {
  list-style: none;
  margin: 0;
  padding: 4px 18px 10px;
}

.order-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #dddddd;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-info {
  flex: 1 1 200px;  /* grow and shrink, starting at 200px wide */
}

.order-item-name {
  display: block;
  font-weight: 600;
}

.order-item-hint {
  display: block;
  font-size: 0.82rem;
  color: #666666;
}

.order-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
}

.choice-pick span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

.choice-pick select {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  background: white;
}

/* A dropdown that still needs a pick after "Add" was tapped */
.choice-pick select.missing {
  border: 2px solid #c62828;
}

.choice-error {
  grid-column: 1 / -1;   /* spans the whole row of dropdowns */
  margin: 0;
  color: #c62828;
  font-size: 0.85rem;
  font-weight: 600;
}

.tray-line-choices {
  font-size: 0.82rem;
  color: #444444;
  margin-top: 2px;
}

.order-price {
  font-weight: 700;
  white-space: nowrap;
}

.size-select,
.order-form input,
.order-form textarea,
.qty-input,
.line-note {
  font: inherit;  /* form controls don't use the page font by default */
  font-size: 0.95rem;
  padding: 8px 10px;
  border: 1px solid #bbbbbb;
  border-radius: 6px;
  background: white;
  color: var(--text);
}

.add-btn {
  font: inherit;
  font-weight: 700;
  background: var(--yellow);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  min-width: 84px;
}

.add-btn:hover,
.add-btn:focus-visible {
  background: var(--yellow-dark);
}

.add-btn.added {
  background: #2e7d32;
  color: white;
}

/* --- The tray (cart) --- */
.tray,
.order-form,
.order-done {
  background: white;
  border: 2px solid var(--black);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.section .tray h2,
.section .order-form h2,
.section .order-done h2 {
  font-size: 1.3rem;
  text-align: left;
  margin: 0 0 12px;
}

.tray-empty {
  color: #666666;
  margin: 0;
}

.tray-line {
  border-bottom: 1px solid #eeeeee;
  padding: 10px 0;
}

.tray-line-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.tray-line-size {
  font-size: 0.85rem;
  color: #666666;
}

.tray-line-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.qty-btn {
  font: inherit;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border: 1px solid #bbbbbb;
  border-radius: 6px;
  background: var(--gray-light);
  cursor: pointer;
}

.qty-input {
  width: 64px;
  text-align: center;
  padding: 6px 4px;
}

.qty-label {
  font-size: 0.85rem;
  color: #666666;
}

.remove-btn {
  margin-left: auto;  /* pushes the button to the far right of the row */
  font: inherit;
  font-size: 0.85rem;
  background: none;
  border: none;
  color: #b00020;
  text-decoration: underline;
  cursor: pointer;
}

.line-note {
  width: 100%;
  font-size: 0.85rem;
}

.tray-totals {
  margin-top: 12px;
}

.tray-totals p {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  font-size: 1.1rem;
}

.tray-totals .tray-small {
  font-size: 0.85rem;
  color: #555555;
}

/* The total line: a dividing line above it, so it reads as the "answer" */
.tray-totals .tray-grand {
  border-top: 2px solid var(--black);
  padding-top: 6px;
  margin-top: 6px;
}

/* --- The form --- */
.order-form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 4px;
}

.order-form input,
.order-form textarea {
  width: 100%;
}

.optional {
  font-weight: 400;
  color: #777777;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* The checkbox line: box and text side by side */
.order-form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 18px;
}

.order-form .check input {
  width: auto;
  margin-top: 4px;
}

/* Pickup / Delivery choice: two big tappable boxes */
.choice-group {
  border: none;
  padding: 0;
  margin: 18px 0 0;
}

.choice-group legend {
  font-weight: 600;
  margin-bottom: 6px;
}

.order-form .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  border: 2px solid #dddddd;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 0;
  cursor: pointer;
}

.order-form .choice input {
  width: auto;
}

/* Highlight the selected option */
.order-form .choice:has(input:checked) {
  border-color: var(--black);
  background: #fffbe6;
}

.delivery-fields {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 2px 14px 12px;
  margin-top: 10px;
}

.field-note {
  font-size: 0.85rem;
  color: #555555;
  margin: 10px 0 0;
}

/* Red outline on a field with a problem (set by JavaScript with aria-invalid) */
.order-form [aria-invalid="true"] {
  border-color: #b00020;
  outline: 2px solid #b00020;
}

.form-error {
  background: #fdecea;
  color: #b00020;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 14px 0 0;
  font-weight: 600;
}

/* Moves the honeypot far off-screen: invisible to people, still "there" for bots */
.honeypot {
  position: absolute;
  left: -9999px;
}

.button-full {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-full:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* --- Confirmation --- */
.order-summary {
  white-space: pre-wrap;  /* keep the line breaks, but wrap long lines */
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  background: var(--gray-light);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
}

.order-done .button {
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* --- Phone "View tray" bar, stuck to the bottom of the screen --- */
.tray-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--black);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tray-bar strong {
  color: var(--yellow);
}

.has-tray-bar .site-footer {
  padding-bottom: 96px;
}

/* --- PRINTING: only the order summary is printed (for the kitchen) --- */
@media print {
  .top-bar, .site-header, .hero, .test-banner, .how-it-works, .order-menu,
  .tray, .order-form, .tray-bar, .site-footer, .order-done .button {
    display: none !important;
  }

  .order-layout {
    display: block;
  }

  .order-done {
    border: none;
    padding: 0;
  }

  .order-summary {
    background: none;
    font-size: 11pt;
  }
}

/* ============ 11g-2. GROCERY LIST PAGE ============ */

/* Numbered "how it works" steps, in a soft box */
.list-steps {
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 16px 20px 16px 40px;
  background: var(--gray-light);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
}

.list-steps li {
  margin: 4px 0;
}

/* The form is a single centered column on this page */
.grocery-form,
.grocery-done {
  max-width: 640px;
  margin: 0 auto;
}

.section .grocery-form h2 {
  margin-top: 18px;
}

.grocery-form select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 8px 10px;
  border: 1px solid #bbbbbb;
  border-radius: 6px;
  background: white;
}

.grocery-form .field-note a {
  color: var(--black);
  font-weight: 700;
}

/* ============ 11h. STORE PERKS ============ */

/* Two-column grid (stacked on phones; 2 columns from 600px, see section 12) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.perk-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.perk-list li {
  padding: 4px 0;
  font-weight: 600;
}

/* ============ 11i. SMOOTH ANIMATIONS ============ */

.button,
.card,
.save-card,
.dept-card,
.dept-card-simple,
.menu-card,
.package-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s;
}

.button:hover {
  transform: translateY(-2px);   /* moves up 2px */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.card:hover,
.save-card:hover,
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Starting point: invisible and 24px lower */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* End point: fully visible, in place */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@view-transition {
  navigation: auto;
}

.top-bar {
  view-transition-name: top-bar;
}

.site-header {
  view-transition-name: site-header;
}

::view-transition-old(root) {
  animation: page-fade-out 0.2s ease both;
}

::view-transition-new(root) {
  animation: page-fade-in 0.35s ease both;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@supports not (view-transition-name: none) {
  main {
    animation: page-fade-in 0.35s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover,
  .card:hover,
  .save-card:hover,
  .package-card:hover {
    transform: none;
  }

  /* No page-to-page animation either */
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  main {
    animation: none !important;
  }
}

/* ============ 11j. HOLIDAY MENUS + UPLOADED FLYERS ============ */
[data-theme] {
  --hol-dark: #111111;
  --hol-main: #333333;
  --hol-accent: var(--yellow);
  --hol-soft: var(--gray-light);
  --hol-icon: "★";
}

[data-theme="thanksgiving"] {
  --hol-dark: #4a1a0e;   /* roasted brown */
  --hol-main: #8f3418;   /* cranberry rust, like the printed ad */
  --hol-accent: #f2a93b; /* pumpkin gold */
  --hol-soft: #fdf3e7;
  --hol-icon: "🍂";
}

[data-theme="christmas"] {
  --hol-dark: #0c3324;
  --hol-main: #14532d;
  --hol-accent: #f6c344;
  --hol-soft: #f1f8f2;
  --hol-icon: "❄";
}

[data-theme="easter"] {
  --hol-dark: #3d2a6b;
  --hol-main: #6d4bb3;
  --hol-accent: #ffd86b;
  --hol-soft: #f7f2fc;
  --hol-icon: "🌷";
}

[data-theme="summer"] {
  --hol-dark: #10285e;
  --hol-main: #1f4fae;
  --hol-accent: var(--yellow);
  --hol-soft: #eef4fc;
  --hol-icon: "☀";
}

/* The holiday link in the menu (added by js/flyers.js while a holiday menu is up) */
.main-nav a.nav-holiday {
  color: #f2a93b;
}

.main-nav a.nav-holiday[aria-current="page"] {
  color: var(--yellow);
}

/* --- Holiday page hero: the holiday's colors instead of the store photo --- */
.holiday-hero {
  position: relative;
  overflow: hidden;   /* the falling decorations stay inside the banner */
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(160deg, var(--hol-main), var(--hol-dark));
}

.holiday-hero .container {
  position: relative;   /* sits on top of the decorations */
}

.holiday-hero .eyebrow {
  color: var(--hol-accent);
}

.holiday-hero .button {
  background: var(--hol-accent);
}

.holiday-hero .button:hover,
.holiday-hero .button:focus-visible {
  background: white;
}

.holiday-hero .button-outline {
  background: transparent;
}

.holiday-loading #holiday-title {
  visibility: hidden;
}

/* --- Falling decorations: 7 icons drifting down, each at its own spot and speed --- */
.holiday-decor span {
  position: absolute;
  top: -40px;
  font-size: 1.6rem;
  opacity: 0.55;
  animation: holiday-fall 14s linear infinite;
}

.holiday-decor span::before {
  content: var(--hol-icon);
}

.holiday-decor span:nth-child(1) { left: 4%;  animation-delay: 0s;   font-size: 1.3rem; }
.holiday-decor span:nth-child(2) { left: 18%; animation-delay: -6s;  animation-duration: 17s; }
.holiday-decor span:nth-child(3) { left: 32%; animation-delay: -11s; font-size: 1.1rem; }
.holiday-decor span:nth-child(4) { left: 68%; animation-delay: -3s;  animation-duration: 16s; }
.holiday-decor span:nth-child(5) { left: 80%; animation-delay: -9s;  font-size: 2rem; }
.holiday-decor span:nth-child(6) { left: 92%; animation-delay: -1s;  animation-duration: 19s; }
.holiday-decor span:nth-child(7) { left: 55%; animation-delay: -13s; font-size: 1.2rem; }

@keyframes holiday-fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(24px, 120px) rotate(60deg); }
  50%  { transform: translate(-12px, 240px) rotate(140deg); }
  75%  { transform: translate(20px, 360px) rotate(220deg); }
  100% { transform: translate(0, 520px) rotate(300deg); }
}

/* Visitors who turned on "Reduce motion": no falling, just a few still icons */
@media (prefers-reduced-motion: reduce) {
  .holiday-decor span {
    animation: none;
    top: 20px;
  }
}

/* The holiday page uses the soft holiday color behind the menu */
.holiday-body #holiday-page {
  background: var(--hol-soft);
}

.holiday-body .save-number {
  background: var(--hol-accent);
}

.holiday-none {
  text-align: center;
  max-width: 640px;
}

/* --- Flyer pages (holiday menu and weekly ad): big pictures, one under the other --- */
.flyer-pages {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.flyer-page {
  display: block;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.flyer-page:hover,
.flyer-page:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.flyer-page img {
  display: block;
  width: 100%;
}

.flyer-dates {
  text-align: center;
  font-weight: 700;
  margin: -16px 0 24px;
}

.flyer-hint {
  text-align: center;
  color: #666666;
  font-size: 0.9rem;
  margin: 16px 0 0;
}

/* --- Homepage "This Week's Deals": the headline offers staff type in the app --- */
/* 1 card per row on phones, 2 side by side on bigger screens (section 12) */
.headline-deals {
  list-style: none;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 900px;
  display: grid;
  gap: 14px;
}

/* Each deal: a white card on the black band */
.deal-card {
  display: flex;
  align-items: stretch;
  background: white;
  color: var(--black);
  border-radius: 12px;
  overflow: hidden;   /* keeps the yellow tag inside the rounded corners */
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.deal-pictures {
  align-items: center;
}

.deal-picture {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s;
}

.deal-picture:hover,
.deal-picture:focus-visible {
  transform: translateY(-4px);
}

.deal-picture img {
  display: block;
  width: 100%;
}

/* The big yellow FREE tag on the left, like a sale sticker on the shelf */
.deal-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--yellow);
  padding: 0 18px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.deal-text {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.holiday-feature {
  position: relative;
  overflow: hidden;   /* the falling decorations stay inside */
  color: white;
  padding: 48px 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(150deg, var(--hol-main), var(--hol-dark));
}

.holiday-feature-inner {
  position: relative;   /* on top of the decorations */
  display: grid;
  gap: 32px;
  align-items: center;
}

.holiday-feature-text {
  text-align: center;
}

.holiday-feature .eyebrow {
  color: var(--hol-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.holiday-feature h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
}

/* The note ("Order by Monday, Nov 23"): the same outlined box as on the holiday page */
.holiday-feature .holiday-note,
.holiday-hero .holiday-note {
  display: inline-block;
  max-width: 560px;
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid var(--hol-accent);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  margin: 0 0 18px;
}

/* The dinners and their prices, like a small menu board */
.holiday-prices {
  list-style: none;
  margin: 0 auto 22px;
  padding: 0;
  max-width: 420px;
  text-align: left;
}

.holiday-prices li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
  font-weight: 600;
}

.holiday-prices strong {
  color: var(--hol-accent);
  font-size: 1.35rem;
  font-weight: 800;
}

.holiday-feature .button {
  background: var(--hol-accent);
}

.holiday-feature .button:hover,
.holiday-feature .button:focus-visible {
  background: white;
}

.holiday-feature .button-outline {
  background: transparent;
}

/* The menu picture, tilted a little like a flyer on a table; straightens on hover */
.holiday-feature-flyer {
  display: block;
  max-width: 280px;
  margin: 0 auto;
  transform: rotate(2deg);
  transition: transform 0.25s;
}

.holiday-feature-flyer img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 6px solid white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.holiday-feature-flyer:hover,
.holiday-feature-flyer:focus-visible {
  transform: rotate(0deg) scale(1.02);
}

/* ============ 12. BIGGER SCREENS ============ */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);  /* same as "1fr 1fr" */
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.five {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Order page: menu (wider) | tray + form (narrower) */
  .order-layout {
    grid-template-columns: 3fr 2fr;
  }

  /* The tray column follows you down the page while you scroll the menu */
  .order-side {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);  /* never taller than the screen... */
    overflow-y: auto;                 /* ...scroll inside it if it is */
  }

  /* No need for the phone bar when the tray is always visible */
  .tray-bar {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .logo {
    width: 160px;
  }

  .hero {
    padding: 140px 0;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero .eyebrow {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  .br-wide {
    display: inline;
  }

  .hero-buffet,
  .hero-catering {
    background-size: cover;  /* undo the phone zoom from sections 11b and 11c */
  }

  .menu-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .tray-list {
    columns: 2;
    column-gap: 40px;
  }

  /* About page: text | photo (or map) in two equal columns */
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .map {
    height: 100%;
    min-height: 420px;
  }

  .dept-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .dept-card img {
    height: 100%;  /* fill the full height of the card */
  }

  .dept-card.reverse img {
    order: 2;
  }

  .dept-text {
    padding: 32px 40px;
  }

  /* On bigger screens all the jump links fit, so let them wrap and center */
  .category-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Holiday feature on the homepage (11j): text on the left, menu picture on the right */
@media (min-width: 768px) {
  .holiday-feature {
    padding: 64px 0;
  }

  .holiday-feature-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .holiday-feature-text {
    text-align: left;
  }

  .holiday-feature h2 {
    font-size: 2.8rem;
  }

  .holiday-prices {
    margin-left: 0;
  }

  .holiday-feature-flyer {
    max-width: 380px;
  }
}

/* Homepage weekly deals (11j): two cards side by side when there's room */
@media (min-width: 768px) {
  .headline-deals {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}
