:root {
  --maroon: #7a1f2b;
  --maroon-dark: #5c1520;
  --saffron: #e8a33d;
  --cream: #fff8ef;
  --paper: #fffdf9;
  --ink: #2b2118;
  --muted: #6f5d4f;
  --line: #ecdcc8;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }

a { color: var(--maroon); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.brand { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 700; color: var(--maroon-dark); text-decoration: none; }
.brand-yyz { color: var(--saffron); letter-spacing: 0.06em; }
.header-nav { display: flex; align-items: center; gap: 1rem; }
.header-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.header-nav a:not(.btn) { color: var(--ink); }
@media (max-width: 560px) { .header-nav a:not(.btn) { display: none; } }

.btn {
  display: inline-block; border: none; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: 0.55rem 1.1rem; border-radius: 999px;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-large { padding: 0.8rem 1.7rem; font-size: 1.05rem; }

/* Hero */
.hero {
  text-align: center; padding: 3.2rem 1rem 2.4rem;
  background: linear-gradient(160deg, #fdf1de 0%, var(--cream) 70%);
}
.hero h1 { font-size: clamp(1.8rem, 5.5vw, 2.9rem); color: var(--maroon-dark); margin: 0 auto 0.8rem; max-width: 22ch; }
.hero-sub { max-width: 56ch; margin: 0 auto 1.4rem; color: var(--muted); font-size: 1.05rem; }
.hero-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.92rem; }

/* Marquee (moves left to right) */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--maroon); color: #ffe9c9;
  padding: 1.15rem 0; border-block: 3px solid var(--saffron);
}
.marquee-track { display: inline-block; animation: marquee-rtl 70s linear infinite; }
.marquee-item { display: inline-block; margin: 0 1.8rem; font-weight: 600; font-size: 1.12rem; }

/* Feedback heading above the reviews marquee */
.feedback { padding: 1.6rem 0 0; text-align: center; }
.feedback-title { color: var(--maroon-dark); font-size: 1.7rem; margin: 0 0 0.25rem; }
.feedback-stars { font-size: 1.5rem; letter-spacing: 0.15em; margin: 0 0 0.15rem; }
.feedback-summary { color: var(--muted); font-size: 1.05rem; font-weight: 600; margin: 0 0 1rem; }

/* Static trust badges under the hero */
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.1rem; }
.badge {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.85rem; font-size: 0.9rem; font-weight: 600; color: var(--maroon-dark);
}
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 2.4rem 1rem 0.6rem; }
.section h2 { color: var(--maroon-dark); font-size: 1.7rem; margin-bottom: 0.3rem; }
.section-sub { color: var(--muted); margin-top: 0; max-width: 70ch; }

/* Menu grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(122, 31, 43, 0.06);
}
.card-media img { width: 100%; height: 230px; object-fit: cover; display: block; }
.card-media-2 img { height: 170px; border-top: 3px solid var(--cream); }
.card-media.placeholder {
  height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  background: repeating-linear-gradient(45deg, #f7e3c3, #f7e3c3 14px, #f3d9ae 14px, #f3d9ae 28px);
  color: var(--maroon-dark); text-align: center; padding: 1rem;
}
.placeholder-initials { font-family: Georgia, serif; font-weight: 700; letter-spacing: 0.04em; opacity: 0.75; }
.placeholder-name { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.placeholder-note { font-size: 0.85rem; color: var(--muted); }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.7rem; }
.card-head h3 { margin: 0; font-size: 1.12rem; color: var(--ink); }
.price {
  flex-shrink: 0; background: #fbeed3; color: var(--maroon-dark);
  border: 1px solid var(--saffron); border-radius: 999px;
  padding: 0.18rem 0.65rem; font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.card-desc { color: #4a3a2d; font-size: 0.94rem; }
.card-desc p { margin: 0 0 0.5rem; }
.card-desc p:last-child { margin-bottom: 0; }
.add-btn {
  margin-top: auto; align-self: flex-start;
  background: #fff; color: var(--maroon); border: 2px solid var(--maroon);
  border-radius: 999px; padding: 0.42rem 1rem; font: inherit; font-weight: 700; cursor: pointer;
}
.add-btn:hover { background: var(--maroon); color: #fff; }
.add-btn.added { background: var(--saffron); border-color: var(--saffron); color: var(--maroon-dark); }

/* How ordering works */
.how-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.how-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.how-card h3 { margin-top: 0.2rem; color: var(--maroon-dark); }
.marketplace-link { margin-top: 1.1rem; }

/* Order form */
.order-section form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; max-width: 640px;
}
.order-section label { font-weight: 700; margin-top: 0.55rem; }
.order-section input, .order-section textarea {
  font: inherit; padding: 0.6rem 0.7rem; border: 1px solid #d9c6a8; border-radius: 9px; background: #fff; width: 100%;
}
.order-section input:focus, .order-section textarea:focus { outline: 2px solid var(--saffron); border-color: var(--saffron); }
.form-error { background: #fdecec; border: 1px solid #e5a3a3; color: #8c1d1d; border-radius: 9px; padding: 0.6rem 0.8rem; }
.order-section .btn { margin-top: 0.9rem; align-self: flex-start; }

/* Footer */
.site-footer { text-align: center; color: var(--muted); padding: 2.4rem 1rem 2.8rem; font-size: 0.95rem; }
.site-footer p { margin: 0.25rem 0; }

/* Thank-you dialog */
.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(43, 25, 10, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100;
}
.dialog-backdrop[hidden] { display: none; }
.dialog { background: #fff; border-radius: var(--radius); max-width: 480px; padding: 1.6rem; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.dialog h3 { color: var(--maroon-dark); margin-top: 0; }
