/* ============================================================
   Cassini Health — Modern Health-System Design System
   "Precision care. Protected by design."
   ============================================================ */

:root {
  --navy:       #102A43;
  --navy-2:     #0B1E30;
  --blue:       #0F6FB5;
  --blue-dark:  #0C5A94;
  --blue-light: #E7F1F9;
  --gold:       #E0A458;
  --gold-dark:  #C8893B;
  --teal:       #1AA6A0;
  --bg:         #FFFFFF;
  --bg-soft:    #F4F8FC;
  --white:      #FFFFFF;
  --text:       #163049;
  --muted:      #5A6B7D;
  --border:     #E2EAF1;

  --banner-h: 34px;

  --r-pill: 999px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-xs: 0 2px 8px rgba(16,42,67,.06);
  --shadow-sm: 0 6px 20px rgba(16,42,67,.08);
  --shadow-md: 0 14px 36px rgba(16,42,67,.12);
  --shadow-lg: 0 28px 70px rgba(16,42,67,.18);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: #fff; color: var(--blue); border-color: #cfe0ef; }
.btn-ghost:hover { background: var(--blue-light); color: var(--blue-dark); border-color: var(--blue); }
.btn-ghost-dark { background: transparent; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* --- Eyebrows / Section heads --- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow-dark { color: var(--blue); }
.section { padding: 90px 0; }
.section-light { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.section-head-center { justify-content: center; text-align: center; }
.section-head h2, .section h2 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); font-weight: 800; letter-spacing: -.6px; line-height: 1.15; }

/* --- Demo Banner --- */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10001; height: var(--banner-h);
  display: flex; align-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(90deg, var(--navy-2) 0%, var(--navy) 35%, var(--blue-dark) 70%, var(--navy-2) 100%);
  border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 2px 16px rgba(16,42,67,.16);
  font-size: .78rem; font-weight: 650; letter-spacing: .02em; white-space: nowrap;
}
.demo-banner::before, .demo-banner::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 82px; z-index: 1; pointer-events: none;
}
.demo-banner::before { left: 0; background: linear-gradient(90deg, var(--navy-2), transparent); }
.demo-banner::after { right: 0; background: linear-gradient(270deg, var(--navy-2), transparent); }
.demo-banner-track { display: flex; gap: 42px; min-width: max-content; animation: bannerScroll 28s linear infinite; }
.demo-banner-track span { display: inline-flex; align-items: center; gap: 10px; padding-left: 42px; color: rgba(255,255,255,.84); }
.demo-banner-track strong { color: var(--navy); background: var(--gold); border-radius: var(--r-pill); padding: 3px 9px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
@keyframes bannerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .demo-banner { justify-content: center; padding: 0 18px; }
  .demo-banner-track { animation: none; min-width: 0; }
  .demo-banner-track span { padding-left: 0; }
  .demo-banner-track span[aria-hidden="true"] { display: none; }
}

