/* Website builder widgets (SITE_BUILDER §4). Scoped to .bo-site so the same styles serve the storefront and the
   portal preview. Colours come from the storefront tokens (BRAND §3) with the same fallbacks; themes (W3) replace
   them with compiled tokens. Booking actions keep --bo-action. */
.bo-site {
  --w-brand: var(--bo-brand, #0B3C5D);
  --w-action: var(--bo-action, #00703C);
  --w-action-shadow: var(--bo-action-shadow, #002D18);
  --w-text: var(--bo-text, #0B0B0B);
  --w-muted: var(--bo-text-secondary, #505A5F);
  --w-border: var(--bo-border, #B1B4B6);
  --w-surface-alt: var(--bo-surface-alt, #F3F2F1);
  --w-focus: var(--bo-focus, #FFD23F);
  --w-link: var(--bo-link, #1D70B8);
  color: var(--w-text);
  font-family: var(--bo-font, "Atkinson Hyperlegible Next", Arial, sans-serif);
  line-height: 1.5;
}

.bo-site .bo-w-section { padding-inline: 1.25rem; }
.bo-site .bo-w-space-small { padding-block: 1rem; }
.bo-site .bo-w-space-medium { padding-block: 2rem; }
.bo-site .bo-w-space-large { padding-block: 3.5rem; }
.bo-site .bo-w-bg-light { background: var(--w-surface-alt); }
.bo-site .bo-w-bg-brand { background: var(--w-brand); color: #fff; }
.bo-site .bo-w-bg-dark { background: #0B0B0B; color: #fff; }
.bo-site .bo-w-bg-brand a:not(.bo-w-button), .bo-site .bo-w-bg-dark a:not(.bo-w-button) { color: #fff; }

.bo-site .bo-w-inner { margin-inline: auto; }
.bo-site .bo-w-width-narrow { max-width: 44rem; }
.bo-site .bo-w-width-content { max-width: 1200px; }
.bo-site .bo-w-width-wide { max-width: 1440px; }

.bo-site .bo-w-columns { display: grid; gap: 1.5rem; }
.bo-site .bo-w-gap-small { gap: 0.75rem; }
.bo-site .bo-w-gap-large { gap: 2.5rem; }
.bo-site .bo-w-cols-1-1 { grid-template-columns: 1fr 1fr; }
.bo-site .bo-w-cols-1-2 { grid-template-columns: 1fr 2fr; }
.bo-site .bo-w-cols-2-1 { grid-template-columns: 2fr 1fr; }
.bo-site .bo-w-cols-1-1-1 { grid-template-columns: repeat(3, 1fr); }
.bo-site .bo-w-cols-1-1-1-1 { grid-template-columns: repeat(4, 1fr); }
.bo-site .bo-w-column > :first-child { margin-top: 0; }
@media (max-width: 1024px) { .bo-site .bo-w-stack-tablet { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bo-site .bo-w-columns { grid-template-columns: 1fr; } }

.bo-site .bo-w-heading { margin: 0 0 0.75rem; line-height: 1.2; }
.bo-site h1.bo-w-heading { font-size: clamp(2rem, 4vw, 3rem); }
.bo-site h2.bo-w-heading { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.bo-site h3.bo-w-heading { font-size: 1.5rem; }
.bo-site h4.bo-w-heading { font-size: 1.2rem; }
.bo-site .bo-w-align-center { text-align: center; }
.bo-site .bo-w-align-end { text-align: right; }

.bo-site .bo-w-text { font-size: 1.125rem; max-width: 70ch; }
.bo-site .bo-w-text.bo-w-align-center { margin-inline: auto; }
.bo-site .bo-w-text.bo-w-align-end { margin-left: auto; }
.bo-site .bo-w-text p, .bo-site .bo-w-text ul, .bo-site .bo-w-text ol { margin: 0 0 1rem; }
.bo-site .bo-w-text h2 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
.bo-site .bo-w-text h3 { font-size: 1.25rem; margin: 1.25rem 0 0.5rem; }
.bo-site .bo-w-text a { color: var(--w-link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.bo-site .bo-w-image { margin: 0 0 1rem; }
.bo-site .bo-w-image img { display: block; width: 100%; height: auto; }
.bo-site .bo-w-ratio-16-9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.bo-site .bo-w-ratio-21-9 img { aspect-ratio: 21 / 9; object-fit: cover; }
.bo-site .bo-w-ratio-4-3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.bo-site .bo-w-ratio-1-1 img { aspect-ratio: 1 / 1; object-fit: cover; }
.bo-site .bo-w-ratio-2-3 img { aspect-ratio: 2 / 3; object-fit: cover; }
.bo-site .bo-w-image figcaption { margin-top: 0.5rem; color: var(--w-muted); font-size: 0.95rem; }

.bo-site .bo-w-button-row { margin: 0 0 1rem; }
.bo-site .bo-w-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.25rem;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.bo-site .bo-w-button-primary { background: var(--w-action); color: #fff; box-shadow: 0 2px 0 var(--w-action-shadow); }
.bo-site .bo-w-button-secondary { background: #fff; color: var(--w-brand); border-color: currentColor; }
.bo-site .bo-w-button:focus-visible { outline: 3px solid var(--w-focus); outline-offset: 0; box-shadow: inset 0 0 0 2px #0B0B0B; }

.bo-site .bo-w-spacer-small { height: 1rem; }
.bo-site .bo-w-spacer-medium { height: 2.5rem; }
.bo-site .bo-w-spacer-large { height: 5rem; }
.bo-site .bo-w-divider { border: 0; border-top: 1px solid var(--w-border); margin: 1.5rem 0; }

/* Editor preview only */
.bo-site .bo-w-selected { outline: 2px solid #1D70B8; outline-offset: 2px; }
.bo-site .bo-w-placeholder { padding: 1rem; border: 2px dashed var(--w-border); color: var(--w-muted); margin-bottom: 1rem; }

/* Preview links (website only, outside .bo-site) */
.bo-preview-banner { background: #FFD23F; color: #0B0B0B; padding: 0.75rem 1.25rem; border-bottom: 2px solid #0B0B0B; }
