/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c0392b;
  --red-dark: #922b21;
  --gray-dark: #1a1a1a;
  --gray-mid: #555;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --green-wa: #25D366;
  --green-wa-dark: #1da851;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--gray-dark);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--green-wa-dark); }

.cta-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.65) 0%, rgba(150,20,20,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 40px 24px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-logo {
  width: min(260px, 60vw);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* ===== SOBRE ===== */
.sobre {
  padding: 80px 0;
  background: var(--white);
}

.sobre .container {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.sobre p { color: var(--gray-mid); }

/* ===== ESPECIALIDADES ===== */
.especialidades {
  padding: 80px 0;
  background: var(--gray-light);
}

.especialidades .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.especialidades h2 span { color: var(--red); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  width: 100%;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(192,57,43,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--red);
}

.card-body h3 { color: var(--gray-dark); }
.card-body p { color: var(--gray-mid); font-size: 0.9rem; }

/* ===== EQUIPE ===== */
.equipe {
  padding: 80px 0;
  background: var(--white);
}

.equipe .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.medicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
  width: 100%;
}

.medico {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.medico img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.medico h3 { font-size: 0.95rem; color: var(--gray-dark); }
.medico .especialidade { font-size: 0.82rem; color: var(--red); font-weight: 600; }
.medico .crm { font-size: 0.75rem; color: var(--gray-mid); }

/* ===== DEPOIMENTOS ===== */
.depoimentos {
  padding: 80px 0;
  background: var(--red);
  color: var(--white);
}

.depoimentos .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.depoimentos h2 { color: var(--white); }

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  width: 100%;
}

.depoimento {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.depoimento .stars { color: #f1c40f; font-size: 0.9rem; }
.depoimento p { font-size: 0.92rem; line-height: 1.6; }
.depoimento strong { font-size: 0.9rem; }
.depoimento span { font-size: 0.78rem; opacity: 0.75; }

.depoimentos .cta-center .btn-primary {
  background: var(--white);
  color: var(--red);
}
.depoimentos .cta-center .btn-primary:hover {
  background: var(--gray-light);
}

/* ===== CLÍNICA ===== */
.clinica {
  padding: 80px 0;
  background: var(--gray-light);
}

.clinica .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
  width: 100%;
}

.galeria img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.galeria img:hover { transform: scale(1.02); }

/* ===== CONVÊNIOS ===== */
.convenios {
  padding: 80px 0;
  background: var(--white);
}

.convenios .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.convenios-img {
  max-width: 700px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  text-align: center;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer .container { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--green-wa); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform 0.2s, background 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background: var(--green-wa-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .medicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
  .galeria img { height: 180px; }
  .medico img { width: 130px; height: 160px; }
}
