:root {
  --color-primary: #051a3a;
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-heading: #051a3a;
  --color-border: #ededed;
  --header-height: 90px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 20px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Evita pulo de layout abaixo do header fixo */
main,
section:first-of-type {
  scroll-margin-top: var(--header-height);
}

/* --- HEADER (AJUSTADO) --- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: 0.3s;
  /* respeita área segura do iPhone no header */
  padding-top: env(safe-area-inset-top, 0px);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* ADICIONADO: Para ancorar o menu de navegação */
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-heading);
  /* ADICIONADO: Garante que o logo fique na camada correta */
  position: relative;
  z-index: 2;
}
.logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.15;
}

/* CORREÇÃO: Centraliza a navegação no desktop */
.header-container nav {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
  z-index: 1; /* Fica atrás do logo e botão */
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  /* ADICIONADO: Alinha os links verticalmente no centro do header */
  height: 100%;
  align-items: center;
}
/* FIM DA CORREÇÃO */

.nav-link {
  position: relative;
  text-decoration: none;
  color: #4a4a4a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: 0.2s;
}
/* sublinhado do menu abaixo do texto (não risca as letras) */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px; /* Ajuste para descer o sublinhado */
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.cta-button {
  background: var(--color-primary);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px rgba(5, 26, 58, 0.25);
  transition: 0.2s;
  /* ADICIONADO: Garante que o botão fique na camada correta */
  position: relative;
  z-index: 2;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(5, 26, 58, 0.32);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-heading);
  cursor: pointer;
  /* ADICIONADO: Garante que o toggle fique na camada correta */
  position: relative;
  z-index: 2;
}
/* Oculta o CTA mobile por padrão no desktop */
.nav-menu .menu-cta {
  display: none;
}

/* --- HERO (CORRIGIDO) --- */

.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: url("assets/backgroud.png") no-repeat center center / cover;
  color: #fff;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
}
.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  /* CORRIGIDO: Layout de 1 coluna centralizado */
  grid-template-columns: 1fr;
  text-align: center;
  /* FIM DA CORREÇÃO */
  gap: 3rem; /* Reduzido para layout de 1 coluna */
  align-items: center;
  padding-top: var(--header-height);
}
.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(
    1.8rem,
    5vw,
    3.2rem
  ); /* Ajustado para melhor responsividade */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  /* ADICIONADO: Limita a largura e centraliza o H1 */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  margin-bottom: 2.2rem;
  opacity: 0.95;
  color: #e9f1ff;
  /* ADICIONADO: Limita a largura e centraliza o parágrafo */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  /* ADICIONADO: Centraliza o botão */
  justify-content: center;
}
.btn-primary {
  background: #132646;
  color: #fff;
  border: 2px solid #fff0f0ff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 1rem 1.6rem;
  border: 2px solid #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* CORRIGIDO: Oculta elementos visuais vazios ou não utilizados */
.hero-image,
.hero-visual,
.hero-photo,
.hero-icon-large {
  display: none;
}

/* --- Logo e Título do Hero --- */
.hero-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  text-decoration: none;
  /* ADICIONADO: Garante a centralização */
  justify-content: center;
}

.hero-logo-img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.hero-logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* --- SECTIONS GERAIS --- */

.section {
  padding: 7rem 0;
}
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4.2rem;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #5a5a5a;
  max-width: 720px;
  margin: 0 auto;
}

/* --- ÁREAS --- */

.areas {
  background: #ffffff;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.area-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: 0.25s;
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(5, 26, 58, 0.12);
}
.area-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-primary);
  box-shadow: 0 10px 20px rgba(5, 26, 58, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.area-icon i {
  font-size: 26px;
  color: #fff;
}

/* --- SEÇÃO SOBRE (NOVA VERSÃO) --- */

.about-givaldo {
  background: var(--color-primary); /* Fundo escuro */
  color: #f0f0f0; /* Cor do texto principal (claro) */
  overflow-x: hidden;
}
.about-givaldo .section-title,
.about-givaldo h2 {
  color: #fff; /* Títulos em branco */
}
.about-fold {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
.about-photo-wrapper {
  width: 100%;
  max-width: 480px;
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid #fff; /* Borda branca na foto */
  background: #000; /* Fundo preto para a foto */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lawyer-main-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.givaldo-credentials p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #e9f1ff; /* Cor do texto de descrição */
}
.about-bullets {
  margin-top: 2.2rem;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  font-weight: 600;
}
.about-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: #fff; /* Cor do texto do bullet */
}
.about-bullets i {
  color: #25d366; /* Cor do ícone (Pode usar um verde de destaque) */
  font-size: 1.1rem;
}
/* Removemos as classes antigas de credenciais que não são mais usadas */
.lawyer-credentials,
.lawyer-name,
.oab-number {
  display: none;
}

/* --- FAQ --- */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: 0.2s;
}
.faq-question {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-heading);
}
.faq-question:hover {
  background: #f7fbff;
}
.faq-answer {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #ffffff;
}
.faq-answer.active {
  padding: 1.2rem 1.4rem;
  max-height: 280px;
}
.faq-icon {
  color: var(--color-primary);
}

