/* ==========================================================================
   MB Professional Accounting — mbprofessionalaccounting.com
   Brand: Ocean Blue #10252a · Hooker's Green #4c7070 · Dark Brown #533423
          Gunmetal #292a2c · Carbon #111111 · White #ffffff
   Type:  Playfair Display (display) · Inter Tight (text)
   ========================================================================== */

:root {
  --ink: #10252a;
  --ink-soft: #1a3238;
  --gunmetal: #292a2c;
  --teal: #4c7070;
  --teal-deep: #3d5c5c;
  --brown: #533423;
  --carbon: #111111;
  --white: #ffffff;
  --paper: #f6f5f2;
  --paper-2: #eeece7;
  --line: rgba(16, 37, 42, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --text: #2c3a3d;
  --text-soft: #566467;
  --text-on-dark: rgba(255, 255, 255, 0.82);
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter Tight", "Segoe UI", -apple-system, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 18px 40px -18px rgba(16, 37, 42, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--teal); color: #fff; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 12px;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.7;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--text-on-dark); }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head p { color: var(--text-soft); }
.section-ink .section-head p { color: var(--text-on-dark); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper-2); color: var(--ink); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: #fff; border-color: var(--line-light); }
.btn-ghost:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link with arrow */
.arrow-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  white-space: nowrap;
}
.arrow-link::after { content: "\2192"; margin-left: 8px; transition: margin 0.2s ease; }
.arrow-link:hover::after { margin-left: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  font-size: 0.93rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { font-weight: 500; }

/* Dropdown */
.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 8px;
}
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  color: var(--text) !important;
  font-weight: 400;
  padding: 0.55rem 0.9rem;
}
.sub-menu a:hover { background: var(--paper); color: var(--ink) !important; }
.sub-menu .sub-all a { font-weight: 500; color: var(--teal-deep) !important; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 0.8rem; }

.header-cta { margin-left: 10px; }
.header-cta .btn { padding: 0.62rem 1.4rem; font-size: 0.88rem; }
/* Beat the .site-nav a color rules so the light button keeps dark text */
.site-nav .header-cta a.btn-light { color: var(--ink); }
.site-nav .header-cta a.btn-light:hover { color: var(--ink); background: var(--paper-2); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
    padding: 12px 24px 28px;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 0.8rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent;
    border: 0; box-shadow: none;
    padding: 0 0 0 18px;
  }
  .sub-menu a { color: rgba(255,255,255,0.65) !important; font-size: 0.95rem !important; }
  .sub-menu a:hover { background: transparent; color: #fff !important; }
  .sub-menu .sub-all a { border-top: 0; color: var(--teal) !important; }
  .has-sub > a::after { display: none; }
  .header-cta { margin: 18px 0 0; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 100% 72px,
    radial-gradient(1100px 500px at 85% -10%, rgba(76,112,112,0.28), transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 820px; }

.hero .eyebrow { color: rgba(255,255,255,0.65); }
.hero .eyebrow::before { background: var(--teal); }

.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: #a9c4c4; }

.hero p {
  font-size: 1.22rem;
  font-weight: 300;
  color: var(--text-on-dark);
  max-width: 620px;
  margin-bottom: 2.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}
.hero-meta div { max-width: 240px; }
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}
.hero-meta span { font-size: 0.92rem; color: rgba(255,255,255,0.62); line-height: 1.5; display: block; }

/* Inner page hero */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 90% -20%, rgba(76,112,112,0.25), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; max-width: 780px; margin-bottom: 0.8rem; }
.page-hero p { font-size: 1.15rem; font-weight: 300; color: var(--text-on-dark); max-width: 660px; margin: 0; }
.page-hero .eyebrow { color: rgba(255,255,255,0.65); }

/* Breadcrumbs */
.breadcrumbs {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.6rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,0.3); }
.breadcrumbs a { color: rgba(255,255,255,0.65); }
.breadcrumbs a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(76,112,112,0.45); }

.card .icon {
  width: 44px; height: 44px;
  color: var(--teal-deep);
  margin-bottom: 1.2rem;
}
.card .icon svg { width: 100%; height: 100%; }

.card h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.card h3 a { color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { font-size: 0.96rem; color: var(--text-soft); margin-bottom: 1.2rem; flex-grow: 1; }
.card .arrow-link { margin-top: auto; }

/* Feature list rows */
.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--teal);
}
.feature-row h3 { margin-bottom: 0.35rem; }
.feature-row p { color: var(--text-soft); margin: 0; }

