/* ==========================================================================
   Sigma — Portal do Dentista Parceiro
   Tratamento: denso, técnico, ferramenta de trabalho. Régua fina no lugar
   de sombra, mono para códigos e doses, e a radiografia real como material.
   ========================================================================== */

/* --- Hero: metáfora do negatoscópio --------------------------------------- */
.d-hero {
  position: relative;
  background: var(--c-invert-bg);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.d-hero__film {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../img/exames/panoramica.jpg");
  background-size: cover; background-position: center 42%;
  opacity: .17; filter: grayscale(1) contrast(1.35) brightness(1.15);
  mask-image: linear-gradient(100deg, transparent 8%, #000 46%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 46%, #000 78%, transparent 100%);
}
.d-hero__glow {
  position: absolute; inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1; z-index: 0;
  background: radial-gradient(circle, rgba(142, 223, 239, .22) 0%, transparent 62%);
  pointer-events: none;
}
.d-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (max-width: 960px) { .d-hero__in { grid-template-columns: 1fr; } }
.d-hero h1 { color: #fff; max-width: 17ch; }
.d-hero h1 em { font-style: normal; color: var(--brand-200); }
.d-hero__lead { color: var(--c-invert-text-2); font-size: var(--step-1); max-width: 48ch; margin-top: 1.2rem; }
.d-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Painel de números: é a promessa operacional, não decoração */
.d-hero__panel {
  border: 1px solid var(--c-invert-line); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.d-hero__panel h2 {
  color: #fff; font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 600;
  padding: 1rem 1.4rem; border-bottom: 1px solid var(--c-invert-line);
  background: rgba(255, 255, 255, .05);
}
.spec-list { display: grid; grid-template-columns: 1fr 1fr; }
.spec {
  padding: 1.25rem 1.4rem;
  border-right: 1px solid var(--c-invert-line);
  border-bottom: 1px solid var(--c-invert-line);
}
.spec:nth-child(2n) { border-right: 0; }
.spec:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 460px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec { border-right: 0; }
  .spec:nth-last-child(2) { border-bottom: 1px solid var(--c-invert-line); }
}
.spec b {
  display: block; font-family: var(--f-display); font-weight: 600;
  font-size: 1.55rem; color: var(--brand-200); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.spec span { display: block; font-size: .8rem; color: var(--c-invert-text-2); margin-top: .3rem; line-height: 1.45; }

/* --- Faixa de atalhos operacionais ---------------------------------------- */
.d-rail { border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.d-rail__in { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .d-rail__in { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .d-rail__in { grid-template-columns: 1fr; } }
.d-rail a {
  display: flex; align-items: center; gap: .85rem; padding: 1.15rem 1.25rem;
  text-decoration: none; border-right: 1px solid var(--c-line-soft);
  transition: background .18s ease;
}
.d-rail a:last-child { border-right: 0; }
.d-rail a:hover { background: var(--c-surface-2); }
.d-rail svg { width: 19px; height: 19px; color: var(--c-accent); flex: none; }
.d-rail strong { font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: var(--c-brand); display: block; line-height: 1.3; }
.d-rail small { font-size: .76rem; color: var(--c-text-3); }
@media (max-width: 900px) {
  .d-rail a:nth-child(2n) { border-right: 0; }
  .d-rail a:nth-child(-n+2) { border-bottom: 1px solid var(--c-line-soft); }
}

/* --- Pedido online -------------------------------------------------------- */
.order { background: var(--c-surface-2); }
.order__in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 1rem + 4vw, 3.75rem); align-items: start; }
@media (max-width: 960px) { .order__in { grid-template-columns: 1fr; } }
.order-aside ol {
  list-style: none; padding: 0; margin-top: 1.9rem; counter-reset: fl;
  display: flex; flex-direction: column; gap: 1.15rem;
}
.order-aside li { display: flex; gap: .95rem; font-size: var(--step--1); color: var(--c-text-2); counter-increment: fl; }
.order-aside li::before {
  content: counter(fl); flex: none;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-brand); color: var(--c-bg);
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
}
:root[data-theme="dark"] .order-aside li::before { color: #050830; }
.order-aside li strong { color: var(--c-brand); font-family: var(--f-display); }

.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset + .fieldset { margin-top: 1.9rem; padding-top: 1.9rem; border-top: 1px solid var(--c-line); }
.fieldset > legend {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--c-text-3); padding: 0; margin-bottom: 1.05rem;
}

/* --- Catálogo técnico com abas -------------------------------------------- */
.tabs {
  display: flex; gap: .3rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--c-line); margin-top: 2.5rem;
}
.tabs button {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: .85rem 1.1rem; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-family: var(--f-display); font-weight: 600; font-size: .9rem;
  color: var(--c-text-3);
  transition: color .18s ease, border-color .18s ease;
}
.tabs button:hover { color: var(--c-brand); }
.tabs button[aria-selected="true"] { color: var(--c-accent); border-bottom-color: var(--c-accent); }

.tabpanel { padding-top: 2.5rem; }
.tabpanel[hidden] { display: none; }

.spec-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); align-items: start; }
@media (max-width: 820px) { .spec-block { grid-template-columns: 1fr; } }
.spec-block + .spec-block { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--c-line); }
.spec-block__fig { border-radius: var(--r-md); overflow: hidden; background: #080d1c; border: 1px solid var(--c-line); }
.spec-block__fig img { width: 100%; height: auto; display: block; }
.spec-block__fig figcaption {
  padding: .6rem .85rem; font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .07em; color: var(--c-text-3); background: var(--c-surface-2);
  border-top: 1px solid var(--c-line);
}
.spec-block h3 { font-size: var(--step-2); }
.spec-block__kicker {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-accent); display: block; margin-bottom: .5rem;
}
.spec-block p { color: var(--c-text-2); margin-top: .85rem; max-width: 64ch; }
.ind-title {
  font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--c-brand); margin-top: 1.6rem; margin-bottom: .8rem;
}
.ind-list { list-style: none; padding: 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ind-list li { display: flex; gap: .6rem; font-size: var(--step--1); color: var(--c-text-2); line-height: 1.55; }
.ind-list li::before {
  content: ""; flex: none; width: 6px; height: 6px; rotate: 45deg; border-radius: 1px;
  background: var(--c-sky); margin-top: .58rem;
}

/* Grade de miniaturas de tomografia */
.tomo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1.6rem; }
@media (max-width: 620px) { .tomo-strip { grid-template-columns: repeat(2, 1fr); } }
.tomo-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-sm); background: #080d1c; }

