/* A Fresh Start Homecare Agency: site styles
   Tokens come from docs/brand-brief.md (palette taken from the client's house/heart/doves logo).
   Navy = care-seeker path, sky blue = caregiver path, heart red = small warm accents only. */

:root {
  /* measured from the logo: lettering navy, dove royal blue, house sky blue, heart red */
  --navy: #0A2A66;  --navy-700: #1B5CB9;  --navy-100: #E3EEFA;  --navy-900: #061A42;
  --royal: #1B5CB9; --royal-dark: #164E9E;
  --sky: #79CBDE;   --sky-700: #13627A;   --sky-100: #E3F4F9;
  --heart: #D8313A; --heart-700: #B5232C;
  --mist: #F4FAFC;  --tint: #E3F4F9;      --white: #FFFFFF;
  --ink: #0F1E3D;   --stone: #56627A;     --line: #CFE3EC;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 16px; --radius-arch: 999px 999px 18px 18px; --radius-pill: 800px;
  --container: 1240px; --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --shadow: 0 2px 14px rgba(10, 42, 102, .08);
  --ease: .18s ease-in-out;
  --header-h: 84px;
  --icon-accent: var(--heart);
  font-size: 100%;
}
html.text-lg { font-size: 112.5%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.25rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); font-weight: 700; line-height: 1.12; margin: 0 0 .5em;
  font-variation-settings: "opsz" 120, "SOFT" 50, "WONK" 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); }
h4 { font-size: 1.2rem; }
.eyebrow { display: inline-block; font: 600 .8125rem/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--heart-700); margin-bottom: 14px; }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.6; }
.muted { color: var(--stone); }
.center { text-align: center; }
.measure { max-width: 46rem; }
.center.measure { margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--navy); color: var(--mist); padding: 12px 20px; border-radius: var(--radius-pill); }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-mist { background: var(--mist); } .bg-tint { background: var(--tint); } .bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--mist); }
.bg-navy h2, .bg-navy h3 { color: var(--mist); }
.bg-navy .eyebrow { color: var(--sky); }
.bg-leaf { background-color: var(--tint); background-image: url("/img/leaf-pattern.svg"); background-size: 220px; }

/* Icons */
.icon { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon .a { fill: var(--icon-accent); stroke: none; }
.icon .as { stroke: var(--icon-accent); }
.icon-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--navy-100); color: var(--navy); margin-bottom: 18px; }
.bg-navy .icon-badge { background: rgba(244, 250, 252, .1); color: var(--mist); }

/* Buttons: pills, per the home-care reference */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: var(--radius-pill);
  font: 700 1.0625rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 22px; height: 22px; }
