/* ==========================================================================
   Untapped Dental — dental.css
   Landing-page layer on top of the shared design system (global/home/page):
   dark teal hero with the "Sarah on a call" visual, service tiles, chips,
   mobile menu, and one-page niceties. Hand-authored, no build step.
   ========================================================================== */

/* ---------------------------------------------------------- One-page UX */
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.site-header { position: sticky; top: 0; background: var(--bg); }
.site-header.is-stuck .navbar { box-shadow: 0 6px 24px -18px rgba(16,24,40,.45); }

/* ------------------------------------------------------------ Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 300; background: rgba(16,20,24,.5); backdrop-filter: blur(3px);
  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(--bg);
  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: var(--shadow-pop); }
.mnav.is-open .mnav__panel { transform: none; }
.mnav__close { align-self: flex-end; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); display: grid; place-items: center; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { padding: .95rem .2rem; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.mnav nav a:hover { color: var(--accent); }
.mnav__cta { display: grid; gap: .6rem; margin-top: auto; }
.mnav-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mnav, .mnav__panel { transition: none; } }

/* ----------------------------------------------------------------- Hero */
.hero--dental {
  background:
    radial-gradient(52rem 30rem at 82% -12%, rgba(14,148,136,.34), transparent 60%),
    radial-gradient(40rem 26rem at -8% 108%, rgba(10,124,116,.30), transparent 62%),
    linear-gradient(160deg, #10201F 0%, var(--dark) 55%, #0E1A19 100%);
}
.hero--dental .hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .9fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
.hero--dental .hero__title { text-transform: none; line-height: 1.02; letter-spacing: -.022em; font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.35rem); }
.hero--dental .hero__sub b { color: #fff; }

/* The "Sarah on a call" visual */
.hero__visual { display: grid; gap: .9rem; justify-items: stretch; min-width: 0; }
.call-card {
  background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem 1rem; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.call-card__head { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.call-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #0E9488, #065A54); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.call-card__who { display: flex; flex-direction: column; line-height: 1.15; }
.call-card__who b { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.call-card__who span { color: var(--ink-inv-3); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.call-card__live { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--ink-inv-2);
  background: rgba(79,196,184,.12); border: 1px solid rgba(79,196,184,.3); padding: .34rem .7rem; border-radius: var(--pill); white-space: nowrap; }
.call-card__live .dot { width: 7px; height: 7px; border-radius: 50%; background: #4BD07E; box-shadow: 0 0 0 0 rgba(75,208,126,.5); animation: livePulse 2s infinite; }
@keyframes livePulse { 60% { box-shadow: 0 0 0 7px rgba(75,208,126,0); } 100% { box-shadow: 0 0 0 0 rgba(75,208,126,0); } }

.call-card__body { display: grid; gap: .55rem; padding: 1rem 0 .35rem; }
.bubble { max-width: 88%; padding: .62rem .85rem; border-radius: 13px; font-size: .92rem; line-height: 1.45; }
.bubble--caller { justify-self: start; background: rgba(255,255,255,.09); color: var(--ink-inv-2); border-bottom-left-radius: 4px; }
.bubble--sarah { justify-self: end; background: rgba(14,148,136,.3); border: 1px solid rgba(79,196,184,.28); color: #fff; 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 4px; border-radius: 2px; background: var(--accent-300); opacity: .75; 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: rgba(255,255,255,.97); border-radius: var(--radius);
  padding: .85rem 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: 34px; height: 34px; border-radius: 50%; background: #CFEEDC; color: var(--ok); display: grid; place-items: center; flex-shrink: 0; }
.confirm-card__check .ic { width: 18px; height: 18px; }
.confirm-card__text { display: flex; flex-direction: column; line-height: 1.3; }
.confirm-card__text b { color: var(--ink); font-size: .93rem; }
.confirm-card__text span { color: var(--ink-3); font-size: .8rem; }

@media (max-width: 900px) {
  .hero--dental .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 470px; }
}
@media (max-width: 420px) { .call-card__live { display: none; } }

/* ------------------------------------------------------------ Sarah band */
.sarah-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.sarah-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.5rem; }

.tag-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: var(--pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-700);
  font-weight: 600; font-size: .92rem; }
.tag-chip .ic { width: 17px; height: 17px; color: var(--accent); }

/* ------------------------------------------------------------- Services */
.svc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: clamp(.9rem, 1.8vw, 1.3rem); }
.svc-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.35rem 1.3rem;
  display: flex; flex-direction: column; gap: .55rem; transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s; }
.svc-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent-line); }
.svc-tile__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: .35rem; }
.svc-tile__icon .ic { width: 23px; height: 23px; }
.svc-tile h3 { font-size: 1.16rem; color: var(--ink); }
.svc-tile p { font-size: .92rem; color: var(--ink-2); flex-grow: 1; }
.tile-cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; padding: 0; color: var(--accent);
  font-weight: 700; font-size: .95rem; width: fit-content; }
.tile-cta .ic { width: 17px; height: 17px; transition: transform .25s var(--ease-out); }
.tile-cta:hover { color: var(--accent-600); }
.tile-cta:hover .ic { transform: translateX(3px); }

.svc-more { text-align: center; margin-top: clamp(1.8rem, 3.4vw, 2.6rem); }
.svc-more__label { font-weight: 700; color: var(--ink); margin-bottom: .8rem; }
.svc-more .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.svc-more .tag-chip { background: var(--bg-2); border-color: var(--line-2); color: var(--ink-2); }
.svc-more__hint { margin-top: .95rem; color: var(--ink-3); font-size: .92rem; max-width: 62ch; margin-inline: auto; }

/* -------------------------------------------------------- Visit / hours */
.form-layout--visit { grid-template-columns: 1.15fr .95fr; }
@media (max-width: 880px) { .form-layout--visit { grid-template-columns: 1fr; } }
.visit-side { display: grid; gap: 1rem; align-content: start; }
.open-pill { margin-top: .9rem; }
.open-pill span { display: inline-block; padding: .5rem 1rem; border-radius: var(--pill); font-weight: 700; font-size: .9rem;
  background: var(--accent-soft); color: var(--accent-700); border: 1px solid var(--accent-line); }
.open-pill span.is-open { background: var(--ok-soft); color: var(--ok); border-color: #BCE6CD; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 260px; background: var(--bg-3); }
.map-card iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

/* ------------------------------------------------------------ CTA closer */
.cta-closer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.4rem; }
.cta-closer .lede { max-width: 52ch; margin-inline: auto; color: rgba(255,255,255,.85); }

/* --------------------------------------------------------------- Footer */
.footer-demo a { color: var(--accent-300); font-weight: 600; }
.footer-demo a:hover { text-decoration: underline; }

/* Dental wizard: roomier single-select cards */
.svc-grid--dental { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
.svc-grid--dental .svc-card .ic { width: 26px; height: 26px; color: var(--accent); }
