/* ============================================================
   Dr. Daniel Francês — Páginas de Tratamento
   ============================================================ */

/* ---------- Hero do tratamento ---------- */
.thero {
  position: relative; background: var(--black); color: var(--cream);
  padding: clamp(130px, 16vh, 190px) 0 clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.thero::before {
  content: ''; position: absolute; top: -30%; right: -8%; width: 46%; height: 150%;
  background: radial-gradient(closest-side, rgba(203,185,162,.14), transparent 70%); pointer-events: none;
}
.thero__num {
  position: absolute; right: clamp(-10px, 2vw, 40px); top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(180px, 34vw, 420px);
  line-height: .8; color: rgba(251,246,241,.035); z-index: 0; pointer-events: none; user-select: none;
}
.thero__inner { position: relative; z-index: 2; max-width: 880px; }

/* ---------- Foto no hero do tratamento ---------- */
.thero:has(.thero__bg) .thero__num { display: none; }
.thero:has(.thero__bg) .thero__inner { max-width: 620px; }
.thero__bg { position: absolute; inset: 0 0 0 auto; width: 47%; z-index: 0; }
.thero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.thero:has(.thero__bg)::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, var(--black) 0%, var(--black) 40%, rgba(19,19,22,.62) 60%, rgba(19,19,22,.12) 80%, transparent 92%),
             linear-gradient(0deg, rgba(8,8,8,.55), transparent 30%);
}

/* ---------- Faixa de imagem clínica ---------- */
.media-band { position: relative; height: clamp(300px, 40vw, 540px); overflow: hidden; background: var(--black); }
.media-band img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media-band figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 26px; margin: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.82), rgba(10,10,12,0));
  color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .04em;
}
.media-band figcaption::before { content: ''; width: 26px; height: 1.5px; background: var(--sand); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(251,246,241,.5); margin-bottom: 30px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(251,246,241,.7); transition: color .25s; }
.breadcrumb a:hover { color: var(--sand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--sand); }
.thero__eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--sand); margin-bottom: 24px; }
.thero__eyebrow::before { content: ''; width: 32px; height: 1.5px; background: var(--sand); }
.thero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.015em;
  color: var(--cream); text-wrap: balance;
}
.thero h1 em { font-style: normal; color: var(--sand); }
.thero__sub { margin-top: 26px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(251,246,241,.82); }
.thero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Quick facts (aside) ---------- */
.tsection { padding: clamp(72px, 9vw, 130px) 0; }
.tsection.alt { background: var(--mist); }
.intro__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.intro__body .eyebrow { color: var(--sand-dark); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.intro__body .eyebrow::before { content: ''; width: 30px; height: 1.5px; background: currentColor; }
.intro__body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.intro__body h2 em { font-style: normal; color: var(--sand-dark); }
.intro__body p { margin-top: 20px; font-size: 17.5px; line-height: 1.7; color: var(--slate); max-width: 60ch; }
.intro__body p strong { color: var(--ink); font-weight: 600; }

.facts {
  background: var(--black); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px); box-shadow: var(--shadow-card); position: sticky; top: 100px;
}
.facts h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--sand); letter-spacing: .04em; margin-bottom: 8px; }
.facts__list { margin-top: 18px; display: flex; flex-direction: column; }
.facts__list div { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(251,246,241,.12); }
.facts__list div:first-child { border-top: none; }
.facts__list .fi { width: 38px; height: 38px; border-radius: 10px; background: rgba(203,185,162,.14); color: var(--sand); display: grid; place-items: center; flex-shrink: 0; }
.facts__list .fi svg { width: 19px; height: 19px; }
.facts__list b { display: block; font-size: 15px; color: var(--cream); font-weight: 600; }
.facts__list small { font-size: 13px; color: rgba(251,246,241,.6); }
.facts .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* ---------- Section heading (light) ---------- */
.thead { max-width: 720px; margin-bottom: 50px; }
.thead .eyebrow { color: var(--sand-dark); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.thead .eyebrow::before { content: ''; width: 30px; height: 1.5px; background: currentColor; }
.thead h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 50px); line-height: 1.07; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.thead h2 em { font-style: normal; color: var(--sand-dark); }
.thead p { margin-top: 18px; font-size: 17.5px; color: var(--slate); max-width: 56ch; }

