*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:   #0d3a8f;
  --blue-mid:    #1a56db;
  --blue-light:  #3b82f6;
  --blue-pale:   #eff6ff;
  --blue-xpale:  #f0f7ff;
  --white:       #ffffff;
  --gray-50:     #f8faff;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --radius:      14px;
  --shadow:      0 4px 24px rgba(13,58,143,.10);
  --shadow-lg:   0 8px 40px rgba(13,58,143,.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,86,219,.08);
  box-shadow: 0 2px 16px rgba(13,58,143,.06);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-icon  { font-size: 1.5rem; }
.nav-name  { font-size: 1.05rem; font-weight: 700; color: var(--blue-deep); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--gray-600); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--blue-mid); }

.btn-nav {
  background: var(--blue-mid) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: .88rem !important;
  transition: background .2s, transform .15s !important;
}
.btn-nav:hover { background: var(--blue-deep) !important; transform: translateY(-1px); }


.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 80px 80px 80px;
  min-height: calc(100vh - 68px);
  background: linear-gradient(135deg, var(--blue-xpale) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,.07) 0%, transparent 70%);
}

.hero-content { 
  align-items: center ;
  display: flex;
  flex-direction: column;
  min-width: 0; 
  max-width: 600px; 

}

.hero-badge {
  text-align: center;
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  border: 1px solid rgba(26,86,219,.2);
  padding: 4px 10px; /* Diminuído o bloco (era 6px 16px) */
  border-radius: 999px;
  font-size: .7rem;   /* Fonte levemente menor (era .8rem) */
  font-weight: 600;
  letter-spacing: .5px;
  margin-top: 0px;  /* Força o bloco a SUBIR na tela */
  margin-bottom: 15px; /* Diminuído o espaço abaixo dele (era 20px) */
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--blue-deep);
  letter-spacing: -1px;
  margin-bottom: 0px;
  margin-top: 25px;
  

}

.hero-specialty {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 25px; margin-bottom: 20px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(26,86,219,.35);
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,86,219,.45); }
.btn-primary.large { padding: 16px 36px; font-size: 1.05rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--blue-mid);
  border: 2px solid var(--blue-mid);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--blue-pale); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;

}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--blue-deep); line-height: 1; }
.stat-label { font-size: .75rem; color: var(--gray-400); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--gray-200); }

/* HERO IMAGE */
.hero-image { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; }


.img-wrapper {
  position: relative;
  width: 310px; /* Reduzido pela metade (era 420px) */
  max-width: 100%;
}

.img-blob {
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, rgba(26,86,219,.12), rgba(59,130,246,.08));
  z-index: 0;
}

