/* ==========================================================================
   Top in Local -- shared stylesheet
   Single source of truth for every page. Tokens from
   foundations/design-system.md §3 (Awesomic structure + coastal navy palette).
   Elevation = 1px hairline borders. No drop shadows on static cards.
   Mobile-first: base styles unprefixed, min-width queries layer up.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #0D2340;
  --navy-700: #16375F;
  --blue-500: #1559C4;
  --blue-600: #12458D;
  --blue-100: #DCEAFE;
  --sand-200: #E8DFD0;
  --sand-50:  #F8F6F2;
  --white:    #FFFFFF;
  --ink-900:  #16181D;
  --ink-500:  #5B6270;
  --line:     #DCD7CC;
  --line-dark: rgba(255, 255, 255, .14);
  --positive: #2E8B57;

  --font: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 24px;
  --r-btn: 14px;
  --r-pill: 999px;
  --r-input: 10px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --wrap: 1200px;
  --gutter: 24px;
  --section-y: 56px;
}

@media (min-width: 768px) {
  :root { --section-y: 88px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 104px; }
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { margin: 0 0 var(--space-2); font-weight: 600; letter-spacing: -0.01em; }

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.28; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25rem; }
li { margin-bottom: 6px; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--r-btn) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand-200); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: #E9EEF6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #A8CBFF; }

.section-head { max-width: 720px; margin-bottom: var(--space-4); }
.section-head p { color: var(--ink-500); font-size: 1.0625rem; }
.section--navy .section-head p { color: #B9C6D8; }
.section--navy .lede,
.section--navy .text-muted,
.section--navy .form-note { color: #C7D3E4; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-1);
}
.section--navy .eyebrow { color: #7FB0FF; }

.lede { font-size: 1.125rem; color: var(--ink-500); max-width: 62ch; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--secondary {
  background: transparent;
  color: var(--blue-500);
  border-color: var(--line);
}
.btn--secondary:hover { border-color: var(--blue-500); color: var(--blue-600); }
.section--navy .btn--secondary {
  color: #fff;
  border-color: var(--line-dark);
}
.section--navy .btn--secondary:hover { border-color: #fff; color: #fff; }
.section--navy .btn--primary { color: #fff; }
.hero .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn--secondary:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9375rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-3);
}

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sand-50);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-decoration: none;
  margin-right: auto;
}
.brand span { color: var(--blue-500); }
.brand-img {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
}
@media (max-width: 600px) {
  .brand-img { height: 50px; }
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 9px 14px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 16px; height: 10px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars i {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars i { top: 4px; }
.nav-toggle__bars::after { bottom: 0; }

.site-nav {
  display: none;
  width: 100%;
  order: 3;
  padding-bottom: var(--space-2);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { background: var(--white); }
.site-nav a[aria-current="page"] { color: var(--blue-500); font-weight: 600; }
.site-nav .site-nav__cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    width: auto;
    order: 0;
    padding-bottom: 0;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px; }
  .site-nav a { padding: 8px 12px; font-size: .9375rem; }
  .site-nav .site-nav__cta { display: block; }
  .site-nav .site-nav__cta a {
    background: var(--blue-500);
    color: #fff;
    padding: 11px 18px;
    border-radius: var(--r-btn);
    font-weight: 600;
    margin-left: var(--space-1);
  }
  .site-nav .site-nav__cta a:hover { background: var(--blue-600); }
  .site-nav__dropdown { position: relative; }
  .site-nav__dropdown > a::after { content: " \25BE"; font-size: .75rem; opacity: .7; }
  .site-nav__dropdown:hover .site-nav__submenu,
  .site-nav__dropdown:focus-within .site-nav__submenu { display: flex; }
  .site-nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: var(--sand-50);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(13, 35, 64, .14);
    padding: 6px;
    min-width: 200px;
    z-index: 110;
  }
  .site-nav__submenu a { padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
  .site-nav__submenu a:hover { background: var(--white); }
}

/* Mobile CTA under nav */
.site-nav__cta-mobile { margin-top: var(--space-1); }
@media (min-width: 1024px) { .site-nav__cta-mobile { display: none; } }

/* ---------- 6. Hero ---------- */
.hero {
  background: var(--navy-900);
  color: #E9EEF6;
  padding-block: 64px 72px;
  border-bottom: 1px solid var(--navy-700);
}
@media (min-width: 768px) { .hero { padding-block: 96px 104px; } }

