/* ============================================================
   GLOBAUX PHARMA — Página "Cálculo Biliar Bovino"
   Estilo dedicado, sobre os tokens v4 (Elevação):
   marfim + champagne + grafite · Fraunces (display) + Inter (texto).
   Princípio herdado do site: SUBTRAIR. Ouro raro, sombra discreta,
   superfície sólida, muito respiro. Tudo escopo em .gx-cb.
   Títulos são TEXTO (i18n), nunca imagem.
   ============================================================ */

.gx-cb {
  --cb-maxw: 1140px;
  --cb-gap: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  /* champagne escurecido só para TEXTO pequeno: ~4.8:1 sobre o marfim (AA).
     O --champagne-deep do tema segue valendo para bordas/ícones/hover. */
  --cb-gold-text: #8A6420;
  color: var(--ink);
}

/* Ritmo vertical das seções */
.gx-cb-section { padding: clamp(3.25rem, 2rem + 6vw, 6.5rem) 0; }
.gx-cb-section--tight { padding: clamp(2.5rem, 1.6rem + 4vw, 4.5rem) 0; }
.gx-cb-wrap { width: min(var(--cb-maxw), 92vw); margin-inline: auto; }
.gx-cb-narrow { width: min(760px, 92vw); margin-inline: auto; }

/* Faixa alternada (marfim levemente mais quente) para separar seções */
.gx-cb-section--alt {
  background: linear-gradient(180deg, rgba(255,252,247,0.0) 0%, rgba(248,243,234,0.65) 12%, rgba(248,243,234,0.65) 88%, rgba(255,252,247,0.0) 100%);
}

/* ---- Tipografia local (herda Fraunces/Inter do tema) ---- */
.gx-cb-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cb-gold-text);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.gx-cb-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--champagne);
  display: inline-block;
}
.gx-cb h1, .gx-cb h2, .gx-cb h3 { color: var(--ink); margin: 0; }
.gx-cb-h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.25rem); line-height: 1.1; }
.gx-cb-h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.4rem); line-height: 1.16; margin: 0 0 1rem; }
.gx-cb-h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.3; }
.gx-cb-lead {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-body);
  max-width: 60ch;
}
.gx-cb-section-head { max-width: 64ch; margin: 0 auto clamp(2rem, 1.2rem + 2vw, 3rem); text-align: center; }
.gx-cb-section-head .gx-cb-eyebrow { display: inline-flex; }
.gx-cb-section-head p { margin: .9rem auto 0; }
.gx-cb-prose p { color: var(--text-body); font-size: 1.0625rem; line-height: 1.65; margin: 0 0 1.1rem; max-width: 68ch; }
.gx-cb-prose p:last-child { margin-bottom: 0; }
.gx-cb-zh { font-style: normal; white-space: nowrap; }

/* ---- HERO ---- */
.gx-cb-hero { position: relative; overflow: hidden; }
.gx-cb-hero .gx-cb-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.gx-cb-hero__copy { max-width: 36rem; }
.gx-cb-hero__sub { margin: 1.4rem 0 0; }
.gx-cb-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Botões locais — espelham o botão v4 (champagne chapado, hover por cor) */
.gx-cb-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.gx-cb-btn--primary {
  background: var(--champagne); color: var(--ink);
  border: 1px solid var(--champagne-deep);
  box-shadow: var(--shadow-sm);
}
.gx-cb-btn--primary:hover { background: var(--champagne-deep); box-shadow: var(--shadow-md); }
.gx-cb-btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border-hair);
}
.gx-cb-btn--ghost:hover { border-color: var(--champagne); background: rgba(201,161,90,0.06); }
.gx-cb-btn svg { width: 18px; height: 18px; flex: none; }

/* Visual do hero — moldura de vidro discreta */
.gx-cb-hero__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-hair);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(232,212,168,0.35), rgba(255,252,247,0.9));
}
.gx-cb-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Faixa de prova */
.gx-cb-proof {
  margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-hair);
}
.gx-cb-proof li {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .55rem;
  font-size: .95rem; color: var(--ink-soft); font-weight: 500;
}
.gx-cb-proof svg { width: 17px; height: 17px; color: var(--champagne-deep); flex: none; }

/* ---- PULL QUOTE / destaque editorial ---- */
.gx-cb-pull {
  margin: clamp(2rem,1.2rem+2vw,3rem) auto 0;
  max-width: 48rem;
  border-left: 2px solid var(--champagne);
  padding: .4rem 0 .4rem 1.6rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

/* ---- GRID DE CARDS ---- */
.gx-cb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cb-gap);
}
.gx-cb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gx-cb-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 1.7rem 1.6rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.gx-cb-card:hover { border-color: rgba(201,161,90,0.55); box-shadow: var(--shadow-lg); }
.gx-cb-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(201,161,90,0.10);
  border: 1px solid var(--border-hair);
  margin-bottom: 1.1rem;
}
.gx-cb-card__icon svg { width: 22px; height: 22px; color: var(--champagne-deep); }
.gx-cb-card h3 { margin: 0 0 .55rem; }
.gx-cb-card p { margin: 0; color: var(--text-body); font-size: 1rem; line-height: 1.6; }