/* --- Header --- */
.site-header { position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 1000; background: #fff; transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 4px 22px rgba(16,42,67,.10); }
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-phone { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); }
.topbar-phone svg { width: 15px; height: 15px; color: var(--gold); }
.topbar-phone strong { color: #fff; }
.topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar-links a { color: rgba(255,255,255,.8); font-weight: 500; }
.topbar-links a:hover { color: #fff; }
.topbar-portal { color: var(--gold) !important; font-weight: 600 !important; }

.navbar { border-bottom: 1px solid var(--border); }
.nav-content { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.logo-mark img, .logo-mark svg { width: 42px; height: 42px; display: block; }
.logo-text { font-size: 23px; font-weight: 800; color: var(--navy); letter-spacing: -.6px; }
.logo-text-accent { color: var(--blue); }
.nav-links { display: flex; list-style: none; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--navy); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; }

/* --- Hero --- */
.hero { padding: 156px 0 84px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(40px, 5.4vw, 62px); color: var(--navy); font-weight: 800; line-height: 1.06; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero-sub { font-size: 18.5px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 7px 7px 7px 18px; box-shadow: var(--shadow-sm); max-width: 560px;
}
.hero-search-icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; border: none; outline: none; font-size: 15px; font-family: inherit; color: var(--text); background: transparent; min-width: 0; }
.hero-search .btn { padding: 11px 22px; }
.hero-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.chips-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.chip { font-size: 13.5px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--border); padding: 7px 15px; border-radius: var(--r-pill); transition: all .18s; }
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.hero-media { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero-stat-card {
  position: absolute; left: -22px; bottom: -24px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 16px 22px; display: flex; flex-direction: column; border: 1px solid var(--border);
}
.hero-stat-num { font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1; }
.hero-stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.hero-badge-card {
  position: absolute; top: 22px; right: -14px; background: #fff; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); padding: 9px 16px 9px 12px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--navy); max-width: 210px; border: 1px solid var(--border);
}
.hero-badge-card svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* --- Care Access --- */
.care-access { padding: 64px 0; background: #fff; }
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.care-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.care-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.care-card-emergency { border-top: 4px solid #d9534f; }
.care-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.care-icon svg { width: 24px; height: 24px; }
.icon-blue { background: var(--blue-light); color: var(--blue); }
.icon-gold { background: #FBEFDD; color: var(--gold-dark); }
.icon-teal { background: #E2F4F3; color: var(--teal); }
.icon-red { background: #FCEAE9; color: #d9534f; }
.care-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.care-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.care-link { font-size: 14.5px; font-weight: 700; color: var(--blue); }

/* --- Specialty Grid --- */
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.specialty-card {
  display: flex; align-items: flex-start; gap: 16px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.specialty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.specialty-icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; display: flex; align-items: center; justify-content: center; }
.specialty-icon svg { width: 26px; height: 26px; }
.specialty-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 5px; }
.specialty-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* --- Care Team Image Band --- */
.image-band {
  position: relative; min-height: 380px; display: flex; align-items: flex-end; padding: 56px 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(26,166,160,.32) 0 13%, transparent 35%),
    radial-gradient(circle at 24% 25%, rgba(224,164,88,.22) 0 10%, transparent 30%),
    linear-gradient(135deg, #0B1E30 0%, #102A43 52%, #0F5D8F 100%);
  background-color: var(--navy);
  overflow: hidden;
}
.image-band::before {
  content: ''; position: absolute; width: 520px; height: 180px; right: -80px; top: 64px;
  border: 2px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotate(-18deg);
}
.image-band::after {
  content: ''; position: absolute; width: 360px; height: 360px; right: 8%; bottom: -170px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: inset 0 0 0 28px rgba(255,255,255,.03);
}
.image-band-content { position: relative; z-index: 1; color: #fff; max-width: 720px; }
.image-band-content .eyebrow { color: var(--gold); }
.image-band-content h2 { color: #fff; margin-bottom: 12px; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -1px; line-height: 1.08; }
.image-band-content p { font-size: 17px; opacity: .92; }
.image-band-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.image-band-metrics span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-pill); background: rgba(255,255,255,.08); color: rgba(255,255,255,.86); font-size: 13px; font-weight: 600; backdrop-filter: blur(12px); }
.image-band-metrics strong { color: #fff; font-size: 16px; }

/* --- Stats --- */
.stats { background: var(--blue-light); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; text-align: center; }
.stat-num { display: block; font-size: clamp(38px, 5vw, 50px); font-weight: 800; color: var(--navy); letter-spacing: -1.5px; }
.stat-num::after { content: ''; display: block; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; margin: 12px auto 0; }
.stat-label { display: block; font-size: 13.5px; color: var(--blue-dark); margin-top: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* --- Recognition --- */
.recognition { background: #fff; padding: 46px 0; }
.recognition-lead { text-align: center; color: var(--muted); font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 22px; }
.recognition-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.recognition-badge { background: var(--bg-soft); color: var(--navy); font-size: 13.5px; font-weight: 600; padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid var(--border); }

/* --- Find a Location --- */
.locate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.locate-copy h2 { margin-bottom: 16px; }
.locate-copy > p { color: var(--muted); font-size: 16px; margin-bottom: 24px; max-width: 460px; }
.locate-search { display: flex; gap: 10px; max-width: 440px; margin-bottom: 24px; flex-wrap: wrap; }
.locate-search input { flex: 1; min-width: 180px; padding: 13px 18px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s; }
.locate-search input:focus { border-color: var(--blue); }
.locate-points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.locate-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); font-weight: 500; }
.locate-points svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
.locate-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center top; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.trust-panel { position: relative; min-height: 520px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(145deg, #0B1E30 0%, #102A43 50%, #0B6B8C 100%); padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; }
.trust-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 28% 20%, rgba(224,164,88,.24), transparent 32%), radial-gradient(circle at 80% 18%, rgba(26,166,160,.26), transparent 36%); }
.trust-panel::after { content: ''; position: absolute; width: 360px; height: 118px; left: -44px; top: 64px; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotate(-20deg); }
.trust-orbit { position: absolute; top: 44px; left: 34px; width: 118px; height: 118px; border-radius: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(12px); }
.trust-orbit img { width: 86px; height: 86px; }
.trust-list { position: relative; z-index: 1; display: grid; gap: 14px; }
.trust-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-md); background: rgba(255,255,255,.09); backdrop-filter: blur(14px); }
.trust-item span { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(224,164,88,.18); color: #F0C06A; font-size: 12px; font-weight: 800; }
.trust-item strong { display: block; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.trust-item p { color: rgba(255,255,255,.74); font-size: 13.5px; line-height: 1.5; margin: 0; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 16px; margin-bottom: 16px; line-height: 1.75; }
.about-copy blockquote { margin-top: 22px; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; color: var(--navy); font-size: 16px; line-height: 1.6; }
.about-copy cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--blue); }

/* --- Stories --- */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.story-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.story-img, .story-visual { aspect-ratio: 16/10; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story-card:hover .story-img img { transform: scale(1.05); }
.story-visual { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0D7C76, #1AA6A0 48%, #E0A458); }
.story-visual svg { width: 100%; height: 100%; display: block; }
.story-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.story-tag { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 12px; }
.tag-teal { background: #E2F4F3; color: #0f7a75; }
.tag-gold { background: #FBEFDD; color: var(--gold-dark); }
.tag-blue { background: var(--blue-light); color: var(--blue-dark); }
.story-body h3 { font-size: 19px; color: var(--navy); line-height: 1.3; margin-bottom: 8px; }
.story-body p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.story-link { font-size: 14.5px; font-weight: 700; color: var(--blue); }

/* --- Research CTA --- */
.research-cta {
  color: #fff; text-align: center; padding: 96px 0;
  background: linear-gradient(180deg, rgba(16,42,67,.90) 0%, rgba(11,30,48,.94) 100%), url('/assets/images/lab.jpg') center / cover no-repeat;
  background-color: var(--navy);
}
.research-inner { max-width: 700px; margin: 0 auto; }
.research-inner .eyebrow { color: var(--gold); }
.research-inner h2 { color: #fff; margin-bottom: 16px; }
.research-inner > p { font-size: 18px; opacity: .9; margin-bottom: 34px; }
.research-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Quicklinks --- */
.quicklinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.quicklink { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.quicklink:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); background: #fff; }
.quicklink h4 { font-size: 16.5px; color: var(--navy); margin-bottom: 8px; }
.quicklink p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* --- Footer --- */
.footer { background: var(--navy-2); color: rgba(255,255,255,.7); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-logo img, .footer-logo svg { width: 46px; height: 46px; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-portal { padding: 11px 22px; font-size: 14px; }
.footer-links h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.62); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; }
.footer-disclaimer { margin-top: 8px; font-size: 12px; opacity: .5; font-style: italic; max-width: 760px; margin: 8px auto 0; }

/* --- Chat Widget --- */
.chat-button { position: fixed; bottom: 26px; right: 26px; width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff; border: none; cursor: pointer; box-shadow: 0 6px 24px rgba(15,111,181,.45); display: flex; align-items: center; justify-content: center; transition: transform .2s, box-shadow .2s; z-index: 9999; }
.chat-button:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(15,111,181,.55); }
.chat-button svg { width: 28px; height: 28px; }
.chat-panel { position: fixed; bottom: 98px; right: 26px; width: 384px; height: 540px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 9998; overflow: hidden; animation: chatSlideUp .3s ease; }
@keyframes chatSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-title { display: flex; align-items: center; gap: 10px; }
.chat-header-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(26,166,160,.25); }
.chat-header h3 { font-size: 15px; font-weight: 600; }
.chat-close { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 22px; padding: 4px; line-height: 1; transition: color .2s; }
.chat-close:hover { color: #fff; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 86%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.typing { align-self: flex-start; background: var(--bg-soft); color: #8a9aaa; font-style: italic; }
.chat-msg.blocked { align-self: flex-start; background: #fff3e0; color: #b35900; border: 1px solid #ffcc80; border-bottom-left-radius: 4px; font-weight: 500; }
.chat-input-area { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-input { flex: 1; padding: 11px 15px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 14px; outline: none; font-family: inherit; transition: border-color .2s; }
.chat-input:focus { border-color: var(--blue); }
.chat-send { padding: 11px 18px; background: var(--blue); color: #fff; border: none; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.chat-send:hover { background: var(--blue-dark); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 560px; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .quicklinks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .locate-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; width: 100%; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 24px; gap: 14px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 120px 0 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .section { padding: 64px 0; }
  .hero-stat-card { left: 12px; }
  .hero-badge-card { right: 8px; }
}
@media (max-width: 560px) {
  .care-grid, .specialty-grid, .quicklinks, .footer-grid { grid-template-columns: 1fr; }
  .image-band { min-height: 340px; padding: 44px 0; }
  .image-band-metrics { gap: 8px; }
  .trust-panel { min-height: 460px; padding: 24px; }
  .trust-orbit { width: 96px; height: 96px; top: 28px; left: 24px; border-radius: 22px; }
  .trust-orbit img { width: 72px; height: 72px; }
  .trust-item { padding: 14px; }
  .chat-panel { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
  .chat-button { bottom: 16px; right: 16px; }
  .hero-search { flex-wrap: wrap; border-radius: var(--r-md); padding: 14px; }
  .hero-search input { width: 100%; }
  .hero-search .btn { width: 100%; }
}
