/* The Ton bookings: public UI. Tokens and components mirror theton.co.za. */
:root {
  --cream: #F0E8E0; --cream-2: #F8F2EC; --maroon: #5A1F2B; --maroon-2: #4A1822;
  --ink: #1A1210; --gold: #B08D57; --gold-light: #CDB07E; --gold-deep: #7A5C2E;
  --line: #E3D6C9; --muted: #6B5B55; --danger: #9B2C2C; --ok: #2F6B4F;
  --gutter: 20px; --header-h: 72px;
}
@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; --header-h: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; font-family: 'Jost', system-ui, sans-serif; font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, .font-serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; margin: 0; font-variant-numeric: lining-nums tabular-nums; }
p { margin: 0; }
.h1 { font-size: 44px; line-height: 1.06; letter-spacing: -0.01em; }
.h2 { font-size: 34px; line-height: 1.12; }
.h3 { font-size: 26px; line-height: 1.18; }
.h4 { font-size: 22px; line-height: 1.25; }
@media (min-width: 1024px) { .h1 { font-size: 64px; } .h2 { font-size: 44px; } .h3 { font-size: 32px; } }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.body { color: var(--muted); }
.small { font-size: 15px; line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); line-height: 1.5; }
.accent { font-style: italic; color: var(--gold); }

.wrap { width: 100%; max-width: calc(1600px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.wrap.wrap-md { max-width: calc(1240px + 2 * var(--gutter)); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
.section { padding-block: 56px; }
@media (min-width: 1024px) { .section { padding-block: 88px; } }
.on-dark { color: var(--cream); background: var(--maroon); }
.on-dark .eyebrow { color: var(--gold-light); }
.on-dark .body, .on-dark .small { color: rgba(240,232,224,.78); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(240,232,224,.92); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 20px; width: auto; }
.navlink { display: inline-flex; align-items: center; height: 44px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; text-decoration: none; color: var(--ink); }
.navlink:hover { color: var(--maroon); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 34px; min-height: 52px; border-radius: 999px; border: 1px solid transparent; font: 500 13px/1 'Jost', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; text-align: center; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, opacity .25s; }
.btn-primary { background: var(--maroon); color: var(--cream); }
.btn-primary:hover { background: var(--maroon-2); }
.btn-gold { background: var(--gold); color: var(--maroon-2); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--cream); }
.btn-sm { padding: 11px 24px; min-height: 42px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover { color: var(--maroon); }
.link-arrow:hover::after { transform: translateX(4px); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: 999px; }

/* Chips & cards */
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 1.2; text-decoration: none; }
a.chip:hover { border-color: var(--gold); color: var(--maroon); }
.card { background: var(--cream-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
@media (min-width: 768px) { .card { padding: 36px; } }

/* Service menu */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.menu-cat { margin-top: 56px; }
.menu-cat h2 { margin-bottom: 8px; }
.price-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-row:first-child { border-top: 1px solid var(--line); }
.price-row .info { flex: 1; min-width: 0; }
.price-row .name { font-size: 17px; color: var(--ink); line-height: 1.35; }
.price-row .meta { font-size: 14px; color: var(--muted); }
.price-row .price { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--maroon); white-space: nowrap; }
@media (max-width: 639px) { .price-row { flex-wrap: wrap; } .price-row .btn { width: 100%; } }

/* Booking layout */
.book-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .book-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } .summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.step { padding: 28px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--gold); line-height: 1; }
.step[hidden] { display: none; }

.opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream-2); cursor: pointer; transition: border-color .2s, background .2s; }
.opt + .opt { margin-top: 10px; }
.opt:hover { border-color: var(--gold-light); }
.opt:has(input:checked) { border-color: var(--maroon); background: #fff; }
.opt input[type=checkbox], .opt input[type=radio] { margin-top: 5px; accent-color: var(--maroon); width: 18px; height: 18px; flex: none; }
.opt .t { flex: 1; }
.opt .t strong { font-weight: 500; display: block; line-height: 1.35; }
.opt .t span { font-size: 14px; color: var(--muted); }
.opt .p { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--maroon); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 2px; margin-top: 8px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--maroon); }
.qty button:hover { background: var(--cream); }
.qty output { min-width: 28px; text-align: center; font-weight: 500; }

