/* ============================================================
   M VIANA SOCIEDADE DE ADVOGADOS
   styles.css
   Tipografia: Montserrat (títulos) + Inter (corpo)
   Índice:
   00. Variáveis e reset
   01. Tipografia e base
   02. Utilitários
   03. Header e navegação
   04. Menu mobile
   05. Hero
   06. Autoridade / números
   07. Sobre o escritório
   08. Linha do tempo
   09. Atuação (processo conectado)
   10. Serviços
   11. Áreas (lista editorial)
   12. Cases (compactos)
   13. Diferenciais (minimalista)
   14. Setores
   15. Equipe
   16. Conteúdos / Insights
   17. Presença
   18. CTA final
   19. Contato
   20. Footer
   21. Voltar ao topo
   22. Responsivo
   23. Acessibilidade / motion
   ============================================================ */

/* ============== 00. VARIÁVEIS E RESET ====================== */
:root {
  --navy-900: #08111d;
  --navy-800: #0d1b2a;
  --navy-700: #122438;
  --navy-600: #1b3550;

  --gold:      #c19a4b;
  --gold-soft: #d8bd82;
  --gold-deep: #a9853a;

  --paper:   #f7f5f0;
  --paper-2: #eee9df;
  --white:   #ffffff;

  --text:        #36424e;
  --text-strong: #16212e;
  --muted:       #67737f;
  --on-dark:     #e7ecf2;
  --on-dark-mut: #9caebf;

  --line:      #e4e0d6;
  --line-dark: rgba(255, 255, 255, 0.1);

  /* Montserrat assume o papel de "display"; Inter para corpo */
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 8px;
  --shadow-sm: 0 2px 10px rgba(8, 17, 29, 0.05);
  --shadow-md: 0 18px 40px -22px rgba(8, 17, 29, 0.3);
  --shadow-lg: 0 30px 60px -28px rgba(8, 17, 29, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ============== 01. TIPOGRAFIA E BASE ====================== */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1rem; }
::selection { background: var(--gold); color: var(--navy-900); }

/* ============== 02. UTILITÁRIOS =========================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: clamp(76px, 9vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-title.light { color: var(--white); }

.section-intro { font-size: 1.02rem; color: var(--muted); max-width: 600px; }
.section-intro.light { color: var(--on-dark-mut); }

.lead { font-size: 1.1rem; color: var(--text); line-height: 1.75; }

/* Botões */
.btn {
  --pad-y: 14px;
  --pad-x: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-gold:hover {
  background: var(--gold-soft); border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(193, 154, 75, 0.6);
}
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.32); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-outline-dark { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: var(--white);
  padding: 12px 20px; z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============== 03. HEADER E NAVEGAÇÃO ==================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled {
  height: 64px;
  background: rgba(10, 18, 29, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px -18px rgba(0,0,0,0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { height: 62px; width: auto; display: block; transition: height 0.4s var(--ease); }
.site-header.scrolled .brand-logo { height: 50px; }
.brand-mark {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--navy-900); background: var(--gold);
  width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 3px;
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: 1.12rem; font-weight: 600; color: var(--white); letter-spacing: 0.01em; }
.brand-sub { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-mut); }

.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-size: 0.82rem; font-weight: 500;
  color: var(--on-dark); padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold-soft); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta { --pad-y: 10px; --pad-x: 20px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--white); margin: 0 auto; transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== 04. MENU MOBILE =========================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { text-align: center; width: 100%; padding: 0 28px; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 34px; }
.mobile-link {
  font-family: var(--display); font-size: 1.45rem; font-weight: 500;
  color: var(--on-dark); display: inline-block; padding: 9px 0;
  transition: color 0.3s var(--ease);
}
.mobile-link:hover { color: var(--gold-soft); }
.mobile-cta { --pad-x: 40px; }

/* ============== 05. HERO ================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden; color: var(--white);
  padding: var(--header-h) 0 90px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(8,17,29,0.97) 30%, rgba(13,27,42,0.78) 68%, rgba(18,53,80,0.5) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1900&q=80");
  background-color: var(--navy-900);
  background-size: cover; background-position: center;
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(100deg, transparent, #000 55%);
  -webkit-mask-image: linear-gradient(100deg, transparent, #000 55%);
}

/* coluna estreita, ancorada à esquerda */
.hero-content { position: relative; max-width: 660px; }
.hero-eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.95rem, 4.2vw, 3.1rem);
  color: var(--white); line-height: 1.15; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--gold-soft); font-weight: 600; }
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--on-dark);
  max-width: 520px; margin-bottom: 36px; font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-coords {
  position: absolute; left: 0; right: 0; bottom: 30px;
  display: flex; gap: 30px;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mut);
}
.hero-coords span { position: relative; padding-left: 16px; }
.hero-coords span::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