/* --- CONTATO --- */

.contact {
  background: linear-gradient(180deg, #051a3a 0%, #051a3a 100%);
  color: #fff;
  overflow-x: hidden;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.contact-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #fff;
}
.contato-intro {
  color: #e9f1ff;
  margin-bottom: 28px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(231, 246, 255, 0.06);
  border: 1px solid rgba(231, 246, 255, 0.25);
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.contact-method:hover {
  background: rgba(231, 246, 255, 0.12);
  transform: translateX(6px);
}
.contact-map {
  background: rgba(231, 246, 255, 0.06);
  border: 1px solid rgba(231, 246, 255, 0.25);
  border-radius: 16px;
  padding: 1.4rem;
}
.map-title {
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
  color: #fff;
}
.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: 0.3s;
}
.map-wrapper:hover {
  transform: translateY(-2px);
}
.map-iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.map-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 800;
}
.map-btn--ghost {
  background: transparent;
  border: 2px solid #fff0f0ff;
  color: #fff;
}

/* --- FOOTER --- */

.footer {
  background: #04142c;
  color: #cbd5e1;
  padding: 3rem 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer-section a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding-top: 1rem;
}

/* --- ELEMENTOS FLUTUANTES --- */

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  z-index: 990; /* Abaixo do menu mobile */
}
.whatsapp-float::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.46-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.03-.52-.08-.15-.67-1.61-.92-2.21-.24-.58-.49-.5-.67-.51-.17-.01-.37-.01-.57-.01-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.06 2.87 1.21 3.07.15.2 2.1 3.2 5.08 4.49.71.3 1.26.49 1.69.62.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2.01-1.41.25-.69.25-1.29.17-1.41-.07-.13-.27-.2-.57-.35zM12.05 24A11.94 11.94 0 0 1 .16 11.89C.16 5.33 5.5 0 12.06 0c3.18 0 6.16 1.24 8.4 3.49a11.88 11.88 0 0 1 3.5 8.39C23.96 18.95 18.62 24 12.05 24z"/></svg>')
    center/28px 28px no-repeat;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s ease-out;
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Menu Mobile Overlay e Backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 998;
}
.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
/* impedir scroll do body quando o drawer está aberto */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

/* ======================================================= */
/* MEDIA QUERIES OTIMIZADAS */
/* ======================================================= */

/* ================================================
   FIX HERO EM ZOOM (125% - 200%)
   ================================================ */

.hero-container {
  max-width: 1100px;           /* impede texto gigante de estourar */
  width: 100%;
}

.hero-content {
  max-width: 900px;            /* reduz título em telas menores / zoom */
  margin: 0 auto;
}

/* Título ajustado para evitar overflow em zoom */
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  line-height: 1.15 !important;
  word-break: break-word;
  text-wrap: balance;          /* distribui linhas melhor */
}

/* Subtítulo */
.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.3rem) !important;
  margin-bottom: 2.5rem !important;
}

/* Dá espaçamento maior ao botão em zoom */
.hero-buttons {
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
}

/* Tela grande em zoom (ex: 1900px + zoom 175%) */
@media (min-width: 1600px) {
  .hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 3vw, 2.6rem) !important;
  }

  .hero-buttons {
    margin-top: 2.2rem !important;
    margin-bottom: 2.2rem !important;
  }
}

/* 1366 × 768 com zoom */
@media (max-width: 1400px) {
  .hero-content h1 {
    font-size: clamp(2rem, 4vw, 2.4rem) !important;
  }

  .hero-buttons {
    margin-top: 1.8rem;
  }
}

/* Evita quebra geral do texto em zoom */
.hero-content h1,
.hero-content p {
  text-align: center;
}


/* Espaçamento extra no CTA do hero em telas grandes */
@media (min-width: 1600px) {
  /* um pouco mais de respiro geral no bloco */
  .hero { 
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 72px;
  }

  /* aumenta o vão entre texto/CTA/imagem */
  .hero-container { gap: 6rem; }

  /* respiro específico acima e abaixo do(s) botão(ões) */
  .hero-buttons { 
    margin-block: 2.4rem 2.6rem; /* topo | base */
  }

  /* se houver apenas um botão, garante o mesmo respiro */
  .hero .btn-primary,
  .hero .btn-secondary {
    margin-block: 0; /* evita somar margens dos botões */
  }
}

/* Espaçamento extra para o CTA do Hero em telas de ~1359px */
@media (min-width: 1280px) and (max-width: 1450px) {

  /* Dá respiro geral no topo e na base da seção */
  .hero {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 60px;
  }

  /* Aumenta o espaço entre texto, botões e imagem */
  .hero-container {
    gap: 5rem;
  }

  /* Cria o espaçamento desejado acima e abaixo do botão */
  .hero-buttons {
    margin-block: 2.2rem 2.5rem;  /* topo | base */
  }
}


