:root {
  --preto: #0b0b0b;
  --grafite: #1a1a1a;
  --dourado: #c9a24d;
  --dourado-suave: #e2c777;
  --texto-claro: #f2f2f2;
  --texto-suave: #cfcfcf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--preto);
  color: var(--texto-claro);
  animation: fadeIn 0.8s ease-in-out forwards;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* HERO */

.hero {
  padding: 90px 20px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.95)),
    url('https://images.unsplash.com/photo-1528747008803-f9f7e5b9e2b2') center/cover;
  text-align: center;
  transition: all 0.4s ease;
}

.hero.shrink {
  padding: 30px 20px;
}

.hero.shrink h1 {
  font-size: 1.5rem;
}

.hero.shrink .hero-subtitle {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}



.hero h1,
.hero-subtitle {
  transition: all 0.4s ease;
}

.hero p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--texto-suave);
}

/* NAV */
.nav {
  background-color: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* MENU CENTRALIZADO */
.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* espaçamento clássico */
  padding: 18px 0;
}

.nav a {
  color: var(--dourado);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

/* HOVER DISCRETO */
.nav a::after {
  content: '';
  width: 0;
  height: 2px;
  background-color: var(--dourado);
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--dourado-suave);
}

/* MAIN */
.main-content {
  padding-top: 280px;
}

/* SEÇÕES */
.section {
  padding: 90px 0;
  animation: slideUp 0.8s ease-out forwards;
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 25px;
  font-weight: 500;
  position: relative;
}

.section h2::after {
  content: '';
  width: 50px;
  height: 2px;
  background-color: var(--dourado);
  position: absolute;
  bottom: -10px;
  left: 0;
}

.section p {
  line-height: 1.7;
  color: var(--texto-suave);
  text-align: justify;
}

/* ÁREAS */
.areas {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.areas li {
  background-color: var(--grafite);
  padding: 30px;
  border-left: 4px solid var(--dourado);
  transition: transform 0.3s ease;
}

.areas li:hover {
  transform: translateY(-6px);
}

/* FOOTER */
.footer {
  background-color: #000;
  text-align: center;
  padding: 50px 20px;
  font-size: 0.85rem;
  color: var(--texto-suave);
  border-top: 1px solid rgba(255,255,255,0.05);
}


/* BOTÃO WHATSAPP FIXO */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  z-index: 2000;

  animation: whatsappPulse 2.8s infinite;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

/* HOVER PREMIUM */
.whatsapp-float:hover {
  animation-play-state: paused;
  transform: scale(1.08);
  background-color: #1ebe5d; /* tom levemente mais escuro */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ANIMAÇÃO PULSE SUAVE */
@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }

  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  
  .nav-menu {
    gap: 30px;
  }

  .nav a {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 15px;
    right: 15px;
  }
}



/* RESPONSIVO */
@media (max-width: 768px) {
  body {
    text-align: center;
  }

  .section p {
    text-align: justify;
  }
}

/* FIXO */
.hero.fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMAÇÃO DE ENTRADA DA FOTO */
@keyframes fotoEntrada {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ESTADO INICIAL */
.animate-foto {
  opacity: 0;
  animation: fotoEntrada 0.9s ease-out forwards;
  animation-delay: 0.2s;
}

/* ===== SOBRE – FOTO PROFISSIONAL ===== */

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

/* CONTAINER DA FOTO */
.sobre-foto {
  display: flex;
  justify-content: center;
}

/* IMAGEM – TAMANHO REFINADO */
.sobre-foto img {
  width: 100%;
  max-width: 300px;          /* ✔ desktop elegante */
  border-radius: 6px;
  box-shadow: 0 16px 35px rgba(0,0,0,0.4);
  filter: grayscale(15%);
}

/* TEXTO */
.sobre-texto p {
  margin-top: 15px;
  line-height: 1.8;
}

@media (max-width: 768px) {
.whatsapp-balao {
    opacity: 1;
    transform: translateY(50%) translateX(0);
    animation: balaoMobile 6s ease-in-out forwards;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sobre-foto img {
    width: auto;          /* 👈 quebra a escala automática */
    max-width: 180px;     /* 👈 menor visualmente */
    max-height: 240px;    /* 👈 CONTROLE REAL no mobile */
    margin: 0 auto;
  }

  .autoridade-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .autoridade-foto img {
    max-width: 200px;
    margin: 0 auto;
  }

  .autoridade-texto p {
    text-align: justify;
  }


}

@keyframes balaoMobile {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


/* CONTATO – CENTRALIZAÇÃO VERTICAL */
.contato {
  min-height: 300px;                 /* cria área institucional */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* BLOCO AUTORIDADE – LIVRO */
.autoridade-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: center;
}

.autoridade-foto {
  display: flex;
  justify-content: center;
}

.autoridade-foto img {
  width: 100%;
  max-width: 260px;          /* menor que a foto principal */
  box-shadow: 0 16px 35px rgba(0,0,0,0.4);
  filter: grayscale(10%);
}

.autoridade-texto p {
  line-height: 1.8;
}

/* BALÃO WHATSAPP */
.whatsapp-balao {
  position: absolute;
  right: 70px;
  bottom: 50%;
  transform: translateY(50%) translateX(10px);
  background-color: #ffffff;
  color: #222;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* SETINHA DO BALÃO */
.whatsapp-balao::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

/* MOSTRA NO HOVER */
.whatsapp-float:hover .whatsapp-balao {
  opacity: 1;
  transform: translateY(50%) translateX(0);
}