/* =========================================================
   NorthernEdge Advisory Group — Homepage Styles v3
   Navy #0D1B2A · Forest #1B5E3A · Gold #D4AF37 · Slate #64748B
   ========================================================= */

:root {
  --navy: #0D1B2A; --navy-deep: #071018; --navy-light: #16273c;
  --forest: #1B5E3A; --forest-light: #227048;
  --gold: #D4AF37; --gold-light: #e5c766;
  --slate: #64748B; --light-gray: #F1F5F9; --warm-white: #FBFAF7; --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 26px;
  --shadow-card: 0 4px 22px rgba(13, 27, 42, 0.07);
  --shadow-card-hover: 0 14px 34px rgba(13, 27, 42, 0.14);
  --shadow-float: 0 30px 70px rgba(7, 16, 24, 0.45);
  --container-w: 1260px; --ease: cubic-bezier(.22,.9,.35,1);
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--navy); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; line-height: 1.16; color: var(--navy); letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: #3a4a5c; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; position: relative; }
.section:nth-of-type(odd) { background: var(--warm-white); }
.platform-overview, .transitional-feature, .modules-section, .assessment-section, .caregiver-section { background: var(--white); }
.sectors-section, .solutions-section, .resources-section, .what-we-do { background: var(--warm-white); }
@media (max-width: 768px) { .section { padding: 64px 0; } }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.eyebrow { font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; font-size: 12.5px; color: var(--forest); margin: 0 0 14px; }
.eyebrow-light { color: var(--gold-light); }
.eyebrow-center { text-align: center; }
.center-heading { text-align: center; max-width: 740px; margin: 0 auto 40px; font-size: clamp(28px, 3.6vw, 42px); }
.center-heading-light { color: var(--white); }
.center-lede { text-align: center; max-width: 680px; margin: 0 auto 50px; font-size: 16.5px; }
.check-list { list-style: none; margin: 22px 0 30px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 13px; color: #3a4a5c; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--forest); border-radius: 50%; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 55% no-repeat; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 55% no-repeat; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.text-link { color: var(--forest); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-bottom: 1px solid #e9edf2; box-shadow: 0 1px 0 rgba(13,27,42,0.03); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--forest), var(--gold) 50%, var(--navy)); }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(13,27,42,0.10); border-color: #e2e6eb; }
.header-inner { max-width: 1440px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; margin-right: 28px; flex-shrink: 0; }
.logo-img { height: 64px; width: auto; display: block; }
@media (max-width: 1440px) { .logo-img { height: 56px; } }
@media (max-width: 640px) { .logo-img { height: 44px; } .logo { margin-right: 14px; } }

.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.main-nav ul { display: flex; align-items: center; gap: 12px; list-style: none; flex-wrap: nowrap; }
.main-nav a { font-size: 11.5px; font-weight: 600; color: var(--navy); padding: 8px 1px; position: relative; display: inline-block; white-space: nowrap; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--gold); transition: width 0.2s var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li.has-dropdown:hover > a::after { width: 100%; }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: -12px; min-width: 240px; background: var(--white); box-shadow: var(--shadow-card-hover); border-radius: var(--radius-md); padding: 10px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.16s ease; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 500; }
.dropdown li a:hover { background: var(--light-gray); }
.dropdown li a::after { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-secondary-link { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.nav-secondary-link:hover { color: var(--navy); }
.mobile-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; }
.mobile-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; }
@media (max-width: 1440px) { .hide-narrow { display: none; } }
@media (max-width: 1440px) {
  .main-nav { position: fixed; inset: 93px 0 0 0; background: var(--white); transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; padding: 20px 28px 40px; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav > ul > li { width: 100%; }
  .main-nav > ul > li > a { display: block; padding: 12px 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
  .mobile-toggle { display: flex; }
  .nav-secondary-link { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); padding: 40px 0 0; min-height: 740px; display: flex; align-items: center; }
.hero-scene { position: absolute; inset: 0; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stars { animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.6; } 50% { opacity: 0.95; } }
.hero-aurora { animation: auroraDrift 16s ease-in-out infinite; transform-origin: center; }
@keyframes auroraDrift { 0%, 100% { transform: translateX(0) scaleY(1); } 50% { transform: translateX(24px) scaleY(1.04); } }
.hero-grain { position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.5) 0, transparent 1%), radial-gradient(circle at 70% 60%, rgba(255,255,255,0.4) 0, transparent 1%), radial-gradient(circle at 40% 80%, rgba(255,255,255,0.4) 0, transparent 1%); background-size: 6px 6px; }
.hero-compass { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 480px; height: 480px; opacity: 0.55; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,13,20,0.88) 6%, rgba(6,13,20,0.58) 42%, rgba(6,13,20,0.18) 76%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--container-w); margin: 0 auto; padding: 0 28px 100px; width: 100%; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }

