/* TrustHomi homepage — thin type, fast paint. Scoped to .hm-* so other pages are untouched. */
:root{--hm-font:'DM Sans',var(--font);--hm-navy:#2B2412;--hm-blue:#FECC4E;--hm-sky:#FFF8E1}
.th-hm-hero,.th-hm-tiles-wrap,.th-hm-stats,.th-hm-sec{font-family:var(--hm-font);font-weight:400}
.th-hm-hero h1,.th-hm-hero h2,.th-hm-sec h2,.th-hm-sec h3,.th-hm-stats b{font-family:var(--hm-font);font-weight:700;letter-spacing:-.01em}

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

.th-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)}
.th-hm-search label{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 16px;color:var(--primary-dark)}
.th-hm-search-loc{border-right:1px solid var(--line)}
.th-hm-search input,.th-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}
.th-hm-search select{appearance:none;-webkit-appearance:none;cursor:pointer}
.th-hm-search button{flex:0 0 auto;border:0;cursor:pointer;background:var(--hm-blue);color:var(--on-primary);font:400 15px var(--hm-font);padding:13px 28px;border-radius:999px;transition:background .15s,transform .12s}
.th-hm-search button:hover{background:var(--hm-navy)}.th-hm-search button:active{transform:scale(.96)}
.th-hm-search:focus-within{box-shadow:0 0 0 3px rgba(240,164,0,.55),0 14px 40px rgba(3,14,36,.35)}

.th-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:#FEEEC6}
.th-hm-trust .icon{font-size:15px;color:#7fd1a8}

/* Tiles overlap the hero curve, one swipeable row */
.th-hm-tiles-wrap{margin-top:-52px;position:relative;z-index:2}
.th-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}
.th-hm-tiles::-webkit-scrollbar{display:none}
.th-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(70,50,10,.12);color:var(--ink);font-size:12.5px;font-weight:500;text-align:center;line-height:1.3;transition:transform .15s,box-shadow .15s}
.th-hm-tile:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(70,50,10,.18);color:var(--primary-dark)}
.th-hm-tile .ic{width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:var(--hm-sky);color:var(--primary-dark)}
.th-hm-tile .ic img{width:100%;height:100%;object-fit:contain}
.th-hm-tile--near{background:var(--hm-sky)}
@media (min-width:900px){.th-hm-tiles{justify-content:center;overflow:visible;flex-wrap:wrap}}


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

/* Horizontal snap rail for dentist cards (reuses existing .th-toprated-card) */
.th-hm-rail.th-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}
.th-hm-rail.th-toprated-list::-webkit-scrollbar{display:none}
.th-hm-rail .th-toprated-card{flex:0 0 min(86vw,340px);scroll-snap-align:start;border-radius:20px}
@media (min-width:900px){.th-hm-rail.th-toprated-list{margin-inline:0;padding-inline:0;flex-wrap:wrap;overflow:visible}.th-hm-rail .th-toprated-card{flex:1 1 calc(33.3% - 14px);min-width:300px}}

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

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

@media (max-width:640px){.th-hm-hero{padding:30px 0 84px;border-radius:0 0 40px 40px/0 0 32px 32px}
  .th-hm-search{flex-wrap:wrap;border-radius:24px;padding:6px}
  .th-hm-search label{flex:1 1 100%;padding:0 14px}.th-hm-search-loc{border-right:0;border-bottom:1px solid var(--line)}
  .th-hm-search button{flex:1 1 100%;margin-top:6px}}
@media (prefers-reduced-motion:reduce){.th-hm-tile,.th-hm-btn,.th-hm-search button{transition:none}}
.th-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 */
  .th-hm-tiles-wrap{padding-left:16px;padding-right:0}
  .th-hm-tiles{gap:10px;margin-right:0;padding-right:16px;scroll-padding-left:16px}
  .th-hm-tile{flex:0 0 calc((100vw - 16px - 30px) / 3.5);min-width:0;padding:12px 6px 10px;font-size:12px;overflow-wrap:anywhere}
  .th-hm-tile .ic{width:52px;height:52px}
  /* 3) Dentists: stacked full-width cards, no slider */
  .th-hm-rail.th-toprated-list{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;scroll-snap-type:none;gap:14px;margin:16px 0 0;padding:0}
  .th-hm-rail .th-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 ---- */
.th-hm-stats-wrap{padding-top:22px;padding-bottom:4px;font-family:var(--hm-font)}
.th-hm-stats{display:flex;list-style:none;margin:0;padding:6px 4px;background:#fff;border-radius:20px;box-shadow:0 6px 24px rgba(70,50,10,.08);overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.th-hm-stats::-webkit-scrollbar{display:none}
.th-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}
.th-hm-stats li+li{border-left:1px solid var(--line-soft)}
.th-hm-stat-ic{width:40px;height:40px;border-radius:12px;background:var(--hm-sky);color:var(--primary-dark);display:flex;align-items:center;justify-content:center;flex:none}
.th-hm-stat-ic .icon{font-size:20px}
.th-hm-stat-txt{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.th-hm-stat-txt b{font-size:23px;font-weight:700;color:var(--hm-navy);letter-spacing:-.01em}
.th-hm-stat-txt span{font-size:12.5px;font-weight:400;color:var(--muted);margin-top:3px}
@media (max-width:640px){.th-hm-stats-wrap{padding-left:16px;padding-right:0}.th-hm-stats{border-radius:20px 0 0 20px;padding-right:8px}.th-hm-stats li{padding:12px 16px;gap:10px}.th-hm-stat-txt b{font-size:21px}}

/* ---------- About TrustHomi: two-column card ---------- */
.th-seo-content .th-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(70,50,10,.07)}
.th-about-head .th-seo-eyebrow{margin-bottom:16px}
.th-about-head h2{font-size:clamp(24px,3vw,34px);line-height:1.2;margin:0 0 20px;text-align:left;color:var(--hm-navy)}
.th-about-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:14.5px;color:var(--ink-soft)}
.th-about-points li{display:flex;align-items:center;gap:9px}
.th-about-points .icon{color:var(--success);font-size:17px}
.th-about-body{border-left:1px solid var(--line-soft);padding-left:40px}
.th-seo-content .th-about-body .th-lede{margin:0;text-align:left;font-size:16px;line-height:1.8;color:var(--ink-soft)}
.th-about-body .th-lede a{color:var(--primary-dark);text-decoration:underline;text-decoration-color:rgba(138,97,0,.35);text-underline-offset:3px}
.th-about-body .th-lede a:hover{text-decoration-color:var(--primary-dark)}
@media (max-width:820px){
  .th-seo-content .th-about-card{grid-template-columns:1fr;gap:22px;padding:26px 22px;border-radius:20px}
  .th-about-body{border-left:0;padding-left:0;border-top:1px solid var(--line-soft);padding-top:22px}
}

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

/* Home: treatment-cost hub (links down to /india/{service} cost pages) */
.th-hm-costs{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-top:16px}
.th-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(70,50,10,.06);color:var(--ink);transition:transform .15s,box-shadow .15s}
.th-hm-cost:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(70,50,10,.12)}
.th-hm-cost b{font-weight:500;font-size:15.5px;color:var(--primary-darker,var(--hm-navy))}
.th-hm-cost-r{font-size:20px;font-weight:600;color:var(--primary,var(--hm-blue))}
.th-hm-cost small{color:var(--muted);font-size:12.5px}
.th-hm-dual-h{font-family:var(--hm-font);font-weight:600;font-size:22px;margin:0 0 6px}
