/* Fontes hospedadas no próprio site (licença OFL, ver assets/fonts) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('fonts/lora-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url('fonts/open-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --navy: #0D1B2A;
  --navy-deep: #08121D;
  --navy-mid: #162B42;
  --silver: #5C6E7E;
  --silver-light: #C9D3DC;
  --silver-border: #D8E0E8;
  --surface-white: #FFFFFF;
  --surface-light: #F4F6F8;
  --text-main: #1F2933;
  --text-muted: #4A5866;
  --wa-green: #15803D;
  --wa-green-hover: #116932;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Altura do cabeçalho fixo: evita que o início da seção fique escondido */
  scroll-padding-top: 136px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--surface-white);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow-container {
  max-width: 860px;
}

.legal-container {
  max-width: 820px;
}

.editorial-rule {
  display: block;
  width: 56px;
  height: 2px;
  background-color: var(--silver);
  margin-bottom: 14px;
}

.editorial-rule.rule-light {
  background-color: var(--silver-light);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.eyebrow-light {
  color: var(--silver-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-top: 0;
  line-height: 1.24;
}

h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 600;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(26px, 3.2vw, 35px);
  font-weight: 600;
  margin-bottom: 0;
}

h3 {
  font-size: 21px;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--silver-border);
}

.top-brand-bar {
  background-color: var(--surface-white);
  padding: 12px 0;
  border-bottom: 1px solid #E6ECF2;
}

.top-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.nav-brand-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
}

.nav-brand-mobile img {
  width: 34px;
  height: 34px;
}

.nav-brand-mobile span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.nav-brand-mobile small {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--silver-light);
  margin-top: 3px;
}

.brand-divider-v {
  width: 1px;
  height: 36px;
  background-color: var(--silver-border);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
}

.brand-name-main {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.15;
}

.brand-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.brand-rule {
  display: inline-block;
  width: 22px;
  height: 1px;
  background-color: var(--silver);
}

.brand-sub-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--silver);
}

.meta-sep {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--navy);
}

.top-contact-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.meta-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
}

.meta-link:hover {
  text-decoration: underline;
}

.meta-oab {
  font-weight: 600;
  color: var(--navy);
}

.ig-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--silver-border);
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background-color: var(--surface-light);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ig-badge-link:hover {
  background-color: #E8EEF3;
  border-color: var(--silver);
}

.main-nav-bar {
  background-color: var(--navy);
  color: var(--surface-white);
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 16px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #E2E8F0;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--surface-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--wa-green);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid var(--wa-green);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background-color: var(--wa-green-hover);
  border-color: var(--wa-green-hover);
  color: #FFFFFF;
}

.btn-whatsapp.wa-compact {
  padding: 8px 14px;
  font-size: 13px;
  gap: 7px;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary-outline:hover {
  background-color: var(--surface-light);
}

.btn-full {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #FFFFFF;
}

.mobile-drawer {
  background-color: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 24px;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-link {
  text-decoration: none;
  color: #F1F5F9;
  font-weight: 600;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.mobile-drawer-footer .btn-secondary-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Hero */
.hero-section {
  background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--silver-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 26px;
  max-width: 62ch;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 380px;
}

.hero-cta-group .btn-whatsapp,
.hero-cta-group .btn-secondary-outline {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
}

/* Índice dos assuntos, ao lado do título */
.inline-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.inline-arrow-link:hover {
  text-decoration: underline;
}

/* Sections */
.section-band {
  padding: 72px 0;
}

.band-light {
  background-color: var(--surface-light);
}

.band-white {
  background-color: var(--surface-white);
}

.band-navy {
  background-color: var(--navy);
  color: var(--surface-white);
}

.section-header {
  margin-bottom: 36px;
}

.section-header-light h2 {
  color: var(--surface-white);
}

/* Áreas de atuação: lista com linhas finas */
.work-list { border-top: 1px solid var(--silver-border); }

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 16px 56px;
  padding: 32px 0;
  border-bottom: 1px solid var(--silver-border);
}

.law-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver);
  text-transform: uppercase;
}

