/* ===========================
   VARIÁVEIS CSS
=========================== */
:root {
  --azul-profundo: #0A2E5C;
  --azul-medio: #1565C0;
  --azul-claro: #4FC3F7;
  --azul-suave: #E8F4FD;
  --branco: #FFFFFF;
  --cinza-claro: #F5F7FA;
  --texto: #1A1A2E;
  --texto-claro: #666;
  --whatsapp: #25D366;
  --whatsapp-hover: #1da851;
  --sombra: 0 8px 30px rgba(0,0,0,0.10);
  --sombra-hover: 0 16px 40px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-btn: 50px;
  --transition: all 0.3s ease;
}

/* ===========================
   RESET E BASE
=========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--texto);
  background: var(--branco);
  overflow-x: hidden;
}

img { max-width: 100%; border-radius: var(--radius); }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   ANIMAÇÃO FADE-IN
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   COMPONENTES REUTILIZÁVEIS
=========================== */
.section-badge {
  display: inline-block;
  background: var(--azul-suave);
  color: var(--azul-medio);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-badge.light {
  background: rgba(255,255,255,0.2);
  color: var(--branco);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--azul-profundo);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--texto-claro);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--azul-medio), var(--azul-claro));
  border-radius: 4px;
  margin: 12px 0 20px;
}

.title-line.centered { margin: 12px auto 20px; }

/* Botões */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: var(--branco);
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
}

.btn-whatsapp--large {
  padding: 18px 36px;
  font-size: 17px;
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--branco);
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--branco);
}

/* ===========================
   BARRA SUPERIOR
=========================== */
.top-bar {
  background: var(--azul-profundo);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--azul-claro);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.top-bar a:hover { color: var(--whatsapp); }

.top-bar i { margin-right: 5px; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--azul-profundo);
  padding: 16px 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 46, 92, 0.98);
  backdrop-filter: blur(10px);
}

.navbar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--branco);
  font-size: 20px;
  font-weight: 600;
}

.navbar__logo i {
  color: var(--azul-claro);
  font-size: 24px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__menu li a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar__menu li a:hover { color: var(--azul-claro); }

.btn-whatsapp-nav {
  background: var(--whatsapp) !important;
  color: var(--branco) !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.btn-whatsapp-nav:hover {
  background: var(--whatsapp-hover) !important;
  transform: translateY(-1px);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--branco);
  font-size: 22px;
  cursor: pointer;
}

/* ===========================
   HERO
=========================== */
.hero {
  background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul-medio) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero__circles .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--azul-claro);
}

.circle1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.circle2 { width: 250px; height: 250px; bottom: -50px; left: -50px; }
.circle3 { width: 150px; height: 150px; top: 50%; right: 30%; }

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: var(--azul-claro);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(79,195,247,0.3);
}

.hero__text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--branco);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__text p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__img-container {
  position: relative;
}

.hero__img-container img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.hero__img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--branco);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--sombra);
}

.hero__img-badge i {
  font-size: 28px;
  color: var(--azul-medio);
}

.hero__img-badge strong {
  display: block;
  font-size: 14px;
  color: var(--azul-profundo);
}

.hero__img-badge span {
  font-size: 12px;
  color: var(--texto-claro);
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.wave-divider svg { display: block; }

/* ===========================
   SOBRE
=========================== */
.sobre {
  padding: 100px 0;
  background: var(--branco);
}

.sobre__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.sobre__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--sombra-hover);
}

.sobre__text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--azul-profundo);
  margin-bottom: 8px;
}

.sobre__text p {
  font-size: 16px;
  color: var(--texto-claro);
  line-height: 1.8;
  margin-bottom: 16px;
}

.sobre__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.sobre__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--azul-suave);
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.sobre__card:hover {
  transform: translateX(6px);
  box-shadow: var(--sombra);
}

.sobre__card i {
  font-size: 24px;
  color: var(--azul-medio);
  min-width: 30px;
}

.sobre__card strong {
  display: block;
  font-size: 15px;
  color: var(--azul-profundo);
}

.sobre__card span {
  font-size: 13px;
  color: var(--texto-claro);
}

