:root {
  /* From urbansolacecatering.com */
  --purple: #8979b7;
  --purple-dark: #6d5e9c;
  --gold: #f4c973;
  --gold-hover: #efbb52;
  --ink: #403a2c;
  --text: #5f5b4e;
  /* From the Holiday Menu */
  --linen: #e9e7e3;
  --linen-light: #f4f3f0;
  --berry: #a44b50;
  --menu-gold: #b89a63;
  --menu-gold-dark: #8c7040;
  --line: #d8d3c8;
  --white: #fff;
  --sans: "Montserrat", Arial, sans-serif;
  --caps: "Marcellus", Georgia, serif;
  --script: "Alex Brush", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120,110,90,.05) 0 1px, transparent 1px 4px);
  border-top: 8px solid var(--purple);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-dark); }
h1, h2, h3, p { margin: 0; }
small { font-weight: 500; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 20; }

/* Header, matching the main site */
.site-header { background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo img { width: 190px; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a {
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--purple-dark); }

/* Buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 0;
  padding: 12px 22px;
  font: 800 14px/1.2 var(--sans);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-purple { background: var(--purple-dark); color: var(--white); }
.btn-purple:hover { background: #5b4e87; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-block { display: block; width: 100%; padding: 16px; font-size: 15px; }

/* Hero, modeled on the Holiday Menu cover */
.hero { padding: 62px 24px 20px; }
.hero-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 62px 24px 26px;
  border: 1px solid var(--menu-gold);
  text-align: center;
}
.holly { pointer-events: none; }
.holly-top { position: absolute; top: -48px; left: 50%; width: 200px; transform: translateX(-50%); }
.hero h1 { font-weight: 400; }
.script { font-family: var(--script); font-weight: 400; color: var(--berry); line-height: 1.05; }
.hero .script { display: block; font-size: clamp(54px, 9vw, 88px); }
.caps { display: block; font-family: var(--caps); font-size: clamp(20px, 3vw, 30px); letter-spacing: .14em; text-transform: uppercase; color: var(--menu-gold-dark); margin-top: 6px; }
.hero-price { margin-top: 12px; font-family: var(--caps); font-size: clamp(24px, 4vw, 34px); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); }
.hero-sub { margin-top: 2px; color: var(--text); }

.photo-strip { height: 170px; background-size: cover; background-position: center; border-top: 4px solid var(--gold); }
.photo-strip-short { height: 130px; }

/* Layout */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 24px; padding-bottom: 56px; }

.guests-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--white); padding: 24px 28px; border-bottom: 4px solid var(--gold);
}
.guests-box h2 { font: 400 24px/1.2 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--berry); margin-bottom: 4px; }
.guests-box p { font-size: 14px; }
.stepper { display: flex; flex: none; }
.stepper button {
  width: 46px; height: 50px; border: 1px solid var(--line); background: var(--linen-light);
  font: 600 22px/1 var(--sans); color: var(--ink); cursor: pointer;
}
.stepper button:hover { background: var(--linen); }
.stepper input {
  width: 76px; height: 50px; border: 1px solid var(--line); border-width: 1px 0;
  border-radius: 0; text-align: center; font: 700 20px var(--sans); color: var(--ink); background: var(--white);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Menu sheet: one grouped list with bubbles */
.menu-sheet { margin-top: 24px; background: var(--white); padding: 8px 28px 24px; }
.menu-group { padding: 24px 0 20px; border-bottom: 1px solid var(--line); }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.group-head h2 { font: 400 23px/1.2 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--berry); }
.group-head h2 span { font-size: 17px; }
.group-count { font-size: 13px; font-weight: 700; white-space: nowrap; }
.group-count.is-done { color: #3f7a4b; }
.group-count.is-done::before { content: "\2713\00a0"; }
.group-note { margin: 6px 0 0 34px; font-size: 13px; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }

.row { display: flex; align-items: center; gap: 20px; padding: 6px 0; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; margin-left: -4px; cursor: pointer; }
.row-main input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bubble {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--menu-gold); background: var(--white);
  transition: background-color .12s, border-color .12s;
}
.row-main:hover .bubble { border-color: var(--berry); }
.row-main input:focus-visible + .bubble { outline: 3px solid var(--purple); outline-offset: 2px; }
.row-main input:checked + .bubble { border-color: var(--berry); background: var(--berry); box-shadow: inset 0 0 0 4px var(--white); }
.is-locked .row-main { cursor: not-allowed; }
.is-locked .bubble, .is-locked .row-main:hover .bubble { border-color: var(--line); background: var(--linen-light); }