.work-item h3 { margin: 0; font-size: 23px; }

.work-item p {
  margin: 0 0 12px;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 16px;
}

/* Partners Section */
.partner-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: start;
}

.partner-row-reverse {
  grid-template-columns: 1fr 360px;
}

.partner-row-reverse .partner-photo-col {
  order: 2;
}

.partner-row-reverse .partner-bio-col {
  order: 1;
}

.photo-frame-offset {
  position: relative;
  padding-top: 14px;
  padding-left: 14px;
}

.photo-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  background-color: var(--navy);
  z-index: 0;
}

.partner-card {
  position: relative;
  z-index: 1;
  background-color: var(--navy-mid);
  color: var(--surface-white);
  min-height: 360px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.partner-card-mark { width: 112px; height: 112px; margin: auto; }

.partner-bio-col h3 { margin-bottom: 4px; }
.partner-role {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.partner-card-name {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 24px 0 0;
  color: var(--surface-white);
}

.partner-card-role {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-light);
}

.partner-card-oab {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(201, 211, 220, 0.25);
  font-size: 14px;
  color: var(--silver-light);
}

.partner-photo { position: relative; z-index: 1; display: block; width: 100%; height: auto; }

.photo-placeholder {
  position: relative;
  z-index: 1;
  background-color: var(--surface-light);
  border: 1px solid var(--silver-border);
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.photo-placeholder-compact {
  min-height: 170px;
  margin-top: 16px;
}

.photo-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--silver);
  background-color: var(--surface-white);
  border: 1px solid var(--silver-border);
  padding: 4px 10px;
}

.photo-placeholder strong {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy);
  margin-top: 6px;
}

.photo-placeholder span:last-child {
  font-size: 14px;
  color: var(--text-muted);
}

.prose-block p {
  margin: 0 0 16px;
  color: var(--text-main);
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.oab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.oab-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background-color: var(--surface-light);
  border: 1px solid var(--silver-border);
  padding: 5px 11px;
}

.editable-note {
  margin-top: 20px;
  padding: 16px 18px;
  background-color: var(--surface-light);
  border-left: 3px solid var(--silver);
}

.editable-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-bottom: 6px;
}

.editable-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.editorial-divider {
  border: 0;
  border-top: 1px solid var(--silver-border);
  margin: 56px 0;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 211, 220, 0.22);
  padding: 28px;
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--silver-light);
  margin-bottom: 10px;
}

.step-card h3 {
  color: var(--surface-white);
  margin-bottom: 12px;
}

.step-card p {
  margin: 0;
  color: #D8E2EC;
  font-size: 15px;
}

.band-navy-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 211, 220, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.band-navy-cta p {
  margin: 0;
  color: #E2E8F0;
  font-size: 15px;
}

/* Articles */
.articles-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

.featured-article {
  background-color: var(--surface-white);
  border: 1px solid var(--silver-border);
  padding: 32px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.article-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 4px 10px;
}

.article-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--silver);
}

.featured-article h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.featured-article p {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.article-author-line {
  padding-top: 18px;
  border-top: 1px solid var(--silver-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}

.side-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-article {
  background-color: var(--surface-white);
  border: 1px solid var(--silver-border);
  padding: 20px 22px;
}

.mini-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--silver);
}

.mini-article h4 {
  font-size: 18px;
  margin: 6px 0 8px;
}

.mini-article p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.mini-sign {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--silver-border);
}

.faq-item {
  border-bottom: 1px solid var(--silver-border);
}

.faq-q {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--navy);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

.faq-icon {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--silver);
  flex-shrink: 0;
}

.faq-panel {
  padding: 0 4px 22px;
}

.faq-panel p {
  margin: 0;
  color: var(--text-muted);
}

.inline-text-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-info-card,
.map-card {
  background-color: var(--surface-white);
  border: 1px solid var(--silver-border);
  padding: 28px;
}