/* ============== 06. AUTORIDADE / NÚMEROS ================== */
.authority { background: var(--navy-800); color: var(--white); padding: 0; }
.authority-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.authority-card { padding: 48px 32px; border-left: 1px solid var(--line-dark); }
.authority-card:first-child { border-left: none; }
.authority-number {
  display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 700;
  color: var(--gold-soft); line-height: 1; letter-spacing: -0.02em;
}
.authority-number.authority-text { font-size: 2rem; }
.authority-card p { font-size: 0.92rem; color: var(--on-dark-mut); margin: 16px 0 0; }

/* ============== 07. SOBRE O ESCRITÓRIO =================== */
.about { background: var(--paper); }
.about-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 64px; align-items: start; }
.about-main p { color: var(--muted); }
.about-side {
  background: var(--navy-800); color: var(--white);
  padding: 42px 36px; border-radius: 16px;
  position: relative; overflow: hidden;
}
.about-side::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 110px; height: 110px;
  background: linear-gradient(135deg, transparent 50%, rgba(193,154,75,0.16) 50%);
}
.about-side-title { font-size: 1.25rem; color: var(--gold-soft); margin-bottom: 22px; }
.about-side-list li {
  padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line-dark);
  position: relative; color: var(--on-dark); font-weight: 500; font-size: 0.96rem;
}
.about-side-list li:last-child { border-bottom: none; }
.about-side-list li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg);
}

/* ============== 08. LINHA DO TEMPO ======================= */
.timeline-section { background: var(--white); }
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before {
  content: ""; position: absolute; left: 132px; top: 12px; bottom: 12px;
  width: 1px; background: var(--line);
}
.timeline-item { display: grid; grid-template-columns: 132px 1fr; gap: 40px; padding: 22px 0; position: relative; }
.timeline-year { font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--gold-deep); text-align: right; padding-right: 8px; }
.timeline-body { position: relative; padding-left: 30px; }
.timeline-body::before {
  content: ""; position: absolute; left: -10px; top: 5px;
  width: 12px; height: 12px; background: var(--white); border: 2px solid var(--gold); border-radius: 50%;
}
.timeline-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline-body p { color: var(--muted); margin: 0; }

