/* ==========================================================================
  Variáveis de Cor e Tema
  ========================================================================== */
:root {
  --navy-blue: #29384F;
  --old-color: #1F476E;
  --gold: #E9AF47;
  --gold-light: #FDF7ED;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --text-dark: #334155;
  --text-light: #64748B;
  --wa-green: #25D366;
  --wa-green-hover: #1EBE5C;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
}

/* ==========================================================================
  Reset e Configurações Globais
  ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-blue);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Animações de scroll (ativadas pelo JS) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
  Botões e CTAs
  ========================================================================== */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--wa-green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background-color: var(--wa-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
  Cabeçalho
  ========================================================================== */
header {
  background-color: var(--white);
  padding: 12px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* Garante que logo e hambúrguer fiquem nas pontas */
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 160px;
  height: 73px;
  object-fit: contain;
}

/* Nav centralizada de forma absoluta para não depender da largura da logo */
nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--gold);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hambúrguer */
.mobile-menu-btn {
  display: none; /* Continua oculto no desktop */
  font-size: 1.6rem; /* Aumentado sutilmente para melhor clique */
  color: var(--navy-blue);
  cursor: pointer;
  padding: 4px;
}

/* Menu Mobile Dropdown */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-top: 2px solid var(--gold-light);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 8px 5%;
}

.mobile-nav li {
  border-bottom: 1px solid var(--gold-light);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav a:hover {
  color: var(--gold);
  padding-left: 8px;
}

/* ==========================================================================
  Hero Section
  ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 60px 5%;
  background: linear-gradient(
      to right,
      rgba(41, 56, 79, 0.92) 0%,
      rgba(41, 56, 79, 0.65) 60%,
      rgba(41, 56, 79, 0.20) 100%
    ),
    url('./images/home.jpeg') top/cover no-repeat;
}

.hero-content {
  max-width: 620px;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 38px;
  font-weight: 300;
  opacity: 0.95;
  max-width: 500px;
  line-height: 1.75;
}

.hero-botoes {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-ig-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3); /* Borda sutil branca */
  color: var(--white);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.btn-ig-hero:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
  Tradição e Propósito
  ========================================================================== */
.tradicao {
  padding: 100px 5%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  gap: 70px;
}

.tradicao-text {
  flex: 1;
}

.section-tag {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.tradicao h2 {
  font-size: 2.5rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 18px;
  line-height: 1.2;
}

.tradicao h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55px;
  height: 3px;
  background-color: var(--gold);
}

.tradicao p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* Imagem do Selo — fundo dourado suave elimina o background branco residual */
.tradicao-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tradicao-img::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--gold-light);
  z-index: 0;
}

.selo-dignidade {
  width: 100%;
  max-width: 220px;
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* ==========================================================================
  Equipe Multidisciplinar — Layout Editorial
  ========================================================================== */
.equipe {
  padding: 100px 5%;
  background-color: #FFFFFA;
}
.equipe-inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  align-items: start;
}

/* Painel esquerdo fixo enquanto rola a lista */
.equipe-side {
  position: sticky;
  top: 120px;
}

.equipe-side .section-tag {
  color: var(--gold);
}

.equipe-side h2 {
  color: var(--navy-blue);
  font-size: 2.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 18px;
  line-height: 1.25;
}

.equipe-side h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--gold);
}

.equipe-side > p {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Lista numerada */
.equipe-list {
  display: flex;
  flex-direction: column;
}

.equipe-item {
  padding: 36px 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  align-items: start;
  transition: padding-left 0.3s ease;
}

.equipe-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.equipe-item:hover {
  padding-left: 10px;
}

.equipe-num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  padding-top: 8px;
  letter-spacing: 2px;
}

.equipe-content h3 {
  color: var(--navy-blue);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.equipe-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.78;
}

/* ==========================================================================
  Nosso Espaço (Galeria)
  ========================================================================== */
.espaco {
  padding: 100px 5%;
  background-color: var(--white);
  text-align: center;
}

.espaco-header {
  margin-bottom: 50px;
}

