/* =====================================================================
   Dental Destination — home page (v3, Poorva-style layout)
   Loaded after services.css + pages.css on index.php only.
   Layout follows the Poorva reference (photo hero with overlay text,
   about block with floating badge, specialist cards, before/after
   slider beside treatment cards, check-list block, CTA card), in
   Dental Destination's own emerald + gold palette and Inter type.
   ===================================================================== */

.home-v3 section { scroll-margin-top: 100px; }

.hm-section { padding: 6.5rem 0; }
.hm-section.tight { padding: 5rem 0; }
.hm-bg-white { background: #fff; }
.hm-bg-ivory { background: var(--ivory); }
.hm-bg-mint { background: var(--mint); }

.hm-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.hm-head .section-eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hm-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 1rem 0 0;
}

.hm-prose p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.hm-prose p.big {
  font-size: 1.12rem;
  color: var(--text-dark);
}

/* ===================== HERO ===================== */
.hm-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--emerald-deep);
  color: var(--ivory);
  isolation: isolate;
}

.hm-hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}

.hm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--emerald-deep) 0%, var(--emerald-deep) 40%, rgba(10, 42, 33, 0.82) 52%, rgba(10, 42, 33, 0.25) 78%, rgba(10, 42, 33, 0.1) 100%),
    radial-gradient(ellipse 50% 80% at 10% 100%, rgba(214, 174, 69, 0.12), transparent 70%);
}

.hm-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.hm-hero .container { padding-top: 4.5rem; padding-bottom: 5.5rem; }

.hm-hero-copy { max-width: 640px; }

.hm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(214, 174, 69, 0.14);
  border: 1px solid rgba(214, 174, 69, 0.45);
  color: var(--gold-light);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.hm-hero h1 {
  color: #fff;
  font-size: 3.35rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.hm-hero h1 em { color: var(--gold); }

.hm-hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hm-hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(248, 247, 242, 0.8);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hm-hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hm-pills { display: flex; flex-wrap: wrap; gap: 0.65rem; list-style: none; padding: 0; margin: 0; }

.hm-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hm-pills li i { color: var(--gold); }
.hm-pills strong { color: var(--gold-light); font-weight: 700; }

/* ===================== ABOUT (image + floating badge) ===================== */
.hm-about-img { position: relative; }

.hm-about-img img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(11, 21, 18, 0.18);
  display: block;
}

.hm-about-img::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ---- clinic photo slider (about block) ---- */
.hm-about-slider .hm-slider-viewport {
  position: relative;
  height: 650px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(11, 21, 18, 0.18);
  background: var(--stone);
}

.hm-about-slider .hm-slider-track {
  display: flex;
  width: 500%;           /* 4 photos + 1 loop clone */
  height: 100%;
  animation: hmClinicSlide 20s ease-in-out infinite;
}

.hm-about-slider .hm-slider-viewport:hover .hm-slider-track { animation-play-state: paused; }

.hm-about-slider .hm-slider-track img {
  width: 20%;
  height: 100%;
  flex: 0 0 20%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

@keyframes hmClinicSlide {
  0%, 20%   { transform: translateX(0); }
  25%, 45%  { transform: translateX(-20%); }
  50%, 70%  { transform: translateX(-40%); }
  75%, 95%  { transform: translateX(-60%); }
  100%      { transform: translateX(-80%); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-about-slider .hm-slider-track { animation: none; }
}

.hm-float-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  border-left: 4px solid var(--gold);
}

.hm-float-badge .number {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--emerald);
  line-height: 1;
}

.hm-float-badge .label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; }

.hm-chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--mint);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}

.hm-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0 1.8rem;
}

.hm-note i { color: var(--gold-dark); font-size: 1.3rem; }
.hm-note p { margin: 0; font-size: 0.93rem; color: var(--text-dark); line-height: 1.7; }

.know-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

.know-more:hover { color: var(--gold-dark); }

/* ===================== SPECIALISTS ===================== */
.hm-doc-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem 2.2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hm-doc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 174, 69, 0.55);
  box-shadow: 0 26px 60px rgba(15, 61, 48, 0.12);
}

.hm-doc-mono {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--emerald-soft), var(--emerald-deep));
  color: var(--gold);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 6px var(--mint);
  overflow: hidden;
}

.hm-doc-mono img { width: 100%; height: 100%; object-fit: cover; }

