/* Good Eats - Part 1 styles (layout + menu) */
:root {
  --board: #141414;
  --board-2: #1d1d1c;
  --yellow: #ffc72c;
  --chalk: #f6f2e8;
  --muted: #b9b4a6;
  --ink: #1b1405;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.05), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,.04), transparent 50%),
    var(--board);
  color: var(--chalk);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 20px;
  background: rgba(20,20,20,.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--yellow);
}
.brand img { height: 52px; width: auto; border-radius: 6px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 1.05rem; letter-spacing: .04em; color: var(--chalk); }
.nav a:hover { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 2px solid var(--yellow); cursor: pointer;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd65c; }
.btn-outline { background: transparent; color: var(--yellow); }
.btn-outline:hover { background: rgba(255,199,44,.12); }

/* ---------- Brush labels (the yellow paint strokes from the menus) ---------- */
.brush {
  display: inline-block;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1;
  padding: 10px 34px 10px 22px;
  transform: rotate(-1.5deg);
  clip-path: polygon(0 12%, 4% 0, 96% 6%, 100% 40%, 97% 100%, 6% 94%, 1% 70%);
}
.brush-lg { font-size: clamp(2rem, 6vw, 3.2rem); padding: 14px 46px 14px 30px; }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px; margin: 0 auto; padding: 36px 20px 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.hero-logo { width: min(520px, 90%); height: auto; }
.hero-note { font-family: var(--font-hand); font-size: 1.7rem; font-weight: 600; color: var(--yellow); line-height: 1.2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-address { color: var(--muted); letter-spacing: .03em; }

/* ---------- Menu ---------- */
.menu { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; display: grid; gap: 28px; }

.menu-block {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  background: var(--board-2);
  border: 1px solid rgba(246,242,232,.14);
  border-radius: 10px; padding: 26px;
}
.menu-block.flip .photo { order: -1; }

.menu-text .brush { margin-bottom: 16px; }
.menu-text .brush + .items + .brush { margin-top: 26px; }
.sub { font-family: var(--font-hand); font-size: 1.6rem; font-weight: 600; color: var(--yellow); margin: -4px 0 8px; }

.items { list-style: none; }
.items li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 1.25rem; }
.dots { flex: 1; border-bottom: 2px dotted rgba(246,242,232,.35); transform: translateY(-5px); min-width: 16px; }
.price { color: var(--yellow); font-weight: 600; }

.add {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  background: transparent; color: var(--yellow);
  border: 1.5px solid var(--yellow); border-radius: 4px;
  padding: 2px 12px; cursor: pointer; margin-left: 6px;
}
.add:hover { background: var(--yellow); color: var(--ink); }
.add.sold-out, .add:disabled { opacity: .45; cursor: not-allowed; border-color: #888; color: #bbb; background: transparent; }
.add.sold-out:hover, .add:disabled:hover { background: transparent; color: #bbb; }

/* Food photos. The dark box shows while a photo is missing. */
.photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; background: #262625;
}

/* ---------- Order section (Part 2 fills this) ---------- */
.order { max-width: 760px; margin: 0 auto; padding: 24px 20px 56px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  background: var(--yellow); color: var(--ink);
  padding: 16px 20px; font-weight: 600; font-size: 1.1rem; text-align: center;
}
.site-footer a { text-decoration: none; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-block { grid-template-columns: 1fr; padding: 20px; }
  .menu-block.flip .photo { order: 0; }
  .items li { font-size: 1.15rem; }
}

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

/* ---------- Part 2: order summary and form ---------- */
.order .brush { margin-bottom: 18px; }
.cart-empty { color: var(--muted); font-size: 1.15rem; margin-bottom: 20px; }
.cart-items { list-style: none; margin-bottom: 8px; }
.cart-items li {
  display: grid; grid-template-columns: 1fr auto 70px; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px dotted rgba(246,242,232,.3); font-size: 1.15rem;
}
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button {
  width: 30px; height: 30px; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--yellow); border: 1.5px solid var(--yellow);
  font-size: 1.2rem; line-height: 1; font-family: var(--font-head);
}
.qty button:hover { background: var(--yellow); color: var(--ink); }
.cart-line { text-align: right; color: var(--yellow); font-weight: 600; }
.cart-total { text-align: right; font-size: 1.5rem; margin: 10px 0 26px; }
.cart-total strong { color: var(--yellow); }

