@import url("./tokens.css");
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--surface); color: var(--body-ink); font: 1rem/1.55 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2, h3, legend { color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--green); }
:target { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.container { width: min(100% - 2 * var(--gutter), var(--content-width)); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.stack > * + * { margin-top: var(--space-6); }
.reading-width { max-width: var(--reading-width); margin-inline: auto; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; margin-bottom: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: white; padding: .7rem 1rem; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: white; border-bottom: 1px solid #e0eaf3; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.25rem); position: relative; }
.brand { flex: 0 0 auto; }
.header-logo { width: 145px; transition: transform .18s ease; transform-origin: left center; }
.tagline { color: var(--ink); font-size: .75rem; line-height: 1.25; font-weight: 700; margin: 0; }
.menu-toggle { margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: var(--radius); background: white; color: var(--ink); display: grid; place-content: center; gap: 5px; flex-shrink: 0; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: currentColor; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--card); }
/* Full-width navigation is a contiguous extension of the sticky header.
   It overlays the page without displacing the approved content beneath it. */
.site-nav {
  position: absolute; top: 100%; inset-inline: 0; width: 100%;
  padding: .75rem 0; background: white;
  border: 0; border-bottom: 1px solid #e0eaf3; box-shadow: none;
  max-height: calc(100dvh - var(--header-height) - 1rem); overflow-y: auto;
  overscroll-behavior: contain;
}
.site-nav ul {
  display: flex; flex-wrap: wrap; row-gap: .5rem; align-items: center;
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin: 0 auto; padding: .35rem 0; list-style: none;
}
.site-nav li { flex: 1 1 0; min-width: 0; text-align: center; }
.site-nav li + li { border-left: 1px solid var(--line); }
.site-nav a {
  display: block; min-height: 48px; padding: calc(.65rem - 2px) calc(clamp(.6rem, 1.5vw, 1.25rem) - 2px);
  border: 2px solid transparent; border-radius: var(--radius);
  color: #09248c; background: transparent; text-decoration: none;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(.95rem, 1.2vw, 1.1rem); font-weight: 600; line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere;
  /* Match the approved homepage primary CTA interaction; preserve the link box. */
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green); background: var(--blue); border-color: var(--blue); }
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .site-nav li { padding-block: .25rem; }
  .site-nav li + li { border-left: 0; }
  .site-nav li:nth-child(even) { border-left: 1px solid var(--line); }
  .site-nav li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-nav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 47.99rem) {
  .site-nav { padding-block: .5rem; }
  .site-nav ul { display: block; padding-block: .35rem; }
  .site-nav li { text-align: left; }
  .site-nav li + li { border-left: 0; border-top: 1px solid var(--line); }
  .site-nav a { padding: calc(.75rem - 2px) calc(.6rem - 2px); white-space: normal; overflow-wrap: anywhere; }
}
.interior-banner { position: relative; isolation: isolate; overflow: hidden; background: #073d7b; min-height: 13rem; display: grid; align-items: center; text-align: center; padding: 2rem var(--gutter); color: white; }
.interior-banner::before, .interior-banner::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; background-repeat: no-repeat; background-size: cover; opacity: .95; }
.interior-banner::before { left: 0; width: 19rem; max-width: 55%; background-image: var(--skyline-left); background-position: left bottom; mask-image: linear-gradient(to right, #000 65%, transparent); }
.interior-banner::after { right: 0; width: 26rem; max-width: 65%; background-image: var(--skyline-right); background-position: right bottom; mask-image: linear-gradient(to left, #000 65%, transparent); }
.banner-inner { max-width: 70rem; margin-inline: auto; }
.interior-banner .eyebrow, .interior-banner h1, .interior-banner h2 { color: white; }
.interior-banner .eyebrow { margin-bottom: .9rem; }
.banner-title { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.banner-subtitle { color: var(--cyan); font-size: clamp(1.2rem, 2.5vw, 1.85rem); margin: .65rem 0 0; line-height: 1.25; }
.home-hero { position: relative; text-align: center; isolation: isolate; min-height: 31rem; padding: 3rem var(--gutter) 15rem; background: #eee; color: #10151a; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#f8f8f8 0%, #f8f8f8ee 22%, #f8f8f800 62%), var(--hero-image) center bottom / 100% auto no-repeat; }
.home-hero h2 { color: #10151a; }
.hero-copy { max-width: 50rem; margin-inline: auto; }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1.3rem; border: 2px solid var(--blue); border-radius: var(--radius); background: var(--blue); color: white; font-weight: 700; text-align: center; line-height: 1.3; text-decoration: none; }
.button:hover { background: var(--blue-dark); color: white; border-color: var(--blue-dark); }
.button--secondary { background: white; color: var(--blue); }
.button--secondary:hover { background: var(--card); color: var(--blue-dark); }
.button:disabled { cursor: not-allowed; opacity: .6; }
.text-link { font-weight: 700; display: inline-block; padding-block: .35rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border: 1px solid transparent; border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); color: var(--ink); }
a.card { display: block; text-decoration: none; }
.card p { color: var(--muted); }
a.card:hover { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.card h3 { margin-bottom: .65rem; }
.card .text-link { color: var(--blue); }
.choice-group { margin: 0; border: 0; padding: 0; min-width: 0; }
.choice-group legend { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.choice-card { position: relative; display: flex; flex-direction: column; cursor: pointer; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.4rem; min-height: 12rem; gap: 1rem; color: var(--ink); }
.choice-card input { position: absolute; opacity: 0; width: 24px; height: 24px; right: 1.4rem; bottom: 1.4rem; margin: 0; }
.choice-label { font-weight: 700; font-size: 1.15rem; }
.choice-card .choice-control { display: block; width: 28px; height: 28px; border: 2px solid var(--blue); border-radius: 50%; margin-top: auto; align-self: flex-end; background: white; }
.choice-card:hover { border-color: var(--blue); }
.choice-card:has(input:checked) { border-color: var(--blue); }
.choice-card input:checked ~ .choice-control { background: var(--green); box-shadow: inset 0 0 0 5px white; border-color: var(--ink); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--green); }
.choice-card input:focus-visible { outline: none; box-shadow: none; }
.progress-pebbles { display: flex; list-style: none; gap: .5rem; padding: 0; justify-content: center; }
.progress-pebbles li { width: 30px; height: 10px; border-radius: 6px; background: #c8d1dc; }
.progress-pebbles [aria-current="step"] { background: var(--green); border: 1px solid var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; color: var(--ink); font-weight: 700; margin-bottom: .35rem; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #7b8ba0; border-radius: 2px; color: var(--body-ink); background: white; }
.field textarea { min-height: 8rem; resize: vertical; }
.field-hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.field-error { color: var(--error); font-weight: 700; font-size: .92rem; margin: .35rem 0 0; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: inset 3px 0 var(--error); }
.check-label { display: flex; align-items: flex-start; gap: .8rem; color: var(--body-ink); cursor: pointer; padding-block: .5rem; }
.check-label input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--blue); margin: .1rem 0 0; }
.error-summary { border: 2px solid var(--error); padding: 1.1rem; margin-bottom: 1.5rem; background: #fff8f8; }
.error-summary h3 { color: var(--error); font-size: 1.2rem; }
.error-summary ul { margin-bottom: 0; }
.form-status { margin-top: 1rem; font-weight: 700; }
.insights-tools { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.insights-tools .field { flex: 1 1 15rem; }
.article-layout { max-width: var(--reading-width); margin-inline: auto; }
.article-meta { color: var(--muted); font-size: .95rem; }
.article-body > * + * { margin-top: 1.5rem; }
.callout { padding: 1.2rem 1.4rem; background: var(--card); border-left: 3px solid var(--blue); }
.insights-disclaimer { font-size: .92rem; color: var(--body-ink); padding: 1.5rem; background: #f1f5f9; }
.insights-disclaimer p:last-child { margin-bottom: 0; }
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #101921; }
.photo-strip figure { position: relative; margin: 0; min-width: 0; border-right: 1px solid #ffffff66; }
.photo-strip figure:last-child { border: 0; }
.photo-strip img { width: 100%; height: clamp(8rem, 15vw, 12rem); object-fit: cover; }
.photo-strip figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: 2rem .85rem .7rem; color: white; font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(transparent, #000d); overflow-wrap: anywhere; }
.site-footer { background: #050505; color: white; padding: 1.4rem 0 .65rem; font-size: .84rem; line-height: 1.5; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1.05fr .8fr 1.1fr; align-items: center; gap: 1.5rem; padding-bottom: 1.15rem; }
.footer-main > * { min-width: 0; }
.footer-main > * + * { border-left: 1px solid #6d6d6d; padding-left: 1.5rem; }
.footer-contact { font-style: normal; }
.footer-contact strong { display: block; margin-bottom: .35rem; }
.footer-contact a { display: inline-block; padding-top: .25rem; overflow-wrap: anywhere; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav a:hover, .footer-nav a:focus-visible { text-decoration-line: underline; text-decoration-color: var(--green); }
.site-footer :focus-visible { outline-color: white; }
.footer-logo { width: 180px; }
.footer-badge { width: 200px; margin-inline: auto; }
.footer-nav p { text-transform: uppercase; font-size: .75rem; font-weight: 700; margin: 0 0 .4rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { display: inline-block; padding-block: .18rem; }
.footer-legal { border-top: 1px solid #777; padding-top: .65rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; font-size: .67rem; }
.footer-legal p { margin: 0; }
@media (max-width: 63.99rem) {
  .footer-main { grid-template-columns: 1.2fr 1fr; gap: 1.5rem 2rem; }
  .footer-main > * + * { border: 0; padding-left: 0; }
  .footer-badge { margin-inline: 0; }
}
@media (max-width: 47.99rem) {
  .tagline { font-size: .6rem; max-width: 10rem; }
  .header-logo { width: 120px; }
  .header-inner { gap: .7rem; }
  .card-grid, .choice-grid, .form-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 8rem; }
  .interior-banner { min-height: 11rem; padding-block: 1.8rem; }
  .interior-banner::before, .interior-banner::after { opacity: .8; }
  .home-hero { min-height: 28rem; padding-bottom: 11rem; }
  .home-hero::before { background-size: auto, auto 14rem; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-strip img { height: 10rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.35rem; }
  .footer-main > * + * { border-top: 1px solid #444; padding-top: 1.2rem; }
  .footer-nav a { padding-block: .55rem; min-height: 44px; }
  .footer-contact a { padding-block: .5rem; min-height: 44px; }
  .footer-legal { display: grid; gap: .5rem; }
}
@media (max-width: 23rem) {
  .header-inner { gap: .4rem; }
  .header-logo { width: 104px; }
  .tagline { font-size: .52rem; max-width: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Checkpoint 3 integrated layouts. Shared primitives above remain the source of truth. */
main:focus { outline: none; }
.section-heading { text-align: center; margin: 0 auto 2rem; max-width: 64rem; }
.section-heading p { color: var(--muted); font-size: 1.12rem; }
.section-heading .eyebrow { color: var(--blue); font-size: .8rem; }
.center { text-align: center; }
.home-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.service-door { display: flex !important; flex-direction: column; align-items: flex-start; }
.service-door .text-link { margin-top: auto; }
.wide-card { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; }
.wide-card h3 { grid-column: 1; }
.wide-card p { grid-column: 1; margin: 0; }
.wide-card .text-link { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.next-step { border-block: 1px solid var(--line); padding: 1.8rem 0; text-align: center; margin-top: 2rem; }
.button-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.insights-transition { text-align: center; padding: 1.5rem 0 0; }
.insights-transition h2 { font-size: 1.45rem; margin-bottom: .5rem; }
.insights-transition p { margin-bottom: .25rem; color: var(--muted); }
.advisory-stack { display: grid; gap: 1.25rem; }
.advisory-stack .card { padding-inline: clamp(1.5rem,5vw,4rem); }
.card ul { padding-left: 1.2rem; margin-bottom: 0; }
.card li + li { margin-top: .65rem; }
.advisory-stack + .callout { margin-top: 1.25rem; }
.navigator-actions { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.privacy-reassurance { text-align: center; color: var(--muted); font-size: .95rem; max-width: 52rem; margin: 1.5rem auto 0; }
.justified { text-align: justify; hyphens: auto; margin-block: 2rem; }
.form-width { max-width: 64rem; }
.form-section { border: 0; padding: 0; margin: 1.75rem 0; min-width: 0; }
.form-section legend { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; }
.selection-summary { margin-block: 1.5rem; }
.local-test-controls, .review-notice { padding: 1rem 1.25rem; background: #fff8df; border: 1px solid #b18a21; color: #493a11; margin-bottom: 1.5rem; }
.local-test-controls h3 { font-size: 1.1rem; }
.local-test-controls label { display: block; margin-top: .75rem; font-weight: 700; }
.local-test-controls select { min-height: 44px; max-width: 100%; padding: .5rem; }
.review-notice { max-width: 74rem; margin: 1rem auto; }
.confirmation-content { padding-top: 1rem; }
.confirmation-mark { border: 3px solid var(--blue); background: var(--card); color: var(--blue); border-radius: 50%; width: 6rem; height: 6rem; display: grid; place-items: center; font-size: 3rem; margin: 0 auto 2rem; }
.confirmation-content .callout { margin-top: 2.5rem; }
.category-doors { margin-bottom: 2rem; }
.category-door { text-align: left; color: var(--ink); font-size: 1.3rem; font-weight: 700; min-height: 7rem; }
.category-door:hover, .category-door[aria-pressed="true"] { border-color: var(--blue); }
.category-door[aria-pressed="true"] { box-shadow: inset 5px 0 var(--green); }
.insights-tools { margin: 1.5rem 0; }
.insights-group { border-top: 1px solid var(--line); padding: 1.25rem 0 .25rem; }
.insights-group h3 { font-size: 1.15rem; }
.insights-group a { display: inline-block; padding: .65rem 0; }
[data-rotating-questions] { padding: 1.25rem; background: var(--card); margin-block: 1.5rem; }
[data-question-link] { display: block; margin-bottom: 1rem; }
.disclaimer-wrap { margin-bottom: 2rem; }
.review-index { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; padding-left: 1.5rem; }
.review-index p { font-size: .85rem; color: var(--muted); }
.article-layout { padding-inline: var(--gutter); }
.article-answer { font-size: 1.2rem; }
@media (max-width: 63.99rem) {
 .home-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .home-service-grid .service-door:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 47.99rem) {
 .home-service-grid, .topic-grid, .review-index { grid-template-columns: 1fr; }
 .wide-card { display: flex !important; }
 .navigator-actions, .button-row { flex-direction: column; align-items: stretch; }
 .navigator-actions .button, .button-row .button { text-align: center; }
 .section-heading p { font-size: 1rem; }
 .justified { text-align: left; }
 .review-notice { margin-inline: 1rem; }
 .category-door { min-height: 5rem; }
}

.home-hero h1 { color: #10151a; }
body[data-page="service"] .interior-banner .eyebrow { font-size: clamp(1.65rem,3vw,2.5rem); letter-spacing: .025em; }
body[data-page="service"] .banner-title { color: var(--cyan); font-size: clamp(1.4rem,2.6vw,2rem); }
@media (max-width: 47.99rem) { .wide-card .text-link { align-self: flex-start; } }

/* Checkpoint 4 reconciliation: readable measures and deliberate card proportions. */
body[data-page="service"] .section-heading { max-width: 54rem; }
body[data-page="service"] .card-grid .card { min-height: 12.5rem; }
.insights-disclaimer p { max-width: 74ch; }
@media (max-width: 47.99rem) {
 body[data-page="service"] .card-grid .card { min-height: 0; }
 .check-label { min-height: 44px; }
}
.review-section { margin-block: 2.5rem; }
.review-section h2 { padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.review-help { max-width: 55rem; }

/* Checkpoint 5: contextual labels and longer selectable copy use the existing palette. */
.navigator-context { max-width: 52rem; margin: 1.5rem auto; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 2rem; text-align: center; }
[data-navigator-step] .choice-label { overflow-wrap: anywhere; }

/* Original PSD logo; existing footer wording remains readable text. */
.footer-logo-tagline { display: block; margin-top: .35rem; font-size: .65rem; font-weight: 700; letter-spacing: .035em; }
