/* ==========================================================================
   Untapped HVAC — hvac.css
   Landing-page layer on the Untapped Agents visual system: the "Sarah on a
   call" card, booking wizard, scheduler, and mobile menu. All hooks and
   generated markup keep their original class names — visual layer only.
   ========================================================================== */

/* ---------------------------------------------------------- One-page UX */
section[id] { scroll-margin-top: 24px; }
.site-header.is-stuck .navbar { box-shadow: none; }

/* ------------------------------------------------------------ Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 300; background: rgba(6,5,16,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s; }
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--dark);
  color: rgba(255,255,255,.92);
  padding: 1.2rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; overflow-y: auto;
  transform: translateX(24px); transition: transform .28s var(--ease-out); box-shadow: -16px 0 40px rgba(0,0,0,.45); }
.mnav.is-open .mnav__panel { transform: none; }
.mnav__close { align-self: flex-end; width: 40px; height: 40px; border: none; border-radius: 9px; display: grid; place-items: center; color: rgba(255,255,255,.62); transition: color .2s var(--ease), background .2s var(--ease); }
.mnav__close:hover { color: #fff; background: rgba(255,255,255,.08); }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { padding: .95rem .2rem; font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; color: rgba(255,255,255,.92); border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s var(--ease); }
.mnav nav a:hover { color: #fff; }
.mnav__cta { display: grid; gap: .6rem; margin-top: auto; }
.mnav__cta .btn-accent { background: #fff; color: #0a0a0a; border-color: transparent; box-shadow: none; }
.mnav__cta .btn-accent:hover { background: #f0f0f0; }
.mnav__cta .btn-ghost { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.15); }
.mnav__cta .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.mnav-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mnav, .mnav__panel { transition: none; } }

/* --------------------------------------------- "Sarah on a call" visual */
.hero__visual, .sarah-visual { display: grid; gap: .9rem; justify-items: stretch; min-width: 0; }
.call-card {
  background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem 1.05rem; box-shadow: var(--shadow-2);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.call-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.call-card__head { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: .5px solid rgba(0,0,0,.06); }
.call-card__avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.call-card__who { display: flex; flex-direction: column; line-height: 1.2; }
.call-card__who b { color: var(--ink-hd); font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.call-card__who span { color: var(--ink-4); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.call-card__live { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 500; color: var(--ink-2);
  background: var(--bg-3); border: 1px solid rgba(0,0,0,.05); padding: .32rem .7rem; border-radius: var(--pill); white-space: nowrap; }
.call-card__live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(26,138,90,.4); animation: livePulse 2s infinite; }
@keyframes livePulse { 60% { box-shadow: 0 0 0 7px rgba(26,138,90,0); } 100% { box-shadow: 0 0 0 0 rgba(26,138,90,0); } }

.call-card__body { display: grid; gap: .55rem; padding: 1rem 0 .35rem; }
.bubble { max-width: 88%; padding: .62rem .9rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.bubble--caller { justify-self: start; background: var(--bg-3); color: var(--ink-2); border-bottom-left-radius: 4px; }
.bubble--sarah { justify-self: end; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); border-bottom-right-radius: 4px; }

.call-card__wave { display: flex; align-items: flex-end; justify-content: space-between; height: 26px; padding-top: .5rem; }
.call-card__wave span { flex: 0 0 3px; border-radius: 2px; background: var(--accent); opacity: .5; height: 30%;
  animation: waveBar 1.15s ease-in-out infinite; }
.call-card__wave span:nth-child(3n) { animation-delay: .15s; }
.call-card__wave span:nth-child(3n+1) { animation-delay: .32s; }
.call-card__wave span:nth-child(4n) { animation-delay: .5s; }
.call-card__wave span:nth-child(5n) { animation-delay: .68s; }
@keyframes waveBar { 0%, 100% { height: 22%; } 50% { height: 95%; } }
@media (prefers-reduced-motion: reduce) {
  .call-card__wave span { animation: none; height: 45%; }
  .call-card__wave span:nth-child(2n) { height: 70%; }
  .call-card__live .dot { animation: none; }
}

.confirm-card { display: flex; align-items: center; gap: .8rem; background: var(--dark); border-radius: var(--radius);
  padding: .9rem 1.1rem; box-shadow: var(--shadow-pop); width: fit-content; max-width: 100%;
  justify-self: end; margin-top: -6px; margin-right: 4%; position: relative; z-index: 2; }
.confirm-card__check { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.confirm-card__check .ic { width: 16px; height: 16px; }
.confirm-card__text { display: flex; flex-direction: column; line-height: 1.35; }
.confirm-card__text b { color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: -.01em; }
.confirm-card__text span { color: rgba(255,255,255,.55); font-size: .75rem; }

@media (max-width: 1024px) {
  .sarah-visual { max-width: 470px; }
}
@media (max-width: 420px) { .call-card__live { display: none; } }

/* --------------------------------------------------------------- Wizard */
.wiz-bar {
  list-style: none;
  display: flex; justify-content: space-between;
  margin: 0 0 2.1rem; padding: 0;
  position: relative;
}
/* 4 equal-width steps → dot centers sit at 12.5% / 37.5% / 62.5% / 87.5%;
   the connector runs exactly from the first center to the last, so it can
   never poke out past the end dots. */
.wiz-bar::before {
  content: ''; position: absolute; top: 18px; left: 12.5%; right: 12.5%;
  height: 1.5px; background: var(--bg-4); border-radius: 2px;
}
.wiz-dot { position: relative; text-align: center; flex: 1 1 0; min-width: 0; }
.wiz-dot button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--bg-4); background: #fff;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: var(--ink-4);
  cursor: pointer; position: relative; z-index: 1;
  display: inline-grid; place-items: center;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.wiz-dot.is-reachable button { border-color: var(--ink); color: var(--ink); }
.wiz-dot.is-done button { background: var(--ink); border-color: var(--ink); color: #fff; }
.wiz-dot.is-current button {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 4px rgba(158,82,97,.12);
}
.wiz-dot__n { display: block; }
.wiz-dot__label {
  display: block; margin-top: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .68rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4);
}
.wiz-dot.is-current .wiz-dot__label { color: var(--accent); }
@media (max-width: 620px){
  .wiz-dot { min-width: 0; }
  .wiz-dot__label { display: none; }
  .wiz-bar::before { left: 20px; right: 20px; }
}

.wiz-h { font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; letter-spacing: -.025em; color: var(--ink-hd); }
.wiz-sub { margin-top: .5rem; font-size: .95rem; color: var(--ink-3); }

/* service select cards */
.svc-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.svc-grid--dental { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.svc-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 1.1rem .6rem .9rem;
  background: #fff;
  border: 1.5px solid var(--bg-4); border-radius: 16px;
  font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  line-height: 1.35; letter-spacing: -.005em; color: var(--ink); text-align: center;
  cursor: pointer;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), transform .15s var(--ease);
}
.svc-card:hover { border-color: var(--bg-4); box-shadow: var(--shadow-1); }
.svc-card:active { transform: scale(.98); }
.svc-card .ic, .svc-grid--dental .svc-card .ic { width: 24px; height: 24px; color: var(--accent); }
.svc-card img { width: 38px; height: 38px; object-fit: contain; }
.svc-card.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(158,82,97,.12);
}
@media (max-width: 620px){ .svc-grid, .svc-grid--dental { grid-template-columns: repeat(2, 1fr); } }

