/* ==========================================================================
   HOME.CSS — Estilos específicos da página Home (/)
   BellaMiss Saúde Estética v2
   Ordem das seções: Hero → Trust Bar → Categorias → Especialidades →
   Doutoras → Parceiros → Depoimentos → Diferenciais → CTA Final
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. OVERRIDE ASTRA — corrigir wrappers e flex-row do tema pai
   -------------------------------------------------------------------------- */

/* O .ast-container do Astra usa display:flex;flex-direction:row (layout de sidebar).
   Na home, forçamos display:block para que #bm-main ocupe 100% da largura. */
body.home #content > .ast-container,
body.home #content .ast-container {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  max-width: none !important;
}

body.home #bm-main {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

body.home .site-content,
body.home #content {
  padding: 0 !important;
  max-width: none !important;
  overflow-x: hidden !important;
}

/* Foto hero — posição absoluta, lado direito */
.bm-hero-photo-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 57%;
  height: 100%;
  z-index: 0;
}

/* Gradiente de transição salmão → foto */
.bm-hero--salmon .bm-hero-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12%;
  height: 100%;
  background: linear-gradient(to right, #F5DDD8 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Mobile: ocultar foto, texto ocupa largura toda */
@media (max-width: 900px) {
  .bm-hero-photo-wrap {
    display: none !important;
  }
  .bm-hero-content {
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   1. HERO — PRINCIPAL
   -------------------------------------------------------------------------- */
.bm-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bm-bg-dark);
}

/* Camada de fundo — foto das doutoras */
.bm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bm-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* OPÇÃO A: foto com overlay escuro */
  /* Para usar a opção B (fundo salmão sem overlay), remova as duas linhas abaixo
     e adicione a classe .bm-hero--salmon ao elemento .bm-hero */
}

/* OPÇÃO A: Overlay bordô sobre a foto (padrão) */
.bm-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bm-gradient-hero);
  z-index: 1;
}

/* OPÇÃO B: Fundo salmão sem foto (fiel à identidade atual)
   Adicionar .bm-hero--salmon ao .bm-hero para usar esta opção */
.bm-hero--salmon {
  background: #F5DDD8;
}
.bm-hero--salmon .bm-hero-overlay {
  background: linear-gradient(135deg, rgba(93,13,42,0.08) 0%, rgba(93,13,42,0.04) 100%);
}
.bm-hero--salmon .bm-hero-title,
.bm-hero--salmon .bm-hero-subtitle,
.bm-hero--salmon .bm-hero-metric-num {
  color: var(--bm-primary);
}
.bm-hero--salmon .bm-hero-metric-label {
  color: var(--bm-text-sec);
}
.bm-hero--salmon .bm-hero-metric-sep {
  background: rgba(93, 13, 42, 0.25);
}

/* Conteúdo do hero */
.bm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 100px; /* offset para o header fixo */
  padding-bottom: 48px;
}

/* Badge de urgência */
.bm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--bm-white);
  font-family: var(--bm-font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--bm-radius-pill);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.bm-hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: bm-blink 1.5s ease-in-out infinite;
}

/* Título principal H1 */
.bm-hero-title {
  font-family: var(--bm-font-display);
  font-size: 64px;
  font-weight: 600;
  color: var(--bm-white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Subtítulo */
.bm-hero-subtitle {
  font-family: var(--bm-font-body);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* Grupo de botões */
.bm-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Estatísticas — pills bordô com texto salmão */
.bm-hero-stats {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
}

.bm-hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--bm-primary);
  padding: 10px 12px;
  border-radius: 14px;
}

.bm-hero-stat-num {
  font-family: var(--bm-font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--bm-pale-dogwood);
  line-height: 1;
  white-space: nowrap;
}

.bm-hero-stat-label {
  font-family: var(--bm-font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(221, 187, 177, 0.60);
  line-height: 1;
  white-space: nowrap;
}

/* Scroll indicator */
.bm-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bm-bounce 2s ease-in-out infinite;
  cursor: pointer;
}

.bm-hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 2;
}

@keyframes bm-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Responsividade Hero */
@media (max-width: 1024px) {
  .bm-hero-title { font-size: 52px; }
}

@media (max-width: 768px) {
  .bm-hero-title { font-size: 38px; }
  .bm-hero-subtitle { font-size: 16px; }
  .bm-hero-content { padding-top: 120px; }

  .bm-hero-stats { gap: 6px; flex-wrap: wrap; }
  .bm-hero-stat { padding: 8px 10px; }
  .bm-hero-stat-num { font-size: 17px; }
  .bm-hero-stat-label { font-size: 9px; }

  .bm-hero-btns { flex-direction: column; }
  .bm-hero-btns .bm-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .bm-hero-title { font-size: 30px; }
  .bm-hero-badge { font-size: 12px; padding: 6px 12px; }
}

