/* Nexus Ability Care. Layout and type follow the Whilst system (Instrument Serif headlines,
   DM Mono labels, Inter body, italic for emphasis, pill buttons, hairlines); colours are Nexus's own.
   Shape rule: buttons and choice chips are full pills, photos 18px, panels 16px, inputs 10px. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* Nexus palette, sampled from the logo */
  --ink: #0c366c;          /* navy: headings, buttons, band, dark blocks */
  --ink-deep: #082a55;
  --text: #14243f;         /* body text */
  --white: #ffffff;
  --body: #3d4f6b;         /* secondary text */
  --gray: #56667f;         /* muted text */
  --accent: #1a6fb5;       /* italic clause, labels, links on hover */
  --sky: #0c90d2;          /* focus rings, small accents */
  --mist: #96c6e4;         /* accents on navy */
  --line: rgba(12, 54, 108, 0.14);
  --line-strong: rgba(12, 54, 108, 0.3);
  --tint: #f0f6fc;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(18px, 4vw, 24px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--white); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(46px, 7vw, 84px); }
h2 { font-size: clamp(36px, 5vw, 56px); padding-bottom: 0.04em; }
h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.it { font-style: italic; }
.g { color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--body); max-width: 640px; }
.lede strong { color: var(--text); font-weight: 600; }
.small { font-size: 14px; color: var(--gray); }
.section-head { max-width: 760px; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--ink); color: var(--white); text-decoration: none; cursor: pointer;
  font: 600 16px/1 var(--sans); padding: 18px 30px; min-height: 54px; border-radius: 999px; border: 1px solid var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--tint); border-color: var(--line-strong); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg { width: 16px; height: 16px; }
.text-link { font-weight: 600; text-decoration: underline; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }

/* ---------- top band + nav ---------- */
.band { background: var(--ink); color: var(--white); text-align: center; padding: 11px 16px; }
.band .eyebrow { color: var(--white); font-size: 11px; }
.band .eyebrow b { color: var(--mist); font-weight: 500; }
.band a { color: var(--white); }
.nav { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; color: var(--body); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sky); }
.nav .btn { padding: 13px 22px; min-height: 46px; font-size: 15px; }
.menu-btn { display: none; }
@media (max-width: 940px) {
  .links { display: none; }
  .nav { gap: 12px; }
  .nav .btn { margin-left: auto; padding: 12px 18px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
  .links.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; z-index: 40;
    background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 12px; margin-top: 0; box-shadow: 0 12px 24px rgba(12, 54, 108, 0.08);
  }
  .links.open a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .links.open a:last-child { border-bottom: 0; }
  .brand img { width: 124px; }
}
@media (max-width: 400px) { .nav .btn .long { display: none; } }
.site-head { position: relative; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 96px; border-top: 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 24px; }
.hero-img { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); }
.hero-img, .photo { position: relative; }
.hero-img img, .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.04); }