.hm-doc-card h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.hm-doc-card h3 a { color: inherit; text-decoration: none; }
.hm-doc-card h3 a:hover { color: var(--gold-dark); }

.hm-doc-card .creds {
  color: var(--gold-dark);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.hm-doc-card .bio { text-align: left; }
.hm-doc-card .bio p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.8rem; }

.hm-doc-card .accent {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin: 1.4rem auto 1.2rem;
}

/* ===================== RESULTS SLIDER + TREATMENT CARDS ===================== */
.ba-slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  height: 640px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.ba-track {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: ba-up 55s linear infinite;
}

.ba-track.down { animation-name: ba-down; }
.ba-slider:hover .ba-track { animation-play-state: paused; }

.ba-track img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  background: var(--ink);
}

@keyframes ba-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 0.45rem)); } }
@keyframes ba-down { from { transform: translateY(calc(-50% - 0.45rem)); } to { transform: translateY(0); } }

.ba-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.ba-caption a { font-weight: 700; color: var(--emerald); text-decoration: none; white-space: nowrap; }

.ser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ser-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.ser-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 174, 69, 0.6);
  box-shadow: 0 20px 45px rgba(15, 61, 48, 0.12);
  color: var(--text-dark);
}

.ser-card .img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mint);
}

.ser-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.ser-card:hover img { transform: scale(1.06); }

.ser-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
  padding: 0.85rem 0.6rem 0.95rem;
  color: var(--emerald);
}

.ser-card.all {
  background: var(--emerald);
  border-color: var(--emerald);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.2rem;
  color: var(--ivory);
}

.ser-card.all:hover { color: var(--ivory); background: var(--emerald-soft); }
.ser-card.all .ico { font-size: 1.6rem; color: var(--gold); margin-bottom: 0.6rem; }
.ser-card.all h3 { color: var(--ivory); padding: 0; }
.ser-card.all span { font-size: 0.72rem; color: rgba(248, 247, 242, 0.7); margin-top: 0.4rem; }

/* ===================== TREATMENT TEXT CARDS ===================== */
.hm-tx-section {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(214, 174, 69, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(27, 90, 71, 0.08), transparent 70%),
    var(--mint);
}

.tx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem 1.8rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tx-card:hover {
  color: var(--text-dark);
  transform: translateY(-6px);
  border-color: rgba(214, 174, 69, 0.6);
  box-shadow: 0 24px 55px rgba(15, 61, 48, 0.12);
}

.tx-card .t-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--emerald);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
  transition: background var(--transition), color var(--transition);
}

.tx-card:hover .t-ico { background: var(--gold); color: var(--emerald-deep); }

.tx-card h3 { font-size: 1.22rem; margin-bottom: 0.7rem; }
.tx-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.2rem; }

.tx-card .go {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tx-card .accent { width: 32px; height: 2px; background: var(--gold); margin-bottom: 1rem; }

/* ===================== FIRST VISIT (approach cards) ===================== */
.visit-step {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem 2rem;
  text-align: center;
}

.visit-step .num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.3rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--emerald-deep);
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(214, 174, 69, 0.18);
}

.visit-step h3 { font-size: 1.22rem; margin-bottom: 0.8rem; }
.visit-step p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.7rem; }
.visit-step .accent { width: 32px; height: 2px; background: var(--gold); margin: 1.2rem auto 0; }

/* ===================== RESULTS & TREATMENT TIMELINE ===================== */
.tl-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.8rem;
  box-shadow: 0 20px 50px rgba(11, 21, 18, 0.06);
}

.tl-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 170px 260px;
  gap: 1.6rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.tl-row:last-child { border-bottom: 0; }

.tl-head {
  padding: 1.1rem 0 1.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tl-scale { position: relative; height: 1em; }

.tl-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.72rem;
  font-weight: 600;
}

.tl-tick:first-child { transform: none; }
.tl-tick:last-child { transform: translateX(-100%); }

.tl-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--emerald);
  text-decoration: none;
}

.tl-name:hover { color: var(--gold-dark); }

.tl-name .t-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--emerald);
  font-size: 1rem;
}

.tl-track { position: relative; height: 40px; }

.tl-line,
.tl-range,
.tl-solid {
  position: absolute;
  top: 11px;
  height: 6px;
  border-radius: 999px;
}

.tl-line { left: 0; right: 0; background: var(--stone); }
.tl-range { background: rgba(214, 174, 69, 0.38); }
.tl-solid { background: var(--emerald); }