.thumb { flex: none; width: 80px; height: 60px; background: var(--linen-light); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.no-photo img { display: none; }
.thumb.no-photo { background: var(--linen-light) url("../images/art/holly.png") center / 70% no-repeat; }

.row-text { min-width: 0; }
.row-name { display: block; font: 400 16px/1.3 var(--caps); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.row-desc { display: block; font-size: 13px; line-height: 1.4; }
.row-tags { color: var(--berry); font-weight: 700; white-space: nowrap; }
.row-tags abbr { text-decoration: none; }
.is-picked .row-name { color: var(--berry); }

.row-extra { flex: none; width: 150px; font-size: 12px; line-height: 1.35; }
.extra-choice { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--purple-dark); cursor: pointer; }
.extra-choice input { width: 15px; height: 15px; margin: 0; accent-color: var(--purple-dark); }
.extra-price { display: block; margin: 1px 0 0 21px; }
.extra-included { font-weight: 700; color: var(--berry); }
.extra-off .row-extra { visibility: hidden; }
.price-blank { white-space: nowrap; }

.tag-key { margin-top: 12px; font-size: 13px; }
.tag-key + .tag-key { margin-top: 2px; font-size: 12px; }

/* Order summary */
.summary {
  position: sticky; top: 16px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--white); padding: 24px; border-top: 4px solid var(--gold);
}
.summary > h2, .panel h2 { font: 400 40px/1.1 var(--script); color: var(--berry); margin-bottom: 14px; }
.summary-group { padding: 8px 0; border-bottom: 1px solid var(--linen); }
.summary-group h3 { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.summary-group h3 span { color: var(--berry); }
.summary-group h3 span.ok { color: #3f7a4b; }
.summary-group ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; line-height: 1.4; }
.summary-group li { margin-top: 2px; }
.summary-group li.extra-line { color: var(--purple-dark); }
.summary-group li.extra-line span { white-space: nowrap; font-weight: 700; }
.summary-money { margin-top: 14px; }
.money-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--ink); }
.money-row small { color: var(--text); }
.money-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 800; }
.fine { font-size: 12px; margin-top: 6px; }
.center { text-align: center; }
.summary .btn { margin-top: 16px; }
.form-error { margin-top: 12px; padding: 8px 10px; background: #f8e9e9; color: #8a3236; font-size: 13px; font-weight: 600; }

.order-bar { display: none; }

/* Confirm page */
.confirm-wrap { padding-top: 40px; padding-bottom: 64px; }
.confirm-title { text-align: center; margin-bottom: 28px; }
.confirm-title .holly { width: 190px; margin: 0 auto 6px; }
.confirm-title h1 { font-size: clamp(48px, 8vw, 76px); }
.confirm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.panel { background: var(--white); padding: 28px; border-top: 4px solid var(--gold); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.edit-link { font-size: 13px; font-weight: 700; }
.order-guests { font-family: var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--berry); }
.order-group { padding: 12px 0; border-bottom: 1px solid var(--linen); }
.order-group h3 { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.order-group ul { list-style: none; margin: 4px 0 0; padding: 0; }
.order-group li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 2px 0; }
.order-group li.extra { color: var(--purple-dark); }
.order-group em { font-style: normal; font-size: 12px; }
.line-note { flex: none; font-size: 12px; font-weight: 600; }

form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
form label small { color: var(--text); }
form input, form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 0; background: var(--white);
  font: 500 15px var(--sans); color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .btn { margin-top: 14px; }
.preview-note { margin-top: 12px; padding: 10px 12px; background: #efecf6; color: var(--purple-dark); font-size: 13px; font-weight: 600; }
.preview-banner { max-width: 760px; margin: 0 auto 20px; text-align: center; }
.empty-note { max-width: 520px; margin: 0 auto; padding: 32px; background: var(--white); text-align: center; }
.empty-note .btn { margin-top: 16px; }

/* Delivery calendar */
.slot-picker { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.slot-picker legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; color: var(--ink); }
.cal-nav { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--white); font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-week { font-size: 11px; font-weight: 700; padding: 4px 0; }
.cal-day { height: 40px; border: 1px solid var(--menu-gold); background: var(--white); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.cal-day:hover:not(:disabled) { background: #fbf3e0; }
.cal-day:disabled { border-color: transparent; background: transparent; color: #a9a597; text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-selected { background: var(--berry); border-color: var(--berry); color: var(--white); }
.windows-title { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
form label.window-choice { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 6px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.window-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.window-choice input:checked + .bubble { border-color: var(--berry); background: var(--berry); box-shadow: inset 0 0 0 4px var(--white); }
.window-choice input:focus-visible + .bubble { outline: 3px solid var(--purple); outline-offset: 2px; }
form label.window-choice.is-full { color: #a9a597; cursor: not-allowed; }
.window-choice.is-full .bubble { border-color: var(--line); background: var(--linen-light); }
.trap { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.done-note { max-width: 560px; margin: 0 auto; text-align: center; }
.done-number { font: 400 24px/1.3 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--berry); }
.done-note dl { margin: 16px 0; }
.done-note dt { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--ink); }
.done-note dd { margin: 0 0 10px; }

/* Admin */
.admin-logo { width: 130px; }
.admin-wrap { padding-top: 24px; padding-bottom: 56px; }
.admin-title { font-size: 56px; margin-bottom: 12px; }
.admin-login { max-width: 380px; }
.admin-status { min-height: 24px; margin-bottom: 12px; font-weight: 700; color: var(--ink); }
#admin .panel { margin-bottom: 24px; }
form label.check-line, label.check-line { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.check-line input { width: 16px; height: 16px; margin: 0; accent-color: var(--purple-dark); }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.window-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.window-row > input { flex: 1; min-width: 0; margin: 0; padding: 9px 12px; border: 1px solid var(--line); font: 500 14px var(--sans); color: var(--ink); }
.window-row .check-line { margin: 0; white-space: nowrap; }
.window-row .btn { margin: 0; padding: 10px 14px; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
.slots, .orders { width: 100%; border-collapse: collapse; font-size: 13px; }
.slots th, .slots td, .orders th, .orders td { padding: 8px; border-bottom: 1px solid var(--linen); text-align: left; vertical-align: top; }
.slots thead th, .orders thead th { font-size: 12px; color: var(--ink); white-space: nowrap; }
.slots tbody th { white-space: nowrap; color: var(--ink); }
.slot { min-width: 124px; }
.slot-count { display: block; font-weight: 700; color: var(--ink); }
.slot label { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12px; font-weight: 500; }
.slot-max { width: 58px; padding: 3px 6px; border: 1px solid var(--line); font: 500 13px var(--sans); }
.slot.is-full .slot-count { color: var(--berry); }
.slot.is-blocked { background: #f8e9e9; }
.day-blocked { background: #f8e9e9; }
.day-blocked .slot { opacity: .5; }
.order-cancelled { opacity: .55; }
.orders td:nth-child(1) { white-space: nowrap; }
.orders td:nth-child(3) { min-width: 200px; }
.orders td:nth-child(4) { min-width: 300px; }
.orders .btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.warn { color: var(--berry); font-weight: 700; }

/* Footer */
.site-footer { background: var(--white); border-top: 4px solid var(--purple); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.footer-inner img { width: 150px; }
.copyright { font-size: 12px; }

@media (max-width: 1020px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .summary { position: static; max-height: none; }
  .confirm-layout { grid-template-columns: minmax(0, 1fr); }
  .order-bar {
    display: block; position: sticky; bottom: 0; z-index: 10;
    background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  }
  .bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
  .bar-inner strong { display: block; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.2; }
  .bar-inner span { font-size: 12px; }
  .bar-error { padding: 6px 16px; background: #f8e9e9; color: #8a3236; font-size: 13px; font-weight: 600; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 11px; }
  .site-header nav a:nth-child(2) { display: none; }
  .logo img { width: 140px; }
  .hero { padding: 52px 16px 16px; }
  .hero-frame { padding: 52px 12px 20px; }
  .holly-top { width: 160px; top: -38px; }
  .photo-strip { height: 90px; }
  .order-layout { padding-top: 16px; }
  .guests-box { padding: 16px; }
  .guests-box h2 { font-size: 19px; }
  .menu-sheet { padding: 0 16px 20px; margin-top: 16px; }
  .group-head { flex-direction: column; gap: 0; }
  .row { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0; }
  .thumb { width: 64px; height: 48px; }
  .row-extra { width: auto; margin-left: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .extra-price { margin: 0; }
  .extra-off .row-extra { display: none; }
  .group-note { margin-left: 0; }
  .panel { padding: 20px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .admin-title { font-size: 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
