/*
Theme Name: LCH Care
Theme URI: https://lchcare.uk/
Description: Custom theme for LCH Care, an introductory home care agency. Modern product-style layout, self-hosted variable font, sharp corners, no page builder.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: lchcare
*/

/* ---------- Font: Plus Jakarta Sans variable (OFL-1.1), self-hosted, no third-party requests ---------- */
@font-face {
  font-family: "Jakarta";
  src: url("assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: CLIENT CHOICE 2026-10-02 = 1. Deep turquoise #00797A (picked in the temporary colour picker, now removed).
   Shades derived by _build/turquoise_shades.py; light turquoise only on dark backgrounds; all text pairs pass WCAG AA. ---------- */
:root {
  --ink: #0f1f22;
  --muted: #4d6064;
  --bg: #f5f8f8;
  --surface: #ffffff;
  --line: #dde7e6;
  --brand: #00797a;          /* deep turquoise: text and links, 5.2 on white, 4.9 on --bg */
  --brand-dark: #004e4f;     /* dark turquoise: dark sections, selected options, white on it 9.5 */
  --brand-soft: #e0efef;     /* tint for light sections: ink 14.3, muted 5.6 */
  --turquoise: #6fd6d1;      /* light turquoise: ONLY on dark backgrounds (ink 9.9, brand-dark 5.6, footer 8.6) */
  --on-dark: #d5ecea;        /* body text on dark turquoise: 7.5 */
  --on-dark-label: #7fe3d8;  /* labels on dark turquoise: 6.1 */
  --accent: #00797a;         /* deep turquoise: buttons, highlights, colour blocks */
  --on-accent: #ffffff;      /* white text on deep turquoise: 5.2 */
  --accent-dark: #004e4f;    /* button hover (white text) */
  --danger: #c62828;         /* form errors only */
  --footer-bg: #002d2d;
  --footer-ink: #c9d8d8;
  --sans: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: var(--sans);
  --serif: var(--sans);
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(6, 42, 45, .06), 0 14px 36px rgba(6, 42, 45, .09);
  --shadow-lg: 0 2px 4px rgba(6, 42, 45, .06), 0 28px 60px rgba(6, 42, 45, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; letter-spacing: 0; word-spacing: .03em; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.cta-band :focus-visible, .site-footer :focus-visible, .section--dark :focus-visible { outline-color: var(--turquoise); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.022em; word-spacing: .06em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.22rem; font-weight: 750; letter-spacing: -.012em; line-height: 1.28; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 700; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--surface); padding: 8px 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; font: 700 15px/1.2 var(--sans); letter-spacing: -.005em; white-space: nowrap; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(6, 42, 45, .18); }
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(6, 42, 45, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font: 800 1.4rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name span { color: var(--brand); }
.brand-sub { font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-footer .brand-sub { color: var(--on-dark-label); }
.footer-tagline { font: 800 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--sans); letter-spacing: -.02em; color: var(--turquoise); margin: 4px 0 12px; }
.brand-mark { position: relative; width: 26px; height: 26px; background: var(--accent); flex: none; }
.brand-mark::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 13px; height: 13px; background: var(--brand-dark); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; cursor: pointer; font: 700 15px var(--sans); padding: 9px 14px; border: 1.5px solid var(--ink); background: var(--surface); }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.primary-nav > ul > li { position: relative; margin: 0; }
.primary-nav a.nav-link, .primary-nav .nav-trigger { position: relative; display: block; padding: 10px 12px; font: 600 15px/1.2 var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.primary-nav a.nav-link::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a.nav-link:hover::before, .primary-nav a[aria-current="page"]::before { transform: scaleX(1); }
.primary-nav li:hover > .nav-trigger, .primary-nav li:focus-within > .nav-trigger { color: var(--brand); }
.nav-trigger::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-cta { margin-left: 12px; padding: 11px 18px; }
.nav-phone { font-weight: 700; color: var(--ink); text-decoration: none; margin-left: 8px; white-space: nowrap; }

.mega { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 860px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: var(--shadow-lg); padding: 24px; z-index: 60; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.primary-nav li:hover > .mega, .primary-nav li:focus-within > .mega { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; animation: lch-drop .2s var(--ease); }
@keyframes lch-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* 4-column mega menu: anchor to the header container (right content edge), not the trigger, so it never runs off-screen. */
@media (min-width: 1061px) {
  .site-header .wrap { position: relative; }
  .primary-nav > ul > li.has-mega { position: static; }
  .primary-nav li.has-mega > .mega { top: 100%; left: auto; right: var(--gutter); width: 880px; min-width: 0; max-width: calc(100vw - 2 * var(--gutter)); }
  .primary-nav li.has-mega > .mega::before { top: -22px; height: 22px; }
}
.mega h4 { font: 700 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { margin: 0 0 2px; }
.mega a { display: block; padding: 8px 10px; margin: 0 -10px; text-decoration: none; color: var(--ink); transition: background .15s var(--ease); }
.mega a:hover { background: var(--brand-soft); }
.mega a strong { display: block; font-size: 15px; }
.mega a small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

@media (max-width: 1060px) {
  .nav-toggle-label { display: inline-block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch; max-height: calc(100vh - 74px); overflow-y: auto; box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .primary-nav { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; }
  .primary-nav a.nav-link::before { display: none; }
  .mega { display: block; position: static; min-width: 0; box-shadow: none; border: 0; border-left: 3px solid var(--accent); padding: 4px 0 8px 14px; animation: none; }
  .mega::before { display: none; }
  .primary-nav li:hover > .mega, .primary-nav li:focus-within > .mega { display: block; animation: none; }
  .mega > div { margin-bottom: 10px; }
  .mega a { margin: 0; }
  .nav-trigger::after { display: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-phone { margin: 12px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--surface); }
.section--soft { background: var(--brand-soft); }
.section--dark { background: var(--brand-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
.section--dark .eyebrow { color: var(--on-dark-label); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.section--dark .lead { color: var(--on-dark); }
.more-link { margin-top: 32px; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(28px, 3.4vw, 48px) 0 clamp(32px, 3.8vw, 54px); background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.06; letter-spacing: -.028em; word-spacing: .08em; margin-bottom: 16px; }
.hl { background: var(--accent); color: var(--on-accent); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { max-width: 560px; margin-bottom: 22px; }
.hero-visual { position: relative; min-height: 480px; }
.hv-shape { position: absolute; }
.hv-shape--a { right: 60px; top: 0; width: 72%; height: 88%; background: var(--brand-soft); }
.hv-shape--b { right: 0; bottom: 0; width: 150px; height: 150px; background: var(--accent); }
.hv-shape--c { left: -14px; top: 14px; width: 48px; height: 48px; background: var(--brand-dark); }
.profile-card { position: absolute; left: 0; top: 40px; width: calc(100% - 204px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 22px; }
.pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pc-avatar { width: 54px; height: 54px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.pc-avatar svg { width: 28px; height: 28px; }
.pc-top b { display: block; font-size: 16px; letter-spacing: -.02em; }
.pc-top small { display: block; font-size: 13px; color: var(--muted); }
.pc-tag { margin-left: auto; align-self: flex-start; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; background: var(--ink); color: #fff; }
.pc-checks { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.pc-checks li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.pc-checks li::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.pc-actions { display: flex; gap: 8px; }
.pc-btn { flex: 1; text-align: center; padding: 10px 8px; font: 700 13px/1.2 var(--sans); background: var(--ink); color: #fff; white-space: nowrap; }
.pc-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.stat-card { position: absolute; right: 0; width: 188px; background: var(--ink); color: #fff; padding: 14px 18px; box-shadow: var(--shadow-lg); }
.stat-card small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-label); font-weight: 700; }
.stat-card b { display: block; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1.1; }
.stat-card b span { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--on-dark); }
.stat-card--a { top: 168px; }
.stat-card--b { top: 64px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.stat-card--b small { color: var(--brand); }
.stat-card--b b span { color: var(--muted); }
.chip-card { position: absolute; left: 28px; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 14.5px; }
.chip-card::before { content: ""; width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 121, 122, .22); }

/* ---------- Finder (compact) ---------- */
.finder { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; text-align: left; max-width: 600px; }
.finder label.field-label, .finder .field-label { display: block; font-weight: 700; font-size: 13px; margin: 0 0 7px; }
.finder-row { display: flex; gap: 8px; }
.finder input[type="text"] { flex: 1; min-width: 0; width: 100%; padding: 13px 14px; border: 1.5px solid #b9cccb; font: 500 16px var(--sans); margin: 0; background: var(--surface); color: var(--ink); transition: border-color .2s var(--ease); }
.finder input[type="text"]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 121, 122, .18); }
.care-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; border: 0; padding: 0; }
.care-tiles legend { padding: 0; }
.care-tile { position: relative; }
.care-tile input { position: absolute; opacity: 0; }
.care-tile span { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 11px 6px; border: 1.5px solid #b9cccb; background: var(--surface); font-weight: 700; font-size: 14px; text-align: center; cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.care-tile span:hover { border-color: var(--brand); }
.care-tile svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.care-tile input:checked + span { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.care-tile input:checked + span svg { color: var(--turquoise); }
.care-tile input:focus-visible + span { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.finder .btn { flex: none; padding: 13px 22px; font-size: 15px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust-row li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) translateY(-2px); }
.hero-phone { margin-top: 14px; font-size: 15px; }

/* ---------- Marquee facts band ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.marquee-track { display: flex; width: max-content; animation: lch-marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 22px; margin: 0; padding: 20px 22px; font: 700 clamp(1rem, 1.6vw, 1.25rem)/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.marquee li::after { content: ""; width: 9px; height: 9px; background: var(--turquoise); }
@keyframes lch-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 34px); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.02em; }
.tile p:last-child { margin-bottom: 0; }
.tile--hero { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--accent); color: var(--on-accent); border-color: var(--accent); display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.tile--hero h3 { color: var(--on-accent); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tile--hero p { color: var(--on-accent); font-size: 1.08rem; }
.tile--dark { grid-column: 3 / 5; background: var(--ink); border-color: var(--ink); color: #fff; }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: var(--on-dark); }
.tile--wide { grid-column: 3 / 5; }
.tile--full { grid-column: 1 / 5; background: var(--brand-soft); border-color: var(--brand-soft); }
.tile-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--ink); color: var(--turquoise); margin-bottom: 18px; }
.tile-icon svg { width: 26px; height: 26px; }
.tile--hero .tile-icon { background: var(--ink); }
.big-figures { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 6px 0 14px; }
.big-figures b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.05em; line-height: 1; color: var(--turquoise); }
.big-figures small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); margin-top: 6px; }
.check-cols { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px; }
.check-cols li { position: relative; margin: 0; padding-left: 28px; font-weight: 600; }
.check-cols li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c5d6d5; }
.section--white .card { background: var(--bg); }
.card h3 { margin-bottom: .45em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p:last-child { margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); }
.card .card-link::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px) rotate(45deg); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; }

/* Numbered care tiles (home) */
.care-grid { counter-reset: care; }
.care-grid .card { counter-increment: care; padding-top: 30px; }
.care-grid .card::before { content: counter(care, decimal-leading-zero); position: absolute; right: 24px; top: 22px; font: 800 1rem/1 var(--sans); letter-spacing: -.02em; color: #9bb3b2; }
.care-grid .card:hover { border-color: var(--accent); }

/* ---------- Steps (timeline) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.steps li { position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 26px 24px; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 2.6rem/1 var(--sans); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--brand); margin-bottom: 16px; }
.steps h3 { font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); }
@supports not (-webkit-text-stroke: 1px black) { .steps li::before { color: var(--brand); } }

/* ---------- Prices ---------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.price { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.price:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price h3 { font: 700 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 14px; }
.price .amount { font: 800 clamp(2.4rem, 4vw, 3.2rem)/1 var(--sans); letter-spacing: -.05em; color: var(--ink); margin: 0 0 12px; }
.price .amount small { font: 600 1rem var(--sans); letter-spacing: 0; color: var(--muted); }
.price p { margin: 0; color: var(--muted); font-size: 15px; }
.price--featured { background: var(--ink); border-color: var(--ink); }
.price--featured h3 { color: var(--turquoise); }
.price--featured .amount { color: #fff; }
.price--featured .amount small, .price--featured p { color: var(--on-dark); }
.note { font-size: 15px; color: var(--muted); }
.section--tight { padding: clamp(36px, 5vw, 56px) 0; }
.prose .card > h3:first-child { margin-top: 0; }
.price-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border: 1px solid var(--line); padding: 24px 28px; }
.price-strip .eyebrow { margin-bottom: 6px; }
.price-strip p { margin: 0; max-width: 760px; }
@media (max-width: 760px) { .price-strip { flex-direction: column; align-items: flex-start; } }
.stat-card b.word { font-size: 1.3rem; white-space: nowrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
tbody th { font-weight: 700; width: 24%; background: var(--bg); }
.compare td.us { background: var(--brand-soft); font-weight: 600; }
.compare thead th:nth-child(2) { background: var(--brand-dark); }
.compare table { min-width: 640px; }
@media (max-width: 640px) {
  .compare table { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
  .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody th { background: var(--ink); color: #fff; border-bottom: 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq details[open] { border-color: #c5d6d5; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; letter-spacing: -.01em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f22' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s var(--ease), background-color .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent); }
.faq .answer { padding: 0 20px 18px; color: #2c3e42; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 1.6rem; }
.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.faq-split .faq { max-width: none; }

/* ---------- Inner page head ---------- */
.page-head { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(34px, 4.2vw, 60px) 0 clamp(30px, 3.6vw, 48px); overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -40px; top: 24px; width: min(30vw, 360px); height: min(30vw, 360px); background: var(--brand-soft); }
.page-head::after { content: ""; position: absolute; right: min(12vw, 150px); top: min(14vw, 190px); width: 64px; height: 64px; background: var(--accent); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 880px; font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -.028em; }
.page-head .lead { max-width: 720px; margin-bottom: 0; }
@media (max-width: 860px) { .page-head::before, .page-head::after { display: none; } }

/* ---------- Prose and lists ---------- */
.prose { max-width: 800px; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.crosslist { list-style: none; padding: 0; }
.crosslist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.crosslist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/12px no-repeat; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.callout { background: var(--brand-soft); border-left: 4px solid var(--accent); padding: 20px 22px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--accent); color: var(--on-accent); padding: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border: 40px solid rgba(6, 42, 45, .08); }
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: var(--on-accent); margin: 0 0 10px; font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 760px; }
.cta-band p { margin: 0; color: var(--on-accent); max-width: 620px; font-size: 1.08rem; }
.cta-band .btn--light { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band--mid { padding: clamp(40px, 6vw, 72px) 0; }
.cta-band--mid::before { right: auto; bottom: auto; left: -120px; top: -120px; width: 220px; height: 220px; border-width: 34px; }
.cta-band--mid .wrap { align-items: center; }
.cta-band--mid h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }

/* ---------- Forms ---------- */
.lch-form { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); max-width: 760px; }
.lch-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .lch-form .row { grid-template-columns: 1fr; } }
.lch-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.lch-form .field { margin-bottom: 16px; }
.lch-form input[type="text"], .lch-form input[type="email"], .lch-form input[type="tel"], .lch-form select { width: 100%; padding: 13px 14px; border: 1.5px solid #b9cccb; font: 500 16px var(--sans); background: var(--surface); color: var(--ink); transition: border-color .2s var(--ease); }
.lch-form input:focus, .lch-form select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 121, 122, .18); }
.lch-form .radio-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lch-form .radio-row label, .lch-form .consent label { font-weight: 500; display: inline-flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.lch-form .hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.lch-form .hp { position: absolute; left: -9999px; }
.lch-form .btn { margin-top: 6px; }
.form-note { padding: 14px 16px; margin-bottom: 18px; border-left: 4px solid var(--accent); background: var(--brand-soft); }
.form-note.error { border-left-color: var(--danger); background: #fdecea; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-ink); padding: clamp(56px, 7vw, 88px) 0 0; font-size: 15px; overflow: hidden; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--turquoise); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 700 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-label); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; font: 800 1.45rem var(--sans); letter-spacing: -.02em; color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding: 22px 0 26px; font-size: 13.5px; color: #9fb4b4; }
.footer-bottom p { margin: 0 0 6px; }
.footer-word { font: 800 clamp(4rem, 15vw, 13rem)/.8 var(--sans); letter-spacing: -.06em; color: rgba(255, 255, 255, .06); white-space: nowrap; margin: 10px 0 -0.08em; user-select: none; }

/* ---------- Reveal on scroll (only when JS runs and motion is allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; max-width: 560px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--hero { grid-column: 1 / 3; grid-row: auto; min-height: 0; }
  .tile--dark, .tile--wide, .tile--full { grid-column: 1 / 3; }
  .faq-split { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-visual { min-height: 0; }
  .profile-card { position: relative; left: auto; top: auto; width: 100%; padding: 18px; }
  .stat-card, .chip-card, .hv-shape--a, .hv-shape--b { display: none; }
  .hv-shape--c { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile--hero, .tile--dark, .tile--wide, .tile--full { grid-column: auto; }
  .check-cols { grid-template-columns: 1fr; }
  .care-tile span { gap: 5px; font-size: 13.5px; padding: 10px 4px; }
  .care-tile svg { width: 16px; height: 16px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .finder-row { flex-direction: column; }
  .finder .btn { width: 100%; }
}

/* ---------- Location pages (S7): breadcrumb, key figures, place lists ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #9fb3b2; }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 16px 18px; }
.fact b { display: block; font-size: 1.45rem; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
.fact small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.place-list { list-style: none; margin: 0; padding: 0; columns: 4 190px; column-gap: 28px; }
.place-list li { margin: 0 0 8px; break-inside: avoid; }
.place-list a { font-weight: 600; }
.place-list small { color: var(--muted); }
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.area-card { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.area-card h3 { font-size: 1.06rem; margin: 0 0 6px; }
.area-card p { margin: 0; font-size: 14px; color: var(--muted); }
.pcd-list { font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .place-list { columns: 2; } }
.pc-form { display: flex; gap: 10px; flex: 0 1 420px; }
.pc-form input[type="text"] { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid #b9cccb; font: 500 16px var(--sans); background: var(--surface); color: var(--ink); text-transform: uppercase; }
.pc-form input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 121, 122, .22); }
@media (max-width: 760px) { .pc-form { width: 100%; flex-basis: auto; } }
.pc-form input[type="text"]::placeholder { text-transform: none; color: #6f8285; }
