/* ==========================================================================
   City Creek Dental — design system
   Palette: espresso #3A3027 / greige #F1EDE6 / maple #C8A671 / creek #2E7E92 /
            creek-deep #205F70 / frost #E8EFEE — sampled from their own office
   Type:    Bricolage Grotesque (display) + Albert Sans (body)
   Signature: the faceted wall-panel relief from their operatory photos;
   secondary motif: frosted-glass etched bands from their partitions.
   ========================================================================== */

:root {
  --espresso: #3A3027;
  --espresso-deep: #2C241D;
  --greige: #F1EDE6;
  --greige-deep: #E9E4DB;
  --maple: #C8A671;
  --maple-soft: #F3E9D6;
  --creek: #2E7E92;
  --creek-deep: #205F70;
  --frost: #E8EFEE;
  --white: #FFFFFF;
  --ink: #262019;
  --muted: #7A6F62;
  --line: #E0D8CB;
  --ok: #2F7D4E;
  --shadow-lg: 0 26px 60px -20px rgba(58, 48, 39, .38);
  --shadow-md: 0 12px 30px -14px rgba(58, 48, 39, .22);
  --radius: 12px;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Albert Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--greige);
  -webkit-font-smoothing: antialiased;
}

/* height:auto keeps width/height attributes as aspect-ratio hints only */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--creek-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 4.9vw, 60px); letter-spacing: -.015em; }
h2 { font-size: clamp(29px, 3.6vw, 44px); letter-spacing: -.01em; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

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

.eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--creek);
  margin-bottom: 14px;
}

.accent { color: var(--creek); }

.opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }

.fine { font-size: 13.5px; color: var(--muted); }
.fine a { color: var(--creek-deep); font-weight: 600; }

/* ----- buttons ----- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15.5px;
  padding: 12px 22px; border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 28px; font-size: 17px; }
.btn--creek { background: var(--creek); color: var(--white); }
.btn--creek:hover { background: var(--creek-deep); }
.btn--espresso { background: var(--espresso); color: var(--greige); }
.btn--espresso:hover { background: var(--espresso-deep); }
.btn--ghost { background: transparent; color: var(--espresso); border-color: rgba(58, 48, 39, .35); }
.btn--ghost:hover { border-color: var(--espresso); }
.btn--frostghost { background: transparent; color: var(--frost); border-color: rgba(232, 239, 238, .45); }
.btn--frostghost:hover { border-color: var(--frost); }
.btn--plain { background: transparent; color: var(--muted); }
.btn--plain:hover { color: var(--ink); }

.btn--plainlink {
  background: none; border: none; padding: 0;
  font: 600 15px var(--font-body);
  color: var(--creek-deep);
  text-decoration: underline; cursor: pointer;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px);
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(241, 237, 230, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }

.brand__gem { width: 38px; height: 38px; flex-shrink: 0; }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19.5px;
  color: var(--espresso);
}

.brand__tag {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--creek);
  margin-top: 3px;
}

.nav { display: flex; gap: clamp(12px, 1.6vw, 24px); margin-inline: auto; }

.nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--maple); }

.header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.header__phone { text-decoration: none; text-align: right; line-height: 1.15; }
.header__phone-label { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.header__phone-num { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--espresso); }

.navtoggle { display: none; }

/* ==========================================================================
   Hero — light, architectural; facet relief holds the lead card
   ========================================================================== */

.hero { background: var(--greige); overflow: hidden; }

.hero__inner {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) clamp(16px, 4vw, 48px) clamp(52px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 480px);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.hero h1 { color: var(--espresso); max-width: 15ch; }

.hero__sub {
  margin-top: 20px;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: #4E443A;
  max-width: 54ch;
}

.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero__trust {
  list-style: none;
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}

.hero__trust li {
  font-size: 14.5px; color: var(--muted); font-weight: 500;
  display: flex; align-items: center; gap: 9px;
}

/* small maple facet diamonds as markers */
.hero__trust li::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--maple);
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ----- the faceted panel (signature) ----- */

.hero__panelwrap {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
}

.hero__facets {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
}

/* ----- request card ----- */

.lead-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 26px 24px;
  overflow: hidden;
  scroll-margin-top: 110px;
}

