/* ==================== RESET & VARIÁVEIS ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta clean e suave */
  --cor-branco: #FFFFFF;
  --cor-off-white: #F9F7F5;
  --cor-azul-claro: #B5D3E7;      /* serenity */
  --cor-verde-menta: #7BA68C;     /* sage / menta */
  --cor-bege-claro: #F0EBE4;
  --cor-texto: #3A4A4D;
  --cor-texto-suave: #5F6F72;
  --cor-sombra: rgba(0, 0, 0, 0.05);
  --cor-sombra-hover: rgba(0, 0, 0, 0.1);
  
  --fonte-titulo: 'Playfair Display', serif;
  --fonte-texto: 'Montserrat', sans-serif;
  
  --border-radius: 24px;
  --border-radius-sm: 16px;
  --container-width: 1200px;
  --section-padding: 5rem 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-texto);
  color: var(--cor-texto);
  background-color: var(--cor-branco);
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-padding);
}

.bg-soft {
  background-color: var(--cor-off-white);
}

.bg-primary-soft {
  background-color: var(--cor-azul-claro);
  background: linear-gradient(145deg, #d4e6f1 0%, #b5d3e7 100%);
}

.rounded-soft {
  border-radius: var(--border-radius);
}

.shadow-soft {
  box-shadow: 0 20px 30px -10px var(--cor-sombra);
}

/* ==================== UTILITÁRIOS ANIMAÇÃO ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==================== BOTÕES ==================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--cor-verde-menta);
  color: var(--cor-branco);
  box-shadow: 0 8px 18px rgba(163, 201, 183, 0.3);
}

.btn-primary:hover {
  background-color: #8bb8a3;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(163, 201, 183, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--cor-verde-menta);
  color: var(--cor-verde-menta);
}

.btn-outline:hover {
  background-color: var(--cor-verde-menta);
  color: var(--cor-branco);
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  z-index: 1000;
  padding: 0.8rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--fonte-titulo);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--cor-texto);
}

.logo span {
  color: var(--cor-verde-menta);
  font-weight: 400;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cor-texto-suave);
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--cor-verde-menta);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--cor-texto);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  background: url('https://images.pexels.com/photos/6627462/pexels-photo-6627462.jpeg?auto=compress&cs=tinysrgb&w=1200') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0;
  background-attachment: scroll;
}

/* 🔥 CORRIGIDO DE VERDADE */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-subtitle {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cor-verde-menta);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  color: var(--cor-texto);

  /* 🔥 MAIS SUAVE */
  text-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--cor-texto-suave);

  /* 🔥 MAIS LIMPO */
  text-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.3) 100%);
  }
}
/* ==================== SEÇÃO HEADER ==================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cor-verde-menta);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.section-header h2 {
  font-size: 2.8rem;
  color: var(--cor-texto);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--cor-texto-suave);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== SOBRE NÓS ==================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre-texto p {
  margin-bottom: 1.5rem;
  color: var(--cor-texto-suave);
  font-size: 1.05rem;
}

/* ==================== IMAGENS DOS PLACEHOLDERS ==================== */
.sobre-imagem .image-placeholder,
.doutora-imagem .image-placeholder {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 30px -10px var(--cor-sombra);
}

.sobre-imagem .image-placeholder {
  height: auto;
  max-height: 450px;
}

.sobre-imagem img,
.doutora-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.doutora-imagem .image-placeholder {
  height: auto;
  max-height: 550px;
}

/* Ajuste específico para mobile */
@media (max-width: 768px) {
  .sobre-imagem .image-placeholder,
  .doutora-imagem .image-placeholder {
    max-height: 400px;
  }
  
  .doutora-imagem .image-placeholder {
    max-height: 450px;
  }
}

/* ==================== CARDS ESPECIALIDADES ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--cor-branco);
  padding: 2.2rem 1.8rem;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px -10px var(--cor-sombra);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.5);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px -12px var(--cor-sombra-hover);
  border-color: var(--cor-azul-claro);
}

.card-icon {
  font-size: 2.8rem;
  color: var(--cor-verde-menta);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--cor-texto-suave);
  font-size: 0.95rem;
}

/* ==================== DOUTORA ==================== */
.doutora-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.doutora-conteudo .section-tag {
  margin-bottom: 0.5rem;
}