.hero h1 { color: #fff; max-width: 16ch; }
.hero__sub {
  font-size: 1.125rem;
  color: #B9C6D8;
  max-width: 56ch;
  margin-top: var(--space-2);
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: #C9D6E8;
  margin-bottom: var(--space-3);
}
.hero__chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--positive);
}
.hero__meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  font-size: .9375rem;
  color: #B9C6D8;
}
.hero__meta strong { display: block; color: #fff; font-size: 1rem; }

/* Bespoke illustration pass: original raster artwork, integrated without
   changing the shared shell. The images use the existing navy/sand palette
   and sit as content, never as decorative text replacements. */
.hero__layout { display: grid; gap: var(--space-4); }
.hero__content { min-width: 0; }
.hero__art { margin: 0; }
.hero__art img {
  width: 100%;
  border-radius: var(--r-card);
  border: 1px solid var(--line-dark);
  background: var(--navy-700);
}
.hero__art--home img { object-fit: cover; }
.service-showcase {
  max-width: 760px;
  margin: 0 auto var(--space-4);
  padding: 8px;
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--r-card) + 4px);
  background: rgba(255,255,255,.06);
}
.service-showcase img {
  width: 100%;
  border-radius: calc(var(--r-card) - 4px);
}
.service-showcase--wide {
  max-width: none;
}
.service-showcase--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .hero--home .hero__layout,
  .hero--service-art .hero__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: var(--space-5);
  }
  .hero--home .hero__art { margin-right: calc(var(--gutter) * -1); }
  .hero--service-art .hero__art { max-width: 520px; justify-self: end; }
}

/* Homepage photograph: full-bleed background with a layered navy overlay.
   The content remains live HTML, readable and responsive above the image. */
.hero--home {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(13, 35, 64, .92) 0%, rgba(13, 35, 64, .80) 42%, rgba(13, 35, 64, .42) 100%);
  pointer-events: none;
}
.hero--home .hero__layout {
  display: block;
}
.hero--home .hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero--home .hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  max-width: none;
}
.hero--home .hero__art img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .hero--home::after { background: rgba(13, 35, 64, .76); }
}

/* Service-page photography follows the same full-width treatment. */
.hero--service-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero--service-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(13, 35, 64, .92) 0%, rgba(13, 35, 64, .80) 42%, rgba(13, 35, 64, .42) 100%);
  pointer-events: none;
}
.hero--service-art .hero__layout { display: block; }
.hero--service-art .hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero--service-art .hero__art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  margin: 0;
  max-width: none;
}
.hero--service-art .hero__art img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .hero--service-art::after { background: rgba(13, 35, 64, .76); }
}

/* ---------- 7. Cards & grids ---------- */
.grid { display: grid; gap: var(--space-3); }
@media (min-width: 768px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-500); }
.card__link {
  margin-top: auto;
  padding-top: var(--space-2);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.card__link::after { content: " \2192"; }
.card--flag {
  border-color: var(--blue-500);
  background: var(--blue-100);
}
.section--navy .card {
  background: var(--navy-700);
  border-color: var(--line-dark);
  color: #DCE5F2;
}
.section--navy .card p { color: #B9C6D8; }

.card__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sand-50);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
  color: var(--blue-500);
}
.section--navy .card__mark {
  background: rgba(255,255,255,.06);
  border-color: var(--line-dark);
  color: #7FB0FF;
}
.card__mark svg { width: 22px; height: 22px; }

/* Numbered process steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
  margin-bottom: var(--space-2);
}

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-500);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--positive);
  border-bottom: 2px solid var(--positive);
  transform: rotate(-45deg);
}
.section--navy .ticks li { color: #C9D6E8; }

/* Pricing rows */
.price-card { position: relative; }
.price-card__from {
  font-size: .875rem;
  color: var(--ink-500);
  margin-bottom: 2px;
}
.price-card__figure {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1.1;
  margin-bottom: 10px;
}
.price-card__note { font-size: .875rem; }

/* Areas */
.area-card { position: relative; }
.area-card__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* ---------- 8. FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px var(--space-3);
  font-weight: 600;
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-500);
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div {
  padding: 0 var(--space-3) 20px;
  color: var(--ink-500);
}

/* ---------- 9. Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-3);
}
@media (min-width: 768px) { .form-card { padding: var(--space-4); } }

.field { margin-bottom: var(--space-2); }
.field label {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue-500); background: #fff; }
.field__hint { font-size: .8125rem; color: var(--ink-500); margin-top: 6px; }
.form-note { font-size: .8125rem; color: var(--ink-500); margin-top: var(--space-2); }
.form-status {
  margin-top: var(--space-2);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--positive);
}
.form-fields--2 { display: grid; gap: 0 var(--space-2); }
@media (min-width: 640px) { .form-fields--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- 10. Notices / placeholders ---------- */
.notice {
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: var(--space-3);
  color: var(--ink-500);
  font-size: .9375rem;
}
.notice strong { color: var(--ink-900); }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #B9C6D8;
  padding-block: var(--space-6) var(--space-4);
  font-size: .9375rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.site-footer a { color: #C9D6E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
}
.nap { font-style: normal; line-height: 1.7; }
.nap a { text-decoration: none; }
.footer-legal {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  justify-content: space-between;
  font-size: .875rem;
  color: #8FA0B8;
}

/* ---------- 12. Sticky WhatsApp button ---------- */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(13, 35, 64, .28);
}
.wa-fab:hover { background: var(--navy-700); color: #fff; }
.wa-fab svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .wa-fab { right: 24px; bottom: 24px; } }