.doctor-img {
  width: 100%; 
  height: 240px; /* Reduzido pela metade (era 480px) */
  object-fit: cover;
  border-radius: 20px; /* Diminuído o raio da borda para combinar com o novo tamanho */
  position: relative; 
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.img-card {
  position: absolute;
  bottom: 24px; left: -24px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  z-index: 2;
}
.img-card-icon { font-size: 1.8rem; }
.img-card-title { font-size: .85rem; font-weight: 700; color: var(--blue-deep); }
.img-card-sub { font-size: .75rem; color: #22c55e; font-weight: 500; }

/* ===== SECTIONS ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--blue-deep); margin-bottom: 12px; }
.section-header p { font-size: 1rem; color: var(--gray-600); max-width: 480px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,.75); }

.section-badge {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  border: 1px solid rgba(26,86,219,.2);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-badge.light { background: rgba(255,255,255,.15); color: var(--white); border-color: rgba(255,255,255,.3); }

/* SOBRE */
.section-sobre { padding: 0px 0; background: var(--white); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 25px;
}

.feature-card {
  background: var(--blue-xpale);
  border: 1px solid rgba(26,86,219,.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 10px; }
.feature-card p { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

/* SERVIÇOS */
.section-servicos {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a56db 100%);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.servico-item {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; align-items: center; gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .2s;
}
.servico-item:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.servico-item span { font-size: 1.5rem; }

/* CTA */
.section-cta { padding: 80px 0; background: var(--blue-xpale); }

.cta-box {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-box p  { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }

/* FOOTER */
.footer {
  background: var(--gray-800);
  padding: 32px 0;
  color: var(--gray-400);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; font-size: 1rem; }
.footer-copy { font-size: .82rem; }
.footer-dev { font-size: .75rem; opacity: .55; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  background: #25d366;
  border-radius: 999px;
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.wa-label { display:none; color: var(--white); font-weight: 700; font-size: .88rem; white-space: nowrap; }

/* ===== ADMIN ===== */
.admin-body { background: var(--gray-50); min-height: 100vh; }

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--blue-deep);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sb-icon { font-size: 1.4rem; }
.sb-title { font-size: 1rem; font-weight: 800; color: var(--white); }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.sb-link:hover, .sb-link.active { background: rgba(255,255,255,.12); color: var(--white); }
.sb-link.danger { color: #fca5a5; margin-top: auto; }
.sb-link.danger:hover { background: rgba(239,68,68,.15); color: #f87171; }

.sidebar-footer {
  padding: 16px 20px;
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-main {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
  padding: 40px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.admin-title { font-size: 1.6rem; font-weight: 800; color: var(--blue-deep); }
.admin-sub   { font-size: .9rem; color: var(--gray-400); margin-top: 4px; }

.btn-view-site {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--blue-mid);
  color: var(--white);
  border-radius: 10px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.btn-view-site:hover { background: var(--blue-deep); }

.alert {
  padding: 13px 18px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.alert.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert.error   { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.card-icon { font-size: 1.3rem; }
.card-header h2 { font-size: 1rem; font-weight: 700; color: var(--gray-800); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.req { color: #ef4444; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-hint { display: block; font-size: .75rem; color: var(--gray-400); margin-top: 4px; }

.btn-save {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, transform .15s;
  margin-top: 6px;
}
.btn-save:hover { opacity: .9; transform: translateY(-1px); }

/* PREVIEW */
.preview-box {
  background: var(--blue-xpale);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.preview-badge {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  border: 1px solid rgba(26,86,219,.2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.preview-name { font-size: 1.3rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 4px; }
.preview-esp  { font-size: .85rem; font-weight: 600; color: var(--blue-light); margin-bottom: 10px; }
.preview-slogan { font-size: .85rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 16px; }
.preview-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366;
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
}
.preview-note { font-size: .75rem; color: var(--gray-400); text-align: center; }

/* ===== INNER PAGES ===== */
body.inner-page { padding-top: 68px; min-height: 100vh; background: var(--gray-50); }

.page-content {
  padding: 60px 40px;
  min-height: calc(100vh - 68px);
}

.center-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.cs-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.coming-soon-box h1 { font-size: 2rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 12px; }
.cs-sub { font-size: 1rem; color: var(--gray-600); margin-bottom: 24px; }
.cs-divider { width: 60px; height: 3px; background: var(--blue-mid); border-radius: 99px; margin: 0 auto 24px; }
.cs-contact { font-size: .9rem; color: var(--gray-600); margin-bottom: 20px; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
  transition: transform .2s;
}
.btn-whatsapp:hover { transform: translateY(-2px); }

.cs-footer {
  margin-top: 32px;
  font-size: .72rem;
  color: var(--gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 32px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { width: 100%; }
  .doctor-img { height: 340px; }
  .img-card { left: 0; }
  .navbar { padding: 0 24px; }
  .nav-links a:not(.btn-nav) { display: none; }
  .cta-box { padding: 40px 28px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; padding: 24px 20px; }
  .hero { padding: 48px 20px; }
  .section-sobre, .section-servicos, .section-cta { padding: 64px 0; }
  .container { padding: 0 20px; }
  .admin-header { flex-direction: column; }
  .coming-soon-box { padding: 40px 24px; }
}

@media (max-width: 900px) {
  .hero { 
    flex-direction: column; 
    padding: 30px 32px 60px 32px; /* Diminuído o padding superior de 60px para 30px para subir o bloco */
    text-align: center; 
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { width: 100%; }
  
  /* Ajustes para respeitar o tamanho reduzido no Mobile */
  .img-wrapper { width: 100%; } 
  .doctor-img { height: 200px; }
  
  .img-card { left: -12px; }
  .navbar { padding: 0 24px; }
  .nav-links a:not(.btn-nav) { display: none; }
  .cta-box { padding: 40px 28px; }
}

@media (max-width: 900px) {
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }
}