/* ===========================
   SERVIÇOS
=========================== */
.servicos {
  padding: 100px 0;
  background: var(--cinza-claro);
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.servico-card {
  background: var(--branco);
  border-radius: 16px;
  padding: 32px 28px;
  border-top: 4px solid var(--azul-medio);
  box-shadow: var(--sombra);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.servico-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
  border-top-color: var(--azul-claro);
}

.servico-card__icon {
  width: 60px;
  height: 60px;
  background: var(--azul-suave);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.servico-card__icon i {
  font-size: 26px;
  color: var(--azul-medio);
}

.servico-card h3 {
  font-size: 17px;
  color: var(--azul-profundo);
  margin-bottom: 12px;
  font-weight: 700;
}

.servico-card p {
  font-size: 14px;
  color: var(--texto-claro);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.servico-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--azul-medio);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.servico-card__btn:hover { color: var(--azul-claro); gap: 12px; }

/* ===========================
   CONVÊNIOS
=========================== */
.convenios {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-medio));
  text-align: center;
}

.convenios .section-header h2 { color: var(--branco); }
.convenios .section-header p { color: rgba(255,255,255,0.8); }

.convenios__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.convenio-badge {
  background: rgba(255,255,255,0.15);
  color: var(--branco);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.convenio-badge:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.convenios__cta p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 16px;
}

/* ===========================
   ARTIGOS
=========================== */
.artigos {
  padding: 100px 0;
  background: var(--branco);
}

.artigos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.artigo-card {
  background: var(--branco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: var(--transition);
}

.artigo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.artigo-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.artigo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.artigo-card:hover .artigo-card__img img { transform: scale(1.05); }

.artigo-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--azul-medio);
  color: var(--branco);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.artigo-card__body {
  padding: 24px;
}

.artigo-card__body h3 {
  font-size: 16px;
  color: var(--azul-profundo);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.artigo-card__body p {
  font-size: 14px;
  color: var(--texto-claro);
  line-height: 1.7;
  margin-bottom: 16px;
}

.artigo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--whatsapp);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.artigo-card__link:hover { gap: 12px; color: var(--whatsapp-hover); }

/* ===========================
   CONTATO
=========================== */
.contato {
  padding: 100px 0;
  background: var(--azul-suave);
}

.contato__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contato__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contato__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contato__icon {
  width: 50px;
  height: 50px;
  background: var(--azul-medio);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.contato__icon i {
  font-size: 20px;
  color: var(--branco);
}

.contato__item strong {
  display: block;
  font-size: 15px;
  color: var(--azul-profundo);
  margin-bottom: 4px;
  font-weight: 700;
}

.contato__item span {
  display: block;
  font-size: 14px;
  color: var(--texto-claro);
  line-height: 1.8;
}

.contato__mapa {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-hover);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--azul-profundo);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--branco);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__logo i { color: var(--azul-claro); font-size: 22px; }

.footer__brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer h4 {
  color: var(--branco);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--azul-medio);
  display: inline-block;
}

.footer__links ul li,
.footer__convenios ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer__links ul li a {
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}

.footer__links ul li a:hover { color: var(--azul-claro); padding-left: 5px; }

.footer__contato p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__contato i { color: var(--azul-claro); }

.footer__bottom {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===========================
   WHATSAPP FLUTUANTE
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 62px;
  height: 62px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--branco);
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
  z-index: 9999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  background: var(--whatsapp-hover);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__btns { justify-content: center; }
  .hero__image { display: none; }
  .sobre__content { grid-template-columns: 1fr; }
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
  .artigos__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__content { grid-template-columns: 1fr 1fr; }
  .contato__content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar__content { justify-content: center; text-align: center; font-size: 12px; }
  .navbar__toggle { display: block; }
  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--azul-profundo);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  .navbar__menu.active { display: flex; }
  .navbar__menu li a { padding: 12px 16px; border-radius: 8px; width: 100%; display: block; }
  .hero__text h1 { font-size: 32px; }
  .section-header h2 { font-size: 28px; }
  .servicos__grid { grid-template-columns: 1fr; }
  .artigos__grid { grid-template-columns: 1fr; }
  .footer__content { grid-template-columns: 1fr; gap: 30px; }
  .sobre__image img { height: 300px; }
  .convenios__grid { flex-direction: column; align-items: center; }
}