.espaco-header h2 {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.espaco-header p {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grid desktop: 3 colunas */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background-color: var(--off-white);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.galeria-item:hover img {
  transform: scale(1.06);
}

/* Indicadores de slide (apenas mobile) */
.galeria-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.galeria-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(10, 37, 64, 0.18);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.galeria-dot.active {
  background-color: var(--gold);
  transform: scale(1.35);
}

.galeria-footer {
  margin-top: 45px;
  display: flex;
  justify-content: center;
}

.btn-ig-galeria {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid var(--navy-blue);
  color: var(--navy-blue);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-ig-galeria:hover {
  border-color: var(--gold);
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 175, 71, 0.35);
}

/* ==========================================================================
  Avaliações e Localização
  ========================================================================== */
.contato {
  padding: 100px 5%;
  background-color: var(--off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.avaliacoes h2 {
  font-size: 2.3rem;
  margin-bottom: 38px;
  position: relative;
  padding-bottom: 18px;
  line-height: 1.2;
}

.avaliacoes h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55px;
  height: 3px;
  background-color: var(--gold);
}

.card-avaliacao {
  background: var(--white);
  padding: 28px 30px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--navy-blue);
}

.estrelas {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 0.95rem;
  letter-spacing: 3px;
}

.card-avaliacao p {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.72;
  font-size: 1.1rem;
}

/* Atribuição Google */
.avaliacao-footer {
  display: flex;
  align-items: center;
  gap: 7px;
}

.avaliacao-footer i {
  color: #4285F4;
  font-size: 0.95rem;
}

.avaliacao-footer strong {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mapa {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
}

.endereco-info {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--navy-blue);
  font-weight: 600;
  line-height: 1.5;
}

.endereco-info i {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
  Rodapé
  ========================================================================== */
footer {
  background-color: var(--navy-blue);
  color: var(--white);
  text-align: center;
  padding: 60px 5% 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  width: 160px;
  height: 73px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-info {
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 38px;
  font-size: 1.05rem;
}

.footer-info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-info i {
  color: var(--gold);
}

.telefones-auxiliares a {
  transition: color 0.3s ease;
}

.telefones-auxiliares a:hover {
  color: var(--gold);
}

.divisor {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 5px;
}

.footer-cta {
  margin-bottom: 40px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.38);
}

/* ==========================================================================
  Botão Flutuante WhatsApp
  ========================================================================== */
.wa-float {
  position: fixed;
  width: 66px;
  height: 66px;
  bottom: 28px;
  right: 28px;
  background-color: var(--wa-green);
  color: var(--white);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s;
  animation: pulse-wa 2.2s infinite;
}

.wa-float:hover {
  background-color: var(--wa-green-hover);
  animation: none;
  transform: scale(1.08);
}

@keyframes pulse-wa {
  0%   { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0.65); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0); }
}

/* ==========================================================================
  Responsividade
  ========================================================================== */

/* Tablets largos: galeria 2 colunas */
@media (max-width: 1100px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets: seções empilham */
@media (max-width: 992px) {
  nav a {
    font-size: 0.85rem;
  }

  .logo img {
    width: 120px;
    height: 54px;
    object-fit: contain;
  }

  .tradicao {
    flex-direction: column;
    gap: 50px;
    padding: 80px 5%;
  }

  .tradicao-img::before {
    width: 200px;
    height: 200px;
  }

  .contato {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 80px 5%;
  }

  .equipe-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .equipe-side {
    position: static;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Mobile: hamburger, slider de galeria, ajustes gerais */
@media (max-width: 768px) {

  /* Mostrar hambúrguer e ocultar nav desktop */
  nav {
    display: none; /* Oculta a nav original */
    position: static; /* Remove o posicionamento absoluto no mobile */
    transform: none;
  }
  .mobile-menu-btn {
    display: block; /* Exibe o botão na ponta direita */
  }

  /* Hero */
  .hero {
    padding: 50px 5%;
    min-height: 75vh;
  }

  .hero-content h1 {
    font-size: 1.95rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Seções */
  .tradicao,
  .equipe,
  .espaco,
  .contato {
    padding: 65px 5%;
  }

  .tradicao h2,
  .espaco-header h2,
  .avaliacoes h2,
  .equipe-side h2 {
    font-size: 1.75rem;
  }

  /* Equipe */
  .equipe-item {
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  /* Galeria: slider touch */
  .galeria-grid {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    grid-template-columns: unset;
  }

  .galeria-grid::-webkit-scrollbar {
    display: none;
  }

  .galeria-item {
    flex: 0 0 80vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Mostrar dots */
  .galeria-dots {
    display: flex;
  }

  /* Mapa menor */
  .mapa {
    height: 300px;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn-wa {
    font-size: 0.9rem;
    padding: 12px 22px;
  }

  .tradicao-img::before {
    width: 160px;
    height: 160px;
  }

  .selo-dignidade {
    max-width: 180px;
  }

  .galeria-item {
    flex: 0 0 88vw;
  }

  .wa-float {
    width: 58px;
    height: 58px;
    font-size: 28px;
    bottom: 22px;
    right: 22px;
  }

  .footer-info p {
    flex-direction: column;
    gap: 6px;
  }
  .divisor {
    display: none;
  }

  .btn-ig-galeria {
    font-size: 0.9rem;
    padding: 12px 24px;
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}