/* ORIZON Child Health — structural base shared by all designs.
   Colours and type come from each design's tokens: --bg --surface --fg --muted --line --accent
   --accent-fg --danger --danger-bg --focus --radius --font-body --font-display */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }
section[id], [id] { scroll-margin-top: calc(var(--header-h, 72px) + 12px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 6px; transform: translateY(-160%); transition: transform .15s; text-decoration: none; font-weight: 600; }
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-xs { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* Placeholder marker for unsupplied facts */
.tbc { display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1.3; padding: .2em .6em; border: 1.5px dashed currentColor; border-radius: 4px; opacity: .8; font-family: var(--font-body); white-space: nowrap; }
.tbc::before { content: "TBC"; font-size: .7em; letter-spacing: .08em; padding: .1em .35em; background: currentColor; border-radius: 2px; color: var(--bg); }

/* ---------- FAQ accordion (structure) ---------- */
.faq-q { font: inherit; }
.faq-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.faq-icon { transition: transform .2s ease; }
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

/* ---------- Contact list (structure) ---------- */
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.contact-list li > .icon { margin-top: 2px; }
.contact-list li > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 600; }
.contact-sub { font-size: .9rem; opacity: .85; display: inline-flex; gap: .3em; align-items: center; }

/* ---------- Enquiry form (structure + accessible states) ---------- */
.enquiry-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; align-content: start; }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field-label { font-weight: 600; font-size: .95rem; padding: 0; }
.optional { font-weight: 400; opacity: .75; }
.field-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius-input, 8px); background: var(--input-bg, var(--surface)); color: var(--fg); font-size: 1rem; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
textarea.field-input { min-height: 96px; resize: vertical; }
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring, color-mix(in srgb, var(--accent) 25%, transparent)); }
.field-input::placeholder { color: var(--muted); opacity: .8; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .7; }
.field-hint { font-size: .85rem; color: var(--muted); }
.field-error { font-size: .88rem; font-weight: 600; color: var(--danger); display: flex; gap: 6px; }
.has-error .field-input { border-color: var(--danger); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius-choice, 999px); font-size: .95rem; background: var(--input-bg, var(--surface)); transition: background .15s, border-color .15s, color .15s; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp-field input { width: 1px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-actions { display: grid; gap: 12px; justify-items: start; }
.form-note, .form-privacy { font-size: .85rem; color: var(--muted); }
.form-note a, .form-privacy a { color: inherit; }
.form-errors { border: 2px solid var(--danger); background: var(--danger-bg); color: var(--fg); padding: 14px 16px; border-radius: 8px; }
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.form-errors a { color: var(--danger); font-weight: 600; }
.form-context { font-size: .92rem; font-weight: 600; color: var(--accent-text, var(--accent)); }
.form-status { padding: 14px 16px; border-radius: 8px; border: 1.5px solid var(--line); display: grid; gap: 6px; font-size: .95rem; }
.form-status.is-info { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.form-status.is-success { border-color: #2f7a46; background: color-mix(in srgb, #2f7a46 10%, var(--surface)); }
.form-status.is-error { border-color: var(--danger); background: var(--danger-bg); }
[data-submit][aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Preview bar (comparison only; not part of the final site) ---------- */
.preview-bar { position: fixed; z-index: 900; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; background: rgba(17, 24, 39, .92); color: #fff; border-radius: 999px; font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.preview-bar a { color: #fff; text-decoration: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; padding: 0 8px; }
.preview-bar a:hover { background: rgba(255,255,255,.14); }
.preview-bar a[aria-current="page"] { background: #fff; color: #111827; }
.preview-bar .pb-home { padding: 0 10px 0 2px; }
.preview-bar .pb-label { opacity: .65; padding: 0 4px 0 2px; font-weight: 500; }
.preview-bar .pb-sep { width: 1px; height: 18px; background: rgba(255,255,255,.25); margin: 0 4px; }
.preview-bar .pb-hide { background: none; border: 0; color: #fff; opacity: .7; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; }
.preview-bar .pb-hide:hover { opacity: 1; background: rgba(255,255,255,.14); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Footer lists and placeholders */
footer ul, nav ul { list-style: none; margin: 0; padding: 0; }
.tbc { justify-self: start; align-self: start; }
.footer-brand { align-content: start; }
.form-errors p { color: var(--fg); }
