/* ==========================================================================
   PAGES.CSS — Estilos das páginas internas
   Procedimentos, Sobre, Resultados, Blog (listagem + single), Contato
   BellaMiss Saúde Estética v2
   ========================================================================== */

/* ==========================================================================
   PÁGINA — /tratamentos
   ========================================================================== */

/* Grid de procedimentos */
.bm-proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card de procedimento */
.bm-proc-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
  box-shadow: var(--bm-shadow-sm);
  transition: transform var(--bm-transition), box-shadow var(--bm-transition);
  display: flex;
  flex-direction: column;
}

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

.bm-proc-card-image {
  height: 200px;
  background: var(--bm-bg-section-3);
  overflow: hidden;
  position: relative;
}

.bm-proc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bm-proc-card:hover .bm-proc-card-image img {
  transform: scale(1.04);
}

.bm-proc-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bm-bg-section-3);
}

.bm-proc-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--bm-pale-dogwood);
  fill: none;
  stroke-width: 1;
  opacity: 0.6;
}

.bm-proc-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-proc-card-body h3 {
  font-family: var(--bm-font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--bm-text);
  margin: 0;
}

.bm-proc-card-body p {
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Detalhes: duração, sessões, resultado */
.bm-proc-details {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--bm-border);
  border-bottom: 1px solid var(--bm-border);
}

.bm-proc-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--bm-text-sec);
}

.bm-proc-detail svg {
  width: 13px;
  height: 13px;
  stroke: var(--bm-secondary);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.bm-proc-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.bm-proc-card-actions .bm-btn {
  flex: 1;
  font-size: 13px;
  padding: 10px 14px;
}

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

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

/* ==========================================================================
   PÁGINA — /sobre
   ========================================================================== */

/* Timeline da história */
.bm-timeline {
  position: relative;
  padding-left: 32px;
}

.bm-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--bm-gradient-rose);
}

.bm-timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.bm-timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--bm-secondary);
  border-radius: 50%;
  border: 2px solid var(--bm-white);
  box-shadow: 0 0 0 2px var(--bm-secondary);
}

.bm-timeline-year {
  font-family: var(--bm-font-body);
  font-size: var(--bm-text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bm-secondary);
  margin-bottom: 6px;
}

.bm-timeline-item h4 {
  font-family: var(--bm-font-display);
  font-size: 20px;
  color: var(--bm-primary);
  margin-bottom: 6px;
}

.bm-timeline-item p {
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  line-height: 1.65;
  margin: 0;
}

/* MVV — Missão, Visão, Valores */
.bm-mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bm-mvv-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-top: 3px solid var(--bm-secondary);
  border-radius: var(--bm-radius);
  padding: 28px 24px;
  text-align: center;
}

.bm-mvv-icon {
  width: 52px;
  height: 52px;
  background: rgba(221, 187, 177, 0.20);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

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

.bm-mvv-card h3 {
  font-family: var(--bm-font-display);
  font-size: 22px;
  color: var(--bm-primary);
  margin-bottom: 10px;
}

.bm-mvv-card p {
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  line-height: 1.7;
  margin: 0;
}

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

/* Galeria estrutura */
.bm-estrutura-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bm-estrutura-img {
  border-radius: var(--bm-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bm-bg-section-3);
}

.bm-estrutura-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bm-estrutura-img:hover img {
  transform: scale(1.03);
}

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

/* ==========================================================================
   PÁGINA — /resultados
   ========================================================================== */

.bm-resultados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bm-result-card-wrap {
  cursor: pointer;
}

.bm-result-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bm-result-video-item {
  aspect-ratio: 9/16;
  border-radius: var(--bm-radius);
  overflow: hidden;
  background: var(--bm-bg-darker);
  position: relative;
}

.bm-result-video-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Placeholder vídeo */
.bm-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--bm-text-sm);
  background: var(--bm-bg-darker);
}

.bm-video-placeholder svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}

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

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

/* ==========================================================================
   PÁGINA — /blog (listagem)
   ========================================================================== */

.bm-blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.bm-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Card de post */
.bm-post-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
  box-shadow: var(--bm-shadow-sm);
  transition: transform var(--bm-transition), box-shadow var(--bm-transition);
}

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

.bm-post-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bm-bg-section-3);
  overflow: hidden;
}

.bm-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bm-post-card:hover .bm-post-card-thumb img {
  transform: scale(1.04);
}

.bm-post-card-body {
  padding: 20px;
}

.bm-post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--bm-text-sec);
}

.bm-post-card-meta .bm-badge {
  font-size: 11px;
  padding: 3px 10px;
}