.contact-block {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--silver-border);
}

.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-bottom: 6px;
}

.contact-main {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.contact-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.map-embed-wrap {
  border: 1px solid var(--silver-border);
  overflow: hidden;
  background-color: var(--surface-light);
}

.map-placeholder {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background-color: var(--surface-light);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 16px, rgba(92, 110, 126, 0.05) 16px, rgba(92, 110, 126, 0.05) 17px);
}

.map-placeholder-addr {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.map-placeholder-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.map-load-btn {
  cursor: pointer;
  background-color: var(--surface-white);
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 230px;
  border: 0;
}

/* Internal Banner & Legal Prose */
.internal-banner {
  background-color: var(--navy);
  color: var(--surface-white);
  padding: 44px 0;
}

.internal-banner h1 {
  color: var(--surface-white);
  margin: 0;
}

.breadcrumb-trail {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--silver-light);
}

.breadcrumb-trail a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--surface-white);
}

.legal-prose h2 {
  font-size: 21px;
  margin: 28px 0 10px;
}

.legal-prose p {
  margin: 0 0 14px;
  color: var(--text-main);
}

.legal-updated {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--silver-border);
}

.legal-see-also {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--silver-border);
}

/* Footer */
.site-footer {
  background-color: var(--navy-deep);
  color: #CBD5E1;
  padding: 52px 0 92px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(201, 211, 220, 0.16);
}

.footer-lockup {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.footer-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
}

.footer-subtitle {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--silver-light);
}

.footer-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: #CBD5E1;
}

.footer-col-heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--silver-light);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: #E2E8F0;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #94A3B8;
}

.footer-bottom p {
  margin: 0;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  background-color: var(--wa-green);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(8, 18, 29, 0.28);
}

/* Escondido quando já há outro botão de WhatsApp na tela (ver site.js) */
.floating-whatsapp.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* A transição só vale depois de a página abrir, para o botão não piscar */
  .floating-whatsapp.is-ready {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s, background-color 0.2s ease;
  }
  .floating-whatsapp.is-hidden { transform: translate3d(0, 12px, 0); }
  .floating-whatsapp.is-ready.is-hidden {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }
}

.floating-whatsapp:hover {
  background-color: var(--wa-green-hover);
}

@media (max-width: 960px) {
  /* No celular e tablet o cabeçalho é mais baixo */
  html {
    scroll-padding-top: 55px;
  }

  .top-brand-bar {
    display: none;
  }

  .nav-brand-mobile {
    display: inline-flex;
  }

  .top-contact-meta {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .partner-row,
  .partner-row-reverse,
  .steps-grid,
  .articles-layout,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .partner-row-reverse .partner-photo-col {
    order: 1;
  }

  .partner-card {
    min-height: 0;
    padding: 28px 24px;
  }


  .partner-row-reverse .partner-bio-col {
    order: 2;
  }
}

@media (max-width: 600px) {
  /* No celular o botão fixo do rodapé já leva ao WhatsApp */
  .nav-actions .wa-compact {
    display: none;
  }

  .nav-brand-mobile span {
    white-space: nowrap;
  }

  .brand-name-main {
    font-size: 16px;
  }

  .featured-article,
  .contact-info-card,
  .map-card {
    padding: 22px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .site-footer {
    padding-bottom: 84px;
  }
}

/* Páginas de guia e artigos */
.article-body h2 { margin-top: 32px; }
.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-main);
}
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--navy-mid); text-underline-offset: 3px; }
.article-cta {
  margin: 32px 0;
  padding: 22px;
  background: var(--surface-light);
  border: 1px solid var(--silver-border);
  border-left: 4px solid var(--navy);
}
.article-cta p { margin: 0 0 14px; }
.article-cta .btn-whatsapp { color: #fff; }
.article-sources,
.article-related { font-size: 15px; }
.article-disclaimer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--silver-border);
  font-size: 14px;
  color: var(--text-muted);
}
.mini-article h4 a,
.featured-article h3 a { color: inherit; text-decoration: none; }
.mini-article h4 a:hover,
.featured-article h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.photo-frame-offset:has(.partner-card) .photo-backdrop,
.photo-frame-offset:has(.partner-photo) .photo-backdrop { background-color: var(--silver-light); }
/* No celular e tablet a foto não ocupa a largura toda */
@media (max-width: 960px) {
  .photo-frame-offset:has(.partner-photo) { max-width: 374px; margin: 0 auto; }
}

