/* ============================================================
   Dow Blue Medical Courier — Core Stylesheet
   Palette pulled from brand logo:
     Navy  #0A2F4E (primary) / #071D30 (deep)
     Teal  #14798C (accent)  / #3FB6C4 (light accent)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy-deep: #071d30;
  --navy: #0a2f4e;
  --navy-soft: #123a5c;
  --teal: #14798c;
  --teal-light: #3fb6c4;
  --teal-pale: #e4f3f4;
  --ink: #16232e;
  --ink-soft: #4c5b68;
  --paper: #f6f8f9;
  --white: #ffffff;
  --line: #dde5e9;
  --gold: #c9a24b;
  --gold-pale: #faf1de;
  --navy-pale: #e7edf3;
  --coral: #e0663f;
  --coral-pale: #fdece6;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(7, 29, 48, 0.06), 0 8px 24px -12px rgba(7, 29, 48, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #0f6474; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ============ Header ============ */
.top-strip {
  background: var(--navy-deep);
  color: #cfe3ea;
  font-size: 0.83rem;
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.top-strip a { color: #e8f3f5; }
.top-strip a:hover { color: var(--teal-light); }
.top-strip__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.top-strip__contacts span, .top-strip__contacts a { display: inline-flex; align-items: center; gap: 6px; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--teal); }
nav.main-nav a.is-active { color: var(--teal); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 940px) {
  /* The header uses backdrop-filter, which makes it the containing block for
     fixed children, so the drawer hangs off the header with absolute positioning. */
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(7,29,48,0.25);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px 28px;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    overflow-y: auto;
  }
  nav.main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .nav-toggle { display: block; }
  .nav-actions .btn-navy { padding: 9px 13px; font-size: 0.78rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .nav-actions .btn-navy { padding: 8px 10px; font-size: 0.72rem; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: 96px 0 64px;
}
.hero .container {
  max-width: 780px;
}
.hero-eyebrow {
  display: block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.hero h1 { color: var(--navy-deep); margin-bottom: 20px; }
.hero p.lede { color: var(--ink-soft); font-size: 1.15rem; max-width: 58ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ============ Stat band ============ */
.stat-band { background: var(--navy-deep); padding: 40px 0; }
.stat-band__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stat-band__row { grid-template-columns: repeat(2, 1fr); } }
.stat-band__item { text-align: center; padding: 0 10px; }
.stat-band__item .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 4px;
}
.stat-band__item .lbl { color: #9db1bd; font-size: 0.85rem; }

/* ============ Trust strip ============ */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding: 30px 0; }
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 44px;
  justify-content: space-between;
  align-items: center;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: 0.92rem; }
.trust-item .trust-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 2px rgba(7,29,48,0.08);
}
.trust-item:nth-child(2) .trust-icon { color: var(--navy); }
.trust-item:nth-child(3) .trust-icon { color: #96731f; }
.trust-item:nth-child(4) .trust-icon { color: var(--coral); }

/* ============ Cards / grids ============ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card .icon-wrap,
.card .icon-wrap.navy,
.card .icon-wrap.gold,
.card .icon-wrap.coral {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border-radius: 0;
  margin-bottom: 16px;
  color: var(--navy);
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.9rem; }

.service-card { display: flex; flex-direction: column; height: 100%; }

/* ============ Bands ============ */
.band-navy {
  background: var(--navy-deep);
  color: #dfe9ee;
  position: relative;
}
.band-navy h2 { color: var(--white); }
.band-navy p { color: #b9cbd4; }
.band-paper { background: var(--paper); }
.band-teal-pale { background: var(--teal-pale); }

/* ============ Split sections ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.split > * { min-width: 0; }
.split.reverse .split-media { order: 2; }

.list-check { list-style: none; padding: 0; margin: 22px 0; }
.list-check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
.list-check svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); }

.area-list {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ============ Photo placeholder ============ */
.photo-block {
  position: relative;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
}
.photo-block .tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Orbit graphic (echoes logo mark) */
.orbit-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
}
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orbit-ring.r1 { inset: 0; }
.orbit-ring.r2 { inset: 14%; border-color: rgba(20,121,140,0.35); }
.orbit-ring.r3 { inset: 30%; border-color: rgba(20,121,140,0.6); }
.orbit-core {
  position: absolute; inset: 42%;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(10,47,78,0.5);
}
.orbit-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--teal-pale);
}

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
@media (max-width: 940px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: left; padding-top: 20px; border-top: 2px solid var(--navy-deep); }
.process-step .process-num { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); margin-bottom: 10px; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { margin: 0; font-size: 0.92rem; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.feature-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .feature-row { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .feature-row { grid-template-columns: 1fr !important; } }
.feature-item { border-top: 2px solid var(--navy-deep); padding-top: 18px; }
.feature-item h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.92rem; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-row .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); display: block; }
.stat-row .lbl { color: var(--ink-soft); font-size: 0.9rem; }