.doutora-cro {
  font-weight: 500;
  color: var(--cor-verde-menta);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.doutora-conteudo p {
  margin-bottom: 1.2rem;
  color: var(--cor-texto-suave);
}

/* ==================== NÚMEROS ==================== */
.numeros-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
}

.numero-item {
  min-width: 150px;
}

.numero-valor {
  font-family: var(--fonte-titulo);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--cor-texto);
  display: block;
  line-height: 1.1;
}

.numero-label {
  font-size: 1rem;
  color: var(--cor-texto-suave);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== CARROSSEL ==================== */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 30px -8px var(--cor-sombra);

  /* 🔥 CORREÇÃO */
  margin: 0 auto;
  width: 100%;
  max-width: 900px;

  aspect-ratio: 16 / 9;
  max-height: 500px;
}
.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cor-branco);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cor-texto);
  transition: all 0.2s;
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--cor-verde-menta);
  color: white;
}

.prev { left: 20px; }
.next { right: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--cor-verde-menta);
  width: 24px;
}

/* ==================== ANTES E DEPOIS ==================== */
.comparacao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 100%;
  background-color: #fff;
}

.comparacao-item {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 12px;
}

.comparacao-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.badge-antes, .badge-depois {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.badge-depois {
  background: var(--cor-verde-menta);
  left: auto;
  right: 16px;
}

@media (max-width: 768px) {

  .carousel-container {
    height: auto;
    max-height: none;
    aspect-ratio: unset;
  }

  .carousel-slide {
    height: auto;
  }

  .comparacao {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
  }

  .comparacao-item {
    height: auto;
  }

  .comparacao-item img {
    height: auto;
  }

  .badge-depois {
    right: 16px;
    left: auto;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .prev { left: 10px; }
  .next { right: 10px; }
}

@media (max-width: 480px) {
  .comparacao-item {
    height: 220px;
  }
}

/* ==================== AVALIAÇÕES ==================== */
.avaliacoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.avaliacao-card {
  background: var(--cor-branco);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 12px 28px -8px var(--cor-sombra);
}

.estrelas {
  color: #e9b741;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.avaliacao-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--cor-texto-suave);
}

.avaliacao-card h4 {
  font-family: var(--fonte-texto);
  font-weight: 600;
  color: var(--cor-texto);
}

/* ==================== CONTATO ==================== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contato-info h2 {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.6rem;
  color: var(--cor-verde-menta);
  width: 28px;
  text-align: center;
}

/* ==================== MAPA ==================== */
.contato-mapa .mapa-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px -8px var(--cor-sombra);
}

.contato-mapa .mapa-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ajuste do grid de contato */
@media (max-width: 768px) {
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contato-mapa .mapa-container {
    padding-bottom: 100%;
    max-height: 350px;
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--cor-texto);
  color: rgba(255,255,255,0.8);
  padding-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo a {
  font-size: 2rem;
  color: white;
}

.footer-logo span {
  color: var(--cor-verde-menta);
}

.footer-logo p {
  margin-top: 1rem;
  opacity: 0.7;
}

.footer h4 {
  color: white;
  margin-bottom: 1.2rem;
  font-family: var(--fonte-texto);
  font-weight: 500;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a, .footer a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--cor-verde-menta);
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  font-size: 1.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .sobre-grid, .doutora-container, .contato-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    transition: left 0.3s;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .nav-menu.active { left: 0; }
  .nav-menu ul { flex-direction: column; align-items: center; gap: 2rem; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .section-header h2 { font-size: 2.2rem; }
  .footer-container { grid-template-columns: 1fr; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.7rem; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
}

/* ==================== CORREÇÕES ESPECÍFICAS PARA CARROSSEL ==================== */
#clinicaCarousel,
#antesDepoisCarousel {
  height: 100%;
}