/* Especialidades atendidas pela tomografia */
.specialties { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.specialties span {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .03em;
  padding: .34rem .7rem; border: 1px solid var(--c-line); border-radius: 4px;
  color: var(--c-brand-soft); background: var(--c-surface-2);
}

/* --- Tabela de documentações ---------------------------------------------- */
.table-wrap { overflow-x: auto; margin-top: 2.5rem; border: 1px solid var(--c-line); border-radius: var(--r-md); }
table.doc-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: var(--step--1); }
.doc-table th, .doc-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--c-line-soft); }
.doc-table thead th {
  background: var(--c-surface-2); font-family: var(--f-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .04em; color: var(--c-brand);
  border-bottom: 1px solid var(--c-line); white-space: nowrap;
}
.doc-table tbody th {
  font-family: var(--f-body); font-weight: 400; color: var(--c-text-2);
  width: 34%; min-width: 230px;
}
.doc-table td { text-align: center; }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }
.doc-table .yes { color: var(--c-accent); font-weight: 700; }
.doc-table .no { color: var(--c-text-3); }
.doc-table tbody tr:hover { background: var(--c-surface-2); }

/* --- Análises cefalométricas ---------------------------------------------- */
.cefalo { background: var(--c-surface-2); }
.cefalo__filter { max-width: 380px; margin-top: 1.8rem; position: relative; }
.cefalo__filter input {
  width: 100%; padding: .8rem 1rem .8rem 2.7rem; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text);
  font-size: var(--step--1);
}
.cefalo__filter svg { position: absolute; left: .95rem; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--c-accent); }
.cefalo-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.cefalo-list li {
  list-style: none;
  font-family: var(--f-mono); font-size: .78rem;
  padding: .42rem .8rem; border-radius: 5px;
  background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text-2);
}
.cefalo-list li[hidden] { display: none; }
.cefalo-count { font-size: var(--step--1); color: var(--c-text-3); margin-top: 1.1rem; }

/* --- Diferenciais --------------------------------------------------------- */
.perks { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid var(--c-line); }
@media (max-width: 880px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }
.perk {
  padding: 1.9rem 1.6rem 1.9rem 0;
  border-bottom: 1px solid var(--c-line); border-right: 1px solid var(--c-line);
  padding-left: 1.6rem;
}
.perk:nth-child(3n) { border-right: 0; }
@media (max-width: 880px) { .perk:nth-child(3n) { border-right: 1px solid var(--c-line); } .perk:nth-child(2n) { border-right: 0; } }
@media (max-width: 520px) { .perk { border-right: 0 !important; } }
.perk svg { width: 22px; height: 22px; color: var(--c-accent); }
.perk h3 { font-size: var(--step-1); margin: 1rem 0 .5rem; }
.perk p { font-size: var(--step--1); color: var(--c-text-2); }