.hero-copy > * { opacity: 0; transform: translateY(16px); animation: heroFadeUp 0.7s var(--ease) forwards; }
.hero-copy > .eyebrow { animation-delay: 0.05s; }
.hero-copy > h1 { animation-delay: 0.15s; }
.hero-copy > .hero-sub { animation-delay: 0.28s; }
.hero-copy > .hero-ctas { animation-delay: 0.4s; }
.hero-copy > .hero-tertiary-link { animation-delay: 0.5s; }
.hero-copy > .trust-strip { animation-delay: 0.6s; }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-copy > * { animation: none; opacity: 1; transform: none; } .hero-stars, .hero-aurora { animation: none; } }

.hero h1 { color: var(--white); font-size: clamp(31px, 3.9vw, 49px); margin-bottom: 22px; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero-sub { color: rgba(255,255,255,0.87); font-size: 17px; max-width: 570px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-ctas .btn-gold { box-shadow: 0 10px 28px rgba(212,175,55,0.28); }
.hero-ctas .btn:hover { transform: translateY(-2px); }
.hero-tertiary-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-weight: 600; margin-bottom: 44px; }
.hero-tertiary-link:hover { text-decoration: underline; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 24px; list-style: none; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 26px; }
.trust-strip li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.8); }
.trust-strip li svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

.hero-scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.hero-scroll-cue span { width: 4px; height: 8px; border-radius: 3px; background: var(--gold); animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }
@media (max-width: 640px) { .hero-scroll-cue { display: none; } }

@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } .hero-product { max-width: 480px; } .hero-compass { opacity: 0.4; } }
@media (max-width: 640px) { .hero { padding-top: 24px; min-height: auto; } .hero-inner { padding-bottom: 70px; } }

/* ---------- Hero product card ---------- */
.hero-product { position: relative; }
.product-card { background: rgba(13, 26, 40, 0.78); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-xl); padding: 28px; backdrop-filter: blur(18px); box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255,255,255,0.08); position: relative; }
.product-card::before { content: ""; position: absolute; top: -1px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.7), transparent); }
.product-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.product-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.2); }
.product-title { font-weight: 700; font-size: 14px; color: var(--white); }
.product-live { margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); }
.product-top-row { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-bottom: 20px; }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauge { width: 92px; height: 92px; }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 9; }
.gauge-fill { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; stroke-dasharray: 314; stroke-dashoffset: calc(314 - (314 * var(--pct) / 100)); transition: stroke-dashoffset 1.2s var(--ease); }
.gauge-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; fill: var(--white); text-anchor: middle; }
.gauge-den { font-size: 11px; fill: rgba(255,255,255,0.55); text-anchor: middle; }
.gauge-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.04em; }
.product-top-metrics { display: flex; flex-direction: column; gap: 12px; }
.ptm-row { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.7); }
.ptm-row b { color: var(--white); font-size: 11.5px; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.pg-tile { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 88px; }
.pg-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(255,255,255,0.55); }
.pg-big { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white); }
.pg-big small { font-family: var(--font-body); font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,0.5); margin-left: 6px; }
.sparkline svg { width: 100%; height: 22px; }
.sparkline polyline { fill: none; stroke: #6b8cae; stroke-width: 2; }
.dm-bar { height: 6px; background: rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden; }
.dm-bar span { display: block; height: 100%; background: var(--forest-light); border-radius: 10px; }
.dm-bar-gold span { background: var(--gold); }
.dm-bar-navy span { background: #6b8cae; }
.product-footer { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.portal-chip, .ai-chip { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.75); }
.portal-chip svg, .ai-chip svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.ai-chip span { font-style: italic; color: rgba(255,255,255,0.65); }
.ai-chip b { font-style: normal; color: var(--gold-light); }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr 1fr; } .product-top-row { grid-template-columns: 1fr; justify-items: center; } .ptm-row { grid-template-columns: 100px 1fr auto; } }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.split-reverse .split-visual { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 42px; } .split-reverse .split-text, .split-reverse .split-visual { order: unset; } }
.split-text h2 { font-size: clamp(26px, 3vw, 34px); }