/* Checklist */
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.1rem;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.05rem;
  width: 13px; height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.split-service { grid-template-columns: 1.6fr 1fr; }
.split-contact { grid-template-columns: 1fr 1.3fr; }
@media (max-width: 860px) { .split, .split-service, .split-contact { grid-template-columns: 1fr; } }

.split-sticky { position: sticky; top: 110px; }
@media (max-width: 860px) { .split-sticky { position: static; } }

/* Stat / value tiles on dark */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--ink); padding: 2.2rem 2rem; }
.tile h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tile p { font-size: 0.96rem; color: rgba(255,255,255,0.66); margin: 0; }

/* --------------------------------------------------------------------------
   FAQ (native details)
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 1.3rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 1.4rem; color: var(--text-soft); max-width: 780px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 10% 120%, rgba(76,112,112,0.3), transparent 60%);
}
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-on-dark); font-weight: 300; margin: 0; max-width: 520px; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 800px) { .cta-band .btn-row { justify-content: flex-start; } }

/* --------------------------------------------------------------------------
   Prose (service pages)
   -------------------------------------------------------------------------- */

.prose h2 { font-size: 1.7rem; margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  margin-bottom: 1.4rem;
}
.aside-card h3 { font-size: 1.12rem; margin-bottom: 0.8rem; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { border-bottom: 1px solid var(--line); }
.aside-card li:last-child { border-bottom: 0; }
.aside-card li a { display: block; padding: 0.55rem 0; font-size: 0.95rem; color: var(--text); }
.aside-card li a:hover { color: var(--teal-deep); padding-left: 4px; }
.aside-card li a[aria-current="page"] { color: var(--teal-deep); font-weight: 500; }
.aside-card .btn { width: 100%; text-align: center; margin-top: 0.4rem; }
.aside-card p { font-size: 0.95rem; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-info { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-info li { display: flex; gap: 16px; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-info li:last-child { border-bottom: 0; }
.contact-info .ci-icon { width: 22px; height: 22px; color: var(--teal-deep); flex-shrink: 0; margin-top: 3px; }
.contact-info .ci-icon svg { width: 100%; height: 100%; }
.contact-info strong { display: block; font-weight: 500; color: var(--ink); }
.contact-info span, .contact-info a { font-size: 0.98rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; }
.contact-form label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: 0.02em; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--text-soft); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--carbon); color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

.footer-brand img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 300px; line-height: 1.6; }

.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

.notfound { text-align: center; padding: clamp(5rem, 12vw, 9rem) 24px; }
.notfound h1 { font-size: clamp(4rem, 10vw, 7rem); }

/* --------------------------------------------------------------------------
   Chat assistant widget
   -------------------------------------------------------------------------- */

.chat-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(16, 37, 42, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.chat-bubble:hover { transform: translateY(-2px); background: var(--teal-deep); }
.chat-bubble svg { width: 19px; height: 19px; }

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 201;
  width: 372px;
  max-width: calc(100vw - 28px);
  height: 540px;
  max-height: calc(100vh - 120px);
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(16, 37, 42, 0.45);
}
.chat-panel.open { display: flex; }
@media (max-width: 480px) {
  .chat-panel { right: 14px; bottom: 82px; }
  .chat-bubble { right: 14px; bottom: 14px; }
}

.chat-head {
  background: var(--ink);
  color: #fff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-head strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; display: block; }
.chat-head span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); display: block; }
.chat-close {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.chat-close:hover { color: #fff; }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.chat-msg.bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-msg a { color: var(--teal-deep); font-weight: 500; text-decoration: underline; }
.chat-msg p { margin: 0 0 0.6em; }
.chat-msg p:last-child { margin: 0; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; background: var(--paper); }
.chat-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-chip:hover { border-color: var(--teal); background: var(--ink); color: #fff; }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input input {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
}
.chat-input input:focus { outline: none; border-color: var(--teal); }
.chat-input button {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.chat-input button:hover { background: var(--teal-deep); }
.chat-note {
  font-size: 0.72rem;
  color: var(--text-soft);
  text-align: center;
  padding: 0 12px 10px;
  background: #fff;
  margin: 0;
}