/* frosted-glass etched bands — the card's top edge */
.lead-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 16px;
  background:
    linear-gradient(to bottom,
      rgba(46, 126, 146, .85) 0 3px,
      rgba(232, 239, 238, .9) 3px 6px,
      rgba(46, 126, 146, .45) 6px 9px,
      rgba(232, 239, 238, .9) 9px 12px,
      rgba(46, 126, 146, .18) 12px 16px);
}

.lead-card__head h2 { font-size: 27px; color: var(--espresso); }

.lead-card__head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.lead-card__progress {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 16px 0 18px;
}

.lead-card__progress span {
  height: 5px; border-radius: 99px;
  background: var(--line);
  transition: background .25s ease;
}

.lead-card__progress span.is-on { background: var(--creek); }

.step { display: none; border: none; }
.step.is-active { display: block; }

.step legend {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  color: var(--espresso);
  margin-bottom: 14px;
}

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 7 chips: the odd one out spans the full row (main grid only) */
.chips:not(.chips--small) > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }

.chip {
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 500;
  padding: 13px 10px;
  background: var(--frost);
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, background .15s;
  text-align: center;
}

.chip:hover { border-color: var(--creek); }

.chip.is-selected {
  background: var(--maple); color: var(--espresso-deep);
  border-color: var(--maple); font-weight: 600;
}

.chips--small { grid-template-columns: repeat(3, 1fr); }
.chips--small .chip { padding: 10px 6px; font-size: 13.5px; }
.chips--two { grid-template-columns: 1fr 1fr; }

.step textarea, .field input {
  width: 100%;
  font: inherit;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.step textarea:focus, .field input:focus {
  outline: none; border-color: var(--creek);
  box-shadow: 0 0 0 3px rgba(46, 126, 146, .14);
}

.step textarea { margin-top: 12px; }

.field { margin-bottom: 12px; }

.field label, .field__label {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.step .fine { margin-top: 8px; }

.step__nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; margin-bottom: 8px;
}

.btn--submit { min-width: 168px; }

.form-error {
  margin-top: 12px;
  background: #FBF0EC; color: #A8412A;
  border: 1px solid #EFCFC4; border-radius: 8px;
  padding: 9px 12px; font-size: 14px;
}

.step--success { text-align: center; padding: 18px 4px 8px; }
.success__mark { width: 56px; margin: 0 auto 14px; }
.step--success h3 { color: var(--espresso); font-size: 25px; font-weight: 700; }
.step--success p { margin: 8px 0 14px; }
.step--success .fine { margin-bottom: 16px; }

/* ==========================================================================
   Info strip + emergency triage
   ========================================================================== */

.infostrip {
  background: var(--espresso);
  color: var(--greige);
}

.infostrip__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 10px 48px;
  font-size: 15px;
}

.infostrip strong {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--maple);
  margin-right: 8px;
}

.infostrip a { color: var(--frost); }

.urgent {
  background: var(--creek-deep);
  color: var(--white);
  text-align: center;
  padding: 14px clamp(16px, 4vw, 48px);
  font-size: 15.5px;
}

.urgent p { max-width: 900px; margin: 0 auto; }
.urgent a { color: var(--white); font-weight: 700; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }

.section__head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section__head h2 { color: var(--espresso); }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ----- services ----- */

.services__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-top-color .18s ease;
}

.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-top-color: var(--creek); }

.svc svg { width: 34px; height: 34px; color: var(--creek); }

.svc h3 { color: var(--espresso); }

.svc p { color: var(--muted); font-size: 15px; flex: 1; }

.svc__go {
  align-self: flex-start;
  background: none; border: none; padding: 0;
  font: inherit; font-weight: 600; font-size: 14.5px;
  color: var(--creek-deep); cursor: pointer;
}

.svc__go::after { content: " \2192"; }
.svc__go:hover { text-decoration: underline; }

/* ----- pillars (their four Why-Choose-Us claims) ----- */

.pillars { background: var(--white); }

.pillars__grid {
  max-width: 980px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 44px) clamp(28px, 5vw, 64px);
}

.pillar { position: relative; padding-left: 26px; }

/* maple facet diamond marker */
.pillar::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--maple);
  transform: rotate(45deg);
  border-radius: 3px;
}

