@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #142B3B;              /* Azure escuro oficial */
  --navy-card: #1C3647;         /* Card das seções escuras */
  --gold: #E4BD8C;              /* Laranja pastel oficial */
  --gold-hover: #D8AD78;
  --bg-light: #EFEFEF;          /* Cinza-claro oficial */
  --white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --max: 1180px;                /* Diretriz técnica */
}

* { box-sizing: border-box; }

/* TRAVA DE SEGURANÇA CONTRA ROLAGEM LATERAL E FAIXA BRANCA */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
}

/* GARANTE QUE IMAGENS NUNCA VAZEM O CONTAINER */
img, svg {
  max-width: 100%;
  height: auto;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
a { text-decoration: none; color: inherit; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; }

.site-logo {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav { display: flex; gap: 24px; }
.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a.active::after, .main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.btn-header-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-header-cta svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #FFF; display: block; margin: 4px 0; transition: all 0.3s ease; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg.icon { width: 17px; height: 17px; fill: currentColor; }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }

.btn-outline-hero { background: transparent; color: #FFF; border-color: rgba(255,255,255,0.3); }
.btn-outline-hero:hover { background: rgba(255,255,255,0.08); }

.btn-outline-grey, .btn-outline-dark { 
  background: #FFFFFF; 
  color: var(--navy); 
  border: 1px solid #334155; 
}
.btn-outline-grey:hover, .btn-outline-dark:hover { background: #F1F5F9; }

/* ---------- HERO ---------- */
.hero { 
  background: var(--navy); 
  color: #FFF; 
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.hero-container { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  align-items: center; 
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy { padding: 64px 40px 64px 80px; }

.hero h1 { 
  font-size: 42px; 
  line-height: 1.15; 
  font-weight: 700; 
  margin: 0 0 16px; 
  color: #FFF; 
}
.highlight-gold { color: var(--gold); }

.hero-lede { 
  font-size: 16px; 
  color: rgba(255,255,255,0.85); 
  margin-bottom: 24px; 
  max-width: 52ch; 
}

.hero-location { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 13.5px; 
  color: rgba(255,255,255,0.7); 
  margin-bottom: 32px; 
}

.hero-location svg.loc-icon { 
  width: 18px !important; 
  height: 18px !important; 
  fill: var(--gold); 
  flex-shrink: 0; 
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media, .sobre-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fade-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: right center;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 20%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 20%, black 45%);
}

/* ---------- SEÇÕES GERAIS ---------- */
.section { padding: 72px 0; }
.section-light { background: var(--bg-light); color: var(--text-dark); }
.section-dark { background: var(--navy); color: #FFF; }
.section-full { padding: 0; width: 100%; overflow: hidden; }

.title-with-line { text-align: center; margin-bottom: 44px; position: relative; }
.title-with-line h2 { font-size: 28px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.title-with-line p { font-size: 15px; color: var(--text-muted); margin: 0; }
.title-with-line::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}
.title-dark h2 { color: #FFF; }

/* Áreas de Atuação */
.areas-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card-white {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
.icon-circle {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 20px; height: 20px; fill: currentColor; }
.card-head h3 { font-size: 19px; font-weight: 700; color: var(--navy); }

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-dark); }
.check-dot {
  width: 18px; height: 18px;
  background: rgba(228, 189, 140, 0.2);
  color: #B8833B;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* ---------- SOBRE O ADVOGADO ---------- */
.sobre-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.sobre-content-left { padding: 64px 40px 64px 80px; }
.section-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold); display: block; margin-bottom: 8px; }
.sobre-content-left h2 { font-size: 32px; color: #FFF; margin-bottom: 16px; font-weight: 700; }
.sobre-content-left p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 32px; max-width: 54ch; }

.pillars-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar-box {
  background: var(--navy-card);
  border: 1px solid var(--border-dark);
  padding: 18px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: #FFF;
  font-size: 12.5px;
  font-weight: 600;
}
.pillar-box svg { width: 22px; height: 22px; stroke: var(--gold); color: var(--gold); flex-shrink: 0; }

.sobre-img-stretch {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  border: none !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 20%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 20%, black 45%);
}

/* Para Quem É */
.para-quem-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pq-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: start;
}
.pq-icon-box {
  width: 44px; height: 44px;
  background: rgba(228, 189, 140, 0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pq-icon-box svg { width: 22px; height: 22px; fill: #B8833B; }
.pq-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--navy); }
.pq-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* FAQ Accordion Escuro */
.faq-accordion-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-accordion-item, .faq-item {
  background: var(--navy-card);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 16px 20px;
  cursor: pointer;
}
.faq-accordion-item summary, .faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  color: #FFF;
}
.faq-accordion-item summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.faq-summary-left { display: flex; align-items: center; gap: 12px; }
.faq-lead-icon { font-size: 16px; }
.faq-plus-symbol, .faq-plus { color: var(--gold); font-size: 18px; font-weight: 400; }
.faq-body-content { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-dark); color: rgba(255,255,255,0.8); font-size: 14px; }

/* ---------- BLOCO DE CONTATO ALINHADO E CENTRALIZADO ---------- */
.contato-aligned-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

/* Título com linhas laterais equilibradas */
.title-with-side-lines-aligned, 
.title-with-side-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  width: 100%;
}

.title-with-side-lines-aligned h2, 
.title-with-side-lines h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.title-with-side-lines-aligned .side-line, 
.title-with-side-lines .side-line {
  flex: 1;
  height: 2px;
  background-color: var(--gold);
}

/* Grid com colunas idênticas para centralizar a divisória */
.contato-ref-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.contato-left-col p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 100%;
}