.bm-post-card-body h3 {
  font-family: var(--bm-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--bm-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.bm-post-card-body p {
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  line-height: 1.65;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bm-post-card-link {
  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-post-card-link:hover {
  color: var(--bm-primary);
  gap: 8px;
}

/* Sidebar do blog */
.bm-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 100px;
}

.bm-sidebar-widget {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 24px;
}

.bm-sidebar-title {
  font-family: var(--bm-font-body);
  font-size: var(--bm-text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bm-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bm-border);
}

.bm-sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bm-sidebar-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  border-bottom: 1px solid rgba(177, 115, 104, 0.10);
  transition: color var(--bm-transition);
}

.bm-sidebar-cat:hover { color: var(--bm-primary); }

.bm-sidebar-cat-count {
  font-size: 12px;
  background: var(--bm-bg-section-3);
  color: var(--bm-primary);
  padding: 2px 8px;
  border-radius: var(--bm-radius-pill);
  font-weight: 500;
}

/* CTA sidebar */
.bm-sidebar-cta {
  background: var(--bm-bg-dark);
  border-color: var(--bm-bg-dark);
  color: var(--bm-white);
  text-align: center;
}

.bm-sidebar-cta .bm-sidebar-title {
  color: var(--bm-pale-dogwood);
  border-color: rgba(255,255,255,0.15);
}

.bm-sidebar-cta p {
  font-size: var(--bm-text-sm);
  color: rgba(221, 187, 177, 0.8);
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .bm-blog-layout {
    grid-template-columns: 1fr;
  }
  .bm-blog-sidebar {
    position: static;
  }
}

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

/* ==========================================================================
   POST SINGLE — Template de artigo
   ========================================================================== */

.bm-post-hero {
  max-height: 480px;
  overflow: hidden;
}

.bm-post-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

.bm-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}

.bm-post-header {
  margin-bottom: 32px;
}

.bm-post-header h1 {
  font-family: var(--bm-font-display);
  font-size: 46px;
  font-weight: 600;
  color: var(--bm-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.bm-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--bm-text-sec);
}

.bm-post-meta .bm-badge { font-size: 12px; }

/* Corpo do artigo */
.bm-post-content h2 {
  font-family: var(--bm-font-display);
  font-size: 30px;
  color: var(--bm-primary);
  margin: 36px 0 14px;
}

.bm-post-content h3 {
  font-family: var(--bm-font-display);
  font-size: 24px;
  color: var(--bm-primary);
  margin: 28px 0 12px;
}

.bm-post-content p {
  font-size: 16px;
  color: var(--bm-text);
  line-height: 1.8;
  margin-bottom: 18px;
}

.bm-post-content blockquote {
  border-left: 3px solid var(--bm-secondary);
  background: var(--bm-bg-section-2);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--bm-radius-sm) var(--bm-radius-sm) 0;
  font-style: italic;
  font-size: 17px;
  color: var(--bm-text);
}

.bm-post-content ul {
  margin: 16px 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.bm-post-content ul li {
  padding-left: 22px;
  position: relative;
  font-size: var(--bm-text-base);
  color: var(--bm-text-sec);
  line-height: 1.7;
  margin-bottom: 8px;
}

.bm-post-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--bm-secondary);
  font-size: 12px;
  top: 4px;
}

/* Posts relacionados */
.bm-related-posts h2 {
  font-family: var(--bm-font-display);
  font-size: 28px;
  color: var(--bm-primary);
  margin-bottom: 24px;
}

.bm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .bm-post-layout { grid-template-columns: 1fr; }
  .bm-post-header h1 { font-size: 34px; }
}

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

/* ==========================================================================
   PÁGINA — /contato
   ========================================================================== */

.bm-contato-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

/* Informações de contato */
.bm-contato-info h2 {
  font-family: var(--bm-font-display);
  font-size: 38px;
  color: var(--bm-primary);
  margin-bottom: 10px;
}

.bm-contato-subtitle {
  font-size: 16px;
  color: var(--bm-text-sec);
  margin-bottom: 36px;
}

.bm-contato-unidade {
  margin-bottom: 28px;
}

.bm-contato-unidade-title {
  font-family: var(--bm-font-body);
  font-size: var(--bm-text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bm-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bm-border);
}

.bm-contato-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.bm-contato-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bm-contato-item-icon {
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}

.bm-contato-item-text {
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  line-height: 1.55;
}

.bm-contato-item-text a {
  color: var(--bm-secondary);
  transition: color var(--bm-transition);
}

.bm-contato-item-text a:hover {
  color: var(--bm-primary);
}

/* Mapa embed */
.bm-mapa-embed {
  margin-top: 12px;
  border-radius: var(--bm-radius);
  overflow: hidden;
  height: 180px;
  background: var(--bm-bg-section-3);
}

.bm-mapa-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bm-mapa-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--bm-text-sec);
  font-size: var(--bm-text-sm);
  text-align: center;
  padding: 20px;
}

/* Redes sociais contato */
.bm-contato-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.bm-contato-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--bm-text-sec);
  transition: all var(--bm-transition);
}

.bm-contato-social-link:hover {
  border-color: var(--bm-primary);
  color: var(--bm-primary);
  background: var(--bm-bg-section-2);
}

.bm-contato-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Formulário de contato */
.bm-contato-form {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--bm-shadow-sm);
}

.bm-contato-form h3 {
  font-family: var(--bm-font-display);
  font-size: 26px;
  color: var(--bm-primary);
  margin-bottom: 6px;
}

.bm-contato-form-subtitle {
  font-size: var(--bm-text-sm);
  color: var(--bm-text-sec);
  margin-bottom: 24px;
}

.bm-lgpd-text {
  font-size: 12px;
  color: var(--bm-ash-gray);
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 1024px) {
  .bm-contato-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .bm-contato-form {
    padding: 24px 20px;
  }
}