/* Artigos: destaque em largura total e quatro cartões iguais abaixo */
.articles-layout { grid-template-columns: 1fr; gap: 20px; }
.featured-article { padding: 36px 40px; border-top: 4px solid var(--navy); }
.featured-article p { max-width: 820px; }
.side-articles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mini-article { display: flex; flex-direction: column; }
.mini-article p { flex: 1; }
.side-articles-list > .btn-link { grid-column: 1 / -1; justify-self: end; font-weight: 700; color: var(--navy); }

/* Rodapé */
.footer-top { grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: 40px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.footer-links a { display: inline-block; padding: 2px 0; }
.footer-bottom { padding-top: 24px; justify-content: center; text-align: center; }
.footer-desc { line-height: 1.7; }
@media (max-width: 600px) {
  .side-articles-list { grid-template-columns: 1fr; }
  .featured-article { padding: 24px 20px; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-col, .footer-brand-col { min-width: 0; }
}
.hero-cta-group .btn-whatsapp span { white-space: normal; text-align: center; }
@media (max-width: 600px) {
  .hero-cta-group .btn-whatsapp, .hero-cta-group .btn-secondary-outline { font-size: 14px; padding: 13px 12px; gap: 8px; }
  .hero-cta-group .btn-whatsapp span { white-space: nowrap; }
}

/* Contato: cartões de mesma altura, com ícones */
.contact-grid { align-items: stretch; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info-card, .map-card { padding: 32px; box-shadow: 0 1px 2px rgba(8,18,29,.04), 0 8px 24px rgba(8,18,29,.04); border-top: 4px solid var(--navy); display: flex; flex-direction: column; }
.contact-block { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; margin-bottom: 20px; }
.contact-block:last-of-type { border-bottom: 0; margin-bottom: 8px; padding-bottom: 0; }
.contact-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-light); color: var(--navy); border: 1px solid var(--silver-border); }
.contact-text { min-width: 0; }
.contact-main { font-size: 16px; line-height: 1.45; }
.contact-actions { flex-direction: row; gap: 12px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--silver-border); }
.contact-actions > a { flex: 1 1 0; min-width: 0; min-height: 50px; box-sizing: border-box; font-size: 14px; padding: 13px 12px; text-align: center; }
.contact-actions > a span { white-space: normal; }
.map-card .map-embed-wrap { flex: 1; display: flex; min-height: 340px; }
.map-card .map-placeholder, .map-card .map-embed-wrap iframe { flex: 1; width: 100%; min-height: 340px; height: auto; justify-content: center; }
.map-frame-head { padding-bottom: 14px; margin-bottom: 0; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: column; }
}
@media (max-width: 600px) {
  .contact-info-card, .map-card { padding: 22px 18px; }
  .map-frame-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.contact-block:nth-child(3) { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contact-actions svg { flex-shrink: 0; }
.contact-actions > a { flex-wrap: nowrap; }
.contact-sub a, .contact-main { overflow-wrap: anywhere; }
@media (max-width: 600px) { .contact-sub a { font-size: 13px; } }
.contact-actions { margin-top: auto; padding-top: 24px; }
.contact-block:nth-child(3) { margin-bottom: 24px; }
.article-body h3 { font-size: 18px; margin: 22px 0 6px; color: var(--navy); }
.article-body h2 + h3 { margin-top: 12px; }
.article-body blockquote { margin: 0 0 18px; padding: 16px 20px; background: var(--surface-light); border-left: 4px solid var(--navy); }
.article-body blockquote p { margin: 0; font-style: italic; }

/* FAQ: título ao lado das perguntas */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: 16px 56px;
  align-items: start;
}
.faq-layout .section-header { margin-bottom: 0; padding-top: 16px; }

/* Títulos com quebra de linha equilibrada */
h1, h2, h3, h4 { text-wrap: balance; }

/* Sumário das páginas longas */
.page-summary {
  margin: 0 0 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--silver-border);
}
.page-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.page-summary a {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--navy);
  text-underline-offset: 3px;
}