/* ---------- Indicações (cards) ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind {
  background: #fff; border: 1px solid rgba(142,132,122,.16); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 18px 50px -36px rgba(0,0,0,.5);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.ind:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: rgba(203,185,162,.4); }
.ind .ii { width: 50px; height: 50px; border-radius: 13px; background: var(--navy); color: var(--sand); display: grid; place-items: center; margin-bottom: 20px; }
.ind .ii svg { width: 25px; height: 25px; }
.ind h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.18; }
.ind p { margin-top: 10px; font-size: 14.5px; color: var(--slate); line-height: 1.55; }

/* ---------- Etapas (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step-c {
  position: relative; background: #fff; border: 1px solid rgba(142,132,122,.16);
  border-radius: var(--radius); padding: 32px 30px 30px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tsection.alt .step-c { background: var(--cream); }
.step-c:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.step-c .sn { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--sand-dark); letter-spacing: .12em; }
.step-c h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink); margin-top: 14px; line-height: 1.15; }
.step-c p { margin-top: 12px; font-size: 15.5px; color: var(--slate); line-height: 1.6; }
.step-c .ghost { position: absolute; right: 18px; top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 92px; color: rgba(13,30,61,.05); line-height: 1; }

/* ---------- Benefícios ---------- */
.benefits-wrap { background: var(--black); color: var(--cream); }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 8px; }
.benefit { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(251,246,241,.1); }
.benefit .bi { width: 32px; height: 32px; border-radius: 50%; background: var(--sand); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.benefit .bi svg { width: 17px; height: 17px; }
.benefit b { font-weight: 600; font-size: 17px; color: var(--cream); }
.benefit p { font-size: 14.5px; color: rgba(251,246,241,.62); margin-top: 4px; line-height: 1.55; }
.benefits-wrap .thead h2 { color: var(--cream); }
.benefits-wrap .thead h2 em { color: var(--sand); }
.benefits-wrap .thead .eyebrow { color: var(--sand); }
.benefits-wrap .thead p { color: rgba(251,246,241,.72); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__item { border-top: 1px solid rgba(142,132,122,.22); }
.faq__item:last-child { border-bottom: 1px solid rgba(142,132,122,.22); }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 22px);
  color: var(--ink); transition: color .25s;
}
.faq__q:hover { color: var(--sand-dark); }
.faq__q .pm { width: 30px; height: 30px; flex-shrink: 0; position: relative; }
.faq__q .pm::before, .faq__q .pm::after { content: ''; position: absolute; background: var(--sand-dark); transition: transform .35s var(--ease); }
.faq__q .pm::before { top: 50%; left: 4px; right: 4px; height: 2px; transform: translateY(-50%); }
.faq__q .pm::after { left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); }
.faq__item.open .faq__q .pm::after { transform: translateX(-50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a p { padding: 0 4px 28px; font-size: 16.5px; line-height: 1.7; color: var(--slate); max-width: 64ch; }
.faq__item.open .faq__a { max-height: 360px; }

/* ---------- CTA band ---------- */
.tcta { background: var(--mist); }
.tcta__box {
  background: var(--black); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 84px); text-align: center; position: relative; overflow: hidden;
}
.tcta__box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, rgba(203,185,162,.16), transparent 60%); }
.tcta__box > * { position: relative; z-index: 1; }
.tcta__box .eyebrow { color: var(--sand); display: inline-block; margin-bottom: 18px; }
.tcta__box h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; color: var(--cream); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.tcta__box p { margin: 20px auto 0; max-width: 52ch; font-size: 17px; color: rgba(251,246,241,.76); }
.tcta__actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Outros tratamentos ---------- */
.others-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff; border: 1px solid rgba(142,132,122,.16); border-radius: 16px;
  padding: 24px 26px; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.other:hover { transform: translateY(-4px); border-color: rgba(203,185,162,.45); box-shadow: var(--shadow-soft); }
.other b { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.other .oa { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(13,30,61,.16); display: grid; place-items: center; color: var(--navy); flex-shrink: 0; transition: background .3s, color .3s, border-color .3s; }
.other:hover .oa { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.other .oa svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .thero__bg { display: none; }
  .thero:has(.thero__bg)::after { display: none; }
  .thero:has(.thero__bg) .thero__inner { max-width: 100%; }
  .media-band { height: clamp(220px, 56vw, 360px); }
}
@media (max-width: 960px) {
  .intro__grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .others-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; gap: 0; }
  .thero__num { font-size: 200px; opacity: .8; }
}
@media (max-width: 600px) {
  /* botões em coluna e centralizados no mobile */
  .thero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .thero__cta .btn { width: 100%; justify-content: center; }
  .tcta__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .tcta__actions .btn { width: 100%; justify-content: center; }
}