/* ---------- What We Do ---------- */
.wwd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .wwd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wwd-grid { grid-template-columns: 1fr; } }
.wwd-item { background: var(--white); border: 1px solid #eef1f5; border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-card); transition: all 0.2s var(--ease); }
.wwd-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.wwd-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(27,94,58,0.1); color: var(--forest); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.wwd-icon svg { width: 22px; height: 22px; }
.wwd-item h3 { font-size: 15.5px; margin: 0; }

/* ---------- Platform mini dashboard ---------- */
.mini-dashboard { background: var(--navy); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-card-hover); color: var(--white); }
.md-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 700; font-size: 14px; }
.md-badge { background: rgba(212,175,55,0.18); color: var(--gold-light); font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 700; }
.md-chart svg { width: 100%; height: 140px; }
.md-line { stroke: var(--gold); stroke-width: 2.5; }
.md-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.md-stat { background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.md-stat span { display: block; font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
.md-stat b { font-family: var(--font-display); font-size: 17px; }
.risk-mid { color: var(--gold-light); }
@media (max-width: 480px) { .md-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Modules ---------- */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1100px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .module-grid { grid-template-columns: 1fr; } }
.module-card { background: var(--white); border: 1px solid #eef1f5; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); display: flex; flex-direction: column; }
.module-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.module-card-featured { background: linear-gradient(160deg, var(--navy) 0%, #17324a 100%); border-color: transparent; }
.module-card-featured h3, .module-card-featured p, .module-card-featured li { color: var(--white); }
.module-card-featured .module-icon { background: rgba(212,175,55,0.18); }
.module-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.module-icon svg { width: 24px; height: 24px; }
.module-icon-navy { background: rgba(13,27,42,0.08); color: var(--navy); }
.module-icon-forest { background: rgba(27,94,58,0.1); color: var(--forest); }
.module-icon-gold { background: rgba(212,175,55,0.16); color: #a3801f; }
.module-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.module-card p { font-size: 14px; margin-bottom: 15px; }
.module-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; flex-grow: 1; }
.module-card ul li { font-size: 13px; color: var(--slate); padding-left: 16px; position: relative; }
.module-card ul li::before { content: "–"; position: absolute; left: 0; color: var(--gold); }
.module-cta { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: auto; }
.module-cta-light { color: var(--gold-light); }

/* ---------- Caregiver Services ---------- */
.caregiver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 44px; }
@media (max-width: 900px) { .caregiver-grid { grid-template-columns: repeat(2, 1fr); } }
.cg-item { display: flex; align-items: center; gap: 12px; background: var(--warm-white); border: 1px solid #eef1f5; border-radius: var(--radius-md); padding: 14px 16px; transition: all 0.18s var(--ease); }
.cg-item:hover { background: var(--light-gray); transform: translateY(-2px); }
.cg-item svg { width: 22px; height: 22px; color: var(--forest); flex-shrink: 0; }
.cg-item span { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.cg-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }

.staffing-band { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: center; background: var(--light-gray); border-radius: var(--radius-xl); padding: 36px; margin-bottom: 40px; }
.staffing-text h3 { font-size: 21px; margin-bottom: 10px; }
.staffing-text p { margin: 0; }
.staffing-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.staffing-list li { font-size: 14px; font-weight: 600; padding-left: 20px; position: relative; color: var(--navy); }
.staffing-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--forest); border-radius: 50%; }
@media (max-width: 800px) { .staffing-band { grid-template-columns: 1fr; } .staffing-list { grid-template-columns: 1fr; } }

.caregiver-network { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(120deg, var(--navy), #17324a); border-radius: var(--radius-xl); padding: 40px; color: var(--white); flex-wrap: wrap; }
.caregiver-network h3 { color: var(--white); font-size: 22px; margin-bottom: 8px; }
.caregiver-network p { color: rgba(255,255,255,0.78); margin: 0; max-width: 480px; }

/* ---------- Solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1100px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .solutions-grid { grid-template-columns: 1fr; } }
.solution-card { display: block; background: var(--white); border: 1px solid #eef1f5; border-radius: var(--radius-lg); padding: 26px 22px; transition: all 0.2s var(--ease); box-shadow: var(--shadow-card); }
.solution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.solution-card svg { width: 28px; height: 28px; color: var(--forest); margin-bottom: 14px; }
.solution-card h3 { font-size: 15.5px; margin-bottom: 7px; }
.solution-card p { font-size: 13px; margin-bottom: 12px; }
.solution-card .card-cta { font-size: 13px; font-weight: 700; color: var(--navy); }

/* ---------- Transitional Care dashboard ---------- */
.tc-tagline { font-family: var(--font-display); font-style: italic; color: var(--forest); font-size: 19px; margin-bottom: 18px; }
.tc-dashboard { background: var(--navy); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-card-hover); color: var(--white); }
.tc-dash-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.tc-dash-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.2); flex-shrink: 0; }
.tc-dash-title { font-weight: 700; font-size: 13px; }
.tc-dash-badge { margin-left: auto; background: rgba(212,175,55,0.18); color: var(--gold-light); font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.tc-section-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.tc-beds { margin-bottom: 22px; }
.tc-beds-grid { display: flex; gap: 8px; margin-bottom: 10px; }
.tc-bed { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tc-bed.occupied { background: rgba(107,140,174,0.28); color: #a9c4d9; }
.tc-bed.prep { background: rgba(212,175,55,0.22); color: var(--gold-light); }
.tc-bed.ready { background: rgba(74,222,128,0.18); color: #7ed9a6; }
.tc-beds-legend { display: flex; gap: 16px; font-size: 11px; color: rgba(255,255,255,0.6); flex-wrap: wrap; }
.tc-beds-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.tc-beds-legend i.occupied { background: #a9c4d9; }
.tc-beds-legend i.prep { background: var(--gold-light); }
.tc-beds-legend i.ready { background: #7ed9a6; }
.tc-pipeline { margin-bottom: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }
.tc-pipeline-stages { display: flex; align-items: center; gap: 6px; }
.tc-stage { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; }
.tc-stage b { display: block; font-family: var(--font-display); font-size: 18px; }
.tc-stage span { font-size: 9.5px; color: rgba(255,255,255,0.6); }
.tc-stage-gold { background: rgba(212,175,55,0.16); border-color: rgba(212,175,55,0.3); }
.tc-stage-gold b { color: var(--gold-light); }
.tc-stage-arrow { color: rgba(255,255,255,0.3); font-size: 13px; flex-shrink: 0; }
.tc-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }
.tc-care-plan ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tc-care-plan li { font-size: 12px; color: rgba(255,255,255,0.78); padding-left: 14px; position: relative; }
.tc-care-plan li::before { content: "–"; position: absolute; left: 0; color: var(--gold); }
.tc-care-plan li b { color: var(--white); }
.tc-family-row { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.tc-family-row b { color: var(--white); }
.tc-family-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; margin-top: 4px; flex-shrink: 0; }
.tc-family-dot.pending { background: var(--gold); }
@media (max-width: 560px) { .tc-lower-grid { grid-template-columns: 1fr; } .tc-beds-grid { flex-wrap: wrap; } }

/* ---------- Sectors ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
@media (max-width: 1000px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sectors-grid { grid-template-columns: 1fr; } }
.sector-item svg { width: 28px; height: 28px; color: var(--navy); margin-bottom: 12px; }
.sector-item h3 { font-size: 15px; margin-bottom: 5px; }
.sector-item p { font-size: 13px; margin: 0; }

/* ---------- Assessment scorecard ---------- */
.scorecard-mock { background: var(--white); border: 1px solid #eef1f5; border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-card-hover); }
.scorecard-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 22px; font-size: 15px; }
.scorecard-risk { font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 700; }
.scorecard-risk-mid { background: rgba(212,175,55,0.18); color: #8a6d1c; }
.scorecard-body { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.gauge-sm { width: 84px; height: 84px; }
.gauge-sm .gauge-track { stroke: #eef1f5; }
.gauge-sm .gauge-fill { stroke: var(--forest); }
.gauge-sm .gauge-num { fill: var(--navy); font-size: 26px; }
.gauge-sm .gauge-den { fill: var(--slate); }
.scorecard-rows { display: flex; flex-direction: column; gap: 13px; }
.scorecard-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.scorecard-row .dm-bar { background: #eef1f5; }
.scorecard-footer { border-top: 1px solid #eef1f5; padding-top: 16px; margin-top: 18px; }
.scorecard-next { font-size: 13px; color: var(--navy); font-weight: 600; }
@media (max-width: 500px) { .scorecard-body { grid-template-columns: 1fr; justify-items: center; } .scorecard-row { grid-template-columns: 1fr; gap: 6px; text-align: center; } }
.assessment-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; margin: 22px 0 32px; }
.assessment-list li { font-size: 14px; font-weight: 600; padding-left: 22px; position: relative; color: var(--navy); }
.assessment-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
@media (max-width: 480px) { .assessment-list { grid-template-columns: 1fr; } }

/* ---------- Why section ---------- */
.why-section { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.why-pattern { position: absolute; inset: 0; background-image: repeating-linear-gradient(120deg, rgba(255,255,255,0.028) 0, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 64px), repeating-linear-gradient(30deg, rgba(212,175,55,0.03) 0, rgba(212,175,55,0.03) 1px, transparent 1px, transparent 90px); }
.why-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 42px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { border-top: 2px solid var(--gold); padding-top: 20px; }
.why-item h3 { color: var(--white); font-size: 17.5px; }
.why-item p { color: rgba(255,255,255,0.72); font-size: 14px; margin: 0; }

/* ---------- Process ---------- */
.process-timeline { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.process-timeline-8 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .process-timeline { grid-template-columns: repeat(3, 1fr); } .process-timeline-8 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-timeline, .process-timeline-8 { grid-template-columns: 1fr; } }
.process-timeline li { position: relative; padding-top: 42px; border-top: 3px solid var(--light-gray); }
.process-step { position: absolute; top: -20px; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--white); font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 4px solid var(--warm-white); }
.process-timeline-8 li:nth-child(5) .process-step, .process-timeline-8 li:nth-child(6) .process-step, .process-timeline-8 li:nth-child(7) .process-step, .process-timeline-8 li:nth-child(8) .process-step { background: var(--gold); color: var(--navy); }
.process-timeline h3 { font-size: 16.5px; margin-bottom: 6px; }
.process-timeline p { font-size: 13px; margin: 0; }

/* ---------- Resources ---------- */
.resources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1000px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .resources-grid { grid-template-columns: 1fr; } }
.resource-card { display: block; background: var(--white); border: 1px solid #eef1f5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: all 0.2s var(--ease); }
.resource-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.resource-thumb { height: 88px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.05em; color: var(--white); position: relative; }
.resource-fold { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 20px 20px 0; border-color: transparent rgba(255,255,255,0.25) transparent transparent; }
.resource-thumb-forest { background: linear-gradient(135deg, var(--forest), #123f27); }
.resource-thumb-navy { background: linear-gradient(135deg, var(--navy), #05101c); }
.resource-thumb-gold { background: linear-gradient(135deg, var(--gold), #a3801f); }
.resource-card h3 { font-size: 14.5px; margin: 16px 18px 6px; }
.resource-card p { font-size: 12.5px; margin: 0 18px 18px; }
.resources-cta { text-align: center; margin-top: 40px; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(120deg, var(--navy), #14283c); padding: 68px 0; position: relative; overflow: hidden; }
.final-cta-pattern { position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 70px); }
.final-cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.final-cta h2 { color: var(--white); font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 8px; max-width: 480px; }
.final-cta p { color: rgba(255,255,255,0.75); margin: 0; max-width: 440px; }
.final-cta-compass { width: 40px; height: 40px; flex-shrink: 0; display: none; }
.final-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 900px) { .final-cta-compass { display: block; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 60px 0 0; position: relative; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; background-image: repeating-linear-gradient(120deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 60px); }
.footer-top { position: relative; display: flex; align-items: center; gap: 22px; padding-bottom: 36px; flex-wrap: wrap; }
.footer-logo-plate { background: var(--white); border-radius: var(--radius-md); padding: 10px 16px; display: inline-flex; }
.footer-logo-img { height: 46px; width: auto; }
.footer-tagline { color: var(--gold-light); font-weight: 600; margin: 0 0 4px; }
.footer-statement { font-size: 13.5px; color: rgba(255,255,255,0.6); margin: 0; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.1fr; gap: 30px; padding-bottom: 44px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 40px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 12.5px; font-family: var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 13.5px; color: rgba(255,255,255,0.72); }
.footer-nav a:hover { color: var(--white); }
.footer-contact p { margin: 0 0 8px; font-size: 13.5px; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-bottom { position: relative; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-legal-inline { display: flex; gap: 18px; list-style: none; }
.footer-legal-inline a { color: rgba(255,255,255,0.6); }
.footer-legal-inline a:hover { color: var(--white); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: -100%; z-index: 300; background: var(--white); border-top: 1px solid #e2e6eb; box-shadow: 0 -10px 40px rgba(13,27,42,0.15); transition: bottom 0.4s var(--ease); }
.cookie-banner.visible { bottom: 0; }
.cookie-inner { max-width: var(--container-w); margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13.5px; color: var(--navy); flex: 1 1 320px; min-width: 240px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-links { display: flex; gap: 14px; font-size: 12px; }
.cookie-links a { color: var(--slate); text-decoration: underline; }
@media (max-width: 700px) { .cookie-inner { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: stretch; } .cookie-actions .btn { flex: 1; } }

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 250; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-toggle { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--forest), var(--navy)); border: 2px solid var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 30px rgba(13,27,42,0.35); transition: transform 0.2s var(--ease); }
.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle svg { width: 26px; height: 26px; }
.chat-panel { width: 320px; max-height: 0; overflow: hidden; background: var(--navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); border: 1px solid rgba(212,175,55,0.25); opacity: 0; transform: translateY(10px); transition: all 0.28s var(--ease); }
.chat-panel.open { max-height: 480px; opacity: 1; transform: translateY(0); }
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--white); }
.chat-panel-head div { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.2); }
.chat-panel-head button { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 22px; cursor: pointer; line-height: 1; }
.chat-body { padding: 16px 18px 20px; }
.chat-bubble { background: rgba(255,255,255,0.07); border-radius: var(--radius-md); padding: 12px 14px; font-size: 13.5px; color: rgba(255,255,255,0.9); margin-bottom: 14px; }
.chat-options { display: flex; flex-direction: column; gap: 8px; }
.chat-options a { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; font-weight: 600; color: var(--gold-light); transition: all 0.16s ease; }
.chat-options a:hover { background: rgba(212,175,55,0.2); }
@media (max-width: 480px) { .chat-panel { width: calc(100vw - 48px); } }