.tl-dot {
  position: absolute;
  top: 7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--emerald);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--emerald);
}

.tl-dot[style="left:0"] { margin-left: 0; }
.tl-dot.end { background: var(--gold); box-shadow: 0 0 0 1px var(--gold-dark); }

.tl-dur {
  position: absolute;
  left: 0;
  top: 23px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.tl-visits {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
}

.tl-after {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.tl-note {
  max-width: 760px;
  margin: 1.6rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tl-note i { color: var(--gold-dark); margin-right: 0.3rem; }

@media (max-width: 1199.98px) {
  .tl-row { grid-template-columns: 200px minmax(0, 1fr) 150px 220px; gap: 1.2rem; }
}

@media (max-width: 991.98px) {
  .tl-board { padding: 0.4rem 1.2rem; }
  .tl-head { display: none; }
  .tl-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name visits" "track track" "after after";
    gap: 0.7rem 1rem;
    padding: 1.3rem 0;
  }
  .tl-name { grid-area: name; }
  .tl-visits { grid-area: visits; text-align: right; font-size: 0.8rem; }
  .tl-track { grid-area: track; }
  .tl-after { grid-area: after; }
}

/* ===================== UNDER ONE ROOF (image + check list) ===================== */
.roof-media { position: relative; }

.roof-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  display: block;
}

.stage-card {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: min(330px, 85%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px rgba(11, 21, 18, 0.18);
  padding: 1.4rem 1.5rem;
  border-top: 3px solid var(--gold);
}

.stage-card .ttl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.check-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.check-item:first-of-type { border-top: 0; }

.check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--emerald);
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 2px;
}

.check-item strong { display: block; font-size: 0.9rem; color: var(--emerald); line-height: 1.3; }
.check-item > div > span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ===================== STATEMENT BAND ===================== */
.hm-statement { text-align: center; max-width: 840px; margin: 0 auto; }
.hm-statement .lead-line {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--emerald);
  margin: 1.4rem 0 1rem;
}
.hm-statement p { color: var(--text-muted); }

/* ===================== CTA CARD ===================== */
.hm-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 4rem 3.5rem;
  text-align: center;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(214, 174, 69, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(27, 90, 71, 0.9), transparent 70%),
    var(--emerald-deep);
  box-shadow: 0 40px 80px rgba(10, 42, 33, 0.28);
}

.hm-cta-card .pill {
  display: inline-block;
  background: rgba(214, 174, 69, 0.16);
  border: 1px solid rgba(214, 174, 69, 0.45);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}

.hm-cta-card h2 { color: #fff; font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hm-cta-card h2 span { color: var(--gold); }
.hm-cta-card p { color: rgba(248, 247, 242, 0.8); max-width: 700px; margin: 0 auto 1.4rem; line-height: 1.8; }

.hm-cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  font-size: 0.88rem;
  color: rgba(248, 247, 242, 0.85);
}

.hm-cta-meta i { color: var(--gold); margin-right: 0.4rem; }
.hm-cta-meta a { color: inherit; text-decoration: none; }

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 247, 242, 0.35);
  color: var(--ivory);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-cta-outline:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(255, 255, 255, 0.05); }

/* ===================== REVIEWS ===================== */
.hm-review {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem 1.7rem;
  margin: 0;
  position: relative;
}

.hm-review::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(214, 174, 69, 0.25);
}

.hm-review .stars { color: #E7B416; letter-spacing: 3px; font-size: 1rem; margin-bottom: 0.9rem; }
.hm-review blockquote { margin: 0 0 1.4rem; }
.hm-review blockquote p { font-size: 0.93rem; line-height: 1.75; color: var(--text-dark); margin-bottom: 0.6rem; }
.hm-review mark { background: rgba(214, 174, 69, 0.25); padding: 0 2px; border-radius: 2px; }

.hm-review figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.hm-review .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--emerald);
  color: var(--gold);
  font-weight: 800;
}

.hm-review .name { font-weight: 700; color: var(--emerald); text-decoration: none; }
.hm-review .src { font-size: 0.78rem; color: var(--text-muted); }
.hm-review .src a { color: var(--gold-dark); }