/* Telas muito amplas (≥1920px): um tiquinho a mais */
@media (min-width: 1920px) {
  .hero-buttons { 
    margin-block: 2.8rem 3rem;
  }
}


/* Breakpoint para Tablet Landscape e Desktop menor */
@media (max-width: 1024px) {
  /* Hero */
  .hero-container {
    /* Esta regra já estava correta, forçando 1 coluna e centro */
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-top: var(--header-height);
  }
  .hero {
    min-height: auto;
    padding: 10rem 0 5rem;
  }

  /* Sobre (CORRIGIDO) */
  .about-fold {
    grid-template-columns: 1fr; /* Coluna única */
    gap: 3rem;
    text-align: center; /* Centraliza o .lawyer-main-name e os <p> */
  }
  .about-photo-wrapper {
    margin: 0 auto;
    height: 420px; /* Altura reduzida para mobile/tablet */
    max-width: 420px;
  }
  .about-bullets {
    /* ADICIONADO: Faz o grid ter a largura do seu conteúdo */
    display: inline-grid;
    /* ADICIONADO: Garante que o texto DENTRO dos <li> fique alinhado à esquerda */
    text-align: left;

    /* MANTIDO: Espaçamento */
    margin: 1.6rem auto 0;

    /* REMOVIDO: max-width: 400px; (Não é mais necessário) */
    /* REMOVIDO: grid-template-columns: 1fr; (Já é o padrão) */
    gap: 0.8rem;
  }

  /* CORREÇÃO: Parágrafos agora herdam o text-align: center do .about-fold */
  .givaldo-credentials p {
    /* REMOVIDO: text-align: left; */
    margin: 0 auto 1.5rem;
    max-width: 420px; /* Mantém a largura máxima para boa legibilidade */
  }

  .about-text h2 {
    margin-top: 0;
  }

  /* Contato */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Áreas e Depoimentos - Ajuste de gap */
  .areas-grid,
  .testimonials-grid {
    gap: 1.5rem;
  }
}

/* Breakpoint Principal para Menu Mobile (Tablet Portrait) */
@media (max-width: 900px) {
  /* Header */
  :root {
    --header-height: 74px;
  }

  /* CORREÇÃO: Reseta o posicionamento absoluto da <nav> no mobile */
  .header-container nav {
    position: static;
    left: auto;
    top: auto;
    height: auto;
    transform: none;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .logo-text {
    font-size: 1.05rem;
    line-height: 1.1;
  }
  .header-container {
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }

  /* Drawer de Navegação Mobile (Gaveta) */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #fff;
    border-left: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    z-index: 999;
    transform: translateY(-2%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;

    /* Reseta o alinhamento do desktop */
    align-items: stretch;
  }
  .nav-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li {
    list-style: none;
  }
  .nav-menu .nav-link {
    padding: 0.95rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    display: block;
  }
  .nav-menu .nav-link::after {
    display: none;
  }
  .nav-menu .nav-link:hover {
    background: var(--color-surface);
    color: var(--color-primary);
  }

  /* CTA dentro do Menu Mobile (.menu-cta) */
  .nav-menu .menu-cta {
    display: block;
    margin-top: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
  }

  /* fallback de respiro extra no hero em mobile (caso JS não carregue) */
  .hero {
    padding-top: calc(
      var(--header-height) + env(safe-area-inset-top, 0px) + 8px
    ) !important;
  }
}

/* Breakpoint para Celulares (Mobile) */
@media (max-width: 768px) {
  /* Gerais */
  .section {
    padding: 5rem 0;
  }
  .section-container {
    padding: 0 1rem;
  }
  .section-title {
    font-size: 2rem;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 2.2rem; /* AJUSTADO: Um pouco menor para mobile */
  }
  .hero-logo-img {
    width: 60px;
  }
  .hero-logo-text {
    font-size: 1.3rem;
  }

  /* Áreas e Depoimentos */
  .areas-grid,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /* Sobre */
  .about-photo-wrapper {
    height: 320px; /* Redução adicional na altura da foto */
    max-width: 320px;
  }

  .contact-method {
    /* Muda o grid de 2 colunas (desktop) para 1 coluna (mobile) */
    grid-template-columns: 1fr;
    /* Reduz o gap para um espaçamento vertical entre o rótulo e o valor */
    gap: 0.25rem;
    align-items: flex-start; /* Alinha o texto ao início */
  }

  /* Contato */
  .map-iframe {
    height: 300px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section {
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  }
  .footer-section:last-child {
    border-bottom: none;
  }
}

/* Breakpoint para Celulares muito estreitos */
@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
  .area-card,
  .testimonial-card {
    padding: 1.6rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 1.8rem; /* ADICIONADO: Ajuste fino para telas bem pequenas */
  }
  .hero-logo-wrapper {
    flex-direction: column; /* Empilha a logo e o texto */
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  /* Sobre */
  .lawyer-main-name {
    font-size: 2.2rem;
  }
  .about-photo-wrapper {
    border-radius: 20px; /* Borda menor em telas menores */
  }
}
