/* =========================================================
   Burgoyne Insurance — Design System
   Clean, professional, trust-focused. Deep navy + warm gold.
   ========================================================= */

/* --- Design Tokens — Official Burgoyne Insurance brand --- */
:root {
  /* Palette — from the BI brand book */
  --navy-900: #061833;       /* BI Dark Blue — primary */
  --navy-800: #0a1f42;       /* tint */
  --navy-700: #1e3957;       /* Forest Blues — secondary */
  --navy-600: #233d7c;       /* Mazarine Blue */
  --ink: #181818;            /* BI Black */
  --ink-soft: #2e3744;
  --ink-muted: #636c78;
  --line: #e4e9ef;
  --line-soft: #f0f3f7;
  --paper: #ffffff;
  --cream: #f7f9fc;
  --cream-deep: #eef2f7;
  --lightblue: #a6d2e7;      /* BI Light Blue — accent */
  --lightblue-soft: #d4e8f3;
  --gold: #cb912e;           /* Metallic Gold */
  --gold-deep: #a37321;
  --gold-soft: #caa45d;      /* Vegas Gold */
  --umber: #322612;          /* Umber Brown */
  --danger: #b91c1c;
  --success: #166534;

  /* Typography — from the BI brand book */
  --font-display: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --container: 1200px;
  --container-narrow: 880px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-deep); }
button { font-family: inherit; cursor: pointer; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-transform: none;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  display: inline-block;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }

/* --- Layout helpers --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy-900); color: #e5e7eb; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: #cbd5e1; }
.bg-navy .eyebrow { color: var(--gold-soft); }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.nav-brand img { height: 48px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-text small { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-deep); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy-900); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(11,26,46,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s var(--ease);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--navy-900); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  color: var(--navy-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--line-soft); }
  .nav-links > li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 0.85rem 0; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.5rem 1rem;
    opacity: 1; visibility: visible; transform: none;
    min-width: 0;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(176,138,62,0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(11,26,46,0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero h1 {
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 300;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(176,138,62,0.12);
  color: var(--gold-deep);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-visual {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(166,210,231,0.35) 0%, transparent 65%);
  filter: blur(20px);
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 20px 40px rgba(6,24,51,0.25));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Quote card (homepage about section) */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 40px -25px rgba(6,24,51,0.15);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.quote-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--navy-900);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.quote-attribution {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Small hero for inner pages */
.hero-inner {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-inner::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  border: 1px solid rgba(166,210,231,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner::before {
  content: "";
  position: absolute;
  right: 40px; top: 20px;
  width: 200px; height: 200px;
  border: 1px solid rgba(166,210,231,0.25);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner h1 { color: #fff; margin-bottom: 1rem; }
.hero-inner .lead { color: rgba(255,255,255,0.85); }
.hero-inner .eyebrow { color: var(--lightblue); }
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--lightblue); }

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(11,26,46,0.15); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  color: var(--lightblue);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.service-card-icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { flex-grow: 1; font-size: 0.95rem; }
.service-card-link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy-900);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.service-card-link::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.service-card-link:hover::after { transform: translateX(4px); }

/* --- Feature rows (for inner pages) --- */
.feature-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 100px; /* Anchor jumps clear the sticky header */
}
.feature-block:last-child { border-bottom: 0; }
.feature-block h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.feature-block .feature-num {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Bulleted content */
.content-body ul { padding-left: 1.25rem; margin: 1rem 0 1.5rem; }
.content-body ul li { margin-bottom: 0.5rem; color: var(--ink-soft); }
.content-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-soft);
  background: var(--cream);
}
.content-body .highlight {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 1.5rem 0;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.team-card {
  text-align: center;
}
.team-card-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(11,26,46,0.2);
  position: relative;
}
.team-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.team-card-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 1rem;
}
.team-card p { font-size: 0.95rem; text-align: left; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-item-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--gold-deep);
  border-radius: var(--radius);
}
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-item-value { color: var(--navy-900); font-weight: 500; }
.contact-item-value a { color: var(--navy-900); }
.contact-item-value a:hover { color: var(--gold-deep); }

/* Form */
.form {
  background: #fff;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.bg-cream .form { box-shadow: 0 10px 30px -15px rgba(11,26,46,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,138,62,0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: #f0fdf4; color: var(--success); border: 1px solid #86efac; }
.form-status.error { display: block; background: #fef2f2; color: var(--danger); border: 1px solid #fca5a5; }

/* --- Stats / trust strip --- */
.trust-strip {
  background: var(--navy-900);
  color: #fff;
  padding: 2rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-stat-num {
  font-family: var(--font-ui);
  font-size: 2.5rem;
  color: var(--lightblue);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.trust-stat-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border: 1px solid rgba(217,191,122,0.15);
  border-radius: 50%;
  top: -200px; left: -100px;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border: 1px solid rgba(217,191,122,0.2);
  border-radius: 50%;
  bottom: -150px; right: -50px;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 48ch; margin: 0 auto 2rem; position: relative; }
.cta-band .btn { position: relative; }
.cta-band .btn-primary { background: var(--gold); }
.cta-band .btn-primary:hover { background: var(--gold-deep); }

/* --- Footer --- */
.site-footer {
  background: #07111f;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Chatbot --- */
.chatbot {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  font-family: var(--font-body);
}
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 0;
  color: var(--gold-soft);
  box-shadow: 0 10px 30px rgba(11,26,46,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s var(--ease);
}
.chatbot-toggle:hover { transform: scale(1.05); background: var(--navy-700); }
.chatbot-toggle svg { width: 28px; height: 28px; }
.chatbot-toggle.open svg.icon-chat { display: none; }
.chatbot-toggle:not(.open) svg.icon-close { display: none; }

.chatbot-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: min(380px, calc(100vw - 3rem));
  max-height: min(600px, calc(100vh - 120px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(11,26,46,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: var(--navy-900);
  color: #fff;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.chatbot-header-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
}
.chatbot-header-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chatbot-header-title { font-weight: 600; font-size: 0.95rem; }
.chatbot-header-sub { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.chatbot-header-status {
  margin-left: auto;
  font-size: 0.7rem;
  color: #86efac;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chatbot-header-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: chatFadeIn .25s var(--ease);
}
@keyframes chatFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-msg-bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  background: var(--navy-900);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg a { color: var(--gold-deep); font-weight: 600; }
.chat-msg-bot a { color: var(--navy-700); }
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.chat-suggestion {
  padding: 0.45rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--navy-900);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.chat-suggestion:hover { border-color: var(--gold); background: var(--cream-deep); }
.chatbot-input-row {
  display: flex;
  padding: 0.75rem;
  gap: 0.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.chatbot-input {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.chatbot-input:focus { border-color: var(--gold); }
.chatbot-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chatbot-send:hover { background: var(--navy-700); }
.chatbot-send svg { width: 18px; height: 18px; }
.chatbot-disclaimer {
  font-size: 0.7rem;
  color: var(--ink-muted);
  padding: 0.5rem 1rem 0.75rem;
  text-align: center;
  background: #fff;
}

/* --- Animations ---
   Progressive enhancement: if JS is disabled or fails, content stays visible.
   The .js-ready class is added to <html> by script.js before the observer runs. */
.reveal { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-ready .reveal { opacity: 0; transform: translateY(20px); }
.js-ready .reveal.visible { opacity: 1; transform: none; }

/* --- Utility --- */
.text-center { text-align: center; }
.max-prose { max-width: 65ch; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