.order-form { display: grid; gap: 16px; background: var(--board-2); border: 1px solid rgba(246,242,232,.14); border-radius: 10px; padding: 24px; }
.order-form [hidden], .cart-empty[hidden], .cart-total[hidden] { display: none; }
.field { display: grid; gap: 6px; border: 0; }
.field span, .field legend { font-size: 1.05rem; color: var(--muted); }
.order-form input[type="text"], .order-form input[type="tel"], .order-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px;
  background: #101010; color: var(--chalk);
  border: 1.5px solid rgba(246,242,232,.3);
  font-family: var(--font-head); font-size: 1.1rem;
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--yellow); outline: none; box-shadow: 0 0 0 3px rgba(255,199,44,.3); }
.choice { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choice legend { width: 100%; margin-bottom: 6px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; cursor: pointer; }
.choice input { accent-color: var(--yellow); width: 18px; height: 18px; }
#delivery-fields { display: grid; gap: 12px; }
#locate-btn { justify-self: start; }
.btn-block { width: 100%; font-size: 1.2rem; padding: 14px; }
.btn:disabled { opacity: .6; cursor: wait; }
.status { min-height: 1.4em; font-size: 1.05rem; color: var(--muted); }
.status.ok { color: #7ddf8a; }
.status.error { color: #ff8a7a; }

/* ---------- Part 4: upgrades ---------- */
[hidden] { display: none !important; }

.cart-totals { margin: 10px 0 26px; text-align: right; font-size: 1.15rem; }
.cart-totals p { display: flex; justify-content: flex-end; gap: 24px; padding: 2px 0; color: var(--muted); }
.cart-totals .grand { font-size: 1.5rem; color: var(--chalk); }
.cart-totals .grand strong { color: var(--yellow); }

.thanks {
  background: var(--board-2); border: 2px solid var(--yellow); border-radius: 10px;
  padding: 28px 24px; text-align: center; display: grid; gap: 14px; justify-items: center;
}
.thanks h3 { font-size: 2rem; color: var(--yellow); font-weight: 600; }
.thanks-summary {
  white-space: pre-wrap; text-align: left; font-family: var(--font-head); font-size: 1.05rem;
  background: #101010; border-radius: 6px; padding: 14px 16px; width: 100%; color: var(--chalk);
}

.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: none; justify-content: space-between; align-items: center;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  padding: 14px 18px; border-radius: 8px; font-weight: 600; font-size: 1.15rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
@media (max-width: 820px) {
  .cart-bar:not([hidden]) { display: flex; }
  .site-footer { padding-bottom: 84px; }
}

/* A menu card with no photo yet becomes a single column */
.menu-block:has(.photo[hidden]) { grid-template-columns: 1fr; }

/* ---------- Part 5: video hero, ticker, specials, steps, find us, scroll effects ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); z-index: 40; }
.site-header { transition: padding .25s ease, box-shadow .25s ease; }
.site-header.scrolled { padding-top: 4px; padding-bottom: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.site-header.scrolled .brand img { height: 42px; }
.brand img { transition: height .25s ease; }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a.active { color: var(--yellow); border-bottom-color: var(--yellow); }

.hero.hero-video { position: relative; max-width: none; min-height: min(86vh, 760px); padding: 0; overflow: hidden; justify-content: center; isolation: isolate; }
.promo-video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; z-index: -2; opacity: .6; will-change: transform; }
.hero.hero-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(20,20,20,.55), rgba(20,20,20,.15) 40%, rgba(20,20,20,.9)); }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 20px 56px; max-width: 900px; }
.hero-video .hero-logo { filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.hero-video .hero-address { color: var(--chalk); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.video-toggle { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-family: var(--font-head); font-size: .95rem; background: rgba(20,20,20,.75); color: var(--chalk); border: 1.5px solid rgba(246,242,232,.5); }
.video-toggle:hover { border-color: var(--yellow); color: var(--yellow); }

.ticker { overflow: hidden; background: var(--yellow); color: var(--ink); border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-weight: 600; font-size: 1.25rem; padding: 10px 0; white-space: nowrap; display: inline-flex; align-items: center; }
.ticker span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin: 0 28px; }
@keyframes tick { to { transform: translateX(-50%); } }

.specials, .steps, .visit { max-width: 1000px; margin: 0 auto; padding: 44px 20px 8px; }
.specials .brush, .steps .brush, .visit .brush { margin-bottom: 22px; }
.special-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.special { background: var(--board-2); border: 1px solid rgba(246,242,232,.14); border-radius: 10px; padding: 20px 18px; display: grid; gap: 4px; align-content: start; transition: border-color .2s ease; }
.special:hover { border-color: var(--yellow); }
.special-price { font-size: 2.4rem; font-weight: 600; color: var(--yellow); line-height: 1; }
.special h3 { font-size: 1.3rem; font-weight: 500; }
.special p:not(.special-price) { color: var(--muted); font-size: 1.05rem; }
.special .add { justify-self: start; margin: 10px 0 0; padding: 4px 16px; font-size: 1rem; }

.step-list { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-list li { counter-increment: s; display: grid; gap: 6px; border-top: 3px solid var(--yellow); padding-top: 14px; }
.step-list li::before { content: counter(s); font-family: var(--font-hand); font-size: 2.6rem; font-weight: 700; color: var(--yellow); line-height: 1; }
.step-list strong { font-size: 1.35rem; font-weight: 500; }
.step-list span { color: var(--muted); font-size: 1.1rem; }

.visit { padding-bottom: 56px; }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.visit-info { display: grid; gap: 16px; align-content: start; justify-items: start; }
.visit-address { font-size: 1.8rem; font-weight: 500; line-height: 1.25; }
.visit-hours { color: var(--muted); font-size: 1.15rem; }
.visit-info .sub { margin: 10px 0 -6px; }
.map { width: 100%; min-height: 320px; border: 2px solid var(--yellow); border-radius: 10px; background: #262625; filter: grayscale(.35) contrast(1.05); }

/* Scroll reveal: content only hides when JavaScript is running */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; row-gap: 4px; }
  .nav { display: flex; order: 3; width: 100%; gap: 20px; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  html { scroll-padding-top: 120px; }
  .hero.hero-video { min-height: 78vh; }
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list, .visit-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .promo-video { transform: none !important; }
}

/* ---------- Part 6: category pages ---------- */
.nav { gap: 18px; }
.nav a { font-size: 1rem; }
.nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }

.categories { padding-top: 36px; }
.categories .brush { justify-self: start; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: grid; align-content: start; background: var(--board-2); border: 1px solid rgba(246,242,232,.14); border-radius: 10px; overflow: hidden; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.cat-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.cat-card .photo { border-radius: 0; }
.cat-card-body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 18px; }
.cat-name { font-size: 1.6rem; font-weight: 600; }
.from { color: var(--yellow); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }

.cat-main { max-width: 1000px; margin: 0 auto; padding: 20px 0 40px; }
.cat-main .menu { padding-bottom: 20px; }
.cat-back { display: inline-block; padding: 0 20px 14px; color: var(--muted); text-decoration: none; font-size: 1.1rem; }
.cat-back:hover { color: var(--yellow); }
.cat-more { padding: 24px 20px 0; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cat-pills .btn { padding: 6px 16px; font-size: 1rem; }
.cat-page .cart-bar:not([hidden]) { display: flex; max-width: 520px; margin: 0 auto; }
.cat-page .site-footer { padding-bottom: 84px; }

@media (max-width: 820px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card-body { flex-direction: column; gap: 2px; padding: 14px; }
  .cat-name { font-size: 1.35rem; }
}


/* ---------- Launch polish: touch targets, small phones, 404 ---------- */
.notfound { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 64px 20px 80px; min-height: 60vh; justify-content: center; }
.nf-title { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 600; line-height: 1.1; }
.nf-title + .sub { margin: 0; }

/* Bigger tap targets on touch screens (44px is the usual minimum) */
@media (pointer: coarse) {
  .add { min-height: 40px; min-width: 64px; padding: 6px 16px; }
  .qty button { width: 40px; height: 40px; }
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav a { padding: 8px 0; }
  html { scroll-padding-top: 124px; }
  .cat-pills .btn { min-height: 42px; }
  .site-header .btn { padding: 8px 16px; }
}

/* Very small phones: let long item names wrap instead of squeezing the price */
@media (max-width: 400px) {
  .items li { align-items: center; gap: 10px; }
  .items li .name { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
  .items li .dots { display: none; }
  .items li .price, .items li .add { flex: none; }
  .items li .add { margin-left: 0; }
  .special-grid { gap: 12px; }
  .special { padding: 16px 14px; }
  .special-price { font-size: 2rem; }
  .cart-items li { grid-template-columns: 1fr auto; }
  .cart-items li .cart-line { grid-column: 2; text-align: right; }
  .brand img { height: 40px; }
}

/* iPhone notch / home bar safe areas */
.cart-bar { bottom: max(12px, env(safe-area-inset-bottom)); }

/* Keep the Add button the same width when it says "Added" so prices do not jump */
.items .add { min-width: 76px; text-align: center; }


/* ---------- Owner, team and reviews ---------- */
.owner, .team, .reviews { max-width: 1000px; margin: 0 auto; padding: 44px 20px 8px; }
.owner .brush, .team .brush, .reviews .brush { margin-bottom: 22px; }
.reviews { padding-bottom: 20px; }

/* Round photo. If the photo file is missing it hides itself and the chef hat shows. */
.avatar { position: relative; width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none;
  background: #262625 url("images/icons/icon-192.png") center / 58% no-repeat; border: 3px solid var(--yellow); }
.avatar .photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; background: none; }
.avatar-lg { width: 200px; }

.owner-card { display: flex; gap: 30px; align-items: center; background: var(--board-2); border: 1px solid rgba(246,242,232,.14); border-radius: 10px; padding: 26px; }
.owner-text { display: grid; gap: 8px; }
.owner-text h3 { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.role { color: var(--yellow); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; }
.owner-text p:not(.role):not(.sub) { font-size: 1.2rem; color: var(--chalk); max-width: 56ch; }
.owner-text .sub { margin: 4px 0 0; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.staff-card { display: grid; justify-items: center; gap: 4px; text-align: center; background: var(--board-2); border: 1px solid rgba(246,242,232,.14); border-radius: 10px; padding: 22px 14px; }
.staff-card .avatar { margin-bottom: 10px; }
.staff-card h3 { font-size: 1.4rem; font-weight: 500; }

.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { display: flex; flex-direction: column; gap: 12px; background: var(--board-2); border: 1px solid rgba(246,242,232,.14); border-radius: 10px; padding: 22px 20px; }
.stars { color: var(--yellow); font-size: 1.4rem; letter-spacing: .12em; line-height: 1; }
.review blockquote { font-size: 1.2rem; line-height: 1.45; flex: 1; }
.review figcaption { display: grid; gap: 2px; border-top: 1px dotted rgba(246,242,232,.3); padding-top: 10px; }
.review figcaption strong { font-weight: 500; font-size: 1.1rem; }
.review figcaption span { color: var(--muted); font-size: 1rem; }
.review-cta { margin-top: 24px; }

/* Yellow EDIT ME badge on anything still holding placeholder text. Remove the word "placeholder" from the class to switch it off. */
.placeholder { position: relative; outline: 2px dashed var(--yellow); outline-offset: -2px; }
.placeholder::before { content: "EDIT ME"; position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: .75rem; letter-spacing: .08em; padding: 2px 8px; border-radius: 3px; }

@media (max-width: 820px) {
  .owner-card { flex-direction: column; text-align: center; padding: 22px 18px; }
  .owner-text { justify-items: center; }
  .avatar-lg { width: 160px; }
  /* Reviews swipe sideways on phones */
  .review-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .review { scroll-snap-align: start; }
}
@media (max-width: 400px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } .staff-card { padding: 16px 8px; } .avatar { width: 96px; } }
@media (max-width: 400px) { .staff-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Cart page (cart.html) */
.cart-page { grid-template-columns: 1fr; margin: 0 20px; }
.cart-page .cart-items li .cart-remove { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.cart-page .cart-items li .cart-remove:hover { color: var(--yellow); }
.cart-note { font-size: 1rem; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.cart-page .cart-items li { grid-template-columns: 1fr auto 70px auto; }
@media (max-width: 560px) {
  .cart-page .cart-items li { grid-template-columns: auto 1fr auto; }
  .cart-page .cart-items li .cart-name { grid-column: 1 / -1; }
  .cart-page .cart-items li .cart-line { grid-column: 2; }
}
/* Order page: the form sits inside the card, so no second box */
.order-page .order-form { margin-top: 22px; background: none; border: 0; padding: 0; }
.order-page .thanks { margin-top: 10px; }