.pillar h3 { color: var(--espresso); margin-bottom: 7px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ----- the office (frost — their glass) ----- */

.office { background: var(--frost); }

.office__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.office h2 { color: var(--espresso); margin-bottom: 14px; }

.office__copy p { color: #4E443A; }

.office__facts {
  list-style: none;
  margin: 20px 0 26px;
  display: grid; gap: 10px;
}

.office__facts li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 15px; color: var(--ink);
}

.office__facts li::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--creek);
  transform: rotate(45deg) translateY(1px);
  border-radius: 2px;
  flex-shrink: 0;
}

.office__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.office__grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(58, 48, 39, .08);
}

.office__grid img:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }

/* ----- doctors ----- */

.doctors__grid {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.doc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.doc img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.doc__body { padding: 22px 24px 24px; }

.doc__body h3 { color: var(--espresso); margin-bottom: 8px; }

.doc__body p { color: var(--muted); font-size: 15px; }

/* ----- testimonials (frost cards, etched-band watermark) ----- */

.reviews__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  position: relative;
  background:
    repeating-linear-gradient(to bottom,
      rgba(46, 126, 146, .045) 0 2px, transparent 2px 16px),
    var(--frost);
  border: 1px solid rgba(46, 126, 146, .14);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column;
}

.review p {
  font-size: 15.5px; color: #3D362D; flex: 1;
}

.review footer {
  margin-top: 16px;
  font-weight: 600; font-size: 13.5px;
  color: var(--creek-deep);
}

/* ----- insurance ----- */

.insurance { background: var(--white); }

.insurance__inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, auto);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.insurance h2 { color: var(--espresso); margin: 10px 0 14px; }
.insurance p { color: var(--muted); max-width: 60ch; }

.insurance__cta {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  text-align: center;
}

/* ----- closer (espresso + inverted facet relief) ----- */

.closer {
  position: relative;
  background: var(--espresso);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.closer__facets {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.closer__inner {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
}

.closer h2 { color: var(--white); }
.closer p { color: #D8CFC2; margin: 16px auto 28px; max-width: 52ch; }
.closer__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----- footer ----- */

.footer {
  background: var(--espresso-deep);
  color: #CFC5B7;
  padding: 34px clamp(16px, 4vw, 48px) 96px;
}

.footer__inner {
  max-width: 1200px; margin: 0 auto 20px;
  display: flex; flex-wrap: wrap; gap: 26px 56px; align-items: flex-start;
}

.footer__brand { display: flex; flex-direction: column; }

.footer__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px;
  color: var(--greige);
}

.footer__tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--maple);
  margin-top: 4px;
}

.footer__col { display: grid; gap: 6px; font-size: 14.5px; }
.footer__col a { color: #CFC5B7; text-decoration: none; }
.footer__col a:hover { color: var(--white); }

.footer__legal {
  max-width: 1200px; margin: 0 auto;
  font-size: 12.5px; color: #8D8172;
  border-top: 1px solid rgba(224, 216, 203, .18);
  padding-top: 16px;
}

/* ==========================================================================
   Mobile action bar
   ========================================================================== */

.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(44, 36, 29, .96);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform .25s ease;
}

.mobilebar.is-show { transform: translateY(0); }
.mobilebar .btn { flex: 1; }
.mobilebar .btn--espresso { background: var(--greige); color: var(--espresso); }

/* ==========================================================================
   Chat — "Ask the front desk"
   ========================================================================== */

.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: var(--espresso);
  color: var(--greige);
  border: 1px solid rgba(200, 166, 113, .5);
  border-radius: 99px;
  padding: 9px 20px 9px 10px;
  font: 600 15px var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease, border-color .18s ease;
}

.chat-launch:hover { transform: translateY(-2px); border-color: var(--maple); }

.chat-launch__gem {
  width: 32px; height: 32px;
  background: var(--frost);
  border-radius: 50%;
  padding: 4px;
}

.chat-launch::after {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--maple);
}

.chat[hidden] { display: none; }

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 40px));   /* fallback for browsers without dvh */
  height: min(620px, calc(100dvh - 40px));
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Head, starters, input row and footer never shrink; only the log scrolls. */
.chat__head, .chat__starters, .chat__inputrow, .chat__foot { flex-shrink: 0; }

.chat__head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: var(--espresso);
  color: var(--white);
  padding: 13px 16px;
}

