/* ===========================
   Variables & Reset
   =========================== */
:root {
  --primary: #1A3C5E;
  --primary-dark: #122B44;
  --primary-light: #2563A8;
  --accent: #C8A96E;
  --accent-light: #E8D5A3;
  --text: #1A202C;
  --text-muted: #718096;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-dark: #111827;
  --border: #E2E8F0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.12), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title { color: var(--primary); margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; max-width: 55ch; }

/* ===========================
   Layout
   =========================== */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5.5rem 0; }
section.bg-soft { background: var(--bg-soft); }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: white; border-color: var(--accent); }
.btn-accent:hover { background: #b8962a; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-white { background: white; color: var(--primary); border-color: white; }
.btn-white:hover { background: var(--bg-soft); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--primary); font-weight: 700; line-height: 1.1; }
.nav-brand-title { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.04em; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all var(--transition); border-radius: 2px; }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: white;
  padding: 1.25rem 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; color: var(--text); font-weight: 500; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* ===========================
   Hero
   =========================== */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #EEF3F9 0%, #F7F9FC 50%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200,169,110,0.12);
  color: #9A7840;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-title { color: var(--primary); margin-bottom: 0.4rem; }
.hero-cro { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; font-weight: 500; }
.hero-specialties { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.specialty-tag {
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}
.hero-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 42ch; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stat-num { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--primary); line-height: 1; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.hero-image-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image-blob {
  position: absolute;
  width: 460px; height: 460px;
  background: linear-gradient(135deg, rgba(26,60,94,0.07) 0%, rgba(37,99,168,0.04) 100%);
  border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
}
.hero-photo {
  width: 380px;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50% 50% 45% 45% / 40% 40% 55% 55%;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(26,60,94,0.18);
}
.hero-float-card {
  position: absolute;
  bottom: 30px;
  left: 0;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-float-icon { font-size: 1.75rem; }
.hero-float-text { font-size: 0.8rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.hero-float-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ===========================
   Sobre
   =========================== */
.sobre-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
.sobre-text { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem; }
.formacao-list { display: flex; flex-direction: column; gap: 1.25rem; }
.formacao-item { display: flex; gap: 1rem; align-items: flex-start; }
.formacao-year-col { min-width: 42px; }
.formacao-year { font-size: 0.72rem; font-weight: 700; color: var(--accent); line-height: 1.4; }
.formacao-bar { width: 2px; height: calc(100% - 20px); background: var(--border); margin: 4px auto 0; display: block; }
.formacao-title { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.formacao-inst { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }
.idiomas { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.idioma-tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}
.sobre-card {
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.sobre-card h4 { font-size: 0.95rem; color: white; margin-bottom: 0.6rem; }
.sobre-card p { font-size: 0.88rem; opacity: 0.8; line-height: 1.75; max-width: none; }

/* ===========================
   Especialidades
   =========================== */
.especialidades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.especialidade-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
}
.especialidade-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--primary); }
.especialidade-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.especialidade-card h3 { color: var(--primary); margin-bottom: 0.75rem; }
.especialidade-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; max-width: none; }

/* ===========================
   Consultórios
   =========================== */
.consultorios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.consultorio-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.consultorio-map { width: 100%; height: 200px; border: none; display: block; }
.consultorio-info { padding: 1.25rem 1.5rem 1.5rem; }
.consultorio-city { font-family: var(--font-serif); font-size: 1.05rem; color: var(--primary); font-weight: 700; margin-bottom: 0.35rem; }
.consultorio-address { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; }
.consultorio-phone { font-size: 0.83rem; color: var(--primary); font-weight: 600; margin-top: 0.5rem; }

/* ===========================
   Serviços
   =========================== */
.servicos-intro { max-width: 50ch; }
.servicos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.servico-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.servico-item:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.servico-check { color: var(--accent); font-size: 0.9rem; font-weight: 700; flex-shrink: 0; }

/* ===========================
   Depoimentos
   =========================== */
.depoimentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.depoimento-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.depoimento-stars { color: #F59E0B; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.depoimento-text { font-size: 0.88rem; color: var(--text); line-height: 1.75; font-style: italic; margin-bottom: 1rem; }
.depoimento-source { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.depoimento-source::before { content: '—'; }

/* ===========================
   Galeria
   =========================== */
.galeria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.galeria-item {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem;
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================
   Doctoralia
   =========================== */
.doctoralia-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
/* WIDGET DOCTORALIA — substitua o placeholder abaixo pelo código <script> quando receber da cliente */
.doctoralia-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: white;
}
.doctoralia-placeholder p { margin: 0 auto; }

/* ===========================
   CTA Final
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}
.cta-section .section-label { color: var(--accent-light); }
.cta-title { font-family: var(--font-serif); color: white; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-desc { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin: 0 auto 2.5rem; max-width: 45ch; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-phone { margin-top: 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.cta-phone a { color: rgba(255,255,255,0.8); font-weight: 600; }
.cta-phone a:hover { color: white; }

/* ===========================
   Footer
   =========================== */
footer { background: var(--bg-dark); color: rgba(255,255,255,0.55); padding: 3.5rem 0 1.75rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.15rem; color: white; margin-bottom: 0.5rem; }
.footer-brand-desc { font-size: 0.83rem; line-height: 1.7; margin-bottom: 1rem; max-width: 32ch; }
.footer-cro {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 { color: white; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 0.83rem; transition: color var(--transition); }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

/* ===========================
   WhatsApp Flutuante
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ===========================
   Fade-in Animations
   =========================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .especialidades-grid,
  .consultorios-grid,
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links, .nav > .container .btn { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-specialties, .hero-actions, .hero-stats { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-photo { width: 240px; height: 300px; }
  .hero-image-blob { width: 280px; height: 280px; }
  .hero-float-card { display: none; }

  .sobre-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .especialidades-grid,
  .consultorios-grid,
  .servicos-grid,
  .depoimentos-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
}
