:root {
  --blue: #047ca8;
  --navy: #083a55;
  --sky: #eaf6fa;
  --yellow: #f4d600;
  --slate: #4f5f6d;
  --ink: #17313f;
  --muted: #5c6b74;
  --line: #d6e4e9;
  --white: #fff;
  --shadow: 0 16px 40px rgba(8, 58, 85, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--navy); color: white; }
.skip-link:focus { left: 8px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .83rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.25rem; }
.lede { color: #36505e; font-size: 1.2rem; max-width: 660px; }
.section { padding: 82px 0; }
.section-soft { background: var(--sky); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 2px solid transparent; border-radius: 999px; background: var(--blue); color: white; font-size: 1rem; font-weight: 800; text-decoration: none; }
.btn:hover { background: var(--navy); color: white; }
.btn-secondary { background: white; border-color: var(--blue); color: var(--navy); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.topbar { background: var(--navy); color: white; font-size: .92rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.topbar p { margin: 0; }
.topbar a { color: white; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { flex: 0 1 395px; }
.brand img { width: 395px; max-height: 82px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 7px; }
.nav a { padding: 10px 11px; color: var(--navy); font-size: .92rem; font-weight: 700; text-decoration: none; border-radius: 9px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); }
.nav .call { margin-left: 5px; padding-inline: 17px; background: var(--blue); color: white; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); font-size: 1.5rem; }

.hero { background: linear-gradient(110deg, white 0%, white 42%, rgba(255,255,255,.13) 65%), url('home-care-hero.png') center/cover no-repeat; }
.hero-inner { min-height: 640px; display: flex; align-items: center; }
.hero-copy { width: min(650px, 62%); padding: 72px 0; }
.hero-mobile-photo { display: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.trust-pill { padding: 7px 12px; border: 1px solid #b9dbe7; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--navy); font-size: .88rem; font-weight: 750; }
.quick-help { background: var(--navy); color: white; }
.quick-help .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding-top: 28px; padding-bottom: 28px; }
.quick-help h2, .quick-help p { color: white; margin-bottom: 4px; }
.quick-help .btn { background: var(--yellow); color: var(--navy); white-space: nowrap; }
.quality-strip { padding: 52px 0; border-bottom: 1px solid var(--line); background: white; }
.quality-heading { margin-bottom: 24px; }
.quality-heading h2 { margin-bottom: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quality-card { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(8,58,85,.08); }
.quality-card h3 { margin-bottom: 9px; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.quality-card p:last-child { margin-bottom: 0; }
.accreditation-card { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 24px; }
.accreditation-card img { width: 112px; height: 112px; object-fit: contain; }
.cms-rating-card { display: grid; align-content: center; border-top: 6px solid var(--yellow); background: linear-gradient(145deg, #fffdf0, white 70%); }
.stars { margin-bottom: 12px; color: #c49b00; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1; letter-spacing: .1em; }
.rating-source { color: var(--muted); font-size: .78rem; line-height: 1.45; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(8,58,85,.06); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--sky); color: var(--blue); font-size: 1.35rem; font-weight: 900; }
.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 27px 27px; border-top: 5px solid var(--yellow); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.step::before { counter-increment: steps; content: counter(steps); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%; background: var(--navy); color: white; font-weight: 900; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.check-list { padding: 0; margin: 18px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; margin: 10px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.notice { padding: 22px 24px; border-left: 5px solid var(--yellow); border-radius: 8px; background: #fffbea; }

.page-hero { padding: 70px 0 56px; background: linear-gradient(135deg, var(--sky), #fff 76%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; }
.service-card h2 { font-size: 1.45rem; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.location { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.location h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; margin-bottom: 24px; }
.location address { font-style: normal; }
.contact-list { padding: 0; margin: 20px 0 0; list-style: none; }
.contact-list li { margin: 9px 0; }
.contact-list a { font-weight: 800; }
.contact-form { max-width: 820px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { color: var(--navy); font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 11px 13px; border: 2px solid #b8cbd3; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(4,124,168,.2); border-color: var(--blue); }
.form-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.form-status { min-height: 1.7em; color: var(--navy); font-weight: 800; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.county-band { padding: 26px; border-radius: var(--radius); background: var(--navy); color: white; }
.county-band h2 { color: white; }
.county-band p:last-child { margin-bottom: 0; }

.footer { padding: 54px 0 90px; background: #062f45; color: #e8f3f7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; }
.footer h2, .footer h3 { color: white; }
.footer a { color: white; }
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin: 7px 0; }
.footer-small { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); color: #bed3dd; font-size: .88rem; }
.mobile-call { display: none; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar p:first-child { display: none; }
  .header-inner { min-height: 78px; }
  .brand { flex-basis: 285px; }
  .brand img { width: 285px; max-height: 68px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 16px 20px 22px; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
  .nav.open { display: grid; }
  .nav a { padding: 13px; }
  .nav .call { margin-left: 0; text-align: center; }
  .hero { background: none; }
  .hero-inner { min-height: 0; align-items: stretch; }
  .hero-copy { width: 100%; padding: 56px 0 28px; }
  .hero-mobile-photo { display: block; margin: 28px calc(50% - 50vw) 0; overflow: hidden; }
  .hero-mobile-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% center; }
  .hero-copy > .button-row { margin-top: 0; padding-top: 22px; background: white; }
  .cards, .steps { grid-template-columns: 1fr; }
  .split, .location-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .quick-help .wrap { grid-template-columns: 1fr; }
  .quick-help .btn { justify-self: start; }
  .quality-grid { grid-template-columns: 1fr; }
  .accreditation-card { grid-template-columns: 90px 1fr; gap: 20px; }
  .accreditation-card img { width: 90px; height: 90px; }
  .mobile-call { position: fixed; display: flex; left: 12px; right: 12px; bottom: 12px; z-index: 60; justify-content: center; min-height: 54px; align-items: center; border-radius: 999px; background: var(--yellow); color: var(--navy); box-shadow: 0 6px 20px rgba(0,0,0,.25); font-weight: 900; text-decoration: none; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .brand { flex-basis: 225px; }
  .brand img { width: 225px; }
  .button-row .btn { width: 100%; }
  .section { padding: 62px 0; }
  .hero-copy { padding-top: 42px; }
  .hero-mobile-photo img { aspect-ratio: 5 / 4; }
  .accreditation-card { grid-template-columns: 1fr; text-align: center; }
  .accreditation-card a { justify-self: center; }
  h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
