/* ============================================================
   DIAL3D RECOVERY — demo treatment center brand
   Warm evergreen + cream + serif display. Deliberately distinct
   from the DIAL3D product brand so demos read as "a real
   treatment center's website".
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations'),
       url('fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Recovery brand */
  --pine:       #1E4438;   /* primary evergreen */
  --pine-deep:  #143028;   /* footer / dark panels */
  --pine-soft:  #2E5D4C;   /* hovers, secondary */
  --sage:       #7FA08F;   /* muted accents */
  --gold:       #C99A4B;   /* warm accent — sparing */
  --cream:      #FAF6EF;   /* page background */
  --cream-deep: #F1EADD;   /* alt section background */
  --card:       #FFFFFF;
  --ink:        #22302B;   /* headings */
  --ink-soft:   #43524C;   /* body */
  --ink-mute:   #6B7A73;   /* captions */
  --line:       #E4DECF;   /* borders */

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 1px 0 rgba(34,48,43,0.04), 0 20px 44px -24px rgba(30,68,56,0.25);
  --shadow-lg: 0 1px 0 rgba(34,48,43,0.04), 0 34px 64px -28px rgba(30,68,56,0.35);
  --wrap: 1120px;

  /* ---- Variables the DIAL3D chat widget CSS/JS expects.
     Mapped to the Recovery brand so the FAB + drawer inherit
     this site's look instead of the DIAL3D gradient. ---- */
  --d3-gradient-rich: linear-gradient(115deg, #2E5D4C 0%, #1E4438 60%, #143028 100%);
  --d3-paper: #FFFFFF;
  --d3-paper-warm: #FAF6EF;
  --d3-ink: #22302B;
  --d3-ink-soft: #43524C;
  --d3-ink-mute: #6B7A73;
  --d3-fog: #E4DECF;
  --border: #E4DECF;
  --d3-shadow-gradient: 0 8px 32px -12px rgba(30,68,56,0.45);
  --d3-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --d3-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --d3-dur-fast: 180ms;
  --d3-dur-base: 320ms;
  --d3-dur-pulse: 2400ms;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pine); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
h1 { font-size: clamp(40px, 5.4vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; line-height: 1.25; }
p  { margin: 0 0 14px; max-width: 62ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.center p, .center .lede { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--gold);
}
.center .eyebrow::after {
  content: '';
  width: 26px; height: 2px;
  background: var(--gold);
}
.lede { font-size: 19px; line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 90px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 240ms var(--d3-ease-out), box-shadow 240ms var(--d3-ease-out), background 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--pine);
  color: #fff;
  box-shadow: 0 16px 32px -14px rgba(30,68,56,0.55);
}
.btn-primary:hover { background: var(--pine-soft); }
.btn-outline {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-outline:hover { background: rgba(30,68,56,0.06); }
.btn-cream {
  background: var(--cream);
  color: var(--pine-deep);
}
.btn-lg { padding: 18px 34px; font-size: 17px; }
@media (max-width: 480px) {
  .btn-lg { padding: 15px 22px; font-size: 15px; }
}
/* Ancient/tiny devices: let full-width buttons wrap rather than overflow */
@media (max-width: 360px) {
  .btn { white-space: normal; text-align: center; }
}
.btn .icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- DEMO NOTICE ---------- */
.demo-note {
  background: var(--pine-deep);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 16px;
}
@media (max-width: 640px) {
  .demo-note { font-size: 11.5px; padding: 7px 14px; line-height: 1.45; }
  .demo-note .demo-extra { display: none; }
}
.demo-note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- HEADER ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250,246,239,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--pine);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--pine); }
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-tel {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.2;
}
.head-tel .num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.head-tel .sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.head-tel .sub::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #21A164;
  box-shadow: 0 0 0 3px rgba(33,161,100,0.22);
  animation: d3-chat-pulse var(--d3-dur-pulse) infinite ease-in-out;
}
.head-actions .btn { padding: 12px 22px; font-size: 15px; }

/* Icon-only call button — replaces the phone text block on small screens */
.head-call {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream-deep);
  color: var(--pine);
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.head-call svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Hamburger — shown whenever the inline nav is collapsed */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
}
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* Dropdown menu panel (anchors) */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.mobile-menu a:active { background: var(--cream); }
.mobile-menu .mm-tel { color: var(--pine); }
.mobile-menu .mm-tel small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Collapse the inline nav as soon as the full row stops fitting */
@media (max-width: 1160px) {
  .site-nav { display: none; }
  .menu-btn { display: grid; }
}
/* Tighten the action cluster; swap phone text for the icon button */
@media (max-width: 760px) {
  .site-head .wrap { height: 66px; gap: 12px; }
  .head-actions { gap: 10px; }
  .head-tel { display: none; }
  .head-call { display: grid; }
  .head-actions .btn { padding: 11px 18px; font-size: 14px; }
}
/* The tagline is the widest single element in the header — drop it early */
@media (max-width: 560px) {
  .brand-name small { display: none; }
}
/* Very small phones: compact brand, drop the call icon (phone stays in the
   menu and the hero CTA), tighten every gap so 375px never overflows */
