/* =============================================================
   PathMole Expert Lab — Global Stylesheet
   Brand: navy (#232C8E) + magenta (#EC008C) on white.
   All theme values live in :root — re-theme by editing variables only.
   Sections: 1 Variables · 2 Reset/Base · 3 Typography · 4 Layout ·
   5 Buttons · 6 Top bar · 7 Nav · 8 Hero · 9 Sections/Cards ·
   10 Case studies · 11 CTA band · 12 Footer · 13 Back-to-top ·
   14 Chatbot · 15 Forms/Map · 16 Reveal · 17 Responsive
   ============================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* BRAND — PathMole letterhead (confirm exact hex from logo vector) */
  --brand-navy:      #232C8E;
  --brand-navy-deep: #1A2270;
  --brand-pink:      #EC008C;
  --brand-pink-deep: #C1006F;

  /* INK / SURFACES */
  --ink-900: #14202B;
  --ink-600: #3B4A57;
  --ink-400: #7A8894;
  --line:    #E6E9F2;
  --surface: #FFFFFF;
  --bg-soft: #F5F7FB;

  /* SEMANTIC aliases — use these in components */
  --accent:      var(--brand-pink);
  --accent-deep: var(--brand-pink-deep);
  --heading:     var(--brand-navy);

  /* TYPE */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', Arial, sans-serif;

  /* SHAPE / SPACING */
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1160px;
  --shadow-sm: 0 2px 8px rgba(20, 32, 43, .06);
  --shadow-md: 0 12px 30px rgba(20, 32, 43, .10);
  --shadow-lg: 0 24px 60px rgba(26, 34, 112, .16);
  --ring: 0 0 0 3px rgba(236, 0, 140, .30);
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-600);
  background: var(--surface);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-deep); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); letter-spacing: -.3px; }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.lead { font-size: 1.12rem; color: var(--ink-600); }
