/* =========================================================================
   segmento.css
   Estilos complementares das landings segmentadas (/link-whatsapp/:slug).
   Reusa 100% do design system de /css/redesign-home.css.
   Aqui vai apenas o que nao existe no DS principal.
   ========================================================================= */

/* ---------- Hero do segmento ---------- */
.segmento-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.segmento-hero-title {
  margin: 0;
  color: var(--site-primary);
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.segmento-hero-destaque {
  color: var(--site-primary);
  position: relative;
  display: inline-block;
  z-index: 0;
}

.segmento-hero-destaque::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.08em;
  height: 0.28em;
  background: rgba(37, 211, 102, 0.26);
  z-index: -1;
  border-radius: 2px;
}

/* ---------- Titulos de secao ---------- */
.segmento-section-title {
  margin: 0;
  color: var(--site-primary);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.segmento-eyebrow {
  margin: 0 0 14px;
  color: rgba(32, 53, 61, 0.62);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Espacamento entre secoes ---------- */
.segmento-section {
  padding-top: 96px;
  padding-bottom: 0;
}

@media (max-width: 720px) {
  .segmento-section {
    padding-top: 64px;
  }
}

/* ---------- Secao 2: prova social (cases) ---------- */
.segmento-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.segmento-case-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 35px rgba(21, 39, 46, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.segmento-case-card.is-featured {
  transform: translateY(-12px);
  border-color: rgba(37, 211, 102, 0.28);
  box-shadow: 0 28px 46px rgba(18, 35, 42, 0.14);
}

/* ---------- Header: nome + slug full-width ---------- */
.segmento-case-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.segmento-case-name {
  margin: 0;
  color: var(--site-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.segmento-case-slug {
  margin: 0;
  color: rgba(32, 53, 61, 0.55);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Mockup (protagonista visual: imagem ou SVG) ---------- */
.segmento-case-mockup {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(32, 53, 61, 0.05);
}

.segmento-case-mockup svg {
  width: 100%;
  height: 100%;
  display: block;
}

.segmento-case-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ---------- Métrica (selo de credibilidade) ---------- */
.segmento-case-stat {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(32, 53, 61, 0.06);
  color: rgba(32, 53, 61, 0.72);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
}

.segmento-case-stat strong {
  color: var(--site-primary);
  font-weight: 800;
}

/* Featured: chip de métrica em verde diluído */
.segmento-case-card.is-featured .segmento-case-stat {
  background: rgba(37, 211, 102, 0.18);
  color: #0f5f30;
}

.segmento-case-card.is-featured .segmento-case-stat strong {
  color: #0a4d27;
}

@media (max-width: 960px) {
  .segmento-cases-grid {
    grid-template-columns: 1fr;
  }

  .segmento-case-card.is-featured {
    transform: none;
  }
}

/* ---------- Secao 3: passos ---------- */
.segmento-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.segmento-step-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 35px rgba(21, 39, 46, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.segmento-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(32, 53, 61, 0.08);
  color: var(--site-primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.segmento-step-title {
  margin: 0;
  color: var(--site-primary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.segmento-step-desc {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .segmento-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Secao 4: onde colocar (2x3) ---------- */
.segmento-usos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.segmento-uso-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 24px rgba(21, 39, 46, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.segmento-uso-card h3 {
  margin: 0;
  color: var(--site-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.segmento-uso-card p {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .segmento-usos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .segmento-usos-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Secao 5: FAQ dentro de feature block ---------- */
.segmento-faq-block {
  padding: 54px clamp(22px, 4vw, 54px);
}

.segmento-faq-block .site-section-head {
  text-align: center;
  margin-bottom: 32px;
}

/* ---------- Secao 6: CTA final ---------- */
.segmento-cta-final-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.segmento-cta-final {
  width: min(620px, 100%);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.segmento-cta-final .site-copy-lead {
  margin: 0;
}

.segmento-cta-final-button {
  width: min(380px, 100%);
  text-decoration: none;
}

@media (max-width: 720px) {
  .segmento-cta-final-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ---------- Hub (/link-whatsapp) ---------- */
.segmento-hub-intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.segmento-hub-intro h1 {
  margin: 0;
  color: var(--site-primary);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.segmento-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.segmento-hub-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 35px rgba(21, 39, 46, 0.06);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.segmento-hub-card:hover,
.segmento-hub-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(21, 39, 46, 0.1);
  outline: none;
}

.segmento-hub-card h3 {
  margin: 0;
  color: var(--site-primary);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.segmento-hub-card p {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.segmento-hub-card-cta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--site-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .segmento-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .segmento-hub-grid {
    grid-template-columns: 1fr;
  }
}
