/* Safeville Caring Home Health — v2
   Layout concept: crisp white pages anchored by a deep blue-gray, the logo's sky blue as light,
   and the roof chevron + sunburst as the recurring motif. */
:root {
  --white: #ffffff;
  --sky: #f0f7fb;
  --sky-2: #dcecf6;
  --blue: #86c3e2;          /* logo blue (decorative, icons, rays) */
  --blue-ink: #1d6f9c;      /* accessible blue for links and buttons */
  --blue-ink-dark: #155a80;
  --navy: #12384d;          /* deep blue-gray for bands and footer */
  --navy-2: #0c2a3a;
  --stone: #6d6e69;         /* logo gray */
  --ink: #1d2a31;
  --muted: #56636b;
  --line: #e1e8ec;
  --mist: #f6f8f9;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.35rem, 1.2rem + .6vw, 1.6rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.7rem + 3vw, 4rem);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(18, 56, 77, .06), 0 1px 2px rgba(18, 56, 77, .05);
  --shadow: 0 18px 40px -18px rgba(18, 56, 77, .28), 0 4px 12px -4px rgba(18, 56, 77, .08);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--blue-ink-dark); }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.prose { display: grid; gap: 1.1em; max-width: 68ch; }
.prose h2 { margin-top: .6em; font-size: var(--step-2); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: .35em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Eyebrow (roof chevron) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-ink); }
.eyebrow::before { content: ""; width: 22px; height: 12px; flex: none; background: var(--blue); clip-path: polygon(50% 0, 100% 85%, 92% 100%, 50% 26%, 8% 100%, 0 85%); }
.on-dark .eyebrow { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font: 700 .95rem/1.2 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue-ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 111, 156, .7); }
.btn-primary:hover { background: var(--blue-ink-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: #c9d4da; color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue-ink); color: var(--blue-ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-2); color: #cfe0ea; font-size: .84rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .bits { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar .lic { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--blue); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(18,56,77,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; transition: padding .3s var(--ease); }
.site-header.scrolled .wrap { padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 56px; height: auto; flex: none; transition: width .3s var(--ease); }
.site-header.scrolled .brand img { width: 46px; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name strong { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--stone); }
.brand-name span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-ink); font-weight: 700; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a.nav-link { position: relative; display: block; white-space: nowrap; padding: 10px 11px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav a.nav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue-ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a.nav-link:hover { color: var(--blue-ink); }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-link[aria-current="page"] { color: var(--blue-ink); }
.nav .btn { white-space: nowrap; margin-left: 10px; min-height: 46px; padding: 10px 20px; font-size: .9rem; }
.menu-toggle { display: none; }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font: 700 .9rem var(--font-body); cursor: pointer; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 22px; box-shadow: 0 24px 40px -20px rgba(18,56,77,.35); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav:not(.open) { display: none; }
  .nav.open { animation: drop .3s var(--ease); }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a.nav-link { padding: 15px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.08rem; }
  .nav a.nav-link::after { display: none; }
  .nav .btn { margin: 18px 0 0; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) {
  .brand img { width: 44px; } .site-header.scrolled .brand img { width: 40px; }
  .brand-name strong { font-size: 1.15rem; }
  .brand-name span { font-size: .6rem; letter-spacing: .16em; }
  .topbar .lic { display: none; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 85% 10%, var(--sky-2) 0%, rgba(220,236,246,0) 60%),
  radial-gradient(700px 400px at 0% 100%, var(--sky) 0%, rgba(240,247,251,0) 70%), var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--sky-2); box-shadow: var(--shadow-sm); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-ink); }