/* tier options row (selects are injected with inline layout styles) */
.wiz-optrow { color: var(--ink-2); font-size: .95rem; }
.wiz-optrow select { background: var(--bg-3); border: 1.5px solid transparent; border-radius: 10px; color: var(--ink); }
.wiz-optrow select:focus { outline: none; border-color: var(--accent); }

/* --------------------------------------------------------------- Scheduler */
.sched { margin-top: 1.4rem; }
.sched__skel { display: block; background: var(--bg-3); border-radius: 12px; animation: skel 1.2s ease-in-out infinite; }
.sched__skel--cal { height: 260px; max-width: 420px; }
.sched__skel-row { display: flex; gap: 10px; margin-top: 14px; }
.sched__skel--slot { width: 86px; height: 38px; }
@keyframes skel { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sched__skel { animation: none; } }

.cal { max-width: 430px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__month { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink-hd); }
.cal__nav {
  width: 34px; height: 34px;
  border: 1px solid rgba(0,0,0,.08); border-radius: 50%;
  background: #fff; color: var(--ink-3);
  display: grid; place-items: center;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.cal__nav .ic { width: 15px; height: 15px; }
.cal__nav--prev .ic { transform: rotate(180deg); }
.cal__nav:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  font-family: var(--font-body); font-weight: 600; font-size: .65rem;
  letter-spacing: .05em; color: var(--ink-4); text-align: center; padding: 6px 0;
  text-transform: uppercase;
}
.cal__day {
  height: 42px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: .9rem; border-radius: 10px;
}
span.cal__day.is-out { color: var(--bg-4); }
span.cal__day.is-off { color: var(--bg-4); }
button.cal__day.is-avail {
  border: 1px solid var(--bg-4); background: #fff; color: var(--ink);
  font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
button.cal__day.is-avail:hover { border-color: var(--accent); background: var(--accent-soft); }
button.cal__day.is-sel {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(158,82,97,.3);
}

.sched__times { margin-top: 1.1rem; }
.sched__times-label { font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: var(--ink-hd); margin-bottom: 10px; }
.sched__times-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.time-pill {
  padding: .55rem 1.05rem;
  border: 1px solid var(--bg-4); border-radius: var(--pill); background: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.time-pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.time-pill[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(158,82,97,.3);
}

.sched__confirm {
  margin-top: 1.1rem;
  display: flex; align-items: center; gap: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(158,82,97,.18);
  border-radius: 14px; padding: .85rem 1.1rem;
}
.sched__confirm-ic {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem;
}
.sched__confirm b { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-hd); }
.sched__confirm span:not(.sched__confirm-ic) { font-size: .78rem; color: var(--ink-3); }
.sched__clear {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: .82rem;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.wiz-skip {
  margin-top: 1.1rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .85rem; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.wiz-skip:hover { color: var(--accent); }

/* summary */
.wiz-summary {
  margin-top: 1.4rem; background: var(--bg-3);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 16px; padding: 1.1rem 1.25rem;
}
.wiz-summary__title {
  font-family: var(--font-body); font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.wiz-summary__row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 7px 0; border-top: .5px solid rgba(0,0,0,.05);
  font-size: .85rem; color: var(--ink-3);
}
.wiz-summary__row b { color: var(--ink-hd); font-weight: 600; text-align: right; }

/* wizard nav row */
.wiz-nav .form-note { margin-left: auto; font-size: .75rem; color: var(--ink-4); max-width: 260px; text-align: right; }
@media (max-width: 620px){ .wiz-nav .form-note { margin-left: 0; text-align: left; max-width: none; } }
.ic--back { transform: rotate(180deg); }

/* "Rather just call?" card — body copy matches the heading white exactly */
.info-card.info-card--accent p { color: #F5F5F7; }

/* "Other / Not sure" — companion button beside Continue (step 1 only).
   Same [data-svc] toggle contract as the grid cards; CSS gates visibility
   to the Services step via the first wiz-dot's is-current state. */
.svc-other { display: none; gap: .6rem; }
form:has(.wiz-dot:first-child.is-current) .svc-other { display: inline-flex; }
.svc-other-box {
  display: inline-block; width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--bg-4); border-radius: 6px; background: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.svc-other.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-hd); }
.svc-other.is-on .svc-other-box {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
  border-color: var(--accent);
}

/* Wizard service-cards use inline SVG glyphs (HVAC icon set) */
.svc-card svg.ic { width: 38px; height: 38px; color: var(--accent); }