/* ============== 09. ATUAÇÃO (PROCESSO CONECTADO) ========= */
.endtoend { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.endtoend::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
}
.endtoend .container { position: relative; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-step {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark); border-radius: 18px;
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.process-step::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  background: linear-gradient(135deg, rgba(193, 154, 75, 0.12), transparent 46%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.process-step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(193, 154, 75, 0.4);
}
.process-step:hover::after { opacity: 1; }
.process-num {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(193, 154, 75, 0.5);
  font-family: var(--display); font-size: 0.95rem; font-weight: 700; color: var(--gold);
  margin-bottom: 18px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.process-step:hover .process-num { background: var(--gold); color: var(--navy-900); border-color: var(--gold); transform: scale(1.05); }
.process-step h3 { position: relative; z-index: 1; color: var(--white); font-size: 1.12rem; margin: 0 0 8px; }
.process-step p { position: relative; z-index: 1; color: var(--on-dark-mut); margin: 0; font-size: 0.9rem; line-height: 1.55; }

/* ============== 10. SERVIÇOS ============================= */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon { display: block; width: 40px; height: 40px; color: var(--gold-deep); margin-bottom: 18px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; line-height: 1.3; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ============== 11. CASES DE SUCESSO ==================== */
.cases { background: var(--navy-800); color: var(--white); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--navy-700); border: 1px solid var(--line-dark); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 46px -28px rgba(0, 0, 0, 0.65);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.case-card:hover { transform: translateY(-8px); box-shadow: 0 38px 68px -30px rgba(0, 0, 0, 0.75); }
.case-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 17, 29, 0.5), transparent 55%); }
.case-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.case-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; }
.case-card h3 { font-size: 1.12rem; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.case-desc { color: var(--on-dark-mut); margin: 0 0 18px; font-size: 0.9rem; flex-grow: 1; }
.case-result {
  font-size: 0.8rem; font-weight: 600; color: var(--gold-soft);
  padding-top: 14px; border-top: 1px solid var(--line-dark);
  display: inline-flex; align-items: center; gap: 9px;
}
.case-result::before { content: ""; width: 14px; height: 1px; background: var(--gold); }

/* ============== 13. DIFERENCIAIS (MINIMALISTA) ========== */
.diff { background: var(--paper); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.diff-item {
  padding: 32px 32px 32px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
/* divisórias verticais entre colunas */
.diff-item:not(:nth-child(3n)) { border-right: 1px solid var(--line); padding-right: 32px; }
.diff-item:nth-child(n+4) { } /* segunda linha herda border-top */
.diff-mark {
  display: inline-block; width: 22px; height: 22px; margin-bottom: 16px;
  border: 1px solid var(--gold); position: relative; transform: rotate(45deg);
}
.diff-mark::after {
  content: ""; position: absolute; inset: 5px; background: var(--gold); opacity: 0.85;
}
.diff-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.diff-item p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* ============== 14. EQUIPE ============================== */
.team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 780px; margin: 0 auto; }
.team-card {
  font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 16px 40px -26px rgba(8, 17, 29, 0.45);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 34px 64px -30px rgba(8, 17, 29, 0.55); border-color: transparent; }
.team-photo {
  aspect-ratio: 4 / 4.3; background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.team-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 2; }
.team-photo span { position: relative; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-mut); }
.team-info { padding: 24px 26px 26px; }
.team-info h3 { font-size: 1.25rem; margin: 0 0 7px; }
.team-role { color: var(--gold-deep); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em; margin: 0; }
.team-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-deep);
  transition: gap 0.3s var(--ease);
}
.team-more::after { content: "\2192"; }
.team-card:hover .team-more { gap: 12px; }

/* ---- Popup de perfil (modal) ---- */
.modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(8, 17, 29, 0.72); backdrop-filter: blur(3px); animation: modalFade 0.3s var(--ease); }
.modal-panel {
  position: relative; z-index: 2;
  width: calc(100% - 40px); max-width: 700px; max-height: 88vh; overflow-y: auto;
  margin: 6vh auto 0; background: var(--white); border-radius: 16px;
  padding: 44px; box-shadow: var(--shadow-lg); animation: modalIn 0.35s var(--ease);
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border: 1px solid var(--line); background: var(--white); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text-strong);
  transition: all 0.3s var(--ease);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.modal-head { display: flex; gap: 24px; align-items: center; margin-bottom: 26px; padding-right: 44px; }
.modal-photo {
  width: 92px; height: 108px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden;
  position: relative; background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
}
.modal-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.modal-photo span { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-mut); }
.modal-head-text h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-role { color: var(--gold-deep); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.03em; margin: 0; }
.modal-photo { border-radius: 12px; }
.modal-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1rem; line-height: 1.75; }
.modal-body p:last-child { margin-bottom: 0; }

