/* Shared design system. Colors and fonts are applied from config. */
:root {
  --primary: #1B3A2F;
  --primary-ink: #fff;
  --accent: #C4A35A;
  --accent-ink: #1B3A2F;
  --bg: #F6F1E7;
  --surface: #fffdf8;
  --text: #17211C;
  --muted: #5C675F;
  --line: #E0D8C8;
  --success: #1F6B4A;
  --danger: #8B2E2E;
  --shadow: 0 16px 40px rgba(23, 33, 28, .08);
  --radius: 18px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg);
  color: var(--text);
  font: 1.05rem/1.55 var(--font-body);
}
img { max-width: 100%; display: block; }
h1, h2, h3, .eyebrow { font-family: var(--font-heading); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
p { margin: .4rem 0 0; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.skip { position: absolute; left: .75rem; top: -3rem; background: var(--primary); color: var(--primary-ink); padding: .5rem .8rem; border-radius: 8px; z-index: 20; }
.skip:focus { top: .75rem; }
.draft-banner { background: var(--primary); color: var(--primary-ink); text-align: center; font-size: .88rem; letter-spacing: .02em; padding: .45rem 1rem; }
.demos-back { background: #10263A; color: #fffdf8; text-align: center; font-size: .88rem; padding: .4rem 1rem; }
.demos-back a { color: #fffdf8; font-weight: 650; }
.site-header { padding: 1.5rem 1.25rem .5rem; }
.header-inner, .layout, .site-footer, .owner-bar, .request-inner { max-width: 1100px; margin: 0 auto; }
.header-inner { display: flex; gap: 1rem; align-items: center; }
.logo { width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0; box-shadow: var(--shadow); background: var(--primary); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.tagline, .lede, .muted, .item-desc, .item-meta, .hours-note, .footer-note { color: var(--muted); }
.layout { padding: 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .layout.split { grid-template-columns: 1.35fr .9fr; align-items: start; }
  .summary-wrap { position: sticky; top: 1rem; }
}
.panel, .summary-card, .request-inner, .result, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem 1.4rem;
}
.lede { margin-bottom: 1.1rem; }
.item-card, .service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin: .8rem 0;
  background: color-mix(in srgb, var(--surface) 80%, var(--bg));
  color: inherit;
  text-align: left;
  width: 100%;
}
.item-head, .item-row, .summary-line, .summary-total { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.item-name { font-weight: 700; }
.item-desc, .item-meta { font-size: .95rem; margin-top: .2rem; }
.price-pill { white-space: nowrap; background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: .25rem .7rem; font-size: .9rem; font-weight: 600; }
.badge { display: inline-block; margin: .4rem .3rem 0 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .15rem .5rem; }
.badge.posted { border-color: color-mix(in srgb, var(--success) 50%, var(--line)); color: var(--success); }
.badge.placeholder { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: .8rem; background: var(--surface); }
.qty button { width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.qty button:hover, .day:hover:not(:disabled), .service-card:hover, .slot:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); }
.qty input { width: 3rem; border: 0; text-align: center; background: transparent; color: var(--text); }
.options { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.options label, .toggle-row, .mod-row {
  display: flex; align-items: flex-start; gap: .5rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .75rem;
  cursor: pointer; background: var(--surface);
}
.options input, .toggle-row input, .mod-row input { margin-top: .2rem; accent-color: var(--primary); }
.options label:has(input:checked), .toggle-row:has(input:checked), .mod-row:has(input:checked),
.service-card.selected, .slot.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
}
.toggle-row, .mod-row { border-radius: 14px; margin: .5rem 0; padding: .8rem 1rem; }
.summary-line, .summary-total { padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.summary-total { border: 0; margin-top: .4rem; font: 650 1.2rem var(--font-heading); }
.discount { color: var(--success); }
.placeholder-note { font-size: .9rem; color: var(--muted); margin-top: .7rem; }
.empty { color: var(--muted); font-style: italic; }
.summary-actions, .form-actions, .lookup, .links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: end; }
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 999px; padding: .7rem 1.05rem;
  border: 1px solid transparent; cursor: pointer; font-weight: 600; min-height: 2.8rem; color: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-secondary { background: transparent; border-color: var(--line); }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 80%, #fff); outline-offset: 2px;
}
.status { font-size: .9rem; color: var(--success); margin-top: .5rem; }
.status.error, .error-text, .req { color: var(--danger); }
.request-section { padding: 0 1.25rem 3rem; }
.form-grid { display: grid; gap: .85rem; margin-top: 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
input, select, textarea { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: var(--surface); color: var(--text); width: 100%; }
textarea { min-height: 6rem; resize: vertical; }
.error-text { font-size: .85rem; font-weight: 500; }
.result pre { overflow: auto; background: var(--bg); border-radius: 12px; padding: .9rem; font-size: .85rem; border: 1px solid var(--line); }
.site-footer { padding: 0 1.25rem 2.5rem; color: var(--muted); font-size: .92rem; }
.credit { margin-top: .8rem; font-size: .82rem; }
.services { display: grid; gap: .75rem; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
.service-card { margin: 0; cursor: pointer; }
.service-card:disabled, .slot:disabled, .day:disabled { opacity: .45; cursor: not-allowed; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .4rem 0 .7rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.cal-grid .dow, .cal-grid .day { text-align: center; font-size: .85rem; padding: .45rem 0; }
.cal-grid .dow { color: var(--muted); font-weight: 600; }
.day { border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; min-height: 2.4rem; }
.day.selected { background: var(--primary); color: var(--primary-ink); }
.day.today:not(.selected) { border-color: var(--accent); }
.slots { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.slot { border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.owner-bar { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; align-items: center; padding: 0 1.25rem; margin-bottom: 1rem; }
.bookings-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bookings-table th, .bookings-table td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.step-num { display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--primary); color: var(--primary-ink); align-items: center; justify-content: center; font-size: .8rem; margin-right: .4rem; }
.lookup { align-items: end; }
.lookup .field { flex: 1 1 16rem; }
.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: .65rem; margin: 1rem 0 .4rem; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); background: color-mix(in srgb, var(--surface) 70%, var(--bg)); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); color: var(--muted); position: relative; }
.stamp.filled { border-style: solid; border-color: var(--primary); background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 16px color-mix(in srgb, var(--primary) 25%, transparent); transform: rotate(-8deg); }
.stamp.filled::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 80%, #fff); }
.reward-banner { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); border: 1px solid var(--accent); }
.tabs { display: flex; gap: .4rem; margin: 1.1rem 0 .8rem; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.history-item { border-top: 1px solid var(--line); padding: .8rem 0; }
.history-item:first-child { border-top: 0; }
.staff-box { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.phone-display { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; background: var(--primary); color: var(--primary-ink); border-radius: 12px; padding: .7rem 1rem; box-shadow: var(--shadow); max-width: 22rem; }
.toast.error { background: var(--danger); }
@media print {
  .draft-banner, .demos-back, .summary-actions, .request-section, .skip, .credit, .owner-bar, .toast { display: none !important; }
  body { background: #fff; }
  .panel, .summary-card { box-shadow: none; }
  .layout { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