/* ===================== FAQ ===================== */
.hm-faq .premium-accordion { max-width: 900px; margin: 0 auto; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1199.98px) {
  .hm-hero h1 { font-size: 2.9rem; }
  .ser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .hm-section { padding: 4.5rem 0; }
  .hm-hero { min-height: 0; align-items: flex-end; }
  .hm-hero-img { width: 100%; opacity: 0.55; }
  .hm-hero::before {
    background: linear-gradient(180deg, rgba(10, 42, 33, 0.45) 0%, rgba(10, 42, 33, 0.9) 45%, var(--emerald-deep) 70%);
  }
  .hm-hero .container { padding-top: 12rem; padding-bottom: 4rem; }
  .hm-about-img img { height: 420px; }
  .hm-about-slider .hm-slider-viewport { height: 420px; }
  .hm-about-slider .hm-slider-track img { height: 100%; }
  .hm-float-badge { left: 12px; }
  .ba-slider { height: 420px; margin-bottom: 2rem; }
  .roof-media { margin-bottom: 3rem; }
  .roof-media img { height: 420px; }
  .stage-card { right: 0.8rem; }
}

@media (max-width: 767.98px) {
  .hm-hero h1 { font-size: 2.15rem; }
  .hm-hero-sub { font-size: 1.02rem; }
  .hm-hero-lead { font-size: 0.95rem; }
  .hm-hero .actions > a { flex: 1 1 100%; }
  .hm-pills li { font-size: 0.76rem; padding: 6px 12px; }
  .hm-about-img img { height: 340px; }
  .hm-about-img::before { transform: translate(10px, 10px); }
  .ser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .ba-slider { height: 360px; }
  .hm-cta-card { padding: 2.8rem 1.4rem; border-radius: 16px; }
  .hm-cta-card h2 { font-size: 1.8rem; }
  .hm-cta-card .d-flex > a { flex: 1 1 100%; justify-content: center; }
  .roof-media img { height: 340px; }
  .stage-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -3rem; margin-left: auto; margin-right: auto; width: 92%; }
  .hm-doc-card { padding: 2rem 1.4rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-track { animation: none; }
  .ba-slider { overflow-y: auto; }
}

.hm-review .g-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

/* utilities missing from the trimmed Bootstrap build */
.home-v3 .pt-0 { padding-top: 0 !important; }
.home-v3 .align-items-start { align-items: flex-start !important; }


/* =====================================================================
   HOME PAGE TEXT ANIMATIONS  (JS: assets/js/home-anim.js)
   .dd-anim  – added inline at the top of the page (hero runs on load)
   .dd-ready – added by home-anim.js once headings are split into words
   Nothing is hidden unless those classes are present, so text always
   shows if JavaScript is off or the script fails.
   ===================================================================== */
@keyframes ddUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ddRise {
  from { transform: translateY(110%); }
  to   { transform: none; }
}
@keyframes ddShow { to { opacity: 1; } }

/* word wrappers created by home-anim.js */
.home-v3 .w  { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.home-v3 .wi { display: inline-block; }

/* ---------- Hero (plays on page load) ---------- */
.dd-anim .hm-hero .hm-badge,
.dd-anim .hm-hero .hm-hero-sub,
.dd-anim .hm-hero .hm-hero-lead,
.dd-anim .hm-hero .actions,
.dd-anim .hm-hero .hm-pills li {
  animation: ddUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.dd-anim .hm-hero .hm-badge      { animation-delay: 0.1s; }
.dd-anim .hm-hero .hm-hero-sub   { animation-delay: 0.75s; }
.dd-anim .hm-hero .hm-hero-lead  { animation-delay: 0.9s; }
.dd-anim .hm-hero .actions       { animation-delay: 1.05s; }
.dd-anim .hm-hero .hm-pills li:nth-child(1) { animation-delay: 1.2s; }
.dd-anim .hm-hero .hm-pills li:nth-child(2) { animation-delay: 1.3s; }
.dd-anim .hm-hero .hm-pills li:nth-child(3) { animation-delay: 1.4s; }

/* headline: hidden until split into words; failsafe shows it after 2.5s */
.dd-anim .hm-hero h1 { opacity: 0; animation: ddShow 0s 2.5s forwards; }
.dd-anim .hm-hero h1.is-split { opacity: 1; animation: none; }
.dd-anim .hm-hero h1.is-split .wi {
  animation: ddRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.2s + var(--i) * 70ms);
}

/* gold underline drawn under the highlighted words */
@keyframes ddLine {
  from { background-size: 0% 3px; }
  to   { background-size: 100% 3px; }
}
.dd-anim .hm-hero h1.is-split em {
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left 100% / 100% 3px;
  animation: ddLine 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.1s both;
}

/* ---------- Section headings (play on scroll) ---------- */
.dd-ready .home-v3 .section-heading .wi,
.dd-ready .home-v3 .hm-cta-card h2 .wi {
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i) * 45ms);
}
.dd-ready .home-v3 .section-heading.is-in .wi,
.dd-ready .home-v3 .hm-cta-card h2.is-in .wi { transform: none; }

