/* Needs Brief premium theme (A + B mix): deep aubergine bands, brand gradient line, plum actions, antique gold accents.
   Loaded after style.css; the Profile Brief keeps its own light theme. */
:root {
  --night: #241B2A; --night-2: #3A2C42; --night-line: #4A3D52; --on-night: #F6F1EA; --on-night-2: #CFC4D6; --on-night-3: #BFB2C8;
  --gold: #C9A45C; --gold-light: #E8CF94; --gold-ink: #8A6A2F; --gold-line: #E8D9B5;
  --foil: linear-gradient(135deg, #F3E2B3, #D4AF6A 55%, #B8904A);
  --plum-btn: linear-gradient(135deg, #A42B60, #7A1E46);
  --ink: #1E1822; --ink-2: #3E3446; --muted: #6A5E72; --line: #E5DACB;
  --bg: #F6F1EA; --surface: #FFFDF9; --brand-wash: #F8EEF2; --brand-line: #E9CFDB;
  --serif: "Fraunces", Georgia, serif;
  --shadow: 0 1px 2px #241b2a0a, 0 10px 30px #241b2a12;
  --radius: 16px;
}
body { background: var(--bg); color: var(--ink); }

/* Top bar: dark, logo in white, brand gradient line, gold edge */
.topbar { position: static; background: var(--night); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar::before { height: 4px; }
.topbar .logo img { filter: brightness(0) invert(1); }
.topbar .product { color: var(--gold-light); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; border-left: 1px solid var(--night-line); padding-left: 14px; }
.topbar .nav a { color: var(--on-night-2); }
.topbar .nav a:hover { background: var(--night-2); color: #fff; }
.topbar .nav a[aria-current=page] { background: transparent; color: #fff; box-shadow: inset 0 -2px 0 var(--gold-light); border-radius: 0; }

/* Dark band: stepper and page heads continue the header full width */
.stepper, .page-head.band { background: var(--night); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax); }
.stepper { margin: 0; padding: 18px 0 8px; color: var(--on-night-2); }
.stepper .steps li { color: var(--on-night-3); }
.stepper .steps li .dot { background: transparent; border-color: var(--night-line); color: var(--on-night-3); }
.stepper .steps li[aria-current=step] { color: #fff; }
.stepper .steps li[aria-current=step] .dot { background: transparent; border: 2px solid var(--gold); color: var(--gold-light); box-shadow: none; }
.stepper .steps li.done { color: var(--on-night-2); }
.stepper .steps li.done .dot { background: var(--brand); border-color: var(--brand); }
.stepper .step-compact, .stepper .step-compact strong { color: var(--on-night); }
.stepper .progress { background: var(--night-2); }
.stepper .progress i { background: linear-gradient(90deg, var(--brand), var(--gold)); }
.page-head.band { color: var(--on-night); padding: 18px 0 62px; border-bottom: 1px solid var(--gold); }
.page-head.band h1 { color: #fff; font-weight: 500; }
.page-head.band p, .page-head.band .req-id { color: var(--on-night-3); }
.page-head.band a { color: var(--gold-light); }
.page-head.band + * { position: relative; margin-top: -34px; }
.band-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.band-chip { font-size: .8rem; padding: 6px 12px; border: 1px solid var(--night-line); border-radius: 99px; color: #E6DDEA; }
.band-chip.dash { border-style: dashed; color: var(--on-night-2); }
.band-chip.focus { background: var(--night-2); border-color: var(--night-2); color: var(--gold-light); }
.turn-badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 8px 16px; border-radius: 99px; background: var(--foil); color: var(--night); box-shadow: 0 2px 10px #c9a45c59; margin-top: 14px; }

/* Type */
h1, h2, .sec-head h2, .success h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.eyebrow { color: var(--gold-ink); }
.hero .eyebrow { background: transparent; border: 1px solid var(--gold-line); }

/* Cards */
.card { background: var(--surface); border-color: var(--line); }
.form-card, .quote-card, .download-card { border-top: 4px solid var(--gold); }
.quote-card { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.req-card { border-color: var(--gold-line); }
.disclaimer-box { background: #FBF5EA; border-color: var(--gold-line); }

/* Buttons */
.btn-primary { background: var(--plum-btn); border: 1px solid var(--gold); color: #fff; box-shadow: 0 6px 18px #92255440; }
.btn-primary:hover { background: linear-gradient(135deg, #8E2453, #661839); }
.btn-ghost { background: transparent; border: 1px solid #CDBFAE; color: var(--night); }
.btn-ghost:hover { background: #FBF5EA; border-color: var(--gold); }
:focus-visible { outline-color: var(--gold); }

/* Choice cards and inputs */
input, select, textarea { background: #fff; border-color: #D8CBB9; }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.field[data-p="delivery.budget"] .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field[data-p="delivery.budget"] .choices .check { flex-direction: column; align-items: flex-start; padding: 16px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0; }
.field[data-p="delivery.budget"] .choices .check:has(input:checked) { border-width: 2px; box-shadow: inset 0 -3px 0 var(--gold); }
@media (max-width: 640px) { .field[data-p="delivery.budget"] .choices { grid-template-columns: 1fr; } }

/* Intake section list: current section ringed in gold */
.sec-nav button[aria-current="step"] { background: var(--brand-wash); color: var(--brand); }
.sec-nav button[aria-current="step"] .n { border-color: var(--gold); color: var(--gold-ink); background: #fff; }
.sec-nav button.done .n { background: var(--brand); border-color: var(--brand); }
.intake-layout.with-summary { grid-template-columns: 220px minmax(0, 1fr) 260px; }
.so-far { padding: 20px 22px; position: sticky; top: 20px; }
.so-far h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.so-far .q { font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; margin: 0 0 12px; }
.so-far dl { display: grid; grid-template-columns: 86px 1fr; gap: 7px 10px; font-size: .85rem; margin: 0; }
.so-far dt { color: var(--muted); } .so-far dd { margin: 0; overflow-wrap: anywhere; }
.so-far .after { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 1100px) { .intake-layout.with-summary { grid-template-columns: 220px minmax(0, 1fr); } .so-far { display: none; } }
@media (max-width: 860px) { .intake-layout.with-summary { grid-template-columns: 1fr; } }

/* Request page: progress with dates, tiles, itemised quote, activity */
.prog { padding: 18px 22px; }
.prog-bars, .prog-labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.prog-bars i { display: block; height: 6px; border-radius: 99px; background: #EDE3D6; }
.prog-bars i.on { background: var(--brand); } .prog-bars i.now { background: linear-gradient(90deg, var(--gold) 50%, #EDE3D6 50%); }
.prog-bars i.now.full { background: var(--gold); }
.prog-labels { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.prog-labels b { color: var(--ink); display: block; } .prog-labels .now b { color: var(--brand); }
.prog .req-note { margin-top: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.tile .k { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.tile .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--brand); margin-top: 2px; line-height: 1.2; }
.tile .s { font-size: .76rem; color: var(--muted); }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prog-labels span small { display: none; } }
.quote-card .kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.quote-card header h2 { font-size: 1.6rem; margin-top: 4px; }
.qtable { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: .95rem; }
.qtable td { padding: 11px 0; font-size: .95rem; border-bottom: 1px solid #EFE6DA; vertical-align: top; }
.qtable td.r { text-align: right; white-space: nowrap; padding-left: 16px; }
.qtable tr.tax td { color: var(--muted); }
.qtable tr.total td { border-bottom: 0; font-weight: 700; padding-top: 14px; }
.qtable tr.total td.r { font-family: var(--serif); font-size: 1.7rem; color: var(--brand); font-weight: 600; }
.qtable .incl { color: #2F6B4F; font-weight: 600; }
.sign-box { margin: 16px -22px -22px; padding: 18px 22px 22px; background: #F8F2E8; border-top: 1px solid #EFE6DA; border-radius: 0 0 var(--radius) var(--radius); }
.activity { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.activity .event { display: flex; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.activity .event::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #CDBFAE; margin-top: 5px; flex: none; }
.activity .event.team::before { background: var(--brand); }
.activity .event small { display: block; color: var(--muted); font-size: .75rem; }
.bubble.team { background: var(--night); color: var(--on-night); }
.bubble.team small { color: var(--on-night-3); }
.bubble.client { background: #F1E9DE; color: var(--ink); }
.status-pill { background: var(--brand-wash); }
.action-badge { background: var(--foil); color: var(--night); border: 0; box-shadow: 0 2px 8px #c9a45c4d; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-3); border-top: 1px solid var(--gold); }
.site-footer a { color: var(--gold-light); }

/* Keep cards inside the screen on phones; no focus ring on headings that receive focus only for screen readers */
.result-grid > *, .tiles > * { min-width: 0; }
.quote-card, .req-card { overflow-wrap: anywhere; }
.quote-card header { flex-wrap: wrap; gap: 8px; }
h1[tabindex="-1"]:focus { outline: none; }
@media (max-width: 640px) { .page-head.band h1 { font-size: 1.8rem; } .sign-box { margin: 16px -18px -18px; padding: 16px 18px 18px; } }
.qtable { table-layout: fixed; min-width: 0; } .qtable td.r { width: 9.5rem; } .qtable td { overflow-wrap: anywhere; }
@media (max-width: 640px) { .qtable td.r { width: 7.5rem; } .qtable tr.total td.r { font-size: 1.35rem; } }
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.prog { overflow-wrap: normal; }
@media (max-width: 640px) { .prog { padding: 14px 14px; } .prog-labels { font-size: .68rem; gap: 4px; } .prog-labels small { display: none; } .prog-labels .now small { display: block; } }
/* Stepper pills on the dark band */
.stepper .steps li { background: var(--night-2); border-color: var(--night-line); color: var(--on-night-2); box-shadow: none; }
.stepper .steps li[aria-current=step] { background: var(--night-2); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 3px #c9a45c33; }
.stepper .steps li.done { color: var(--on-night-2); }
.stepper .steps li.done .dot { color: #fff; }
.sec-nav button.done .n { color: #fff; }
.field[data-p="delivery.budget"] .choices .check { font-size: 1.12rem; line-height: 1.25; }

/* Geography: area choice cards and the city panel; Focus: combine groups and live preview */
.scope-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.scope-card.check { align-items: flex-start; padding: 18px; margin: 0; }
.scope-card span { display: flex; flex-direction: column; gap: 6px; }
.scope-card b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.scope-card small { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.scope-card em { font-style: normal; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.scope-card.check:has(input:checked) { border-width: 2px; box-shadow: inset 0 -3px 0 var(--gold); }
.city-panel { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 14px; padding: 14px 16px; background: #FBF5EA; border: 1px solid var(--gold-line); border-radius: 14px; }
.city-panel .mini-map { flex: 0 0 240px; max-width: 100%; margin: 0; border: 0; background: transparent; }
.city-panel > div:last-child { flex: 1 1 220px; min-width: 0; }
.city-panel b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--brand); }
.city-panel p { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.city-panel .kicker { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 4px; }
.field[data-p="focus.combine"] { border: 2px solid var(--gold); border-radius: 16px; padding: 16px 18px; background: var(--surface); }
.field[data-p="focus.combine"] > .lbl { font-family: var(--serif); font-size: 1.15rem; }
@media (max-width: 640px) { .scope-cards { grid-template-columns: 1fr; } .city-panel .mini-map { flex-basis: 100%; } }
.intake-layout > * { min-width: 0; } .sec-nav { max-width: 100%; }

/* Ontario edition: three area cards, FSA search */
.scope-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .scope-cards { grid-template-columns: 1fr; } }
.fsa-picker { position: relative; }
.fsa-suggest { list-style: none; margin: 4px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 20px #241b2a14; position: absolute; left: 0; right: 0; z-index: 5; max-height: 320px; overflow: auto; }
.fsa-suggest button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.fsa-suggest button:hover, .fsa-suggest button:focus-visible { background: var(--brand-wash); outline: none; }
.fsa-suggest .none { padding: 9px 10px; color: var(--muted); font-size: .88rem; }
.selected .rural { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-left: 4px; }

/* Area choice: one full-width row per option, so long titles never overflow */
.scope-cards { grid-template-columns: 1fr; gap: 10px; }
.scope-card.check { padding: 14px 16px; }
.scope-card span { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: baseline; }
.scope-card b { font-size: 1.15rem; overflow-wrap: anywhere; }
.scope-card small { grid-column: 1 / -1; }
.scope-card em { grid-column: 2; grid-row: 1; white-space: nowrap; }
@media (max-width: 520px) { .scope-card span { grid-template-columns: 1fr; } .scope-card em { grid-column: 1; grid-row: auto; } }