.contato-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Divisória Vertical Centralizada */
.contato-divider {
  width: 1px;
  height: 120px;
  background-color: #CBD5E1;
  justify-self: center;
}

.contato-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.contato-item.clickable {
  cursor: pointer;
  text-decoration: none;
}

.contato-item.clickable:hover {
  background-color: rgba(228, 189, 140, 0.15);
  transform: translateY(-2px);
}

.contato-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #FFFFFF;
}

.contato-icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: #B8833B;
}

.contato-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 2px;
}

.contato-value {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- REGRA DO RODAPÉ (LOGOTIPO FORÇADO) ---------- */
.site-footer { 
  background-color: var(--navy) !important; 
  color: rgba(255, 255, 255, 0.75) !important; 
  padding: 24px 0 !important; 
  font-size: 13px !important; 
  border-top: 1px solid var(--border-dark) !important;
}

.footer-flex { 
  display: flex !important; 
  justify-content: space-between !important; 
  align-items: center !important; 
  flex-wrap: wrap !important; 
  gap: 20px !important; 
}

.footer-logo { 
  display: flex !important; 
  align-items: center !important; 
  min-width: 150px;
  min-height: 48px;
}

/* Força a renderização da imagem sem filtros que a escondam */
.footer-logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain !important;
}

.footer-copy-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
}

.footer-socials { 
  display: flex !important; 
  align-items: center !important;
  gap: 20px !important; 
}

.footer-socials a,
.footer-email-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-size: 12.5px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-family: inherit !important;
}

.footer-socials svg {
  width: 16px !important;
  height: 16px !important;
  fill: var(--gold) !important;
  flex-shrink: 0 !important;
}

/* ==========================================
   REGRAS RESPONSIVAS PARA CELULAR (MOBILE)
   ========================================== */
@media (max-width: 768px) {
  
  /* 1. HEADER & MENU MOBILE */
  .header-inner {
    height: 70px;
  }
  
  .site-logo {
    height: 40px;
  }

  .btn-header-cta {
    display: none !important; /* Esconde o botão grande no topo do mobile */
  }

  .nav-toggle {
    display: block !important; /* Mostra o botão hambúrguer ☰ */
    z-index: 101;
  }

  .main-nav {
    display: none; /* Esconde o menu por padrão no celular */
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  /* Abre o menu quando clica no hambúrguer */
  .site-header.nav-open .main-nav {
    display: flex !important;
  }

  /* 2. BANNER PRINCIPAL (HERO) E SEÇÕES */
  .hero-container,
  .sobre-container {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .hero-copy,
  .sobre-content-left {
    padding: 40px 24px 32px 24px !important;
    text-align: left;
    width: 100%;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-media,
  .sobre-media {
    width: 100% !important;
    justify-content: center !important;
  }

  .fade-img,
  .sobre-img-stretch {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 380px;
    object-fit: cover;
    object-position: center;
  }

  .fade-img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 15%, black 40%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 15%, black 40%);
  }

  /* 3. GRIDS EM 1 COLUNA */
  .wrap {
    padding: 0 20px;
  }

  .areas-two-col,
  .para-quem-two-col,
  .contato-ref-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .pillars-row {
    grid-template-columns: 1fr 1fr !important;
  }

  .contato-divider {
    display: none !important;
  }

  .contato-right-grid {
    grid-template-columns: 1fr !important;
  }

  .title-with-side-lines-aligned {
    gap: 12px;
  }

  .title-with-side-lines-aligned h2 {
    font-size: 22px;
    white-space: normal;
  }

  /* 4. RODAPÉ (FOOTER) AJUSTADO NO CELULAR */
  .footer-flex {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }

  .footer-logo {
    justify-content: center !important;
  }

  .footer-copy-text {
    text-align: center !important;
  }

  .footer-socials {
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }
}