/* Calendar + slots */
.cal { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head .month { font-family: 'Cormorant Garamond', serif; font-size: 26px; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream-2); cursor: pointer; font-size: 18px; color: var(--maroon); }
.cal-nav:hover:not(:disabled) { border-color: var(--maroon); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal-day { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 1px solid transparent; background: transparent; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); }
.cal-day:disabled { color: #bfb2a8; cursor: default; text-decoration: line-through; text-decoration-color: rgba(191,178,168,.5); }
.cal-day.has-slots { background: var(--cream-2); border-color: var(--line); font-weight: 500; }
.cal-day.has-slots:hover { border-color: var(--maroon); }
.cal-day.is-selected { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.cal-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px var(--gold); }
.cal-blank { visibility: hidden; }
.slots { margin-top: 22px; }
.slots h4 { margin-bottom: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.slot { padding: 11px 0; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 15px 'Jost', sans-serif; cursor: pointer; color: var(--ink); }
.slot:hover { border-color: var(--maroon); }
.slot.is-selected { background: var(--maroon); border-color: var(--maroon); color: var(--cream); }
.loading, .empty { padding: 18px 0; color: var(--muted); font-size: 15px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; font-size: 17px; color: var(--ink); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 14px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--maroon); flex: none; }

.notice { border-radius: 14px; padding: 16px 20px; font-size: 15px; line-height: 1.55; border: 1px solid var(--line); background: var(--cream-2); }
.notice.warn { background: #fbf1e0; border-color: var(--gold-light); color: #5b4420; }
.notice.error { background: #f8e6e6; border-color: #e5b5b5; color: var(--danger); }
.notice.ok { background: #e7f1ea; border-color: #b9d6c4; color: var(--ok); }
.notice[hidden] { display: none; }

/* Summary */
.summary { border-radius: 18px; padding: 28px; background: var(--maroon); color: var(--cream); }
.summary h3 { color: var(--cream); margin-bottom: 4px; }
.summary .eyebrow { color: var(--gold-light); }
.summary dl { margin: 22px 0 0; display: grid; gap: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(240,232,224,.16); font-size: 15px; }
.summary dt { color: rgba(240,232,224,.7); }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--gold-light); }
.summary .btn { width: 100%; margin-top: 22px; }
.summary .policy { margin-top: 18px; font-size: 13px; line-height: 1.55; color: rgba(240,232,224,.72); }
.mobile-total { display: none; }

/* Footer */
.site-footer { margin-top: 24px; }
.site-footer .wrap { display: grid; gap: 24px; padding-block: 56px; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: var(--cream); }
.site-footer img { height: 18px; width: auto; }

.confirm-ref { display: inline-block; font-family: 'Cormorant Garamond', serif; font-size: 40px; letter-spacing: 6px; color: var(--maroon); border: 1px dashed var(--gold); border-radius: 14px; padding: 6px 24px; background: var(--cream-2); }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; }
.stack > * + * { margin-top: 20px; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.price-row .price, .opt .p, .summary .total, .confirm-ref, .cal-head .month, .step-num { font-variant-numeric: lining-nums; }
.summary .total.is-text { font-size: 22px; }
.book-grid > *, .grid > * { min-width: 0; }

/* Category cards (landing): same 1 / 2 / 5 column grid as the website */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 64px; } }
a.cat-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: border-color .3s, box-shadow .3s, transform .3s; }
a.cat-card:hover { border-color: var(--gold-light); box-shadow: 0 24px 48px -32px rgba(74,24,34,.45); transform: translateY(-2px); }
.cat-card .media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.cat-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cat-card:hover .media img { transform: scale(1.05); }
.cat-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-card .body p { flex: 1; }
.cat-card .count { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep); }

/* Category page */
.cat-hero { padding-block: 40px 8px; }
.back::before { content: "←"; }
.back::after { content: none; }
.menu-card { padding: 8px 28px; margin-top: 8px; }
@media (min-width: 768px) { .menu-card { padding: 12px 44px; } }
.menu-card .price-row:first-child { border-top: 0; }
.menu-card .price-row:last-child { border-bottom: 0; }

/* Category page: clean full-width list, two columns on large screens */
.menu-cols .price-row:first-child { border-top: 0; }
@media (min-width: 1024px) {
  .menu-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; padding: 12px 56px; }
  .menu-cols .price-row:nth-child(2) { border-top: 0; }
  .menu-cols .price-row:nth-last-child(-n+2) { border-bottom: 0; }
}
.cat-other { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