.pill i { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.pill i::before { content: ""; width: 14px; height: 8px; background: var(--blue-ink); clip-path: polygon(50% 0, 100% 85%, 92% 100%, 50% 26%, 8% 100%, 0 85%); }
.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--blue-ink); display: block; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.hero-visual { position: relative; min-width: 0; padding: 36px 0 28px; }
.hero-visual .photo { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-visual .photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 45% 50%; }
.rays { position: absolute; z-index: 0; right: -6%; top: -4%; width: 46%; color: var(--blue); }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); max-width: 270px; }
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--blue-ink); display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card strong { display: block; font-family: var(--font-display); font-size: .98rem; line-height: 1.2; letter-spacing: -0.01em; }
.float-card span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.3; }
.float-card.a { left: -28px; bottom: 0; }
.float-card.b { left: -28px; top: 58px; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .lede { max-width: none; }
  .float-card.a { left: 12px; } .float-card.b { left: 12px; }
}
@media (max-width: 520px) {
  .float-card { padding: 10px 12px; max-width: 220px; }
  .float-card .ic { width: 34px; height: 34px; }
  .float-card.b { display: none; }
  .float-card.a { left: 10px; bottom: 6px; }
}

/* Load-in animation for the hero */
.js .hero-copy > *, .js .hero-visual .photo, .js .float-card { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-visual .photo { animation-delay: .1s; }
.js .float-card.a { animation-delay: .5s; }
.js .float-card.b { animation-delay: .65s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.float-card.b { animation-name: rise; }

/* Trust strip */
.trust { position: relative; z-index: 3; margin-top: clamp(-56px, -4vw, -32px); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trust li { display: flex; align-items: center; gap: 14px; padding: 22px 22px; min-width: 0; }
.trust li + li { border-left: 1px solid var(--line); }
.trust .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--blue-ink); display: grid; place-items: center; flex: none; }
.trust .ic svg { width: 22px; height: 22px; }
.trust strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.25; letter-spacing: -0.01em; }
.trust span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 980px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust li:nth-child(3) { border-left: 0; } .trust li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 540px) { .trust ul { grid-template-columns: 1fr; } .trust li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,42,58,.95) 0%, rgba(12,42,58,.86) 42%, rgba(12,42,58,.35) 100%); }
.page-hero.plain::before { background: radial-gradient(700px 360px at 90% 0%, rgba(134,195,226,.28), rgba(134,195,226,0) 70%), linear-gradient(120deg, var(--navy-2), var(--navy)); }
.page-hero .wrap { display: grid; gap: 16px; padding-block: clamp(56px, 8vw, 112px); }
.page-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem); }
.page-hero .lede { font-size: var(--step-1); color: #d6e6ef; max-width: 58ch; }
.page-hero .eyebrow { color: var(--blue); }
.crumbs { font-size: .85rem; color: #a9c4d3; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #d6e6ef; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.js .page-hero .wrap > * { animation: rise .8s var(--ease) both; }
.js .page-hero .wrap > :nth-child(2) { animation-delay: .06s; }
.js .page-hero .wrap > :nth-child(3) { animation-delay: .12s; }
.js .page-hero .wrap > :nth-child(4) { animation-delay: .18s; }
@media (max-width: 700px) { .page-hero::before { background: linear-gradient(180deg, rgba(12,42,58,.82), rgba(12,42,58,.94)); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section.sky { background: var(--sky); }
.section.mist { background: var(--mist); }
.section.navy { background: var(--navy); color: #d6e6ef; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.navy .section-head p { color: #b9d0dd; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .media-first { order: -1; } }
.stack { display: grid; gap: 18px; align-content: start; }
.stack.lg { gap: 24px; }
.muted { color: var(--muted); }

/* Image with offset frame */
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius-lg); background: var(--sky-2); z-index: 0; }
.framed img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.framed.left::before { inset: 22px 22px -22px -22px; }
.framed .badge { position: absolute; z-index: 2; right: 18px; bottom: -14px; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; max-width: 260px; line-height: 1.3; }
.framed .badge small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--blue); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 600px) { .framed::before { inset: 12px -10px -12px 12px; } .framed.left::before { inset: 12px 12px -12px -10px; } }

/* Mission band */
.mission { position: relative; overflow: hidden; }
.mission .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.mission .mark-wrap { display: grid; place-items: center; }
.mission .mark-wrap img { width: min(280px, 70%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.mission blockquote { margin: 0; display: grid; gap: 20px; }
.mission blockquote .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); line-height: 1.35; letter-spacing: -0.015em; color: #fff; }
.mission blockquote p { color: #c4d8e3; max-width: 64ch; }
.mission .rays-bg { position: absolute; left: -120px; top: 50%; transform: translateY(-50%); width: 520px; color: rgba(134,195,226,.12); pointer-events: none; }
@media (max-width: 800px) { .mission .wrap { grid-template-columns: 1fr; } .mission .mark-wrap img { width: 150px; } .mission .mark-wrap { justify-items: start; } }

/* Services tabs (home) */
.tabs { display: grid; gap: 28px; }
.tablist { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); justify-self: start; }
.tab { appearance: none; border: 0; background: transparent; cursor: pointer; font: 700 .98rem var(--font-body); color: var(--muted); padding: 12px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; transition: background-color .25s, color .25s; }
.tab svg { width: 20px; height: 20px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab:not([aria-selected="true"]):hover { color: var(--blue-ink); background: var(--sky); }
.tabpanel { animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.service-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.service-card .media { position: relative; min-height: 100%; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.service-card .media .tag { position: absolute; left: 18px; top: 18px; background: rgba(255,255,255,.94); color: var(--navy); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.service-card .body { padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.service-card .who { font-size: .86rem; font-weight: 700; letter-spacing: .06em; color: var(--stone); }
@media (max-width: 900px) { .service-card { grid-template-columns: 1fr; } .service-card .media img { aspect-ratio: 16 / 10; min-height: 0; height: auto; } }

/* Full service sections (services page) */
.service-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.service-row + .service-row { margin-top: clamp(64px, 8vw, 112px); }
.service-row.reverse .framed { order: 2; }
.service-row .stack { min-width: 0; }
.service-row .framed { position: sticky; top: 120px; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; } .service-row.reverse .framed { order: 0; } .service-row .framed { position: relative; top: 0; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
.checklist.one { grid-template-columns: 1fr; }
.checklist li { position: relative; padding-left: 32px; line-height: 1.45; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231d6f99' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: inset 0 0 0 1px var(--sky-2); }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* Feature cards (why choose) */
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 14px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sky-2); }
.feature .ic { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--sky), var(--sky-2)); color: var(--blue-ink); display: grid; place-items: center; transition: background .35s, color .35s; }
.feature:hover .ic { background: var(--navy); color: #fff; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--muted); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .cards-4 { grid-template-columns: 1fr; } }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; display: grid; gap: 12px; align-content: start; background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--blue-ink); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); }
.steps.vertical { grid-template-columns: 1fr; gap: 14px; }
.steps.vertical li { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; padding: 22px; }
.steps.vertical li::before { grid-row: span 2; font-size: 2rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Payers */
.payers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.payers.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payers li { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; transition: transform .3s var(--ease), box-shadow .3s; }
.payers li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.payers .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--blue-ink); display: grid; place-items: center; flex: none; }
.payers .ic svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .payers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .payers, .payers.two { grid-template-columns: 1fr; } }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 100% 0%, rgba(134,195,226,.35), rgba(134,195,226,0) 70%), radial-gradient(400px 260px at 0% 100%, rgba(29,111,156,.5), rgba(29,111,156,0) 70%); }
.cta .rays-bg { position: absolute; right: -60px; bottom: -120px; width: 360px; color: rgba(134,195,226,.18); z-index: -1; }
.cta h2 { color: #fff; }
.cta p { color: #c9dde8; margin-top: 10px; font-size: var(--step-1); max-width: 52ch; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* Panels */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; align-content: start; min-width: 0; box-shadow: var(--shadow-sm); }
.panel.sky { background: var(--sky); border-color: var(--sky-2); box-shadow: none; }
.panel.navy { background: var(--navy); border-color: var(--navy); color: #d6e6ef; }
.panel.navy h2, .panel.navy h3 { color: #fff; }
.panel h2, .panel h3 { font-size: var(--step-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
.grid-2 > * { min-width: 0; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; } }

.contact-lines { display: grid; gap: 14px; margin: 0; }
.contact-lines > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.contact-lines .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--white); color: var(--blue-ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.panel:not(.sky) .contact-lines .ic { background: var(--sky); box-shadow: none; }
.panel.navy .contact-lines .ic { background: rgba(255,255,255,.08); color: var(--blue); }
.contact-lines .ic svg { width: 20px; height: 20px; }
.contact-lines dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.panel.navy .contact-lines dt { color: #9fbccc; }
.contact-lines dd { margin: 0; font-weight: 700; font-size: clamp(1rem, .92rem + .4vw, 1.15rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.panel.navy .contact-lines dd, .panel.navy .contact-lines dd a { color: #fff; }
.contact-lines dd a { text-decoration: none; }
.contact-lines dd a:hover { text-decoration: underline; }

.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; background: #fff8e8; border: 1px solid #efdcaa; border-radius: 14px; padding: 16px 18px; color: #5a4a1e; font-size: .96rem; }
.notice svg { width: 22px; height: 22px; margin-top: 2px; color: #a07a1c; }
.notice strong { color: #4a3c14; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 16px; }
.hours td { color: var(--muted); text-align: right; white-space: nowrap; }
.hours tr.closed td { color: #a05050; }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--muted); justify-self: start; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-now.is-open { background: #e6f5ec; color: #1f6a3d; }

.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.roles li { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.roles li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.roles .abbr { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .02em; flex: none; }
.roles strong { font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.roles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .88rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--mist); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; min-height: 50px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(29,111,156,.15); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-ink); }
.form-status { font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.form-status.ok { background: #e6f5ec; color: #1f5a33; }
.form-status.err { background: #fbeaea; color: #7a2222; }
.req { color: #b03a3a; }

/* Footer */
.site-footer { background: var(--navy-2); color: #b9cfdb; font-size: .97rem; }
.site-footer .wrap { padding-block: clamp(56px, 7vw, 80px) 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.footer-grid > * { min-width: 0; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.site-footer a { color: #e6f0f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .logo { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo img { width: 52px; background: #fff; border-radius: 14px; padding: 6px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.footer-brand .pillars { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.license { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; justify-self: start; }
.license svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .9rem; color: #95b0bf; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(18,56,77,.4); }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: .92rem; }
  body { padding-bottom: 76px; }
}

.placeholder-note { border: 2px dashed var(--blue); background: var(--sky); border-radius: var(--radius); padding: 20px 22px; color: var(--ink); }

/* Scroll reveal: content is visible by default; JS only adds motion for elements below the fold */
.js .reveal.pending { opacity: 0; transform: translateY(26px); }
.js .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.pending { opacity: 1; transform: none; }
}
@media (max-width: 960px) { .trust { margin-top: 0; padding-top: 8px; } .hero .wrap { padding-bottom: 40px; } }

/* ===== Motion layer v3 ===== */
/* Scroll progress line */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 90; background: linear-gradient(90deg, var(--blue), var(--blue-ink)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* Hero photo: slow zoom */
.hero-visual .photo img { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 40% 50%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Floating cards bob after they arrive */
.js .float-card.a { animation: rise .9s var(--ease) .5s both, bob 6s ease-in-out 1.6s infinite; }
.js .float-card.b { animation: rise .9s var(--ease) .65s both, bob 7s ease-in-out 2s infinite reverse; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Sun rays pulse */
.rays line, .rays-bg line { animation: ray 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rays line:nth-child(odd) { animation-delay: .4s; }
.rays line:nth-child(3n) { animation-delay: .8s; }
.rays-bg line:nth-child(odd) { animation-delay: 1.2s; }
@keyframes ray { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mission .rays-bg { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Image zoom on hover */
.framed, .service-card .media { overflow: visible; }
.framed img, .service-card .media img { transition: transform .8s var(--ease), box-shadow .5s; }
.framed:hover img { transform: scale(1.025) rotate(-.4deg); }
.service-card .media { overflow: hidden; }
.service-card:hover .media img { transform: scale(1.05); }
.mission .mark-wrap img { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Checklist stagger (only when its parent animates in) */
.js .reveal .checklist li, .js .tabpanel .checklist li { animation: itemIn .55s var(--ease) both; }
.js .reveal.pending .checklist li { animation: none; opacity: 0; }
.checklist li:nth-child(1) { animation-delay: .05s; } .checklist li:nth-child(2) { animation-delay: .1s; }
.checklist li:nth-child(3) { animation-delay: .15s; } .checklist li:nth-child(4) { animation-delay: .2s; }
.checklist li:nth-child(5) { animation-delay: .25s; } .checklist li:nth-child(6) { animation-delay: .3s; }
.checklist li:nth-child(7) { animation-delay: .35s; } .checklist li:nth-child(8) { animation-delay: .4s; }
.checklist li:nth-child(9) { animation-delay: .45s; } .checklist li:nth-child(10) { animation-delay: .5s; }
.checklist li:nth-child(11) { animation-delay: .55s; } .checklist li:nth-child(12) { animation-delay: .6s; }
@keyframes itemIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* Step numbers fill on hover */
.steps li { transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-2); }
.steps li:hover::before { color: var(--blue-ink); }
.steps li::before { transition: color .35s; }

/* Button shine */
.btn-primary, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0)); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn-primary:hover::after, .btn-light:hover::after { left: 130%; }
.hero .btn-primary::after { animation: shine 6s ease-in-out 2.5s infinite; }
@keyframes shine { 0%, 80% { left: -60%; } 100% { left: 130%; } }

/* Trust strip icons pop on hover */
.trust li .ic, .payers .ic, .contact-lines .ic { transition: transform .35s var(--ease), background-color .35s, color .35s; }
.trust li:hover .ic, .payers li:hover .ic { transform: scale(1.1) rotate(-6deg); background: var(--blue-ink); color: #fff; }

/* Parallax header image */
.page-hero .bg img { will-change: transform; transform: translateY(var(--py, 0)) scale(1.12); }

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  .page-hero .bg img { transform: none; }
}

/* ===== Photo gallery (v4) ===== */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 230px); gap: 16px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sky-2); isolation: isolate; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,42,58,0) 45%, rgba(12,42,58,.85) 100%); transition: opacity .5s; z-index: 1; }
.tile figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; transition: transform .5s var(--ease); }
.tile.big figcaption { font-size: 1.35rem; left: 24px; bottom: 22px; }
.tile figcaption span { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.tile:hover img { transform: scale(1.07); }
.tile:hover figcaption { transform: translateY(-4px); }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .tile.big { grid-column: span 2; grid-row: span 1; height: auto; }
  .mosaic .tile.big { grid-row: span 2; }
}
@media (max-width: 480px) { .mosaic { grid-auto-rows: 150px; } .tile figcaption { font-size: .9rem; left: 12px; right: 12px; bottom: 10px; } }

.media-col { display: grid; gap: 40px; align-content: start; position: sticky; top: 120px; min-width: 0; }
.media-col .framed { position: relative; top: 0; }
.mini-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini-pair figure { margin: 0; display: grid; gap: 8px; }
.mini-pair .img-wrap, .mini-pair img { border-radius: 14px; }
.mini-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease), box-shadow .4s; }
.mini-pair figure:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-pair figcaption { font-size: .85rem; font-weight: 600; color: var(--muted); }
.service-row.reverse .media-col { order: 2; }
@media (max-width: 900px) { .media-col { position: relative; top: 0; gap: 28px; } .service-row.reverse .media-col { order: 0; } }
.service-row.reverse .media-col .framed { order: 0; }

/* =====================================================================
   LIGHT BLUE VERSION: colors from the client's logo and admission booklet
   Flyer blue #6EC8E2, logo gray #6D6E69
   ===================================================================== */
:root {
  --flyer: #6ec8e2;
  --flyer-dark: #4fb8d6;
  --navy: #6ec8e2;          /* bands become the flyer's light blue */
  --navy-2: #575853;        /* footer and top bar: deep logo gray */
  --blue: #6ec8e2;
  --blue-ink: #1a7896;      /* readable blue for links and labels on white */
  --blue-ink-dark: #135f78;
  --sky: #edf8fc;
  --sky-2: #d3eef7;
  --ink: #2c2f2e;
  --on-blue: #1f3640;       /* dark text on light blue */
}
.topbar { background: var(--stone); color: #f1f1ef; }
.topbar svg { color: #bfe6f2; }

/* Logo lockup in header */
.brand-logo { height: 64px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 52px; }
@media (max-width: 420px) { .brand-logo { height: 46px; } .site-header.scrolled .brand-logo { height: 42px; } }

/* Buttons: light blue with dark text (white on this blue is hard to read) */
.btn-primary { background: var(--flyer); color: var(--on-blue); box-shadow: 0 10px 22px -12px rgba(79,184,214,.9); }
.btn-primary:hover { background: var(--flyer-dark); color: var(--on-blue); }
.btn-light { background: #fff; color: var(--on-blue); }
.btn-light:hover { background: var(--sky); color: var(--on-blue); }
.btn-outline-light { border-color: var(--on-blue); color: var(--on-blue); }
.btn-outline-light:hover { background: rgba(255,255,255,.35); color: var(--on-blue); border-color: var(--on-blue); }

/* Hero */
.hero h1 .accent { color: var(--blue-ink); }
.pill { color: var(--blue-ink); }
.pill i::before { background: var(--flyer); }
.float-card .ic, .trust .ic { background: var(--sky); color: var(--blue-ink); }

/* Light blue bands: dark text */
.section.navy { color: var(--on-blue); }
.section.navy h2, .section.navy h3 { color: var(--on-blue); }
.on-dark .eyebrow, .mission .eyebrow { color: var(--on-blue); }
.mission blockquote .big { color: var(--on-blue); }
.mission blockquote p { color: #24434f; }
.mission .mark-wrap img { filter: none; width: min(300px, 70%); }
.mission .rays-bg { color: rgba(255,255,255,.35); }

/* Service tabs */
.tab[aria-selected="true"] { background: var(--flyer); color: var(--on-blue); }
.service-card .media .tag { color: var(--on-blue); }

/* Why choose cards */
.feature:hover .ic { background: var(--flyer); color: var(--on-blue); }

/* CTA */
.cta { color: var(--on-blue); }
.cta h2 { color: var(--on-blue); }
.cta p { color: #24434f; }
.cta::before { background: radial-gradient(500px 300px at 100% 0%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%), radial-gradient(400px 260px at 0% 100%, rgba(79,184,214,.6), rgba(79,184,214,0) 70%); }
.cta .rays-bg { color: rgba(255,255,255,.45); }

/* Inner page headers: logo gray overlay, light blue accent line */
.page-hero { background: var(--stone); border-bottom: 6px solid var(--flyer); }
.page-hero::before { background: linear-gradient(90deg, rgba(62,63,59,.94) 0%, rgba(62,63,59,.84) 42%, rgba(62,63,59,.3) 100%); }
.page-hero.plain::before { background: radial-gradient(700px 360px at 90% 0%, rgba(110,200,226,.35), rgba(110,200,226,0) 70%), linear-gradient(120deg, #4a4b47, #6d6e69); }
.page-hero .eyebrow { color: var(--flyer); }
.page-hero .lede { color: #eef0ee; }
.crumbs, .crumbs a { color: #e3e5e2; }
@media (max-width: 700px) { .page-hero::before { background: linear-gradient(180deg, rgba(62,63,59,.84), rgba(62,63,59,.94)); } }

/* Panels on blue */
.panel.navy { color: var(--on-blue); }
.panel.navy h2, .panel.navy h3, .panel.navy .eyebrow { color: var(--on-blue); }
.panel.navy .contact-lines dt { color: #2f5563; }
.panel.navy .contact-lines dd, .panel.navy .contact-lines dd a { color: var(--on-blue); }
.panel.navy .contact-lines .ic { background: rgba(255,255,255,.5); color: var(--on-blue); }
.panel.navy a { color: var(--on-blue); }

/* Roles, badges */
.roles .abbr { color: var(--on-blue); }
.framed .badge { background: var(--stone); }
.framed .badge small { color: #bfe6f2; }
.framed::before { background: var(--sky-2); }

/* Gallery captions */
.tile figcaption span { color: #bfe6f2; }

/* Footer */
.site-footer { border-top: 6px solid var(--flyer); color: #e4e5e2; }
.site-footer h2 { color: #a9def0; }
.footer-brand .logo img.footer-logo { width: 190px; background: none; padding: 0; border-radius: 0; }
.footer-brand .pillars { color: #a9def0; }
.license svg { color: var(--flyer); }
.footer-bottom { color: #cfd1cc; }

/* Progress line */
.progress { background: linear-gradient(90deg, var(--flyer), var(--blue-ink)); }
.brand img.brand-logo, .site-header.scrolled .brand img.brand-logo { width: auto; }
.footer-brand .logo img.footer-logo { width: 190px; height: auto; }
.brand-logo { height: 72px; }
.site-header.scrolled .brand-logo { height: 56px; }
@media (max-width: 420px) { .brand-logo { height: 50px; } .site-header.scrolled .brand-logo { height: 44px; } }

/* Contact details: phone and email in the same black as the fax number */
.contact-lines dd a { color: var(--ink); text-decoration: none; }
.contact-lines dd a:hover { color: var(--blue-ink); text-decoration: underline; }

/* Form groups (referral and application forms) */
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.fieldset + .fieldset { padding-top: 22px; border-top: 1px solid var(--line); }
.fieldset legend { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.label-text { font-weight: 700; font-size: .95rem; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choices .check { align-items: center; }
.choices .check input { margin-top: 0; }
.field label .hint { font-weight: 400; }
#callback h2 { font-size: var(--step-2); }

/* =====================================================================
   Employment application (step by step)
   ===================================================================== */
.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.js .step-nav .js-only { display: inline-flex !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.apply-aside { position: sticky; top: 120px; }
@media (max-width: 1000px) { .apply-layout { grid-template-columns: 1fr; } .apply-aside { position: static; } }
.apply-panel { gap: 24px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.js .stepper { display: grid !important; }
.stepper li { display: grid; gap: 6px; justify-items: start; padding-top: 10px; border-top: 4px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.stepper li .n { display: none; }
.stepper li.done { border-top-color: var(--flyer-dark, var(--blue)); color: var(--ink); }
.stepper li.current { border-top-color: var(--blue-ink); color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .stepper li .t { display: none; } .stepper { gap: 4px; } }
.step { display: grid; gap: 20px; }
.js .step + .step { margin-top: 0; }
.step + .step { margin-top: 40px; }
.step-title { display: grid; gap: 4px; font-size: var(--step-2); }
.step-title span { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); }
.step-title:focus { outline: none; }
.step-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.step-nav .btn-primary { margin-left: auto; }
.form .row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form .row.three { grid-template-columns: 1fr; } }
h3.sub { font-size: 1.15rem; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.step > h3.sub:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.choice-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .95rem; line-height: 1.45; }
.choice-group .choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice-group .choices.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
@media (max-width: 560px) { .choice-group .choices.cols { grid-template-columns: 1fr; } }
.choice-group .check { align-items: center; font-size: .97rem; }
.choice-group .check input { margin-top: 0; }
.choice-group.invalid legend { color: #b03a3a; }
.choice-group.invalid legend::after { content: "  Please choose at least one."; font-weight: 600; }
.form-note { font-size: .93rem; color: var(--muted); background: var(--mist); border-radius: 10px; padding: 12px 14px; }
.statements { display: grid; gap: 12px; }
.check.statement { font-size: .93rem; line-height: 1.55; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.check.statement input { margin-top: 4px; }
.field input[readonly] { background: var(--sky); }

/* =====================================================================
   Photo framing: show whole people, no cut-off heads or bodies
   ===================================================================== */
/* Home banner: show the full wide photo */
.hero-visual .photo img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
@media (min-width: 961px) { .hero .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); } }
/* Photos in frames use the photo's own shape */
.framed img { aspect-ratio: 3 / 2; }
/* Service tabs: photo at its own shape at the top of its column */
.service-card .media { background: var(--sky); align-self: stretch; }
.service-card .media img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .service-card .media img { aspect-ratio: 3 / 2; } }
/* Gallery: every tile keeps the 3:2 photo shape */
.mosaic { grid-auto-rows: auto; }
.tile { aspect-ratio: 3 / 2; }
.tile.big { aspect-ratio: auto; }
@media (max-width: 860px) { .mosaic { grid-auto-rows: auto; } .mosaic .tile.big { grid-row: auto; aspect-ratio: 3 / 2; } }
/* Inner page headers: photo sits on the right at its own shape instead of being cropped as a background */
@media (min-width: 901px) {
  .page-hero .bg { left: auto; right: 0; width: 54%; }
  .page-hero .bg img { object-fit: cover; }
  .page-hero::before { background: linear-gradient(90deg, rgba(62,63,59,1) 0%, rgba(62,63,59,1) 44%, rgba(62,63,59,.55) 49%, rgba(62,63,59,0) 56%) !important; }
  .page-hero .wrap { min-height: clamp(380px, 31vw, 470px); align-content: center; }
  .page-hero h1, .page-hero .lede { max-width: min(560px, 44vw); }
}
@media (max-width: 900px) {
  .page-hero { display: flex; flex-direction: column; }
  .page-hero .bg { position: relative; inset: auto; order: 2; }
  .page-hero .bg img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .page-hero::before { background: linear-gradient(120deg, #4a4b47, #6d6e69) !important; bottom: auto; height: 100%; }
}
@media (min-width: 901px) {
  .page-hero .bg { width: 50%; }
  .page-hero::before { background: linear-gradient(90deg, rgba(62,63,59,1) 0%, rgba(62,63,59,1) 50%, rgba(62,63,59,0) 50%) !important; }
  .page-hero h1, .page-hero .lede { max-width: min(540px, 42vw); }
}
/* Page headers v2: photo keeps its 3:2 shape beside the text (never cropped) */
@media (min-width: 901px) {
  .page-hero:not(.plain) { display: grid; grid-template-columns: 50% 50%; align-items: center; background: #3e3f3b; }
  .page-hero:not(.plain)::before { display: none; }
  .page-hero:not(.plain) .bg { position: relative; inset: auto; width: auto; grid-column: 2; grid-row: 1; z-index: 0; }
  .page-hero:not(.plain) .bg img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
  .page-hero:not(.plain) .wrap { grid-column: 1; grid-row: 1; max-width: none; margin: 0; min-height: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: 44px; padding-block: 40px; }
  .page-hero:not(.plain) h1 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
  .page-hero:not(.plain) .lede { font-size: 1.08rem; }
}
/* Banner cards sit along the bottom edge, off the people */
.float-card.b { top: auto; left: auto; right: -18px; bottom: 0; }
@media (max-width: 960px) { .float-card.b { right: 12px; left: auto; } }
@media (max-width: 900px) {
  .page-hero:not(.plain) { background: #3e3f3b; }
  .page-hero:not(.plain)::before { display: none; }
  .page-hero:not(.plain) .bg { z-index: 0; }
  .page-hero:not(.plain) .wrap { padding-block: 40px 28px; }
}
[hidden] { display: none !important; }