/* ============== 16. CONTEÚDOS / INSIGHTS ================ */
.insights { background: var(--paper); }
.insights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.insight-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; display: flex; flex-direction: column; min-height: 210px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.insight-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.insight-cat { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; }
.insight-card h3 { font-size: 1.05rem; margin-bottom: 12px; line-height: 1.35; flex-grow: 1; }
.insight-link {
  font-size: 0.8rem; font-weight: 600; color: var(--navy-800);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.insight-link::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.insight-link:hover { color: var(--gold-deep); gap: 12px; }
.insight-card:hover .insight-link { gap: 12px; color: var(--gold-deep); }

/* ============== 17. PRESENÇA ============================ */
.presence { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.presence::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(27,53,80,0.65), transparent 55%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, 70px 70px, 70px 70px;
}
.presence .container { position: relative; }
.presence-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.presence-card { padding: 6px 28px 6px 26px; border-left: 1px solid var(--line-dark); }
.presence-card:first-child { border-left: none; padding-left: 0; }
.presence-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-mut); margin-bottom: 14px;
}
.presence-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-mut); }
.presence-tag--fisica { color: var(--gold-soft); }
.presence-tag--fisica::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(193, 154, 75, 0.16); }
.presence-card h3 { color: var(--gold-soft); font-size: 1.25rem; margin-bottom: 4px; }
.presence-card p { color: var(--on-dark-mut); margin: 0; font-size: 0.88rem; }
.presence-number { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 700; color: var(--gold-soft); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.presence-card--reach h3 { color: var(--white); font-size: 1rem; font-weight: 500; }

/* ============== 18. CTA FINAL =========================== */
.cta-final { position: relative; color: var(--white); padding: clamp(76px, 9vw, 130px) 0; text-align: center; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(8,17,29,0.93), rgba(8,17,29,0.93)),
    url("https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=1900&q=80");
  background-color: var(--navy-900); background-size: cover; background-position: center;
}
.cta-content { max-width: 740px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--white); margin-bottom: 18px; }
.cta-content p { font-size: 1.05rem; color: var(--on-dark); margin-bottom: 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============== 19. CONTATO ============================= */
.contact { background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-lead { color: var(--muted); margin-bottom: 28px; max-width: 440px; }
.contact-list { margin-bottom: 26px; }
.contact-list li {
  display: grid; grid-template-columns: 100px 1fr; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.contact-key { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.contact-val { color: var(--text-strong); font-weight: 500; }
.contact-val a { transition: color 0.3s var(--ease); }
.contact-val a:hover { color: var(--gold-deep); }
.contact-social { display: flex; gap: 12px; margin-bottom: 32px; }
.social-link {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-800); border: 1px solid var(--line); padding: 10px 20px; border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.social-link:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

.contact-map { height: 240px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 42px 38px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-strong); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  font-family: var(--sans); font-size: 0.96rem; color: var(--text-strong);
  padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  width: 100%; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(193,154,75,0.15);
}
.form-field.invalid input, .form-field.invalid textarea { border-color: #c0463f; box-shadow: 0 0 0 3px rgba(192,70,63,0.12); }
.form-error { font-size: 0.76rem; color: #c0463f; margin-top: 6px; min-height: 1em; }
.form-submit { width: 100%; margin-top: 6px; }
.form-feedback { margin: 16px 0 0; font-size: 0.9rem; font-weight: 500; text-align: center; min-height: 1.2em; }
.form-feedback.success { color: var(--gold-deep); }
.form-feedback.error { color: #c0463f; }

/* ============== 20. FOOTER ============================== */
.site-footer { background: var(--navy-900); color: var(--on-dark-mut); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 44px; padding: 72px 28px 52px; }
.footer-name { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--white); display: block; margin-bottom: 14px; }
.footer-name em { font-style: normal; font-weight: 400; color: var(--gold-soft); font-size: 0.92rem; display: block; letter-spacing: 0.02em; }
.footer-logo { height: 72px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; font-size: 0.92rem; }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact p { font-size: 0.92rem; margin-bottom: 9px; line-height: 1.6; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; flex-wrap: wrap; }
.footer-bottom-inner p { margin: 0; font-size: 0.84rem; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 0.84rem; transition: color 0.3s var(--ease); }
.footer-legal a:hover { color: var(--gold-soft); }

/* ============== 21. VOLTAR AO TOPO ===================== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px;
  background: var(--gold); color: var(--navy-900); border: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all 0.4s var(--ease); z-index: 900; box-shadow: var(--shadow-md);
}
.back-to-top svg { width: 19px; height: 19px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold-soft); transform: translateY(-3px); }

/* ============== 22. RESPONSIVO ========================= */
@media (max-width: 1024px) {
  .nav-list, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .authority-grid { grid-template-columns: repeat(2, 1fr); }
  .authority-card:nth-child(odd) { border-left: none; }
  .authority-card:nth-child(even) { border-left: 1px solid var(--line-dark); }
  .authority-card:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-item:nth-child(3n) { border-right: 1px solid var(--line); padding-right: 32px; }
  .diff-item:nth-child(2n) { border-right: none; padding-right: 0; }

  .team-grid, .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .presence-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .presence-card:nth-child(odd) { border-left: none; padding-left: 0; }
  .presence-card:nth-child(even) { border-left: 1px solid var(--line-dark); padding-left: 26px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }

  .services-grid, .cases-grid, .team-grid, .insights-grid,
  .authority-grid, .diff-grid, .process, .presence-grid { grid-template-columns: 1fr; }

  .authority-card { border-left: none !important; border-top: 1px solid var(--line-dark); }
  .authority-card:first-child { border-top: none; }

  .process-step { padding: 26px 24px; }

  .hero-actions, .cta-actions { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }

  .diff-item { padding: 26px 0; border-right: none !important; }

  .presence-card { border-left: none !important; padding-left: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); }
  .presence-card:last-child { border-bottom: none; }

  .hero { min-height: auto; padding-top: 116px; padding-bottom: 110px; }
  .hero-coords { flex-wrap: wrap; gap: 12px 22px; }

  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline-year { text-align: left; padding-right: 0; }
  .timeline-body { padding-left: 0; }
  .timeline-body::before { left: -30px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-wrap { padding: 30px 22px; }
  .modal-panel { padding: 30px 22px; margin-top: 4vh; }
  .modal-head { gap: 18px; padding-right: 42px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 52px 20px 36px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .mobile-link { font-size: 1.3rem; }
}

/* ============== 23. ACESSIBILIDADE / MOTION ============= */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============== 24. ARTIGO / BLOG ====================== */
/* Header sempre sólido nas páginas internas (fundo claro) */
.site-header.solid { height: 64px; background: rgba(10, 18, 29, 0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.site-header.solid .brand-logo { height: 50px; }

.article-hero { position: relative; background: var(--navy-900); color: var(--white); padding: calc(64px + 72px) 0 62px; overflow: hidden; }
.article-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.article-hero .container { position: relative; max-width: 820px; }
.article-breadcrumb { font-size: 0.8rem; color: var(--on-dark-mut); margin-bottom: 22px; }
.article-breadcrumb a { color: var(--gold-soft); transition: color 0.3s var(--ease); }
.article-breadcrumb a:hover { color: var(--white); }
.article-cat { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-900); background: var(--gold-soft); padding: 6px 14px; border-radius: 40px; margin-bottom: 20px; }
.article-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--white); line-height: 1.16; margin-bottom: 22px; letter-spacing: -0.02em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.85rem; color: var(--on-dark-mut); }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

.article { background: var(--white); }
.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 82px) 28px; }
.article-lead { font-size: 1.2rem; line-height: 1.7; color: var(--text-strong); margin-bottom: 30px; font-weight: 500; }
.article-body p { color: var(--text); font-size: 1.04rem; line-height: 1.8; margin-bottom: 1.3rem; }
.article-body h2 { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.72rem); margin: 46px 0 16px; color: var(--text-strong); letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.16rem; margin: 30px 0 12px; color: var(--text-strong); }
.article-body ul { margin: 0 0 1.3rem; padding: 0; display: grid; gap: 12px; }
.article-body ul li { position: relative; padding-left: 26px; color: var(--text); line-height: 1.7; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.article-body strong { color: var(--text-strong); font-weight: 600; }
.article-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }

.article-callout { background: var(--paper); border-left: 3px solid var(--gold); border-radius: 12px; padding: 22px 26px; margin: 30px 0; }
.article-callout p { margin: 0; color: var(--text); font-size: 1rem; }

.article-legal { margin-top: 46px; padding: 28px 30px; background: var(--navy-900); color: var(--on-dark); border-radius: 16px; }
.article-legal h2 { color: var(--white); font-family: var(--display); font-size: 1.18rem; margin: 0 0 16px; }
.article-legal ul { display: grid; gap: 10px; padding: 0; }
.article-legal li { font-size: 0.92rem; color: var(--on-dark-mut); padding-left: 20px; position: relative; list-style: none; }
.article-legal li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

.article-disclaimer { font-size: 0.84rem; color: var(--muted); font-style: italic; margin-top: 22px; }

.article-cta { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: var(--white); border-radius: 18px; padding: clamp(30px, 5vw, 44px); text-align: center; margin-top: 48px; }
.article-cta h2 { color: var(--white); font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 12px; }
.article-cta p { color: var(--on-dark-mut); margin-bottom: 24px; }

.article-more { border-top: 1px solid var(--line); background: var(--paper); }
.article-more h2 { font-size: 1.3rem; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); display: block; }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.related-card span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.related-card h3 { font-size: 1.05rem; margin: 12px 0 0; line-height: 1.35; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