/* ============ Testimonials ============ */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px;
}
.quote-card p.quote-text { font-style: italic; color: var(--ink); font-size: 0.98rem; }
.quote-card .who { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.quote-card .role { color: var(--ink-soft); font-size: 0.85rem; }

/* ============ FAQ / accordion ============ */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item button.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-item .acc-trigger .plus { transition: transform 0.2s ease; flex-shrink: 0; color: var(--teal); }
.accordion-item.is-open .acc-trigger .plus { transform: rotate(45deg); }
.accordion-item .acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-item.is-open .acc-panel { max-height: 400px; }
.accordion-item .acc-panel-inner { padding-bottom: 20px; }

/* ============ CTA banner ============ */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--teal) 130%);
  color: var(--white);
  border-radius: 10px;
  padding: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ============ Footer ============ */
footer.site-footer { background: var(--navy-deep); color: #b9cbd4; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4, footer.site-footer .footer-title { color: var(--white); font-family: var(--font-body); font-size: 0.92rem; letter-spacing: 0.02em; margin-bottom: 16px; }
footer.site-footer .brand img { height: 38px; margin-bottom: 14px; }
footer.site-footer p { color: #93a9b3; font-size: 0.9rem; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site-footer a { color: #cfe0e6; font-size: 0.92rem; }
footer.site-footer a:hover { color: var(--teal-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #cfe0e6; font-size: 0.92rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #7f97a2;
}

/* ============ Page header (interior pages) ============ */
.page-header {
  background: var(--paper);
  color: var(--ink);
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
}
.page-header .breadcrumb { color: var(--teal); font-size: 0.85rem; margin-bottom: 10px; }
.page-header h1 { color: var(--navy-deep); margin-bottom: 10px; }
.page-header p { color: var(--ink-soft); max-width: 60ch; }

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-pale);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.form-status { font-size: 0.9rem; margin-top: 12px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #9b2c2c; }
.form-status.is-error a { text-decoration: underline; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid.is-sent { display: block; }
.form-success { text-align: center; padding: 28px 12px; outline: none; }
.form-success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 28px; line-height: 56px; margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; color: var(--navy-deep); }
.form-success p { max-width: 46ch; margin: 0 auto 10px; }
.form-success__note { font-size: 0.9rem; color: var(--ink-soft); }

/* ============ Careers ============ */
.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.role-card + .role-card { margin-top: 16px; }
.role-card .tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.step-row { counter-reset: step; }
.step-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.step-num::before { content: counter(step); }

/* ============ Map embed ============ */
.map-embed { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.jump-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.86rem;
}
.jump-nav a:hover { color: var(--teal); }

/* ============ AI Assistant Widget ============ */
#ai-launcher {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 15px 22px 15px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 30px -6px rgba(10,47,78,0.55);
  transition: transform 0.15s ease, background 0.15s ease;
}
#ai-launcher:hover { transform: translateY(-2px); background: var(--navy-soft); }
#ai-launcher .pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal-light);
  box-shadow: 0 0 0 0 rgba(63,182,196,0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63,182,196,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(63,182,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,182,196,0); }
}

#ai-panel {
  position: fixed;
  bottom: 96px;
  right: 26px;
  z-index: 900;
  width: 360px;
  max-width: calc(100vw - 36px);
  max-height: 70vh;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 60px -12px rgba(7,29,48,0.35);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#ai-panel.is-open { display: flex; }
.ai-panel__head {
  background: var(--navy-deep);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ai-panel__head .who { display: flex; align-items: center; gap: 10px; }
.ai-panel__head .who .dot { width: 8px; height: 8px; border-radius: 50%; background: #59d6a7; }
.ai-panel__head h4, .ai-panel__head .ai-title { color: var(--white); margin: 0; font-family: var(--font-body); font-size: 0.95rem; }
.ai-panel__head p:not(.ai-title) { margin: 0; color: #9fb7c1; font-size: 0.76rem; }
.ai-panel__close { background: none; border: none; color: #cddce4; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px; }
.ai-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 10px; font-size: 0.89rem; line-height: 1.45; }
.ai-msg.bot { background: var(--white); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 2px; }
.ai-msg.user { background: var(--teal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 2px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; background: var(--paper); }
.ai-chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.79rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 100px;
  cursor: pointer;
}
.ai-chip:hover { border-color: var(--teal); color: var(--teal); }
.ai-panel__foot {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.ai-panel__foot input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.ai-panel__foot input:focus { outline: none; border-color: var(--teal); }
.ai-panel__foot button {
  background: var(--teal);
  color: var(--white);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.ai-panel__foot button:hover { background: #0f6474; }
.ai-disclosure { font-size: 0.72rem; color: var(--ink-soft); padding: 0 16px 12px; background: var(--paper); margin: 0; }

/* ============ Client form extras ============ */
.form-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin: 10px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; }
.field .field-label { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-top: 4px; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.field .check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.field .check input {
  width: 18px;
  height: 18px;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--teal);
}

/* Small phones: keep logo, button and menu icon on one row inside the gutters */
@media (max-width: 480px) {
  .brand img { height: 30px; }
  .nav-row { gap: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-navy { padding: 8px 10px; font-size: 0.74rem; }
}

/* Footer polish: keep the logo readable on the dark footer, and keep the chat button off the last line */
footer.site-footer .brand img {
  height: 34px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  box-sizing: content-box;
}
.footer-bottom { padding-bottom: 76px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul { padding-left: 1.2em; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.legal-date { color: var(--ink-soft); font-size: 0.9rem; }

/* Footer legal links */
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: #b5c6ce; font-size: 0.82rem; }

/* Accessibility helpers */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; font-weight: 600; }
.skip-link:focus { left: 8px; color: #fff; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Mobile call bar */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(7,29,48,0.25); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; text-decoration: none; color: #fff; }
  .mobile-bar a:hover { color: #fff; }
  .mobile-bar__call { background: var(--teal); }
  .mobile-bar__quote { background: var(--navy); }
  body { padding-bottom: 70px; }
  #ai-launcher { bottom: 82px; right: 14px; }
  #ai-panel { bottom: 136px; right: 14px; max-height: calc(100vh - 220px); }
  .footer-bottom { padding-bottom: 20px; }
}

/* Accessibility: contrast and link affordance */
:root { --teal-dark: #0f6678; }
.tag, .band-teal-pale .kicker { color: var(--teal-dark); }
main p a:not(.btn), main li a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }

.ai-panel__head .ai-title { color: var(--white); margin: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; }
.role-card .tag { color: var(--teal-dark); }

/* Phone polish: tidier top bar, comfortable tap targets, cleaner jump list */
@media (max-width: 640px) {
  .top-strip__contacts { display: none; }
  .top-strip .container { padding-top: 0; padding-bottom: 0; justify-content: center; }
  .top-strip a { padding: 9px 0; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  footer.site-footer li a, .footer-legal a { display: inline-block; padding: 8px 0; }
  .footer-legal { gap: 22px; }
  a.card-link { display: inline-block; padding: 12px 0 4px; }
  .jump-nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .jump-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; }
  .jump-nav a:last-child { border-bottom: 0; }
}
