/* Shared layout for the three booking-page themes. Each theme file sets the variables. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.55; overflow-wrap: break-word; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; }
.bar > * { min-width: 0; }
/* Text the owner or a customer typed can hold one very long word (a pasted link, a long name). It wraps instead of pushing the page sideways. */
.brand, .eyebrow, .lede, .summary-line, .review blockquote, .review figcaption, .footer-col > *, .strip-item span, .step span { overflow-wrap: anywhere; }
.brand { font-family: var(--display); font-weight: 700; font-size: 24px; }
.call { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; }

.hero-inner { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px; padding-block: 40px 72px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
.lede { margin: 0; max-width: 520px; font-size: 19px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border: 0; border-radius: var(--radius-s); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 18px; text-decoration: none; }
.btn-primary[disabled] { opacity: 0.6; cursor: default; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--control); border-radius: var(--radius-s); background: transparent; color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.hero-photo { flex: 1 1 340px; min-width: 0; }

.section { padding-block: 80px; }
.section > .wrap > h2, .section > h2 { margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.grid > *, .strip-item > div, .step, .footer-col, .hero-row > * { min-width: 0; }
.eyebrow, .footer-col > * { max-width: 100%; }

.pack { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.pack.is-selected { border-color: var(--accent); }
.pack-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pack .from { white-space: nowrap; color: var(--muted); }
.pack .from b { margin-left: 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.pack ul { flex: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.pack li { display: flex; gap: 10px; }
.tick { flex: none; display: inline-flex; margin-top: 4px; color: var(--accent); }

.form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.form-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.group { display: flex; flex-direction: column; gap: 12px; }
.group-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.pills, .pkg-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill, .pkg { min-height: 48px; padding: 0 20px; border: 1px solid var(--control); border-radius: var(--radius-s); background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; }
.pkg { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill[aria-pressed="true"], .pkg[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
/* 240px is what "Afternoon, 12pm to 4pm" needs inside the arrival-window box; in a narrower card the two fields stack. */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--control); border-radius: var(--radius-s); background: var(--field-bg); color: var(--field-ink); font-size: 16px; }
.hint { margin: 0; font-size: 15px; color: var(--muted); }
.code-box summary { padding-block: 10px; font-weight: 600; cursor: pointer; }
.code-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 8px; }
.code-row .field { flex: 1; }

.summary { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--summary-bg); color: var(--summary-ink); }
.summary-label { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--summary-muted); }
.summary-line { font-size: 19px; font-weight: 600; }
.total-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--summary-rule); }
.total { max-width: 100%; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; overflow-wrap: anywhere; }
.rows { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.rows div { display: flex; justify-content: space-between; gap: 16px; }
.rows .strong { font-weight: 700; }
.error { margin: 0; font-size: 15px; font-weight: 600; color: var(--error); }
.summary .btn-primary { width: 100%; }
.preferences label { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.preferences label span { min-width: 0; overflow-wrap: anywhere; } /* a long business name wraps instead of pushing the page sideways */
.preferences input { width: 1.1rem; height: 1.1rem; flex: none; margin: .25rem 0 0; accent-color: var(--accent); }
.preferences .hint { margin-top: .25rem; }
.policy { white-space: pre-line; font-size: .94rem; color: inherit; }
.bar .sms-link { align-self: center; display: inline-flex; align-items: center; min-height: 44px; }
.consent { margin: 0; font-size: 13px; line-height: 1.45; color: var(--summary-muted); }

.confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 640px; }
.confirm > * { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.confirm-box { align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--summary-bg); color: var(--summary-ink); }
.confirm-box .strong { font-weight: 700; }
.confirm p { margin: 0; color: var(--muted); }

.review { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.review blockquote { margin: 0; }
.review figcaption { font-size: 15px; font-weight: 600; color: var(--muted); }

.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; padding-block: 40px 56px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-col .small { font-size: 15px; color: var(--muted); }

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .section { padding-block: 56px; }
  .hero-inner { gap: 28px; padding-block: 16px 48px; }
  .summary { padding: 20px; }
}

/* Demo pages (set by the platform): a banner on every page and a stand-in for the Stripe pay page. */
.demo-banner { background: #14161a; color: #fff; text-align: center; padding: .6rem 1rem; font: 600 .92rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; }
body.demo-pay { margin: 0; background: #f3f4f6; color: #14161a; font: 400 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.demo-pay-card { max-width: 30rem; margin: 2rem auto; padding: 1.5rem; background: #fff; border: 1px solid #d9dce1; border-radius: 12px; }
.demo-pay-card h1 { margin: .25rem 0 .75rem; font-size: 2rem; line-height: 1.15; }
.demo-pay-card p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.demo-tag { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #5b6472; }
.demo-note { padding: .85rem 1rem; background: #fff7d6; border: 1px solid #e3c44a; border-radius: 8px; font-size: .95rem; }
.demo-pay-button { display: block; width: 100%; min-height: 52px; padding: .85rem 1rem; border: 0; border-radius: 10px; background: #14161a; color: #fff; font: 700 1.05rem/1.2 inherit; cursor: pointer; }
.demo-pay-button:focus-visible, .demo-back:focus-visible { outline: 3px solid #1456d8; outline-offset: 3px; }
.demo-back { display: block; margin-top: 1rem; padding: .6rem; text-align: center; color: #14161a; }
@media (max-width: 34rem) { .demo-pay-card { margin: 0; border: 0; border-radius: 0; } }

/* 1.5: privacy and terms links under the footer */
.footer-legal { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid rgba(128,128,128,.35); opacity: .9; }
.footer-legal a { color: inherit; text-decoration: underline; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.preferences .hint a { color: inherit; text-decoration: underline; }

.photo-placeholder{display:grid;place-items:center;min-height:100px;background:#e4e7e8;color:#354148;border-radius:8px;text-align:center}
.photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:18px}
.photo-pair figure{margin:0}.photo-pair img{width:100%;height:auto}
.faq details{border-bottom:1px solid currentColor}.faq summary,.google-rating{min-height:44px;padding-block:10px;cursor:pointer;overflow-wrap:anywhere}
.google-rating{display:inline-flex;align-items:center;color:inherit}.faq p,.reassure{overflow-wrap:anywhere}
.reassure{display:grid;gap:4px;margin-block:12px;font-size:14px;line-height:1.45}
.date-choices{display:flex;flex-wrap:wrap;gap:8px;margin-block:8px}
.date-choices .pill{flex:none;min-height:44px}
.group label:has([data-addon]){display:inline-flex;align-items:center;gap:8px;min-height:44px}
.group:has([data-addon]) br{display:none}.group:has([data-addon]) label{display:flex}
@media(max-width:600px){.hero-photo{flex-basis:auto}.hero-inner .hero-copy{min-width:0}.hero .photo-placeholder{min-height:94px}.hero-photo img,.hero-copy>.photo{max-height:180px;object-fit:cover}.wrap{overflow-wrap:anywhere}
a,button,summary{min-height:44px}.footer-legal a,.consent a,.legal-links a{display:inline-flex;align-items:center}}
@media(max-width:600px){.hint a{display:inline-flex;align-items:center;min-height:44px}}

.gift-nav,.gift-season a { display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;color:inherit;font-weight:650; }
.gift-nav { border:1px solid currentColor;border-radius:var(--radius-s);padding:0 12px;text-decoration:none; }
.gift-season { background:var(--ink);color:var(--ground);text-align:center; }
@media (max-width:600px) {
  .site-header .bar { gap:4px 12px;padding-block:12px; }
  .hero .hero-photo, .hero-copy > .photo-placeholder, .hero-copy > .photo { order:-1; }
  .hero .hero-photo { flex:1 1 100%; }
}
