/* ============================================================
   style.css - Hospital Santo Expedito - APAS
   Paleta: Azul #0057A8 | Branco #FFFFFF | Cinza #F5F5F5
   ============================================================ */

/* ---------- Variáveis & Reset ---------- */
:root {
  --primary:      #0057A8;
  --primary-dark: #00408A;
  --primary-light:#E8F1FB;
  --accent:       #00A896;
  --white:        #FFFFFF;
  --gray-light:   #F5F5F5;
  --gray-mid:     #E0E0E0;
  --gray-text:    #6C757D;
  --dark:         #1A2B3C;
  --font-main:    'Inter', 'Roboto', sans-serif;
  --shadow-sm:    0 2px 8px rgba(0,87,168,.10);
  --shadow-md:    0 6px 24px rgba(0,87,168,.15);
  --shadow-lg:    0 12px 40px rgba(0,87,168,.20);
  --radius:       12px;
  --transition:   .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
}
.section-title h2 span { color: var(--primary); }
.section-title p {
  font-size: 1rem;
  color: var(--gray-text);
  max-width: 620px;
  margin: 10px auto 0;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin: 12px auto 32px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.nav-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter var(--transition);
}
#navbar.scrolled .nav-logo-img {
  filter: none;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: none;
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
#navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .logo-icon {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
#navbar.scrolled .nav-logo .logo-icon { background: var(--primary); }
.nav-logo .logo-text { line-height: 1.2; }
.nav-logo .logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.nav-logo .logo-text span {
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
#navbar.scrolled .nav-logo .logo-text strong { color: var(--dark); }
#navbar.scrolled .nav-logo .logo-text span   { color: var(--gray-text); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a {
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
#navbar.scrolled .nav-menu a { color: var(--dark); }
#navbar.scrolled .nav-menu a:hover,
#navbar.scrolled .nav-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn {
  padding: 10px 22px;
  font-size: .875rem;
}



/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(0,64,138,.88) 0%, rgba(0,87,168,.70) 60%, rgba(0,168,150,.50) 100%),
    url('../../images/hospital.JPG') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content {
  max-width: 680px;
  animation: fadeInUp .9s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero-badge i { color: var(--accent); }
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 span { color: #7FD4FF; }
.hero-content p {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.87);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---------- Seção Sobre ---------- */
#sobre {
  padding: 100px 0 80px;
  background: var(--white);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 20px;
}
.sobre-img-wrap {
  position: relative;
}
.sobre-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.sobre-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.sobre-badge strong { display: block; font-size: 2rem; font-weight: 800; }
.sobre-badge span   { font-size: .8rem; opacity: .9; }
.sobre-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.sobre-text h2 span { color: var(--primary); }
.sobre-text p { color: var(--gray-text); margin-bottom: 28px; }

.mvv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.mvv-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border-top: 3px solid var(--primary);
  transition: var(--transition);
}
.mvv-card:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.mvv-card i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.mvv-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.mvv-card p  { font-size: .8rem; color: var(--gray-text); }

/* ---------- Seção Especialidades ---------- */
#especialidades {
  padding: 90px 0;
  background: var(--gray-light);
}
.esp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.esp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: default;
}
.esp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--primary);
}
.esp-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.7rem;
  color: var(--primary);
  transition: var(--transition);
}
.esp-card:hover .esp-icon {
  background: var(--primary);
  color: var(--white);
}
.esp-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.esp-card p  { font-size: .83rem; color: var(--gray-text); line-height: 1.5; }

/* ---------- Seção Equipe ---------- */
#equipe {
  padding: 90px 0;
  background: var(--white);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.team-card .photo-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--gray-light);
}
.team-card .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.team-card:hover .photo-wrap img { transform: scale(1.05); }
.team-card-body { padding: 20px; }
.team-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card-body .esp-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.team-card-body .crm {
  font-size: .8rem;
  color: var(--gray-text);
}
.team-card-body p {
  font-size: .83rem;
  color: var(--gray-text);
  margin-top: 10px;
  line-height: 1.5;
}

/* Foto padrão com ícone */
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

/* ---------- Seção Convênios ---------- */
#convenios {
  padding: 90px 0;
  background: var(--gray-light);
}
.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 8px;
  align-items: center;
}
.conv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.conv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.conv-card img {
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(60%);
  transition: filter var(--transition);
}
.conv-card:hover img { filter: grayscale(0%); }
.conv-card .conv-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
}

/* ---------- Seção Depoimentos ---------- */
#depoimentos {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
#depoimentos::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 5%;
  font-size: 20rem;
  color: rgba(255,255,255,.05);
  font-family: Georgia, serif;
  line-height: 1;
  user-select: none;
}
#depoimentos .section-title h2 { color: var(--white); }
#depoimentos .section-title p   { color: rgba(255,255,255,.75); }
#depoimentos .section-divider   { background: rgba(255,255,255,.4); }