/* Botões e links mais fáceis de tocar */
.menu-toggle { width: 44px; height: 44px; padding: 0 11px; }
@media (max-width: 960px) {
  .work-item,
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-header { margin-bottom: 8px; padding-top: 0; }
  .nav-actions .btn-whatsapp.wa-compact { min-height: 44px; }
  .footer-links { row-gap: 0; }
  .footer-links a,
  .page-summary a { padding: 11px 0; }
  .inline-arrow-link { min-height: 44px; }
}
@media (max-width: 600px) {
  .work-item { padding: 24px 0; }
  .page-summary ul { columns: 1; }
}

/* ===== O que pode ser tocado parece botão ===== */
.tap-hint { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
.so-mouse { display: none; }
@media (hover: hover) {
  .so-toque { display: none; }
  .so-mouse { display: inline; }
}

.tap-icon,
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1;
}

.hero-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 16px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background-color: var(--surface-white);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.hero-index a:hover { background-color: var(--surface-light); }

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background-color: var(--surface-white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn-link:hover { background-color: var(--surface-light); }
.btn-link-solid,
.btn-link-solid:hover { background-color: var(--navy); color: #FFFFFF; }
.side-articles-list > .btn-link { justify-self: end; }

/* O cartão inteiro do artigo é clicável */
.mini-article,
.featured-article { position: relative; }
.mini-article h4 a::after,
.featured-article h3 a::after { content: ""; position: absolute; inset: 0; }
.mini-article .btn-link { margin-top: 14px; }
.article-author-line .btn-link { position: relative; z-index: 1; }

/* Rótulos que não são clicáveis não parecem botão */
.article-pill { background: none; padding: 0; color: var(--silver); }
.oab-pill { border: 0; }

/* Perguntas frequentes */
.faq-list { border-top: 0; display: grid; gap: 12px; }
.faq-item { border: 2px solid var(--navy); border-radius: 6px; }
.faq-trigger { min-height: 64px; padding: 14px 16px; }
.faq-panel { padding: 0 16px 18px; }

/* Sinais de + e - desenhados, para ficarem bem no centro do círculo */
.faq-icon { position: relative; font-size: 0; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-trigger[aria-expanded="true"] .faq-icon::after { display: none; }

/* Links soltos, sempre sublinhados */
.meta-link,
.footer-links a { text-decoration: underline; text-underline-offset: 4px; }
.ig-badge-link { border: 2px solid var(--navy); }

/* Menu do celular */
.mobile-link { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.mobile-link::after { content: "\2192"; }

/* Listas de artigos nas páginas internas */
.article-body ul.article-index,
.article-body ul.article-related { list-style: none; padding: 0; display: grid; gap: 12px; }
.article-body ul.article-index li,
.article-body ul.article-related li {
  position: relative;
  margin: 0;
  padding: 16px;
  border: 2px solid var(--navy);
  border-radius: 6px;
}
.article-body ul.article-index a,
.article-body ul.article-related a { text-decoration: none; font-weight: 700; }
.article-body ul.article-index a::after,
.article-body ul.article-related a::after { content: ""; position: absolute; inset: 0; }
.article-body ul.article-index li::after,
.article-body ul.article-related li::after {
  content: "Ler \2192";
  display: table;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 6px;
  background-color: var(--navy);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .btn-link { width: 100%; }
  .side-articles-list > .btn-link { justify-self: stretch; }
}

/* Contato: dois botões iguais, com ícone junto do texto em uma só linha */
.contact-actions { flex-direction: row; flex-wrap: wrap; }
.contact-actions > a {
  flex: 1 1 210px;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border-width: 2px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.3;
}
.contact-actions > a span { white-space: nowrap; }
@media (max-width: 960px) {
  .contact-actions { flex-direction: column; }
  .contact-actions > a { flex: 0 0 auto; width: 100%; }
}

/* Em telas largas o botão flutuante fica no canto, longe do texto do rodapé */
@media (min-width: 1280px) {
  .site-footer { padding-bottom: 32px; }
}

/* Contorno da pergunta selecionada por dentro da caixa */
.faq-trigger:focus-visible { outline-offset: -6px; border-radius: 4px; }
/* Respostas com mais de um parágrafo */
.faq-panel p + p { margin-top: 12px; }

/* ===== Animações =====
   Usam só transparência e deslocamento (leves no celular) e ficam
   desligadas para quem pede "menos movimento" no aparelho. */
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(8, 18, 29, 0.16); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow 0.25s ease; }

  /* Abertura da página inicial. Título e texto principal só deslizam,
     sem ficar invisíveis, para aparecerem sem demora. */
  .hero-copy > h1,
  .hero-copy > .hero-lead { animation: hero-subir 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-copy > .editorial-rule,
  .hero-copy > .eyebrow { animation: hero-surgir 0.6s ease both; }
  .hero-copy > .hero-cta-group { animation: hero-surgir 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
  .hero-index { animation: hero-surgir 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

  /* Blocos que surgem na rolagem (classes colocadas pelo site.js) */
  .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.65s ease var(--reveal-delay, 0ms),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
  }
  .reveal-left { transform: translate3d(-40px, 0, 0); }
  .reveal-right { transform: translate3d(40px, 0, 0); }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Traço acima dos títulos se desenha junto */
  .section-header.reveal .editorial-rule {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  }
  .section-header.reveal.is-visible .editorial-rule { transform: none; }

  /* Abertura do menu no celular */
  .mobile-drawer:not([hidden]) { animation: menu-descer 0.25s ease both; }

  /* Botões e links */
  .btn-whatsapp,
  .btn-secondary-outline {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
      transform 0.2s ease, box-shadow 0.2s ease;
  }
  .btn-whatsapp:active,
  .btn-secondary-outline:active { transform: scale(0.98); }
  .inline-arrow-link span { display: inline-block; transition: transform 0.2s ease; }
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background-color: var(--silver-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-links a:hover::after,
  .nav-links a:focus-visible::after { transform: scaleX(1); }

  #atuacao .work-item:not(.reveal),
  #atendimento .step-card:not(.reveal),
  #conteudos .featured-article:not(.reveal),
  #conteudos .mini-article:not(.reveal) {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  }
}

/* Efeitos do mouse: só em aparelhos que têm mouse */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  #conteudos .featured-article:not(.reveal):hover,
  #conteudos .mini-article:not(.reveal):hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 16px 34px rgba(8, 18, 29, 0.12);
    border-color: var(--silver-light);
  }
  #atendimento .step-card:not(.reveal):hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    border-color: rgba(201, 211, 220, 0.5);
  }
  .btn-whatsapp:hover:not(:active),
  .btn-secondary-outline:hover:not(:active) { transform: translate3d(0, -2px, 0); }
  .btn-whatsapp:hover { box-shadow: 0 8px 20px rgba(21, 128, 61, 0.28); }
  .inline-arrow-link:hover span { transform: translate3d(4px, 0, 0); }
}

/* No celular e tablet, tudo entra de baixo para cima */
@media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
  .reveal-left,
  .reveal-right { transform: translate3d(0, 28px, 0); }
}

/* Evita rolagem para os lados enquanto os sócios entram */
#socios { overflow-x: clip; }

@keyframes hero-surgir {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-subir {
  from { transform: translate3d(0, 18px, 0); }
  to { transform: none; }
}
@keyframes menu-descer {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to { opacity: 1; transform: none; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