/* --------------------------------------------------------------------------
   2. TRUST BAR
   -------------------------------------------------------------------------- */
.bm-trust-bar {
  background: var(--bm-white);
  border-top: 1px solid var(--bm-border);
  border-bottom: 1px solid var(--bm-border);
  padding: 18px 0;
}

.bm-trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.bm-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bm-trust-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--bm-secondary);
  fill: none;
  stroke-width: 1.5;
}

.bm-trust-text {
  font-family: var(--bm-font-body);
  font-size: var(--bm-text-sm);
  font-weight: 500;
  color: var(--bm-text);
  white-space: nowrap;
}

/* Scroll horizontal no mobile */
@media (max-width: 768px) {
  .bm-trust-items {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 24px;
    padding: 0 4px;
  }

  .bm-trust-items::-webkit-scrollbar { display: none; }
}

/* --------------------------------------------------------------------------
   3. SEÇÃO DE CATEGORIAS (3 cards grandes)
   -------------------------------------------------------------------------- */
/* Estilos dos cards em components.css — bm-categories-grid */

.bm-section-categorias {
  /* Usa .bm-section.bm-section-soft */
}

/* --------------------------------------------------------------------------
   4. ESPECIALIDADES (6 cards)
   -------------------------------------------------------------------------- */
.bm-especialidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bm-especialidade-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-left: 3px solid var(--bm-secondary);
  border-radius: var(--bm-radius);
  padding: 24px;
  transition: transform var(--bm-transition), box-shadow var(--bm-transition);
  box-shadow: var(--bm-shadow-sm);
  position: relative;
}

.bm-especialidade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bm-shadow-rose);
}

/* Badge "Mais Procurado" ou "Em Alta" */
.bm-especialidade-card.is-featured {
  border-color: var(--bm-secondary);
  border-width: 1.5px;
  border-left-width: 1.5px;
}

.bm-especialidade-icon {
  width: 44px;
  height: 44px;
  background: rgba(221, 187, 177, 0.20);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bm-especialidade-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--bm-secondary);
  fill: none;
  stroke-width: 1.5;
}

.bm-especialidade-card h3 {
  font-family: var(--bm-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--bm-text);
  margin-bottom: 6px;
}

.bm-especialidade-card p {
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  line-height: 1.6;
  margin: 0 0 14px;
}

.bm-especialidade-link {
  font-family: var(--bm-font-body);
  font-size: var(--bm-text-sm);
  font-weight: 500;
  color: var(--bm-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--bm-transition), color var(--bm-transition);
}

.bm-especialidade-link:hover {
  color: var(--bm-primary);
  gap: 8px;
}

.bm-especialidades-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .bm-especialidades-grid { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 768px) {
  .bm-especialidades-grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   5. SOBRE AS DOUTORAS (seção home)
   -------------------------------------------------------------------------- */
/* Usa .bm-grid-2 com o layout da components.css (bm-doutor-card) */

.bm-section-doutoras {
  /* Usa .bm-section.bm-section-white */
}

.bm-doutoras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .bm-doutoras-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   6. DEPOIMENTOS — CARROSSEL
   -------------------------------------------------------------------------- */
/* Usa .bm-carousel da components.css */

.bm-section-depoimentos {
  /* Usa .bm-section.bm-section-rose */
}

/* --------------------------------------------------------------------------
   7. DIFERENCIAIS — FUNDO ESCURO
   -------------------------------------------------------------------------- */
/* Usa .bm-diferenciais-grid da components.css */

/* --------------------------------------------------------------------------
   8. CTA FINAL
   -------------------------------------------------------------------------- */
.bm-cta-final {
  background: var(--bm-bg-darker);
  position: relative;
  overflow: hidden;
  padding: var(--bm-section-py) 0;
}

/* Textura sutil CSS (padrão de pontos) */
.bm-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(177, 115, 104, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.bm-cta-final-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.bm-cta-final-title {
  font-family: var(--bm-font-display);
  font-size: 46px;
  font-weight: 600;
  color: var(--bm-white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.bm-cta-final-subtitle {
  font-size: 17px;
  color: rgba(221, 187, 177, 0.85);
  margin-bottom: 36px;
  line-height: 1.65;
}

.bm-cta-final-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.bm-cta-final-locations {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-family: var(--bm-font-body);
  font-size: var(--bm-text-sm);
  color: rgba(221, 187, 177, 0.65);
  flex-wrap: wrap;
}

.bm-cta-final-loc {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bm-cta-final-sep {
  width: 1px;
  height: 16px;
  background: rgba(221, 187, 177, 0.25);
}

@media (max-width: 768px) {
  .bm-cta-final-title { font-size: 32px; }
  .bm-cta-final-btns { flex-direction: column; align-items: center; }
  .bm-cta-final-btns .bm-btn { width: 100%; max-width: 300px; }
}