.dep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.dep-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.dep-card:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-4px);
}
.dep-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  color: #FFD166;
  font-size: .95rem;
}
.dep-card p {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}
.dep-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dep-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.dep-author-info strong {
  display: block;
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
.dep-author-info span {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Formulário de Contato/Agendamento ---------- */
#contato {
  padding: 90px 0;
  background: var(--white);
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.contato-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contato-info h3 span { color: var(--primary); }
.contato-info p {
  color: var(--gray-text);
  margin-bottom: 28px;
}
.info-items { display: flex; flex-direction: column; gap: 18px; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-item .info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.info-item div strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.info-item div span {
  font-size: .85rem;
  color: var(--gray-text);
  line-height: 1.5;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--dark);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Formulário */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-mid);
}
.form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark);
}
.form-card h3 span { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group label span.req { color: #e74c3c; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-size: .9rem;
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,168,.10);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e74c3c; }
.form-group .field-error {
  font-size: .78rem;
  color: #e74c3c;
  margin-top: 4px;
  display: none;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-submit { margin-top: 8px; width: 100%; justify-content: center; }

/* Alerts de feedback */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInDown .4s ease both;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert i { font-size: 1.1rem; }

/* ---------- Mapa ---------- */
#mapa {
  background: var(--gray-light);
  padding: 0;
  line-height: 0;
}
#mapa iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ---------- Footer ---------- */
#footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-icon-foot {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: 12px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a i { font-size: .75rem; color: var(--primary); }
.footer-contact ul { gap: 14px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.footer-contact li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom a {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- Botão WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ebe5d;
  animation: none;
}

/* ---------- Scroll to top ---------- */
#scrollTop {
  position: fixed;
  bottom: 98px;
  right: 30px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
#scrollTop.visible { opacity: 1; pointer-events: all; }
#scrollTop:hover   { transform: translateY(-3px); background: var(--primary-dark); }

/* ---------- Animações ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 28px rgba(37,211,102,.75); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilitários ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  .sobre-grid     { grid-template-columns: 1fr; }
  .sobre-img-wrap { display: none; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .contato-grid   { grid-template-columns: 1fr; gap: 32px; }
  .dep-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  /* — Navbar — */
  .nav-menu     { display: none; }
  .nav-toggle   { display: flex; }
  .nav-logo-img { height: 52px; }
  .nav-actions  { display: none; }

  /* Menu mobile aberto */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-md);
    gap: 2px;
    z-index: 9998;
    border-top: 1px solid var(--gray-mid);
  }
  .nav-menu.open a {
    color: var(--dark);
    padding: 13px 16px;
    border-radius: 8px;
    font-size: .95rem;
  }
  .nav-menu.open a:hover,
  .nav-menu.open a.active {
    background: var(--primary-light);
    color: var(--primary);
  }

  /* — Hero — */
  #hero { padding: 88px 0 56px; }
  .hero-content { max-width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .hero-stat { text-align: left; }

  /* — Seções — */
  #sobre,
  #especialidades,
  #equipe,
  #convenios,
  #depoimentos { padding: 64px 0; }

  /* — Especialidades: cards horizontais — */
  .esp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .esp-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 14px 12px;
    gap: 12px;
  }
  .esp-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin: 0;
  }
  .esp-card h3 { font-size: .88rem; margin-bottom: 4px; }
  .esp-card p  { font-size: .75rem; line-height: 1.4; }

  /* — Sobre — */
  .mvv-cards { grid-template-columns: 1fr; }
  .sobre-badge { right: 0; bottom: -20px; }

  /* — Formulário — */
  .form-row { grid-template-columns: 1fr; }

  /* — Depoimentos — */
  .dep-grid { grid-template-columns: 1fr; }

  /* — Footer — */
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* — Mapa — */
  #mapa iframe { height: 320px; }
}

/* ---------- Mobile pequeno (≤480px) ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* — Navbar — */
  #navbar         { padding: 10px 0; }
  #navbar.scrolled{ padding: 8px 0; }
  .nav-logo-img   { height: 44px; }

  /* — Hero — */
  #hero { padding: 72px 0 48px; }
  .hero-badge   { font-size: .72rem; padding: 5px 12px; }
  .hero-stats   { gap: 14px 12px; }
  .hero-stat strong { font-size: 1.5rem; }

  /* — Grids — */
  .esp-grid  { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .conv-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv-cards { grid-template-columns: 1fr; }

  /* — Especialidades: 1 coluna, ícone menor — */
  .esp-card  { padding: 14px 12px; gap: 14px; }
  .esp-icon  { width: 44px; height: 44px; font-size: 1.1rem; }
  .esp-card h3 { font-size: .9rem; }

  /* — Cards — */
  .dep-card  { padding: 20px; }
  .form-card { padding: 24px 18px; }

  /* — Footer — */
  .footer-contact li   { font-size: .82rem; }
  .footer-contact a    { word-break: break-all; }
  .footer-col ul li a  { font-size: .82rem; }

  /* — Mapa — */
  #mapa iframe { height: 260px; }

  /* — Botões flutuantes — */
  .whatsapp-float { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
  #scrollTop      { bottom: 80px; right: 16px; }
}

/* ---------- Mobile muito pequeno (≤360px) ---------- */
@media (max-width: 360px) {
  .hero-stat strong   { font-size: 1.3rem; }
  .hero-cta .btn      { font-size: .88rem; padding: 13px 20px; }
  .esp-grid           { grid-template-columns: 1fr; }
  .esp-icon           { width: 40px; height: 40px; font-size: 1rem; }
  .conv-grid          { grid-template-columns: 1fr 1fr; }
  .section-title h2   { font-size: 1.4rem; }
  .mvv-card           { padding: 16px 12px; }
  .dep-card           { padding: 16px; }
  .team-card .photo-wrap { height: 200px; }
}