.ticks { display: grid; gap: 12px; margin-top: 28px; max-width: 600px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rise-2 { animation-delay: 0.1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- verify strip ---------- */
.verify { padding: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts > div { padding: 30px 24px 30px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts .eyebrow { font-size: 11px; }
.facts p:not(.eyebrow) { color: var(--ink); font-family: var(--serif); font-size: 26px; line-height: 1.15; margin-top: 10px; }
.facts a { font-size: 14px; display: inline-block; margin-top: 8px; color: var(--body); }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.svc .item { background: var(--tint); border-radius: 16px; padding: 30px; }
.svc .item h3 { margin-top: 10px; }
.svc .item p:not(.eyebrow) { color: var(--body); margin-top: 10px; font-size: 16px; }
.svc .item.wide { grid-column: 1 / -1; color: var(--white); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; padding: 0; overflow: hidden; background: var(--ink); color: var(--white); }
.svc .item.wide .copy { padding: 34px; }
.svc .item.wide .eyebrow { color: var(--mist); }
.svc .item.wide h3 { color: var(--white); }
.svc .item.wide p:not(.eyebrow) { color: rgba(255, 255, 255, 0.85); }
.svc .item.wide .photo { position: relative; min-height: 300px; }
.svc .item.wide .photo picture, .svc .item.wide .photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.reg-note { margin-top: 22px; font-size: 15px; color: var(--gray); }

/* ---------- steps ---------- */
.steps { margin-top: 44px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--accent); padding-top: 8px; letter-spacing: 0.08em; }
.step p { color: var(--body); margin-top: 6px; max-width: 640px; }

/* ---------- promise block ---------- */
.promise { background: var(--ink); color: var(--white); border-radius: 24px; padding: clamp(32px, 6vw, 60px); }
.promise .eyebrow { color: var(--mist); }
.promise h2 { color: var(--white); }
.promise h2 { margin: 14px 0 8px; }
.promise .g { color: var(--mist); }
.promise ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 28px; }
.promise li { padding: 20px 0; border-top: 1px solid rgba(150, 198, 228, 0.28); }
.promise li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.promise li span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.promise a { color: var(--white); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.about .photo { border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; }
.about p { color: var(--body); margin-top: 16px; max-width: 600px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; margin-top: 32px; border-top: 1px solid var(--line); }
.values > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.values h3 { font-size: 24px; }
.values p { margin-top: 4px; font-size: 15px; color: var(--gray); }

.creds-title { font-size: 24px; margin-top: 30px; }
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; margin-top: 12px; border-top: 1px solid var(--line); }
.creds li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
.creds li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.quote { background: var(--tint); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; }
.quote .stars { color: var(--ink); letter-spacing: 0.12em; font-size: 15px; }
.quote h3 { margin-top: 10px; font-size: 24px; }
.quote blockquote p { margin-top: 10px; color: var(--body); font-size: 16px; }
.quote figcaption { margin-top: auto; padding-top: 18px; display: grid; gap: 2px; font-size: 14px; }
.quote figcaption strong { color: var(--text); }
.quote figcaption span { color: var(--gray); }
details.more-quotes { border: 0; padding: 0; margin-top: 22px; }
.more-quotes summary { font-family: var(--sans); font-size: 16px; font-weight: 600; justify-content: flex-start; gap: 10px; color: var(--ink); text-decoration: underline; }
.more-quotes summary::after { content: ""; }
.more-quotes .quotes { margin-top: 18px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews { padding: 56px 0; background: var(--tint); }
.reviews-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.reviews h2 { margin-top: 10px; }
.reviews .cta-row { margin-top: 0; }

/* ---------- areas ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.areas li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; color: var(--ink); }

/* ---------- coordinator card ---------- */
.sc-card { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(28px, 5vw, 52px); }
.sc-card h2 { margin-top: 12px; }
.sc-card p:not(.eyebrow) { color: var(--body); margin-top: 14px; max-width: 560px; }
.sc-card .cta-row { margin-top: 0; justify-content: flex-end; }

/* ---------- faq ---------- */
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { color: var(--ink); cursor: pointer; list-style: none; font-family: var(--serif); font-size: 24px; line-height: 1.25; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 12px; color: var(--body); max-width: 680px; }
.faq { margin-top: 40px; }

/* ---------- forms ---------- */
.apply { background: var(--tint); }
.form-card { background: var(--white); border-radius: 24px; padding: clamp(24px, 5vw, 44px); margin-top: 36px; box-shadow: 0 1px 0 var(--line); }
.form-intro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.contact-lines { display: grid; gap: 6px; font-size: 16px; }
.contact-lines .eyebrow { font-size: 11px; margin-top: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; align-content: start; }
.field > label, .legend { font-weight: 600; font-size: 15px; }
fieldset.field { border: 0; min-width: 0; }
.hint { font-weight: 400; color: var(--gray); font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; min-height: 52px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: #a1271b !important; box-shadow: inset 4px 0 0 #a1271b; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span { display: inline-block; padding: 12px 18px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; cursor: pointer; user-select: none; line-height: 1.4; }
.choice input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.choice span:hover { border-color: var(--ink); }
.choice input[aria-invalid="true"] + span { border-color: var(--ink); border-style: dashed; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--body); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); cursor: pointer; }
.err { font-size: 14px; font-weight: 600; color: #a1271b; padding-left: 12px; border-left: 3px solid var(--ink); }
.err:empty { display: none; }
.note { padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--tint); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--body); margin-bottom: 22px; }
.form-alert { background: var(--tint); border-left: 3px solid var(--ink); padding: 12px 16px; border-radius: 0 10px 10px 0; font-weight: 600; margin-bottom: 18px; }
.form-alert:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent h3 { font-size: clamp(30px, 4vw, 40px); margin-top: 12px; }
.sent p:not(.eyebrow) { margin-top: 12px; color: var(--body); }

/* ---------- registration list ---------- */
.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; margin-top: 28px; border-top: 1px solid var(--line); }
.groups li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.groups code { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }

/* ---------- footer ---------- */
footer { padding: 56px 0 64px; border-top: 1px solid var(--line); font-size: 14px; color: var(--gray); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer img { width: 132px; margin-bottom: 14px; }
footer .eyebrow { font-size: 11px; margin-bottom: 12px; }
footer ul { display: grid; gap: 8px; }
footer a { color: var(--body); }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; }

/* ---------- simple pages ---------- */
.page { padding: 48px 0 96px; border-top: 0; }
.page h1 { font-size: clamp(42px, 6vw, 68px); margin: 14px 0 22px; }
.page h2 { font-size: 32px; margin: 40px 0 10px; }
.page p:not(.eyebrow), .page li { color: var(--body); max-width: 700px; }
.page p + p { margin-top: 12px; }
.page ul.dash li { position: relative; padding-left: 22px; margin-top: 8px; }
.page ul.dash li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 2px; background: var(--sky); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  section { padding: 68px 0; }
  .hero { padding: 20px 0 68px; }
  .hero-grid, .about, .form-intro, .sc-card { grid-template-columns: 1fr; gap: 36px; }
  .hero-img { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 22px 16px 22px 0; border-top: 1px solid var(--line); }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .svc, .promise ul, .values, .groups, .row { grid-template-columns: 1fr; }
  .svc .item.wide { grid-template-columns: 1fr; }
  .svc .item.wide .photo { min-height: 220px; order: -1; }
  .areas { grid-template-columns: 1fr 1fr; }
  .sc-card .cta-row { justify-content: flex-start; }
  .foot { grid-template-columns: 1fr; }
  .step { grid-template-columns: 52px 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .facts p:not(.eyebrow) { font-size: 22px; }
  .areas { grid-template-columns: 1fr; }
}
::placeholder { color: var(--gray); opacity: 1; }
.site-head .links.open { top: 100%; }
@media (max-width: 480px) { .band .eyebrow { font-size: 10px; letter-spacing: 0.12em; } }

/* Ad landing page (/care) */
.hero-shot { position: relative; }
.hero-shot [hidden] { display: none !important; }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot .v-choose img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.04); }
.hero-shot .shot-note { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); text-align: center; margin-top: 4px; }
@media (max-width: 860px) { .hero-shot { max-width: 420px; margin: 0 auto; } }