.btn-navy { background: var(--royal); color: #fff; } .btn-navy:hover { background: var(--navy); color: #fff; }
.btn-sky { background: var(--sky); color: var(--navy-900); } .btn-sky:hover { background: #A3DCEA; color: var(--navy-900); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; } .btn-outline:hover { background: var(--navy); color: var(--mist); border-color: var(--navy); }
.btn-light { border-color: var(--mist); color: var(--mist); background: transparent; } .btn-light:hover { background: var(--mist); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row, .btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 20px; height: 20px; transition: transform var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Utility bar */
.utility { background: var(--tint); font-size: .95rem; color: var(--navy); }
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.utility ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.utility a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.utility a:hover { text-decoration: underline; }
.utility .icon { width: 18px; height: 18px; }
.text-toggle { background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: var(--radius-pill); padding: 3px 12px; font: 600 .875rem var(--font-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.text-toggle[aria-pressed="true"] { background: var(--navy); color: var(--mist); --icon-accent: var(--sky); }
@media (max-width: 860px) { .utility .hide-sm { display: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(244, 250, 252, .97); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid transparent; transition: border-color var(--ease), box-shadow var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(6, 26, 66, .06); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--navy); }
.brand img { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font: 700 1.45rem/1.05 var(--font-display); color: var(--navy); letter-spacing: -.01em; }
.brand-text span { font: 600 .78rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-700); margin-top: 4px; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a, .nav button.nav-parent { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font: 600 1.0625rem/1.2 var(--font-body); color: var(--navy); background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.nav-parent:hover, .nav a[aria-current="page"] { background: var(--navy-100); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sky); }
.has-sub { position: relative; }
.nav-parent::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 8px; }
.subnav { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: var(--white); border-radius: var(--radius-card); box-shadow: 0 18px 40px rgba(6, 26, 66, .14);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease); }
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub.open .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.subnav .icon { width: 30px; height: 30px; }
.header-ctas { display: flex; gap: 10px; flex: none; }
.header-ctas .btn { min-height: 48px; padding: 0 20px; font-size: 1rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.menu-toggle .icon { width: 34px; height: 34px; }

@media (max-width: 1180px) { .header-ctas .btn-sky { display: none; } }
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand img { height: 50px; } .brand-text strong { font-size: 1.2rem; } .brand-text span { font-size: .68rem; letter-spacing: .12em; }
  .menu-toggle { display: inline-flex; }
  .header-ctas { display: none; }
  /* backdrop-filter would make the header the containing block for the fixed menu panel,
     shrinking it to the header's height so the hero shows through; use a solid header here */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--mist); }
  /* dropdown panel, not a full-screen sheet: the page below stays visible (dimmed) and tappable to close */
  .nav { position: fixed; top: var(--nav-top, var(--header-h)); right: 0; left: 0; z-index: 1001; max-height: calc(100dvh - var(--nav-top, var(--header-h)) - 24px);
    background: var(--mist); overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--gutter) 24px; display: none;
    border-radius: 0 0 20px 20px; box-shadow: 0 18px 36px rgba(6, 26, 66, .22); border-top: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button.nav-parent { font-size: 1.2rem; padding: 12px; width: 100%; text-align: left; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 8px 12px; min-width: 0; display: none; }
  .has-sub.open .subnav { display: block; }
  .nav .mobile-ctas { display: grid; gap: 12px; margin-top: 18px; }
  /* .nav a (padding, radius, color, transparent bg) outranks .btn; restore the pill buttons */
  .nav .mobile-ctas .btn { display: inline-flex; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: var(--radius-pill); font: 700 1.125rem/1 var(--font-body); text-align: center; border: 2px solid transparent; }
  .nav .mobile-ctas .btn-navy { background: var(--royal); color: #fff; }
  .nav .mobile-ctas .btn-sky { background: var(--sky); color: var(--navy-900); }
  .nav .mobile-ctas .btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
}
@media (min-width: 1021px) { .nav .mobile-ctas { display: none; } }
body.nav-open { overflow: hidden; }
body.nav-open .call-bar { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(6, 26, 66, .45); cursor: pointer; }
.nav-backdrop[hidden] { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(88vh, 860px); color: var(--mist); overflow: hidden; }
.hero.hero-page { min-height: min(64vh, 620px); }
.hero > picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 65% 35%); z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 26, 66, .66) 0%, rgba(6, 26, 66, .48) 34%, rgba(6, 26, 66, .1) 60%, rgba(6, 26, 66, 0) 74%),
              linear-gradient(0deg, rgba(6, 26, 66, .3) 0%, rgba(6, 26, 66, 0) 32%); }
.hero-copy { text-shadow: 0 1px 2px rgba(6, 26, 66, .55), 0 2px 18px rgba(6, 26, 66, .45); }
.hero-copy .btn { text-shadow: none; }
.hero .container { padding-top: 72px; padding-bottom: 72px; }
.hero-copy { max-width: 640px; }
.hero h1 { color: var(--mist); }
.hero .eyebrow { color: var(--sky); }
.hero p { font-size: clamp(1.2rem, 1.7vw, 1.4rem); max-width: 34em; }
.hero .btn-row { margin-top: 28px; }
.hero-phone { margin-top: 22px; font-size: 1.1rem; }
.hero-phone a { color: var(--mist); font-weight: 700; }
.breadcrumb { font-size: .95rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--mist); opacity: .85; }
.breadcrumb span { opacity: .7; }
@media (max-width: 720px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero > picture img, .hero > img { object-position: var(--focus-sm, 70% 30%); }
  .hero::before { background: linear-gradient(0deg, rgba(6, 26, 66, .86) 0%, rgba(6, 26, 66, .66) 50%, rgba(6, 26, 66, .05) 76%, rgba(6, 26, 66, 0) 100%); }
  .hero .container { padding-top: 300px; padding-bottom: 44px; }
  .hero .btn-row .btn { width: 100%; }
}