/* eyebrow labels fade up, and their side lines draw in */
.dd-ready .home-v3 .section-eyebrow {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dd-ready .home-v3 .section-eyebrow::before,
.dd-ready .home-v3 .section-eyebrow::after {
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.dd-ready .home-v3 .section-eyebrow::before { transform-origin: right center; }
.dd-ready .home-v3 .section-eyebrow::after  { transform-origin: left center; }
.dd-ready .home-v3 .section-eyebrow.is-in { opacity: 1; transform: none; }
.dd-ready .home-v3 .section-eyebrow.is-in::before,
.dd-ready .home-v3 .section-eyebrow.is-in::after { transform: none; }

/* intro line under section headings */
.dd-ready .home-v3 .hm-head p {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
}
.dd-ready .home-v3 .hm-head p.is-in { opacity: 1; transform: none; }

/* statement line highlight */
.dd-ready .home-v3 .hm-statement .lead-line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}
.dd-ready .home-v3 .hm-statement .lead-line.is-in { opacity: 1; transform: none; }

/* "reasons patients visit" chips pop in one after another */
.dd-ready .home-v3 .hm-chips li {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dd-ready .home-v3 .hm-chips.is-in li { opacity: 1; transform: none; }
.dd-ready .home-v3 .hm-chips li:nth-child(2) { transition-delay: 0.08s; }
.dd-ready .home-v3 .hm-chips li:nth-child(3) { transition-delay: 0.16s; }
.dd-ready .home-v3 .hm-chips li:nth-child(4) { transition-delay: 0.24s; }
.dd-ready .home-v3 .hm-chips li:nth-child(5) { transition-delay: 0.32s; }
.dd-ready .home-v3 .hm-chips li:nth-child(6) { transition-delay: 0.40s; }

/* "2016 Serving Frazer Town" badge */
.dd-ready .home-v3 .hm-float-badge {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}
.dd-ready .home-v3 .hm-float-badge.is-in { opacity: 1; transform: none; }

/* treatment timeline bars grow from the left, row by row */
.dd-ready .home-v3 .tl-solid,
.dd-ready .home-v3 .tl-range {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dd-ready .home-v3 .tl-dot.end,
.dd-ready .home-v3 .tl-dur {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.dd-ready .home-v3 .tl-board.is-in .tl-solid,
.dd-ready .home-v3 .tl-board.is-in .tl-range { transform: none; }
.dd-ready .home-v3 .tl-board.is-in .tl-dot.end,
.dd-ready .home-v3 .tl-board.is-in .tl-dur { opacity: 1; }
.dd-ready .home-v3 .tl-row:nth-child(3) :is(.tl-solid, .tl-range, .tl-dur) { transition-delay: 0.08s; }
.dd-ready .home-v3 .tl-row:nth-child(4) :is(.tl-solid, .tl-range, .tl-dur) { transition-delay: 0.16s; }
.dd-ready .home-v3 .tl-row:nth-child(5) :is(.tl-solid, .tl-range, .tl-dur) { transition-delay: 0.24s; }
.dd-ready .home-v3 .tl-row:nth-child(6) :is(.tl-solid, .tl-range, .tl-dur) { transition-delay: 0.32s; }
.dd-ready .home-v3 .tl-row:nth-child(7) :is(.tl-solid, .tl-range, .tl-dur) { transition-delay: 0.40s; }
.dd-ready .home-v3 .tl-row:nth-child(8) :is(.tl-solid, .tl-range, .tl-dur) { transition-delay: 0.48s; }
.dd-ready .home-v3 .tl-row:nth-child(9) :is(.tl-solid, .tl-range, .tl-dur) { transition-delay: 0.56s; }
.dd-ready .home-v3 .tl-board.is-in .tl-dot.end { transition-delay: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .home-v3 *, .home-v3 *::before, .home-v3 *::after { animation: none !important; transition: none !important; }
}