/* ---------- 13. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--ink-500); }
.small { font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .receptionist-msg__bubble--typing span { animation: none; opacity: .8; }
}

/* ---------- 14. Consent bar (Phase 8) ----------
   Shown only until the visitor chooses; sits above the WhatsApp FAB. */
.consent-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--navy-900);
  color: #E9EEF6;
  border-top: 3px solid var(--sand-200);
  box-shadow: 0 -8px 24px rgba(13, 35, 64, .18);
}
.consent-bar__inner {
  display: grid;
  gap: var(--space-3);
  padding-top: 16px;
  padding-bottom: 16px;
}
.consent-bar__text {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
  max-width: 68ch;
  color: #C7D3E4;
}
.consent-bar__text a { color: #A8CBFF; }
.consent-bar__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-bar__actions .btn--secondary {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.consent-bar__actions .btn--secondary:hover { border-color: #fff; }
@media (min-width: 900px) {
  .consent-bar__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-4);
  }
}
@media (max-width: 899px) {
  .wa-fab { bottom: 16px; }
}

/* ---------- 15. AI Virtual Receptionist widget ----------
   The working example sold on /services/growth/. Sits above the WhatsApp
   FAB on mobile so both remain reachable. */
.receptionist-fab {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 121;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 4px;
  background: var(--sand-200);
  color: #fff;
  border: 3px solid var(--blue-500);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(21, 89, 196, .18), 0 8px 24px rgba(13, 35, 64, .32);
}
.receptionist-fab:hover { border-color: var(--navy-700); }
.receptionist-fab__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: #fff;
}
.receptionist-fab__avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.receptionist-panel[hidden] { display: none; }
@media (min-width: 1024px) {
  .receptionist-fab {
    right: 24px;
    bottom: 92px;
    width: 70px;
    height: 70px;
    padding: 5px;
  }
}
@media (max-width: 899px) { .receptionist-fab { bottom: 84px; } }

.receptionist-panel {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 130;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 20px 48px rgba(13, 35, 64, .32);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 1024px) { .receptionist-panel { right: 24px; bottom: 92px; } }
@media (max-width: 899px) {
  .receptionist-panel { bottom: 84px; max-height: min(460px, calc(100vh - 180px)); }
}
@media (max-width: 480px) {
  .receptionist-panel { left: 8px; right: 8px; width: auto; bottom: 84px; }
}

.receptionist-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--navy-900);
  color: #fff;
  flex-shrink: 0;
}
.receptionist-panel__head > div { flex: 1; min-width: 0; }
.receptionist-panel__head strong { display: block; font-size: 1rem; }
.receptionist-panel__head span { display: block; font-size: .8125rem; color: #B9C6D8; margin-top: 2px; }
.receptionist-panel__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: block;
  border: 2px solid rgba(255,255,255,.35);
}
@media (max-width: 480px) {
  .receptionist-panel__head { padding: 8px 12px; }
  .receptionist-panel__head strong { font-size: .875rem; }
  .receptionist-panel__head span { font-size: .6875rem; margin-top: 1px; }
  .receptionist-panel__avatar { width: 28px; height: 28px; }
}
.receptionist-panel__avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.receptionist-panel__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex: none;
}

.receptionist-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--sand-50);
}
.receptionist-msg { display: flex; align-items: flex-end; gap: 8px; }
.receptionist-msg--bot { justify-content: flex-start; }
.receptionist-msg--user { justify-content: flex-end; }
.receptionist-msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: block;
}
.receptionist-msg__avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.receptionist-msg__col {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.receptionist-msg--user .receptionist-msg__col { align-items: flex-end; }
.receptionist-msg__bubble {
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .9375rem;
  line-height: 1.5;
}
.receptionist-msg--bot .receptionist-msg__bubble {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-900);
  border-bottom-left-radius: 4px;
}
.receptionist-msg--user .receptionist-msg__bubble {
  background: var(--blue-500);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.receptionist-msg__bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.receptionist-msg__bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-500);
  opacity: .5;
  animation: receptionist-typing 1.1s infinite ease-in-out;
}
.receptionist-msg__bubble--typing span:nth-child(2) { animation-delay: .15s; }
.receptionist-msg__bubble--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes receptionist-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.receptionist-msg__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.receptionist-msg__link {
  font-size: .8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  text-decoration: none;
}
.receptionist-msg__link:hover { border-color: var(--blue-500); }


.receptionist-panel__form {
  display: flex;
  gap: 8px;
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}
.receptionist-panel__form input {
  flex: 1;
  font: inherit;
  font-size: .9375rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--sand-50);
}
.receptionist-panel__form input:focus { border-color: var(--blue-500); background: #fff; }

.receptionist-panel__note {
  font-size: .6875rem;
  line-height: 1.35;
  color: var(--ink-500);
  padding: 4px var(--space-3) 6px;
  background: var(--white);
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receptionist-panel__note a { color: var(--blue-500); }