/* Trust strip */
.trust { background: var(--navy); color: var(--mist); }
.trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { display: flex; align-items: center; gap: 14px; font-weight: 600; line-height: 1.35; font-size: 1.05rem; }
.trust .icon { width: 42px; height: 42px; color: var(--mist); }
.trust small { display: block; font-weight: 400; opacity: .8; font-size: .9rem; }
@media (max-width: 960px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust ul { grid-template-columns: 1fr; } }

/* Section heading with brand emblem (home-care reference: emblem above every H2) */
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; max-width: 48rem; margin-left: auto; margin-right: auto; }
.emblem { width: 60px; height: auto; margin-bottom: 14px; }
.center .emblem { margin-left: auto; margin-right: auto; }

/* Zigzag rows */
.zigzag { display: grid; gap: clamp(56px, 8vw, 96px); }
.zz-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.zz-row:nth-child(even) .zz-media { order: 2; }
.zz-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-arch); }
.zz-media.wide img { aspect-ratio: 4 / 3; border-radius: var(--radius-card); }
.zz-copy .icon-badge { margin-bottom: 14px; }
@media (max-width: 860px) { .zz-row { grid-template-columns: 1fr; } .zz-row:nth-child(even) .zz-media { order: 0; } .zz-media img { aspect-ratio: 4 / 3.4; } }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform var(--ease), box-shadow var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(6, 26, 66, .12); color: inherit; }
.service-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.service-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.service-card .icon-badge { margin: -64px 0 8px; position: relative; background: var(--white); box-shadow: var(--shadow); }
.service-card .link-arrow { margin-top: auto; padding-top: 10px; color: var(--navy); }
.feature { padding: 8px 4px; }
.feature h3 { font-size: 1.35rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 26px; height: 26px; margin-top: 4px; color: var(--sky-700); }
.bg-navy .checklist .icon { color: var(--sky); }
.checklist.two-col { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
@media (max-width: 640px) { .checklist.two-col { grid-template-columns: 1fr; } }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; background: var(--white); border-radius: var(--radius-card); padding: 30px 26px; border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 22px; right: 24px; font: 700 1.5rem var(--font-display); color: var(--sky-700); opacity: .55; }
.steps h3 { font-size: 1.3rem; }
.steps p { font-size: 1.1rem; margin: 0; }
@media (max-width: 1020px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Phone CTA bar */
.phone-bar { background: var(--sky); color: var(--navy-900); }
.phone-bar .container { display: flex; align-items: center; justify-content: center; gap: 18px 28px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; text-align: center; }
.phone-bar p { margin: 0; font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.3 var(--font-display); }
.phone-bar a.tel { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--font-display); color: var(--navy-900); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.phone-bar a.tel:hover { text-decoration: underline; }
.phone-bar .icon { width: 34px; height: 34px; --icon-accent: var(--navy); }

/* Founder quote */
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder > :first-child { position: sticky; top: 120px; }
.founder .zz-media img { aspect-ratio: 4 / 4.6; }
blockquote.quote { margin: 0; font: 500 clamp(1.6rem, 2.8vw, 2.25rem)/1.35 var(--font-display); color: var(--navy); font-variation-settings: "opsz" 144, "SOFT" 100; }
blockquote.quote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: .6; color: var(--heart); margin-bottom: 14px; }
.bg-navy blockquote.quote::before { color: var(--sky); }
.bg-navy blockquote.quote { color: var(--mist); }
.quote-cite { display: block; margin-top: 22px; font: 600 1.05rem var(--font-body); color: var(--stone); }
.bg-navy .quote-cite { color: var(--sky-100); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder > :first-child { position: static; max-width: 420px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat strong { display: block; font: 700 clamp(2.4rem, 5vw, 3.5rem)/1 var(--font-display); color: var(--sky); margin-bottom: 10px; }
.stat span { font-size: 1.1rem; color: var(--mist); opacity: .9; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* FAQ accordion: numbered */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px 4px; font: 700 clamp(1.15rem, 1.6vw, 1.35rem)/1.35 var(--font-display); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq .num { font: 700 1rem var(--font-body); color: var(--sky-700); letter-spacing: .05em; min-width: 2ch; }
.faq summary .icon { width: 26px; height: 26px; transition: transform var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 48px 26px 52px; }
.faq .answer p:last-child { margin: 0; }
@media (max-width: 600px) { .faq .answer { padding: 0 4px 22px; } }

/* Dual CTA split */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dual .panel { border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dual .panel p { max-width: 30em; }
.dual .panel .btn { margin-top: auto; }
.dual .care { background: var(--navy); color: var(--mist); } .dual .care h2 { color: var(--mist); } .dual .care .eyebrow { color: var(--sky); }
.dual .join { background: var(--sky-100); }
.dual .icon-badge { background: rgba(255, 255, 255, .12); color: var(--mist); }
.dual .join .icon-badge { background: var(--white); color: var(--navy); }
@media (max-width: 860px) { .dual { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; color: var(--navy); }
.field .hint { font-size: .95rem; color: var(--stone); margin: -2px 0 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 1.125rem var(--font-body); color: var(--ink); background: var(--white); border: 1.5px solid #A9C6D6; border-radius: 12px; padding: 14px 16px; min-height: 54px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--navy); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); background: var(--white); border: 1.5px solid #A9C6D6; border-radius: var(--radius-pill); padding: 10px 18px; cursor: pointer; margin: 0; font-size: 1.05rem; }
.choices input { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); margin: 0; }
.choices label:has(input:checked) { border-color: var(--navy); background: var(--navy-100); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .95rem; color: var(--stone); }
.form-status { display: none; padding: 16px 20px; border-radius: 12px; font-weight: 600; }
.form-status.ok { display: block; background: #E6F0E2; color: #2D4A28; }
.form-status.err { display: block; background: #FBE6E1; color: #7A2414; }
.form-card { background: var(--white); border-radius: 22px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-layout { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 34px; height: 34px; color: var(--navy); margin-top: 2px; }
.contact-list strong { display: block; color: var(--navy); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-card); }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* Notice ribbon for the preview build */
.preview-ribbon { background: var(--navy-900); color: var(--sky-100); font-size: .9rem; text-align: center; padding: 8px 16px; }
.preview-ribbon strong { color: var(--sky); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(244, 250, 252, .86); font-size: 1.05rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sky); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 80px 0 48px; }
.footer-top h2 { font: 600 .85rem/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand img { width: 200px; margin-bottom: 18px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 22px; height: 22px; margin-top: 4px; color: var(--sky); --icon-accent: var(--sky); }
.footer-license { display: inline-flex; gap: 10px; align-items: center; border: 1px solid rgba(121, 203, 222, .5); border-radius: 14px; padding: 8px 16px; margin-top: 8px; font-size: .95rem; }
.footer-license .icon { width: 24px; height: 24px; color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(244, 250, 252, .14); padding: 24px 0 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; font-size: .95rem; }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.fg-credit { display: flex; justify-content: center; padding: 0 0 32px; }
.fg-credit a { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(244, 250, 252, .55); transition: color .2s; }
.fg-credit a:hover { color: var(--mist); text-decoration: none; }
.fg-credit img { height: 20px; width: auto; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; padding-top: 56px; } }

/* Mobile sticky call bar */
.call-bar { display: none; }
@media (max-width: 720px) {
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--mist); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(6, 26, 66, .1); }
  .call-bar .btn { min-height: 50px; padding: 0 12px; font-size: 1rem; }
  body { padding-bottom: 76px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.icon-badge .icon { width: 46px; height: 46px; stroke-width: 2; }
.service-card.cta-card { background: var(--navy); color: var(--mist); border-color: var(--navy); justify-content: center; }
.service-card.cta-card .body { justify-content: center; padding: 40px 32px; }
.service-card.cta-card h3 { color: var(--mist); }
.service-card.cta-card .icon-badge { margin: 0 0 8px; background: rgba(244, 250, 252, .1); color: var(--mist); box-shadow: none; }
.service-card.cta-card .link-arrow { color: var(--sky); }

/* Emergency & crisis help. Brick red is reserved for emergency actions only (6.8:1 on mist, white on it 7.4:1). */
:root { --sos: #A3261B; --sos-700: #82190F; --sos-100: #FBEAE6; }
.btn-sos { background: var(--sos); color: #fff; } .btn-sos:hover { background: var(--sos-700); color: #fff; }
.utility-crisis { color: var(--sos); font-weight: 700; }
.utility-crisis .icon { --icon-accent: var(--sos); }
.crisis-strip { background: var(--sos-100); border-top: 3px solid var(--sos); color: var(--ink); }
.crisis-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 22px; padding-bottom: 22px; }
.crisis-lead { margin: 0; display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.crisis-lead .icon { color: var(--sos); --icon-accent: var(--sos); }
.crisis-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.crisis-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-pill); background: #fff; border: 2px solid var(--navy); color: var(--navy); text-decoration: none; font-size: 1rem; }
.crisis-btn.sos { background: var(--sos); border-color: var(--sos); color: #fff; --icon-accent: #fff; }
.crisis-btn:hover { filter: brightness(.95); }
.crisis-btn .icon { width: 22px; height: 22px; }
.crisis-more { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; color: var(--sos-700); }
.crisis-more .icon { width: 18px; height: 18px; }
.crisis-callout { display: flex; gap: 14px; align-items: flex-start; background: var(--sos-100); border-left: 4px solid var(--sos); border-radius: 12px; padding: 18px 20px; margin-bottom: 28px; font-size: 1.05rem; }
.crisis-callout .icon { color: var(--sos); --icon-accent: var(--sos); margin-top: 2px; }
.crisis-callout p { margin: 4px 0 0; }
.crisis-callout a { color: var(--sos-700); font-weight: 700; }
.crisis-card .crisis-how { font: 700 1.3rem var(--font-display); color: var(--navy); margin-bottom: .5em; }
.crisis-card.sos { border-color: var(--sos); border-width: 2px; }
.crisis-card.sos .icon-badge { background: var(--sos-100); color: var(--sos); --icon-accent: var(--sos); }
.crisis-card.sos .crisis-how { color: var(--sos); }
.emergency-banner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--sos); color: #fff; border-radius: 20px; padding: 24px 28px; margin-bottom: 28px; text-decoration: none; }
.emergency-banner:hover { color: #fff; background: var(--sos-700); }
.emergency-banner > .icon { color: #fff; --icon-accent: #fff; width: 44px; height: 44px; }
.emergency-banner strong { display: block; font: 700 clamp(1.3rem, 2.4vw, 1.7rem)/1.25 var(--font-display); }
.emergency-banner small { font-size: 1rem; opacity: .92; }
.emergency-banner > span:nth-child(2) { flex: 1 1 280px; }
.emergency-banner .btn-sos { background: #fff; color: var(--sos-700); }
@media (max-width: 720px) { .crisis-strip .container { flex-direction: column; align-items: stretch; } .crisis-btn { justify-content: center; } .crisis-more { justify-content: center; } }
.utility a, .text-toggle { white-space: nowrap; }
@media (max-width: 520px) {
  .utility ul { gap: 16px; }
  .utility .container { min-height: 46px; }
  .text-toggle { padding: 5px 9px; }
  .text-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Heart-red icon accents only on light grounds; dark grounds use sky blue. */
.bg-navy, .hero, .site-footer, .dual .care, .cta-card { --icon-accent: var(--sky); }