.text-navy { color: var(--brand-navy); }
.text-pink { color: var(--accent); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--ink-600); margin-top: .5rem; }
.grid { display: grid; gap: 1.5rem; }
.center { text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; transition: all .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(236,0,140,.28); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--brand-navy); border: 2px solid var(--brand-navy); }
.btn-secondary:hover { background: var(--brand-navy); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--brand-navy); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--accent); gap: .75rem; }
.btn-primary.on-navy { background: #fff; color: var(--brand-navy); box-shadow: none; }
.btn-primary.on-navy:hover { background: var(--bg-soft); }
.btn-secondary.on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-secondary.on-navy:hover { background: #fff; color: var(--brand-navy); }
.cta-pair { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- 6. Top bar ---------- */
.top-bar {
  background: linear-gradient(90deg, var(--brand-navy-deep) 0%, var(--brand-navy) 100%);
  color: rgba(255,255,255,.9); font-size: .85rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-bar a { color: rgba(255,255,255,.9); transition: color .2s ease; }
.top-bar a:hover { color: #fff; }
.top-bar-inner { display: flex; align-items: center; gap: 1.3rem; min-height: 42px; flex-wrap: wrap; }
.top-bar-item { display: inline-flex; align-items: center; gap: .4rem; }
.top-bar-item.hours { color: rgba(255,255,255,.7); }
.top-bar-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.top-bar-cta {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .34rem .95rem; border-radius: 999px; font-weight: 600; font-size: .78rem; color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, filter .2s ease;
}
.top-bar-cta:hover { transform: translateY(-1px); }
.top-bar-cta:not(.wa):not(.top-bar-reports):hover { background: rgba(255,255,255,.14); border-color: #fff; }
.top-bar-cta.wa { background: #25D366; border-color: #25D366; color: #06331b; }
.top-bar-cta.wa:hover { color: #06331b; filter: brightness(1.06); }
.top-bar-reports { background: var(--accent); border-color: var(--accent); color: #fff; }
.top-bar-reports:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

/* ---------- 7. Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s ease, background .25s ease;
}
.site-nav.scrolled { background: rgba(255,255,255,.94); box-shadow: 0 6px 24px rgba(15,20,60,.09); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; transition: min-height .25s ease; }
.site-nav.scrolled .nav-inner { min-height: 62px; }
.nav-logo img { height: 46px; width: auto; transition: height .25s ease; }
.site-nav.scrolled .nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-family: var(--font-heading); font-weight: 600; font-size: .82rem; letter-spacing: .6px;
  color: var(--brand-navy); text-transform: uppercase; position: relative; padding: .35rem .1rem;
  transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-navy)); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; color: var(--brand-navy); }
.menu-toggle svg { width: 28px; height: 28px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu ul { padding: .5rem 0; }
.mobile-menu a {
  display: block; padding: .85rem 1.25rem; font-family: var(--font-heading); font-weight: 600;
  font-size: .9rem; color: var(--brand-navy); border-bottom: 1px solid var(--bg-soft);
}
.mobile-menu a:hover { background: var(--bg-soft); color: var(--accent); }
.mobile-menu.open { display: block; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; background: var(--brand-navy); color: #fff; overflow: hidden;
  display: flex; align-items: center; min-height: 86vh; min-height: 86dvh; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
/* Mobile-first: strong vertical scrim keeps full-width text readable over bright footage */
.hero-media-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,34,112,.86) 0%, rgba(26,34,112,.68) 50%, rgba(26,34,112,.84) 100%); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* Portrait tablets (e.g. iPad 768): taller hero, but keep a balanced horizontal
   scrim so the right side of the video isn't washed out at this narrow width */
@media (min-width: 768px) {
  .hero { min-height: min(84vh, 760px); }
  .hero-media-overlay { background: linear-gradient(90deg, rgba(26,34,112,.92) 0%, rgba(26,34,112,.82) 50%, rgba(26,34,112,.62) 100%); }
}
/* Wide screens: lighter right side lets more of the equipment footage show.
   Also cap the hero shorter here — on laptops 84vh leaves a lot of empty navy
   below the copy and makes the page feel like a long scroll past the fold. */
@media (min-width: 1024px) {
  .hero { min-height: min(64vh, 560px); }
  /* Trim the hero's own vertical padding on desktop — the clamp() maxes at ~104px
     top+bottom, which is what pushed the hero past a single laptop screen. */
  .hero-inner { padding-block: clamp(2.25rem, 3.5vw, 3.5rem); }
  .hero-media-overlay { background: linear-gradient(90deg, rgba(26,34,112,.94) 0%, rgba(26,34,112,.8) 45%, rgba(35,44,142,.4) 100%); }
}
.hero::before { /* magenta diagonal accent (chevron motif) */
  content: ""; position: absolute; top: 0; right: 0; width: 42%; height: 100%;
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-navy-deep) 78%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); opacity: .55; pointer-events: none;
}
.hero::after { /* faint watermark ring */
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 380px;
  border: 40px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none;
}
/* padding-block only — keeps the container's horizontal gutter so hero text
   never sits flush against the screen edge on phones/tablets */
/* Full container width so the text block left-aligns with the nav/logo instead of
   being centered in the viewport; line length is capped on the elements below. */
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6.5rem); text-align: left; }
.hero h1 { color: #fff; max-width: 720px; }
/* ── Hero accent colour ──────────────────────────────────────────────────
   The eyebrow + the highlighted phrase in the headline both use this ONE
   variable. To try a different colour, change the value below and refresh.
   Some options to paste in:
     #EC008C  brand magenta      #F5B301  gold / amber
     #37C6E0  cyan / sky         #35C79A  soft teal
     #FFC24B  warm honey         #FFFFFF  plain white
------------------------------------------------------------------------- */
.hero { --hero-accent: #4DA8FF; }
.hero .hero-eyebrow { color: var(--hero-accent); opacity: 1; text-shadow: 0 1px 8px rgba(10,14,45,.55); }
.hero h1 .text-pink { color: var(--hero-accent); text-shadow: 0 2px 14px rgba(10,14,45,.5); }
.hero .hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.9); margin: 1.1rem 0 1.8rem; max-width: 600px; }
.hero .tagline { font-family: var(--font-heading); font-style: italic; color: #fff; font-weight: 500; opacity: .95; margin-top: 1.6rem; }
.hero .cta-pair .btn-primary { background: #fff; color: var(--brand-navy); box-shadow: var(--shadow-md); }
.hero .cta-pair .btn-primary:hover { background: var(--bg-soft); }
.hero .cta-pair .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero .cta-pair .btn-secondary:hover { background: #fff; color: var(--brand-navy); }

/* ---------- 9. Sections / Cards ---------- */
/* News strip */
.news-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.news-strip-inner { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; font-size: .9rem; }
.news-tag { background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 600;
  font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; padding: .18rem .6rem; border-radius: 999px; }
.news-strip a { font-weight: 600; margin-left: auto; }
.news-close { color: var(--ink-400); font-size: 1.2rem; line-height: 1; padding: 0 .3rem; }
.news-close:hover { color: var(--ink-900); }

/* Card base */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Unified icon tile — a single magenta→navy gradient tile is used site-wide so every
   card icon reads the same (this replaces the old pale-pink base + the navy-tinted
   service variant, both of which made the tiles feel inconsistent page-to-page). */
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-navy) 115%);
  color: #fff; margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }
.card .btn-ghost { margin-top: 1rem; }

/* Services (2–4 discipline cards) */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Why section — the flat #F5F7FB band left white cards barely visible. Deepen the
   band and give the cards a defined navy-tinted edge/shadow. (Icon tiles now use the
   shared gradient defined on .card-icon above.) */
#why.section--soft { background: linear-gradient(180deg, #EDF0FA 0%, #E4EAF6 100%); }
#why .card { border-color: #D3DAEE; box-shadow: 0 10px 30px rgba(26, 34, 112, .09); }
#why .card:hover { box-shadow: 0 16px 40px rgba(26, 34, 112, .17); }

/* Philosophy headline — bigger, bolder, two-line with a magenta second line for impact */
#philosophy .philosophy-h2 {
  font-size: clamp(1.8rem, 3.9vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.6px;
}
#philosophy .philosophy-h2 span { color: var(--accent); }
#philosophy .section-head p:first-of-type { font-size: 1.12rem; }

/* Trust bar */
.trust-bar { background: var(--brand-navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-num { font-family: var(--font-heading); font-weight: 700; font-size: 2.2rem; color: #fff; }
.trust-label { font-size: .88rem; color: rgba(255,255,255,.8); }
.trust-note { text-align: center; color: rgba(255,255,255,.55); font-size: .8rem; margin-top: 1.6rem; }

/* Testimonials */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); height: 100%; }
.quote-card p { font-size: 1.02rem; color: var(--ink-900); font-style: italic; }
.quote-mark { font-family: var(--font-heading); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.quote-by { margin-top: 1rem; font-family: var(--font-heading); font-weight: 600; color: var(--brand-navy); font-style: normal; }
.quote-by span { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-400); font-family: var(--font-body); }

/* ---------- 10. Case studies ---------- */
.case-grid { grid-template-columns: repeat(3, 1fr); }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; height: 100%; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-navy), var(--brand-pink)); display: grid; place-items: center; color: rgba(255,255,255,.85); }
.case-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.case-tag { font-family: var(--font-heading); font-weight: 600; font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.case-body h3 { margin: .4rem 0 .5rem; font-size: 1.08rem; }
.case-meta { margin-top: auto; padding-top: .9rem; font-size: .82rem; color: var(--ink-400); }

/* ---------- 11. CTA band ---------- */
.cta-band { position: relative; background: var(--brand-navy); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; bottom: 0; width: 45%; height: 6px; background: var(--accent); }
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: .8rem auto 1.8rem; }
.cta-band .cta-pair { justify-content: center; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--brand-navy-deep); color: rgba(255,255,255,.75); padding: 3.5rem 0 0; font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 44px; background: #fff; padding: .4rem .6rem; border-radius: 10px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: .28rem 0; }
.footer-col a:hover { color: var(--accent); }
.footer-contact p { margin-bottom: .6rem; color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: .84rem; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: .8rem; }
.footer-social a { color: rgba(255,255,255,.7); }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 20px; height: 20px; }
.dev-credit { background: #12184f; text-align: center; padding: .7rem 1rem; font-size: .82rem; }
.dev-credit a { color: rgba(255,255,255,.7); }
.dev-credit a:hover { color: #fff; }

/* ---------- 13. Back-to-top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 90px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- 13b. Floating "Back" button (previous page) ---------- */
.back-page {
  position: fixed; left: 22px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .62rem 1rem .62rem .82rem; border: 0; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(150deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(15,20,60,.28), 0 3px 8px rgba(15,20,60,.2);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1),
              box-shadow .25s ease, background .25s ease;
}
.back-page.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-page:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px #fff, 0 16px 30px rgba(15,20,60,.34), 0 5px 12px rgba(15,20,60,.24);
}
.back-page:hover .back-page-ico { transform: translateX(-3px); }
.back-page:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.back-page-ico { display: grid; place-items: center; width: 18px; height: 18px; transition: transform .25s ease; }
.back-page-ico svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .back-page, .back-page-ico { transition: none; }
  .back-page:hover, .back-page:hover .back-page-ico { transform: none; }
}
@media (max-width: 560px) {
  .back-page { left: 14px; bottom: 16px; padding: .55rem .85rem .55rem .72rem; font-size: .84rem; }
}

/* ---------- 14. Chatbot ---------- */
.chatbot-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  /* white ring keeps the navy tile separated from any background (navy heroes, footer, CTA bands) */
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(35,44,142,.12),
              0 10px 24px rgba(15,20,60,.4), 0 3px 8px rgba(15,20,60,.28);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, filter .25s ease;
}
.chatbot-launcher:hover {
  transform: translateY(-3px) scale(1.05); filter: brightness(1.08);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(35,44,142,.12),
              0 16px 34px rgba(15,20,60,.5), 0 4px 12px rgba(236,0,140,.3);
}
.chatbot-launcher:active { transform: translateY(-1px) scale(1.02); }
.chatbot-launcher .cb-ico { display: grid; place-items: center; }
.chatbot-launcher .cb-ico svg { width: 40px; height: 40px; }
/* soft attention halo behind the button */
.chatbot-launcher::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; z-index: -1;
  box-shadow: 0 0 0 0 rgba(236,0,140,.4); animation: cb-pulse 2.8s ease-out infinite;
}
.chatbot-launcher[aria-expanded="true"]::before { animation: none; }
@keyframes cb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(236,0,140,.38); }
  70%  { box-shadow: 0 0 0 16px rgba(236,0,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,0,140,0); }
}
/* live "online" status dot */
.chatbot-launcher .cb-badge {
  position: absolute; top: 5px; right: 5px; width: 13px; height: 13px; border-radius: 50%;
  background: #25D366; border: 2.5px solid #fff; box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: cb-live 2.4s ease-out infinite;
}
@keyframes cb-live {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
/* "Ask us" tooltip — slides in on hover/focus */
.chatbot-launcher .cb-tip {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--brand-navy); color: #fff; font-family: var(--font-heading); font-weight: 600;
  font-size: .82rem; letter-spacing: .01em; padding: .48rem .8rem; border-radius: 10px; white-space: nowrap;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.chatbot-launcher .cb-tip::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--brand-navy);
}
.chatbot-launcher:hover .cb-tip,
.chatbot-launcher:focus-visible .cb-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .chatbot-launcher::before, .chatbot-launcher .cb-badge { animation: none; }
}
.chatbot-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 96; width: min(370px, calc(100vw - 40px));
  height: min(540px, calc(100vh - 130px)); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chatbot-panel.open { display: flex; }
