/* TrustDento homepage — thin type, fast paint. Scoped to .hm-* so other pages are untouched. */
:root{--hm-font:'Outfit',var(--font);--hm-navy:#081E42;--hm-blue:#0F52A0;--hm-sky:#EAF2FB}
.hm-hero,.hm-tiles-wrap,.hm-stats,.hm-sec{font-family:var(--hm-font);font-weight:300}
.hm-hero h1,.hm-hero h2,.hm-sec h2,.hm-sec h3,.hm-stats b{font-family:var(--hm-font);font-weight:200;letter-spacing:-.01em}

/* Hero: pure CSS (no images) so LCP is the H1 text */
.hm-hero{position:relative;color:#fff;text-align:center;padding:44px 0 96px;
  background:radial-gradient(90% 120% at 80% -20%,#1d6fd1 0,transparent 55%),linear-gradient(180deg,var(--hm-blue),var(--hm-navy));
  border-radius:0 0 50% 50%/0 0 56px 56px}
.hm-hero h1{color:#fff;font-size:clamp(28px,5.4vw,46px);line-height:1.15;margin:0 0 10px}
.hm-hero h1 em{font-style:normal;font-weight:400}
.hm-hero p{color:#cfe0f5;font-size:clamp(14px,2.2vw,17px);margin:0 auto 24px;max-width:520px}

.hm-search{display:flex;align-items:center;max-width:720px;margin:0 auto;background:#fff;border-radius:999px;padding:5px;box-shadow:0 14px 40px rgba(3,14,36,.35)}
.hm-search label{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 16px;color:var(--hm-blue)}
.hm-search-loc{border-right:1px solid var(--line)}
.hm-search input,.hm-search select{width:100%;border:0;outline:0;background:transparent;font:300 15px var(--hm-font);color:var(--ink);padding:13px 0;text-overflow:ellipsis}
.hm-search select{appearance:none;-webkit-appearance:none;cursor:pointer}
.hm-search button{flex:0 0 auto;border:0;cursor:pointer;background:var(--hm-blue);color:#fff;font:400 15px var(--hm-font);padding:13px 28px;border-radius:999px;transition:background .15s,transform .12s}
.hm-search button:hover{background:var(--hm-navy)}.hm-search button:active{transform:scale(.96)}
.hm-search:focus-within{box-shadow:0 0 0 3px rgba(240,164,0,.55),0 14px 40px rgba(3,14,36,.35)}

.hm-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;list-style:none;margin:20px 0 0;padding:0;font-size:13.5px;color:#cfe0f5}
.hm-trust .icon{font-size:15px;color:#7fd1a8}

/* Tiles overlap the hero curve, one swipeable row */
.hm-tiles-wrap{margin-top:-52px;position:relative;z-index:2}
.hm-tiles{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:6px 2px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hm-tiles::-webkit-scrollbar{display:none}
.hm-tile{flex:0 0 116px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border-radius:18px;padding:14px 8px 12px;box-shadow:0 6px 20px rgba(8,30,66,.12);color:var(--ink);font-size:12.5px;font-weight:300;text-align:center;line-height:1.3;transition:transform .15s,box-shadow .15s}
.hm-tile:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(8,30,66,.18);color:var(--hm-blue)}
.hm-tile .ic{width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:var(--hm-sky);color:var(--hm-blue)}
.hm-tile .ic img{width:100%;height:100%;object-fit:contain}
.hm-tile--near{background:var(--hm-sky)}
@media (min-width:900px){.hm-tiles{justify-content:center;overflow:visible;flex-wrap:wrap}}


/* Sections: skip rendering work until near viewport */
.hm-sec{padding-top:38px;padding-bottom:10px}
.hm-sec,#browse-by-state,.seo-content,.testimonials-section{content-visibility:auto;contain-intrinsic-size:auto 600px}
.hm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:6px}
.hm-head h2{font-size:clamp(22px,3.4vw,30px);margin:0}
.hm-head h2 span{color:var(--hm-blue);font-weight:400}
.hm-empty{color:var(--muted);font-weight:300}

/* Horizontal snap rail for dentist cards (reuses existing .toprated-card) */
.hm-rail.toprated-list{display:flex;flex-direction:row;gap:14px;margin:16px -24px 0;padding:4px 24px 16px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
.hm-rail.toprated-list::-webkit-scrollbar{display:none}
.hm-rail .toprated-card{flex:0 0 min(86vw,340px);scroll-snap-align:start;border-radius:20px}
@media (min-width:900px){.hm-rail.toprated-list{margin-inline:0;padding-inline:0;flex-wrap:wrap;overflow:visible}.hm-rail .toprated-card{flex:1 1 calc(33.3% - 14px);min-width:300px}}

/* Dual CTA (patients / clinics) */
.hm-dual{display:grid;grid-template-columns:1fr;gap:0;background:#fff;border-radius:22px;box-shadow:0 10px 34px rgba(8,30,66,.10);overflow:hidden}
.hm-dual>div{padding:28px 26px}
.hm-dual h3{font-size:22px;margin:0 0 6px}
.hm-dual p{color:var(--muted);font-weight:300;margin:0 0 16px}
.hm-btn{display:inline-block;background:var(--hm-blue);color:#fff;font:400 14.5px var(--hm-font);padding:11px 24px;border-radius:999px;transition:background .15s,transform .12s}
.hm-btn:hover{background:var(--hm-navy);color:#fff}.hm-btn:active{transform:scale(.96)}
.hm-btn--ghost{background:transparent;color:var(--hm-blue);border:1px solid var(--hm-blue)}.hm-btn--ghost:hover{background:var(--hm-sky);color:var(--hm-navy)}
@media (min-width:760px){.hm-dual{grid-template-columns:1fr 1fr}.hm-dual>div+div{border-left:1px solid var(--line)}}

/* Thin type on the reused SEO/testimonial blocks below the fold */
.seo-content,.testimonials-section,#browse-by-state{font-family:var(--hm-font);font-weight:300}
.seo-content h2,.seo-content h3,.testimonials-section h2,#browse-by-state h2{font-family:var(--hm-font);font-weight:200}
.faq-q{font-weight:400}

@media (max-width:640px){.hm-hero{padding:30px 0 84px;border-radius:0 0 40px 40px/0 0 32px 32px}
  .hm-search{flex-wrap:wrap;border-radius:24px;padding:6px}
  .hm-search label{flex:1 1 100%;padding:0 14px}.hm-search-loc{border-right:0;border-bottom:1px solid var(--line)}
  .hm-search button{flex:1 1 100%;margin-top:6px}}
@media (prefers-reduced-motion:reduce){.hm-tile,.hm-btn,.hm-search button{transition:none}}
.hm-lede{margin:4px 0 0;color:var(--muted);font-size:14.5px}

/* ---- Mobile fixes ---- */
@media (max-width:899px){
  /* 1) Tiles: exactly 3.5 visible so it's obvious the row scrolls; row bleeds to the screen edge */
  .hm-tiles-wrap{padding-left:16px;padding-right:0}
  .hm-tiles{gap:10px;margin-right:0;padding-right:16px;scroll-padding-left:16px}
  .hm-tile{flex:0 0 calc((100vw - 16px - 30px) / 3.5);min-width:0;padding:12px 6px 10px;font-size:12px;overflow-wrap:anywhere}
  .hm-tile .ic{width:52px;height:52px}
  /* 3) Dentists: stacked full-width cards, no slider */
  .hm-rail.toprated-list{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;scroll-snap-type:none;gap:14px;margin:16px 0 0;padding:0}
  .hm-rail .toprated-card{flex:1 1 auto;width:100%;min-width:0}
}
@media (max-width:640px){
  /* 2) Stats: single column, one line per stat */
}

/* ---- Stats strip: one professional horizontal card ---- */
.hm-stats-wrap{padding-top:22px;padding-bottom:4px;font-family:var(--hm-font)}
.hm-stats{display:flex;list-style:none;margin:0;padding:6px 4px;background:#fff;border-radius:20px;box-shadow:0 6px 24px rgba(8,30,66,.08);overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hm-stats::-webkit-scrollbar{display:none}
.hm-stats li{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 22px;scroll-snap-align:start;white-space:nowrap}
.hm-stats li+li{border-left:1px solid var(--line-soft)}
.hm-stat-ic{width:40px;height:40px;border-radius:12px;background:var(--hm-sky);color:var(--hm-blue);display:flex;align-items:center;justify-content:center;flex:none}
.hm-stat-ic .icon{font-size:20px}
.hm-stat-txt{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.hm-stat-txt b{font-size:23px;font-weight:300;color:var(--hm-navy);letter-spacing:-.01em}
.hm-stat-txt span{font-size:12.5px;font-weight:300;color:var(--muted);margin-top:3px}
@media (max-width:640px){.hm-stats-wrap{padding-left:16px;padding-right:0}.hm-stats{border-radius:20px 0 0 20px;padding-right:8px}.hm-stats li{padding:12px 16px;gap:10px}.hm-stat-txt b{font-size:21px}}

/* ---------- About TrustDento: two-column card ---------- */
.seo-content .about-card{max-width:none;margin:0 0 8px;text-align:left;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px;align-items:center;
  background:#fff;border:1px solid var(--line-soft);border-radius:24px;padding:40px 44px;box-shadow:0 10px 36px rgba(8,30,66,.07)}
.about-head .seo-eyebrow{margin-bottom:16px}
.about-head h2{font-size:clamp(24px,3vw,34px);line-height:1.2;margin:0 0 20px;text-align:left;color:var(--hm-navy)}
.about-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:14.5px;color:var(--ink-soft)}
.about-points li{display:flex;align-items:center;gap:9px}
.about-points .icon{color:var(--success);font-size:17px}
.about-body{border-left:1px solid var(--line-soft);padding-left:40px}
.seo-content .about-body .lede{margin:0;text-align:left;font-size:16px;line-height:1.8;color:var(--ink-soft)}
.about-body .lede a{color:var(--hm-blue);text-decoration:underline;text-decoration-color:rgba(15,82,160,.35);text-underline-offset:3px}
.about-body .lede a:hover{text-decoration-color:var(--hm-blue)}
@media (max-width:820px){
  .seo-content .about-card{grid-template-columns:1fr;gap:22px;padding:26px 22px;border-radius:20px}
  .about-body{border-left:0;padding-left:0;border-top:1px solid var(--line-soft);padding-top:22px}
}

/* ---------- Dental specialties: card grid ---------- */
.seo-content .seo-block h3{font-size:clamp(19px,2.4vw,24px)}
.seo-content .seo-block-desc{max-width:720px;font-size:15px;line-height:1.7}
.seo-content .treatments-panel{background:transparent;border:0;padding:0;margin-top:22px}
.seo-content .treatments-panel .tdp-service-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.seo-content .tdp-spec-row{position:relative;flex-direction:column;align-items:flex-start;gap:14px;padding:22px;background:#fff;border:1px solid var(--line-soft);border-radius:18px;
  box-shadow:0 4px 16px rgba(8,30,66,.05);transition:transform .18s,box-shadow .18s,border-color .18s}
.seo-content .tdp-spec-row:last-child{border-bottom:1px solid var(--line-soft)}
.seo-content .tdp-spec-row:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(8,30,66,.11);border-color:var(--primary-tint-strong)}
.seo-content .tdp-spec-row .tdp-service-ic{width:52px;height:52px;border-radius:14px;background:var(--primary-tint)}
.seo-content .tdp-spec-row .tdp-service-ic--img img{border-radius:14px}
.seo-content .tdp-spec-row .tdp-service-body{display:flex;flex-direction:column;width:100%;flex:1}
.seo-content .tdp-spec-link b{font-size:16.5px;font-weight:400;color:var(--hm-navy);display:block;margin-bottom:6px}
.seo-content .tdp-spec-link p{font-size:13.5px;line-height:1.6;color:var(--muted);margin:0}
.seo-content .tdp-spec-link::after{content:"";position:absolute;inset:0;border-radius:18px} /* whole card clickable */
.tdp-spec-cta{display:inline-flex;align-items:center;gap:4px;margin-top:12px;font-size:13px;color:var(--hm-blue)}
.tdp-spec-cta .icon{font-size:14px;transition:transform .15s}
.tdp-spec-row:hover .tdp-spec-cta .icon{transform:translateX(3px)}
.seo-content .tdp-spec-chips{margin-top:auto;padding-top:14px;position:relative;z-index:1}
.seo-content .tdp-spec-chips a{font-size:12px;padding:4px 11px}
@media (max-width:980px){.seo-content .treatments-panel .tdp-service-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones: keep TWO columns (was 1) — compact the card so two fit comfortably. */
@media (max-width:600px){.seo-content .treatments-panel .tdp-service-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.seo-content .tdp-spec-row{padding:14px 12px;gap:10px;border-radius:16px;min-width:0}.seo-content .tdp-spec-row .tdp-service-ic{width:44px;height:44px;border-radius:12px}.seo-content .tdp-spec-row .tdp-service-ic--img img{width:100%;height:100%;object-fit:contain;border-radius:12px}.seo-content .tdp-spec-link b{font-size:14.5px;line-height:1.3;margin-bottom:4px;overflow-wrap:anywhere}.seo-content .tdp-spec-link p{font-size:12.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tdp-spec-cta{margin-top:8px;font-size:12.5px}.seo-content .tdp-spec-chips{padding-top:10px;gap:5px}.seo-content .tdp-spec-chips a{font-size:11px;padding:3px 8px}}

/* Home: treatment-cost hub (links down to /india/{service} cost pages) */
.hm-costs{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-top:16px}
.hm-cost{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px;box-shadow:0 6px 20px rgba(8,30,66,.06);color:var(--ink);transition:transform .15s,box-shadow .15s}
.hm-cost:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(8,30,66,.12)}
.hm-cost b{font-weight:500;font-size:15.5px;color:var(--primary-darker,var(--hm-navy))}
.hm-cost-r{font-size:20px;font-weight:600;color:var(--primary,var(--hm-blue))}
.hm-cost small{color:var(--muted);font-size:12.5px}
.hm-dual-h{font-family:var(--hm-font);font-weight:300;font-size:22px;margin:0 0 6px}