/* ---- RIGOR TÉCNICO (sub-blocos) ---- */
.gx-cb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
.gx-cb-criteria { display: grid; gap: .9rem; margin: 0; padding: 0; }
.gx-cb-criteria li {
  list-style: none;
  display: grid; grid-template-columns: auto 1fr; gap: .85rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-sm);
}
.gx-cb-criteria li svg { width: 20px; height: 20px; color: var(--champagne-deep); margin-top: .15rem; }
.gx-cb-criteria b { color: var(--ink); font-weight: 600; }
.gx-cb-criteria span { color: var(--text-body); }

/* Cartão de conformidade em destaque */
.gx-cb-panel {
  background: linear-gradient(135deg, rgba(232,212,168,0.40), rgba(255,252,247,0.96));
  border: 1px solid var(--champagne);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
}

/* ---- PROCESSO (passos numerados) ---- */
.gx-cb-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--cb-gap); counter-reset: step; }
.gx-cb-step { position: relative; }
.gx-cb-step__n {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem;
  color: var(--ink);
  background: rgba(201,161,90,0.12);
  border: 1px solid var(--champagne);
  margin-bottom: 1rem;
}
.gx-cb-step h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
.gx-cb-step p { margin: 0; color: var(--text-body); font-size: .98rem; line-height: 1.55; }

/* Garantias */
.gx-cb-guarantees {
  margin-top: clamp(2rem,1.2rem+2vw,3rem);
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--cb-gap);
  padding-top: clamp(1.6rem,1rem+1.5vw,2.4rem);
  border-top: 1px solid var(--border-hair);
}
.gx-cb-guarantee { display: flex; gap: .8rem; align-items: flex-start; }
.gx-cb-guarantee svg { width: 22px; height: 22px; color: var(--champagne-deep); flex: none; margin-top: .15rem; }
.gx-cb-guarantee b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .15rem; }
.gx-cb-guarantee span { color: var(--text-body); font-size: .97rem; }

/* ---- FAQ ---- */
.gx-cb-faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.gx-cb-faq details {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  padding: 0 1.3rem;
  transition: border-color .2s ease;
}
.gx-cb-faq details[open] { border-color: rgba(201,161,90,0.5); box-shadow: var(--shadow-sm); }
.gx-cb-faq summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 0;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.06rem;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.gx-cb-faq summary::-webkit-details-marker { display: none; }
.gx-cb-faq summary::after {
  content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--champagne-deep);
  transition: transform .2s ease; line-height: 1;
}
.gx-cb-faq details[open] summary::after { transform: rotate(45deg); }
.gx-cb-faq summary + div { padding: 0 0 1.2rem; color: var(--text-body); line-height: 1.65; max-width: 70ch; }

/* ---- CTA FINAL ---- */
.gx-cb-cta {
  background: linear-gradient(135deg, rgba(232,212,168,0.40), rgba(255,252,247,0.95));
  border: 1px solid var(--champagne);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem,1.4rem+2.5vw,3.5rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem,1rem+3vw,3rem); align-items: center;
}
.gx-cb-cta__channels { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.gx-cb-cta__mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-soft); font-weight: 500; text-decoration: none; }
.gx-cb-cta__mail:hover { color: var(--champagne-deep); }
.gx-cb-cta__mail svg { width: 18px; height: 18px; color: var(--champagne-deep); }

/* Formulário (espelha .elementor-form do v4) */
.gx-cb-form { display: grid; gap: .8rem; }
.gx-cb-form input, .gx-cb-form textarea {
  width: 100%; box-sizing: border-box;
  font-family: 'Inter', sans-serif; font-size: 1rem;
  color: var(--ink);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-sm);
  padding: .8rem .95rem;
}
.gx-cb-form input::placeholder, .gx-cb-form textarea::placeholder { color: var(--slate-muted); }
.gx-cb-form input:focus, .gx-cb-form textarea:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(201,161,90,0.32); }
.gx-cb-form__consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--text-body); line-height: 1.45; }
.gx-cb-form__consent a { color: var(--cb-gold-text); }
.gx-cb-form button { border: none; width: 100%; justify-content: center; }

/* ---- SELOS DE CONFORMIDADE ---- */
.gx-cb-seals { text-align: center; }
.gx-cb-seals__title {
  font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate-muted);
  margin: 0 0 1.6rem;
}
.gx-cb-seals__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem; }
.gx-cb-seal {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: .7rem 1.05rem;
  border: 1px solid var(--border-hair);
  border-radius: var(--r-sm);
  background: var(--bg-card-solid);
  min-width: 0;
}
.gx-cb-seal b { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: .02em; }
.gx-cb-seal span { color: var(--slate-muted); font-size: .78rem; }
.gx-cb-seals__note { margin: 1.4rem auto 0; max-width: 60ch; font-size: .82rem; color: var(--slate-muted); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .gx-cb-hero .gx-cb-wrap { grid-template-columns: 1fr; }
  .gx-cb-hero__visual { order: -1; aspect-ratio: 16 / 10; }
  .gx-cb-grid { grid-template-columns: repeat(2, 1fr); }
  .gx-cb-split { grid-template-columns: 1fr; }
  .gx-cb-steps { grid-template-columns: repeat(2, 1fr); }
  .gx-cb-guarantees { grid-template-columns: 1fr; }
  .gx-cb-cta { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .gx-cb-grid, .gx-cb-grid--2, .gx-cb-steps { grid-template-columns: 1fr; }
  .gx-cb-actions .gx-cb-btn { flex: 1 1 100%; justify-content: center; }
}
