/* ============================================================
   Dr. Michel Beluche — CSS limpo v6
   Zero dependências de plugins problemáticos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── LAYOUT BASE — a chave do scroll correto ── */
html, body { height: auto; min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #2d2d2d;
  background: #fff;
  overflow-x: hidden;
}

/* WRAPPER: flex coluna, garante footer no fim SEM truques de height */
#page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#page-content { flex: 1; }

/* ── NAV — sticky CSS puro, zero JS ── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}
.nav-logo img { height: 100px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links a.active { background: #e8f0fb; color: #1a3f88; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: .25s;
}

/* ── HERO (index only) ── */
.hero {
  position: relative;
  background: #0e2a5c;
  overflow: hidden;
}
.hero-slides { position: relative; }
.hero-slide {
  display: none;
  position: relative;
}
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,30,80,.55) 0%, rgba(10,30,80,.25) 100%);
}
.hero-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  padding: 0 20px;
  z-index: 10;
}
.hbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s, opacity .15s;
  line-height: 1;
}
.hbtn:hover { transform: translateY(-2px); opacity: .92; }
.hbtn-stars { background: rgba(255,255,255,.9); color: #0e2a5c; }
.hbtn-wa { background: rgba(37,211,102,.85); color: #fff; }
.hbtn-map { background: rgba(14,42,92,.82); color: #fff; }
.star-row { display: flex; gap: 2px; }
.star-row svg { width: 13px; height: 13px; fill: #f4b400; }

.hero-arrows {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.hero-dot.active { background: #fff; }

/* ── PAGE BANNER (inner pages) ── */
.page-banner {
  background: linear-gradient(135deg, #1a3f88, #2d6bbf);
  padding: 52px 24px;
  text-align: center;
  color: #fff;
}
.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.page-banner p { font-size: 1rem; opacity: .85; }

/* ── SECTIONS ── */
.section { padding: 64px 24px; }
.section-alt { background: #f7f8fb; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; font-weight: 800; color: #1a2744; margin-bottom: 8px; }
.section-title p { font-size: 1rem; color: #666; max-width: 580px; margin: 0 auto; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(26,63,136,.1); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #e8f0fb;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; fill: #1a3f88; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: #1a2744; margin-bottom: 8px; }
.card p { font-size: .9rem; color: #666; line-height: 1.65; }

/* ── DOCTOR PROFILE (aclinica) ── */
.doctor-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.doctor-photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.doctor-info h2 { font-size: 2rem; font-weight: 800; color: #1a2744; margin-bottom: 4px; }
.doctor-info .crm { font-size: .9rem; color: #1a3f88; font-weight: 600; margin-bottom: 20px; }
.doctor-info p { color: #555; margin-bottom: 16px; }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badge {
  background: #e8f0fb;
  color: #1a3f88;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ── ACCORDION ── */
.accordion { border: 1px solid #e5e9f2; border-radius: 12px; overflow: hidden; }
.acc-item { border-bottom: 1px solid #e5e9f2; }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: .95rem;
  font-weight: 600;
  color: #1a2744;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}
.acc-trigger:hover { background: #f7f8fb; }
.acc-trigger.open { background: #e8f0fb; color: #1a3f88; }
.acc-icon { font-size: 1.2rem; flex-shrink: 0; transition: transform .2s; }
.acc-trigger.open .acc-icon { transform: rotate(45deg); }
.acc-body {
  display: none;
  padding: 0 22px 20px;
  font-size: .9rem;
  color: #555;
  line-height: 1.75;
}
.acc-body.open { display: block; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; }
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery-grid a:hover img { transform: scale(1.04); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: #1a2744; margin-bottom: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-item-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #e8f0fb; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 16px; height: 16px; fill: #1a3f88; }
.contact-item p { font-size: .9rem; color: #555; }
.contact-item p strong { color: #1a2744; display: block; font-weight: 600; margin-bottom: 2px; }
.contact-map { border-radius: 12px; overflow: hidden; border: 1px solid #e5e9f2; }
.contact-map iframe { width: 100%; height: 320px; display: block; border: none; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a img { height: 36px; width: auto; transition: opacity .2s; }
.social-links a:hover img { opacity: .75; }

/* ── FOOTER ── */
#site-footer {
  background: linear-gradient(135deg, #0e2a5c 0%, #1a3f88 100%);
  padding: 28px 24px;
  text-align: center;
}
#site-footer p { font-size: 12px; color: rgba(255,255,255,.78); line-height: 1.7; }
#site-footer a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 18px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, background .2s;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { background: #1da851; transform: scale(1.08); }

/* ── SCROLL-TO-TOP ── */
.back-top {
  position: fixed;
  bottom: 88px;
  right: 22px;
  width: 40px; height: 40px;
  background: rgba(26,63,136,.85);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: background .2s;
}
.back-top.visible { display: flex; }
.back-top:hover { background: #1a3f88; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 110px; left: 0; right: 0; background: #fff; padding: 16px 24px; box-shadow: 0 8px 20px rgba(0,0,0,.1); gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  #site-nav { position: relative; }
  .nav-logo img { height: 72px; }
  .doctor-profile { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 280px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slide img { height: 360px; }
  .hero-cta { max-width: 90vw; }
  .page-banner h1 { font-size: 1.7rem; }
}
@media (max-width: 600px) {
  .section { padding: 44px 16px; }
  .section-title h2 { font-size: 1.6rem; }
  .hero-slide img { height: 300px; }
  .hbtn { font-size: 13px; padding: 12px 16px; }
}