/* --- Fluxo de parceria ---------------------------------------------------- */
.flow { background: var(--c-invert-bg); color: #fff; }
.flow h2 { color: #fff; }
.flow .section-head p { color: var(--c-invert-text-2); }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 3rem; }
@media (max-width: 900px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow-grid { grid-template-columns: 1fr; } }
.flow-step { padding-top: 2.2rem; position: relative; }
.flow-step::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--c-invert-line); }
.flow-step__dot { position: absolute; top: 1px; left: 0; width: 14px; height: 14px; rotate: 45deg; border-radius: 2px; background: var(--brand-200); }
.flow-step:nth-child(2) .flow-step__dot { background: var(--brand-300); }
.flow-step:nth-child(3) .flow-step__dot { background: var(--brand-500); }
.flow-step:nth-child(4) .flow-step__dot { background: var(--brand-700); box-shadow: 0 0 0 1px var(--c-invert-line); }
.flow-step h3 { color: #fff; font-size: var(--step-1); margin-bottom: .5rem; }
.flow-step p { color: var(--c-invert-text-2); font-size: var(--step--1); }
.flow-step__n { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--brand-300); display: block; margin-bottom: .5rem; }

/* --- Depoimentos de parceiros --------------------------------------------- */
/* Colunas fluidas em vez de grade: depoimentos têm comprimentos muito diferentes,
   e o fluxo por coluna evita cartão esticado sobre espaço vazio. */
.partner-quotes { columns: 2; column-gap: 1.2rem; margin-top: 2.75rem; }
@media (max-width: 760px) { .partner-quotes { columns: 1; } }
.pquote {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  border: 1px solid var(--c-line); border-left: 3px solid var(--c-sky);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.7rem; background: var(--c-surface);
  display: flex; flex-direction: column; gap: 1.15rem;
  margin-bottom: 1.2rem;
}
.pquote blockquote { display: flex; flex-direction: column; gap: .8rem; }
.pquote p { color: var(--c-text); }
.pquote figcaption {
  display: flex; align-items: center; gap: .85rem;
  padding-top: 1.1rem; border-top: 1px solid var(--c-line-soft);
}
.pquote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.pquote__av {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--c-wash); color: var(--c-brand-soft);
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
}
.pquote strong { display: block; font-family: var(--f-display); font-size: .92rem; color: var(--c-brand); }
.pquote small { color: var(--c-text-3); font-size: .8rem; }

/* Cinco estrelas, como no material da própria clínica */
.stars { display: inline-flex; gap: 2px; color: #d9a441; line-height: 1; margin-left: auto; }
.stars svg { width: 14px; height: 14px; }

/* O depoimento que dá nome ao hero desta página merece destaque */
.pquote--destaque {
  border-left-color: var(--c-accent);
  background: linear-gradient(180deg, var(--c-accent-wash) 0%, var(--c-surface) 55%);
}
.pquote--destaque blockquote p:first-child { font-size: var(--step-1); line-height: 1.5; }
.pquote--destaque em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand-200) 62%); }

/* --- Cadastro de clínica -------------------------------------------------- */
.signup__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
@media (max-width: 960px) { .signup__in { grid-template-columns: 1fr; } }
.signup-photo { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); }
.signup-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.signup-aside ul { list-style: none; padding: 0; margin-top: 1.7rem; display: flex; flex-direction: column; gap: .9rem; }
.signup-aside li { display: flex; gap: .7rem; font-size: var(--step--1); color: var(--c-text-2); }
.signup-aside svg { width: 18px; height: 18px; color: var(--c-accent); flex: none; margin-top: .2rem; }

/* --- Faixa final ---------------------------------------------------------- */
.d-cta {
  background:
    linear-gradient(100deg, var(--c-invert-bg) 40%, #123a9e 100%);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.d-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.d-cta h2 { color: #fff; max-width: 18ch; }
.d-cta p { color: var(--c-invert-text-2); margin-top: .9rem; max-width: 46ch; }
.d-cta__btns { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Especificações com rótulo longo (clínicas parceiras, cirurgia guiada) */
.spec--wide { grid-column: 1 / -1; border-right: 0; }
.spec--wide b {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-200);
}
