/* =========================================
   1. RESET E VARIÁVEIS
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dourado: #b8860b;
  --dourado-hover: #d4af37;
  --preto-suave: #2c2c2c;
  --branco: #ffffff;
  --cinza-claro: #f4f4f4;
  --fonte-texto: "Lato", sans-serif;
  --fonte-titulo: "Playfair Display", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-texto);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--branco);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; } /* Tira o itálico padrão do address */

/* Utilitários */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.mt-20 { margin-top: 20px; }

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--branco);
  height: 80px; /* Altura fixa para calcular margens */
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.perfil-doutora {
  display: flex;
  align-items: center;
  gap: 15px;
}

.foto-perfil {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.logo-text {
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
  color: var(--preto-suave);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.destaque-dourado { color: var(--dourado); }

/* Links Desktop */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dourado);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--dourado);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile Icons */
.btn-fechar-menu, .menu-mobile { display: none; }

/* =========================================
   3. HERO SECTION (HOME)
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("./img/Clinica.webp"); /* Garanta que a imagem existe */
  background-color: #222; /* Cor de fundo caso imagem falhe */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--branco);
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: var(--fonte-titulo);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-agendar {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--dourado);
  color: var(--branco);
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--dourado);
}

.btn-agendar:hover {
  background-color: transparent;
  color: var(--dourado);
}

/* =========================================
   4. SEÇÕES E PROCEDIMENTOS
   ========================================= */
.section-padrao {
  padding: 80px 0;
  background-color: #fff;
}

.section-padrao.valores-bg {
  background-color: var(--cinza-claro);
}

.titulo-secao {
  text-align: center;
  font-family: var(--fonte-titulo);
  font-size: 2.5rem;
  color: var(--preto-suave);
  margin-bottom: 10px;
}

.subtitulo-secao {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-style: italic;
}

.procedimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards (Article) */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  text-align: center;
  border: 1px solid #eee;
}

.card:hover { transform: translateY(-10px); }

.card-img-container {
  height: 250px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover img { transform: scale(1.1); }

.card h3 {
  padding: 20px;
  font-family: var(--fonte-titulo);
  color: var(--preto-suave);
  font-size: 1.2rem;
}

/* =========================================
   5. PÁGINA SOBRE (Correções Adicionadas)
   ========================================= */
.sobre-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.sobre-img {
  flex: 1;
  position: relative;
}

.sobre-img img {
  border-radius: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.moldura-dourada {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--dourado);
  border-radius: 10px;
  z-index: 1;
}

.sobre-texto {
  flex: 1;
}

.titulo-bio {
  font-family: var(--fonte-titulo);
  font-size: 2rem;
  color: var(--preto-suave);
  margin-bottom: 5px;
}

.crm {
  color: var(--dourado);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.sobre-texto p { margin-bottom: 15px; color: #555; }

.lista-especializacoes li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icone-check { color: var(--dourado); }

/* Grid de Valores (Página Sobre) */
.valores-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.valor-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.icone-valor {
  font-size: 2.5rem;
  color: var(--dourado);
  margin-bottom: 20px;
}

.valor-card h4, .valor-card h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* =========================================
   6. PÁGINA CONTATO & FORMULÁRIO (Adicionado)
   ========================================= */
.page-header {
  height: 40vh;
  background-color: #333;
  background-image: url('./img/Clinica.webp'); /* Ou outra imagem */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px; /* Compensa Navbar */
}

.header-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.header-content h1 {
  font-family: var(--fonte-titulo);
  font-size: 3rem;
}

/* Layout Contato */
.contato-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
}

.contato-info, .contato-form {
  flex: 1;
}

.contato-info h2, .contato-form h2 {
  font-family: var(--fonte-titulo);
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--preto-suave);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--dourado);
  margin-top: 5px;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.link-dourado {
  color: var(--dourado);
  font-weight: bold;
  font-size: 0.9rem;
}

/* Estilo do Formulário */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--dourado);
  box-shadow: 0 0 5px rgba(184, 134, 11, 0.2);
}

.btn-enviar {
  width: 100%;
  padding: 15px;
  background-color: var(--preto-suave);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  text-transform: uppercase;
}

.btn-enviar:hover {
  background-color: var(--dourado);
}

/* Mapa */
.mapa iframe {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
  background-color: var(--preto-suave);
  color: var(--branco);
  padding: 50px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--dourado);
  border-color: var(--dourado);
  transform: translateY(-3px);
}

.copyright { font-size: 0.9rem; opacity: 0.7; }
.dev-credit { font-size: 0.8rem; opacity: 0.4; margin-top: 10px; }

/* =========================================
   8. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
  /* Menu */
  .menu-mobile { display: block; cursor: pointer; }
  
  .bar {
    width: 25px; height: 3px; background: var(--preto-suave);
    margin: 5px 0; transition: 0.3s;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: 0.5s ease;
    z-index: 1001;
  }

  .nav-links.active { right: 0; }

  .btn-fechar-menu {
    display: block;
    position: absolute;
    top: 25px; right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Ajustes Gerais */
  .hero-title { font-size: 2.5rem; }
  .logo-text { font-size: 1rem; }
  .section-padrao { padding: 50px 0; }

  /* Sobre */
  .sobre-wrapper { flex-direction: column; }
  .moldura-dourada { display: none; } /* Remove moldura no mobile para simplificar */

  /* Contato */
  .contato-wrapper { flex-direction: column; }
  .page-header { height: 30vh; margin-top: 80px; }
  .page-header h1 { font-size: 2.2rem; }
}

/* Animação */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}