.chatbot-header { background: var(--brand-navy); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; gap: .6rem; }
.chatbot-header .dot { width: 9px; height: 9px; border-radius: 50%; background: #25D366; }
.chatbot-header strong { font-family: var(--font-heading); font-size: .98rem; }
.chatbot-header small { display: block; font-size: .75rem; color: rgba(255,255,255,.7); }
.chatbot-close { margin-left: auto; color: rgba(255,255,255,.85); font-size: 1.4rem; line-height: 1; }
.chatbot-close:hover { color: #fff; }
.chatbot-body { flex: 1; overflow-y: auto; padding: 1.1rem; background: var(--bg-soft); }
.chat-msg { max-width: 85%; padding: .7rem .95rem; border-radius: 14px; margin-bottom: .7rem; font-size: .92rem; line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-900); }
.chat-msg.user { background: var(--brand-navy); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.chat-chip {
  font-family: var(--font-heading); font-weight: 600; font-size: .82rem; padding: .45rem .85rem;
  border-radius: 999px; border: 1.5px solid var(--brand-navy); color: var(--brand-navy); background: #fff; transition: all .18s ease;
}
.chat-chip:hover { background: var(--brand-navy); color: #fff; }
.chat-chip.pink { border-color: var(--accent); color: var(--accent); }
.chat-chip.pink:hover { background: var(--accent); color: #fff; }
.chat-chip.wa { border-color: #25D366; color: #128C4B; }
.chat-chip.wa:hover { background: #25D366; color: #06331b; }
.chatbot-input { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); background: #fff; }
.chatbot-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem; font-family: inherit; font-size: .92rem; }
.chatbot-input input:focus { border-color: var(--accent); outline: none; }
.chatbot-input button { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chatbot-input button:hover { background: var(--accent-deep); }
.chatbot-input svg { width: 20px; height: 20px; }

/* ---------- 15. Forms / Map ---------- */
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: .85rem; color: var(--brand-navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem;
  font-family: inherit; font-size: .96rem; color: var(--ink-900); background: #fff; transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-400); }
.form-status { display: none; padding: .8rem 1rem; border-radius: var(--radius); font-size: .9rem; margin-top: .5rem; }
.form-status.ok { display: block; background: rgba(37,211,102,.12); color: #0f7a3d; }
.form-status.err { display: block; background: rgba(236,0,140,.1); color: var(--accent-deep); }

.map-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.map-card-head { background: linear-gradient(135deg, var(--brand-navy), var(--brand-pink)); height: 150px; display: grid; place-items: center; color: rgba(255,255,255,.9); font-family: var(--font-heading); font-weight: 600; }
.map-card-body { padding: 1.4rem; }
.map-card-body strong { color: var(--brand-navy); font-family: var(--font-heading); display: block; margin-bottom: .5rem; }
.map-embed iframe { width: 100%; min-height: 340px; border: 0; display: block; }

.info-list { display: grid; gap: 1rem; }
.info-item { display: flex; gap: .8rem; align-items: flex-start; }
.info-item .card-icon { width: 44px; height: 44px; flex-shrink: 0; margin: 0; }
.info-item strong { color: var(--brand-navy); font-family: var(--font-heading); }

/* Page hero (inner pages) — mirrors the homepage hero's depth so interior
   headers don't read flat: navy gradient base, a stronger magenta chevron, a
   faint watermark ring, and a magenta accent bar under the title for contrast. */
.page-hero { background: linear-gradient(120deg, var(--brand-navy-deep) 0%, var(--brand-navy) 58%, #2a34a8 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { /* magenta diagonal accent (chevron motif) — matches .hero */
  content: ""; position: absolute; top: 0; right: 0; width: 42%; height: 100%;
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-navy-deep) 80%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); opacity: .5; pointer-events: none; }
.page-hero::after { /* faint watermark ring, echoing the homepage hero */
  content: ""; position: absolute; right: -50px; bottom: -70px; width: 300px; height: 300px;
  border: 34px solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.page-hero-inner { position: relative; z-index: 2; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { color: #fff; }
.page-hero h1::after { /* magenta accent bar gives the title pop against the navy */
  content: ""; display: block; width: 66px; height: 4px; border-radius: 2px;
  background: var(--brand-pink); margin-top: 1rem; }
.page-hero p { color: rgba(255,255,255,.9); margin-top: 1rem; max-width: 640px; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: .8rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }

/* Test list (tests.html) */
.test-cat { margin-bottom: 2.5rem; }
.test-cat h2 { display: flex; align-items: center; gap: .6rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); margin-bottom: 1.3rem; }
.test-cat h2 .count { font-size: .8rem; font-family: var(--font-body); font-weight: 400; color: var(--ink-400); }
.test-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); }
.test-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.test-card .test-info { font-size: .92rem; }
.test-symptoms { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.test-symptoms span { font-size: .78rem; background: var(--bg-soft); color: var(--ink-600); padding: .2rem .65rem; border-radius: 999px; }
.notice { background: rgba(236,0,140,.06); border: 1px solid rgba(236,0,140,.2); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: .92rem; color: var(--ink-900); }

/* Tick list — bulleted feature/service lists */
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; font-size: .95rem; color: var(--ink-600); line-height: 1.5; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: .7rem; height: .4rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- 16. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .top-bar-item.hours { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .case-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-pair { flex-direction: column; align-items: stretch; }
  .cta-pair .btn-primary, .cta-pair .btn-secondary { justify-content: center; }
  .top-bar-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  /* Hero on phones: a touch shorter, tighter padding, slightly smaller sub-copy.
     h1 is anchored to the 360px reference (~32px @360) and scales fluidly 320–620. */
  .hero { min-height: 78dvh; }
  .hero-inner { padding-block: 2.75rem; }
  .hero h1 { font-size: clamp(1.75rem, 8.9vw, 2.2rem); }
  .hero .hero-sub { font-size: 1.02rem; margin: .9rem 0 1.5rem; }
  .hero .tagline { margin-top: 1.2rem; }
}
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .hero .hero-sub { font-size: .98rem; }
}