@media (max-width: 460px) {
  .site-head .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand-name { font-size: 16px; }
  .head-actions { gap: 8px; }
  .head-actions .btn { padding: 10px 13px; font-size: 13px; }
  .head-call { display: none; }
  .menu-btn { width: 38px; height: 38px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(127,160,143,0.28), transparent 64%),
    radial-gradient(900px 480px at -12% 108%, rgba(201,154,75,0.16), transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero h1 em {
  font-style: italic;
  color: var(--pine);
}
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
}
.hero-chips svg { width: 16px; height: 16px; stroke: var(--gold); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Hero visual — abstract "path through pines" card, no photos needed */
.hero-visual { position: relative; }
.hero-art {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-art svg { width: 100%; height: auto; }
.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #21A164;
  box-shadow: 0 0 0 4px rgba(33,161,100,0.2);
  animation: d3-chat-pulse var(--d3-dur-pulse) infinite ease-in-out;
  flex-shrink: 0;
}
.hero-badge b { display: block; font-size: 14px; color: var(--ink); }
.hero-badge span { font-size: 12px; color: var(--ink-mute); }
@media (max-width: 960px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-badge { left: 12px; }
}

/* ---------- STATS STRIP ---------- */
.stats {
  background: var(--pine-deep);
  padding: 34px 0;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 560;
  color: #fff;
  line-height: 1.1;
}
.stat span { font-size: 13px; color: rgba(255,255,255,0.66); }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CARDS / GRIDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 260ms var(--d3-ease-out), box-shadow 260ms var(--d3-ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--cream-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-ic svg { width: 23px; height: 23px; stroke: var(--pine); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; margin-bottom: 0; color: var(--ink-mute); }
.card .tagline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

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

/* alt band */
.band { background: var(--cream-deep); }

/* ---------- APPROACH LIST ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; gap: 36px; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.check-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list .ck {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--pine);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-list .ck svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.check-list b { display: block; color: var(--ink); font-size: 16px; }
.check-list span { font-size: 14.5px; color: var(--ink-mute); }

/* ---------- ADMISSIONS STEPS ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.step::before {
  content: '0' counter(step);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-mute); margin: 0; }

/* ---------- INSURANCE ---------- */
.ins-panel {
  background: var(--pine);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  color: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  background-image: radial-gradient(700px 320px at 90% -20%, rgba(201,154,75,0.25), transparent 60%);
}
@media (max-width: 860px) { .ins-panel { grid-template-columns: 1fr; } }
.ins-panel h2 { color: #fff; }
.ins-panel .lede { color: rgba(255,255,255,0.82); }
.ins-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.ins-chips span {
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.ins-cta { display: flex; flex-direction: column; gap: 12px; }
.ins-cta .btn { width: 100%; }
.ins-cta .or { text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.ins-fine { font-size: 12.5px; color: rgba(255,255,255,0.55); margin: 10px 0 0; text-align: center; }

/* ---------- TESTIMONIALS ---------- */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote .stars { display: flex; gap: 3px; }
.quote .stars svg { width: 16px; height: 16px; fill: var(--gold); stroke: none; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18.5px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 480;
}
.quote figcaption { font-size: 13.5px; color: var(--ink-mute); }
.quote figcaption b { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 26px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 560;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--pine);
  flex-shrink: 0;
  transition: transform 200ms var(--d3-ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; margin: 0; font-size: 15.5px; color: var(--ink-soft); max-width: none; }

/* ---------- FINAL CTA ---------- */
.final {
  background: var(--pine-deep);
  background-image:
    radial-gradient(800px 400px at 15% 120%, rgba(127,160,143,0.25), transparent 60%),
    radial-gradient(700px 340px at 90% -30%, rgba(201,154,75,0.18), transparent 60%);
  text-align: center;
  padding: 104px 0;
}
.final h2 { color: #fff; }
.final .lede { color: rgba(255,255,255,0.75); margin: 0 auto 34px; }
.final .hero-ctas { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-foot {
  background: var(--pine-deep);
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 40px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 14px; }
.crisis {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
}
.crisis b { color: #fff; }
.foot-base {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}
.foot-base a { color: rgba(255,255,255,0.6); }

/* ---------- MOBILE STICKY CTA BAR ---------- */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  /* Hide the floating chat launcher on phones — the sticky bar replaces it */
  /* ...except while a chat CTA has the panel open (assets/chat-cta.js). */
  html:not(.d3-chat-open) iframe[title="Chat"] { display: none !important; }

  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 246, 239, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -18px rgba(20, 48, 40, 0.4);
  }
  .sticky-cta .btn {
    flex: 1;
    padding: 14px 10px;
    font-size: 15px;
    gap: 8px;
  }
  /* Keep the page footer's last lines clear of the fixed bar */
  .site-foot {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- PULSE DOT (header status, hero badge) ----------
   The chat launcher itself is rendered by the hosted embed
   (chat.dial3d.ai/dial3d-treatment/embed.js) in its own iframe. */
@keyframes d3-chat-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(33,208,122,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(33,208,122,0.0); }
}