/* frosted-glass etched bands under the head */
.chat__head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background:
    linear-gradient(to bottom,
      rgba(46, 126, 146, .9) 0 2px,
      rgba(232, 239, 238, .85) 2px 4px,
      rgba(46, 126, 146, .4) 4px 6px);
}

.chat__gem {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--frost);
  border-radius: 50%;
  padding: 4px;
}

.chat__head strong { font-family: var(--font-display); font-size: 17px; display: block; line-height: 1.1; }
.chat__head span { font-size: 11.5px; color: #CFC5B7; }

.chat__close {
  margin-left: auto;
  background: none; border: none; color: #CFC5B7;
  font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px;
}

.chat__close:hover { color: var(--white); }

.chat__log {
  flex: 1;
  min-height: 0; /* lets the log shrink inside the flex column so the input row stays visible */
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--frost);
}

.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14.5px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.msg--user {
  align-self: flex-end;
  background: var(--creek);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid #DCE4E2;
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.msg--system {
  align-self: center;
  background: var(--maple-soft);
  border: 1px solid #E2D2B0;
  color: #71542A;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
}

.msg--bot.is-typing::after {
  content: "\2022 \2022 \2022";
  letter-spacing: 3px;
  color: var(--muted);
  animation: pulse 1.1s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

.chat__starters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 14px 10px;
  background: var(--frost);
}

.chat__starters button {
  font: 500 13px var(--font-body);
  color: var(--espresso);
  background: var(--white);
  border: 1px solid #DCE4E2;
  border-radius: 99px;
  padding: 7px 13px;
  cursor: pointer;
}

.chat__starters button:hover { border-color: var(--creek); }

.chat__inputrow {
  display: flex; align-items: flex-end; gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--white);
}

.chat__inputrow textarea {
  flex: 1;
  font: inherit; font-size: 16px;
  border: none; resize: none;
  max-height: 110px;
  padding: 8px 6px;
  background: transparent;
  color: var(--ink);
}

.chat__inputrow textarea:focus { outline: none; }

.chat__inputrow button {
  width: 38px; height: 38px;
  border: none; border-radius: 10px;
  background: var(--creek); color: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.chat__inputrow button:hover { background: var(--creek-deep); }
.chat__inputrow button svg { width: 18px; height: 18px; }
.chat__inputrow button:disabled { background: var(--line); cursor: default; }

.chat__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.chat__foot a { color: var(--muted); text-decoration: none; }

.chat__handoff {
  background: none; border: none; padding: 0;
  font: 600 13px var(--font-body);
  color: var(--creek-deep); cursor: pointer;
}

.chat__handoff:hover { text-decoration: underline; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

/* Progressive: elements only start hidden once JS has tagged <body class="js"> */
body.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
body.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.js .reveal { transition: opacity .3s ease; transform: none; }
  .svc, .btn, .chat-launch, .mobilebar { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero__panelwrap { max-width: 620px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid .review:last-child { grid-column: 1 / -1; }
  .office__inner { grid-template-columns: 1fr; }
  .insurance__inner { grid-template-columns: 1fr; }
  .insurance__cta { flex-direction: row; justify-content: flex-start; align-items: center; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 62px 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .header__phone { display: none; }
  .header__cta { display: none; }
  .navtoggle {
    display: grid; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .navtoggle span { width: 22px; height: 2.5px; background: var(--espresso); border-radius: 2px; }
  .doctors__grid { grid-template-columns: 1fr; }
  .infostrip__inner { flex-direction: column; gap: 8px; }
  .mobilebar { display: flex; }
  .chat-launch { bottom: calc(74px + env(safe-area-inset-bottom)); right: 14px; padding: 8px 16px 8px 9px; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__grid .review:last-child { grid-column: auto; }
  .office__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .office__grid img:nth-child(3) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .hero__cta .btn { flex: 1; }
  .hero__panelwrap { padding: 14px; }
  .lead-card { padding: 26px 18px 18px; }
  .chips--small { grid-template-columns: repeat(3, 1fr); }
  .brand__name { font-size: 17px; }
  .brand__tag { font-size: 7.5px; }
  .pillars__grid { grid-template-columns: 1fr; }
}

/* desktop tel fallback toast */
.teltoast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300;
  transform: translateX(-50%) translateY(8px);
  background: #1B1B22; color: #FFFFFF;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.teltoast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
