/* =====================================================
   [NOME DO ESCRITÓRIO] — Site institucional
   Paleta sóbria: navy + azul + cinza + branco
   Fonte: Inter (Google Fonts), fallback system
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #8B1A1A;
  --color-primary-dark: #5E0F0F;
  --color-accent: #A52828;
  --color-black: #4A4A4A;
  --color-text: #3A3A3A;
  --color-text-muted: #5A5C63;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F4F4;
  --color-border: #E5DBDB;
  --color-success: #38A169;
  --color-whatsapp: #25D366;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --container: 1140px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(139,26,26,.08);
  --shadow-lg: 0 12px 32px rgba(139,26,26,.14);

  --transition: 180ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Offset para âncoras (compensa header sticky de 72px) */
section[id] { scroll-margin-top: 72px; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography ===================================== */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-black);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.875rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.125rem; color: var(--color-text); }
.muted { color: var(--color-text-muted); }
.small { font-size: 0.875rem; }

/* Header / Nav =================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center;
}
.brand-logo {
  height: 132px;
  width: auto;
  display: block;
}
.brand:hover { opacity: 0.85; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 0;
  position: relative;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--color-primary);
}
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: var(--radius);
  transition: background var(--transition);
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-primary-dark); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 4px;
}
.menu-toggle span {
  display: block; height: 2px; width: 24px; margin: 0 auto;
  background: var(--color-black);
  transition: transform var(--transition);
}

/* Hero =========================================== */
.hero {
  background: var(--color-black);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
/* Hero da página O Escritório — overlay compacto abaixo do vídeo */
.hero-escritorio { padding: 32px 0 36px; }
.hero-escritorio h1 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); margin-bottom: 0.75rem; }
.hero-escritorio p { font-size: 1rem; margin-bottom: 1.25rem; }
.hero-escritorio .eyebrow { font-size: 0.7rem; margin-bottom: 0.5rem; }
.hero-escritorio .hero-actions { gap: 10px; }
.hero-escritorio .btn { padding: 10px 20px; font-size: 0.875rem; }

/* Seção do vídeo no topo — ocupa toda a largura, altura natural */
.video-only-section {
  display: block;
  line-height: 0;
  width: 100%;
}
.hero-video-full {
  width: 100%;
  max-height: 65vh;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.hero::before {
  content: none;
}
.hero::after {
  content: '';
  position: absolute; right: -10%; top: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,26,26,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .eyebrow { color: #E89999; }
.hero p { color: rgba(255,255,255,0.86); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons ======================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-secondary { background: #fff; color: var(--color-black); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1FAE54; color: #fff; transform: translateY(-1px); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Sections ======================================= */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-header p { color: var(--color-text-muted); font-size: 1.0625rem; }

/* Áreas grid (home) ============================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Grid de 5 áreas: 3 em cima + 2 centralizadas embaixo */
.areas-grid-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.areas-grid-5 > :nth-child(1) { grid-column: 1 / 3; }
.areas-grid-5 > :nth-child(2) { grid-column: 3 / 5; }
.areas-grid-5 > :nth-child(3) { grid-column: 5 / 7; }
.areas-grid-5 > :nth-child(4) { grid-column: 2 / 4; }
.areas-grid-5 > :nth-child(5) { grid-column: 4 / 6; }

.area-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  display: block;
  color: inherit;
  text-decoration: none;
}
.area-card-clickable { cursor: pointer; position: relative; }
.area-card-clickable:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  color: inherit;
}
.area-icon {
  width: 48px; height: 48px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.area-card h3 { margin-bottom: 12px; }
.area-card p { color: var(--color-text-muted); font-size: 0.9375rem; margin-bottom: 16px; }
.area-link {
  font-weight: 600; font-size: 0.875rem;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-primary);
}
.area-link::after { content: '→'; transition: transform var(--transition); }
.area-link:hover::after { transform: translateX(4px); }

/* Values / Differentials ========================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.value { }
.value-icon {
  font-size: 1.5rem; color: var(--color-primary); margin-bottom: 12px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt); border-radius: var(--radius);
}
.value h4 { color: var(--color-black); margin-bottom: 8px; }
.value p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* Inner page hero ================================ */
.page-hero {
  background: var(--color-bg-alt);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .lead { color: var(--color-text-muted); max-width: 640px; }
.breadcrumb {
  font-size: 0.875rem; color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-text-muted); }

/* Content sections =============================== */
.content { max-width: 760px; }
.content h2 { margin-top: 2.5rem; }
.content h3 { margin-top: 2rem; }
.content ul, .content ol { margin: 0 0 1.25rem 1.5rem; }
.content li { margin-bottom: 0.5rem; }
.content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 8px 0 8px 20px;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}
.content figure { margin: 2rem 0; }
.content figcaption {
  font-size: 0.875rem; color: var(--color-text-muted);
  text-align: center; margin-top: 8px;
}

/* Team =========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.member {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}
.member-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #F7F4F4 0%, #EDE3E3 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-bottom: 4px solid var(--color-primary);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-info { padding: 24px; }
.member h4 { margin-bottom: 4px; }
.member .role { font-size: 0.875rem; color: var(--color-primary); font-weight: 600; margin-bottom: 12px; }
.member .bio { font-size: 0.9375rem; color: var(--color-text-muted); }

/* Blog =========================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card a { color: inherit; display: block; }
.post-thumb {
  height: 180px;
  background: var(--color-black);
  position: relative;
  border-bottom: 4px solid var(--color-primary);
}
.post-thumb::after {
  content: attr(data-cat);
  position: absolute; top: 16px; left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.post-card .post-body { padding: 24px; }
.post-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--color-black);
  transition: color var(--transition);
}
.post-card a:hover h3 { color: var(--color-primary); }
.post-meta {
  font-size: 0.8125rem; color: var(--color-text-muted);
  margin-bottom: 12px;
}
.post-card p { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 0; }

/* Article ======================================== */
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article-meta {
  font-size: 0.875rem; color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.article-meta .tag {
  background: var(--color-primary);
  color: #fff;
  padding: 2px 10px; border-radius: 4px;
  font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.article h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.article p { font-size: 1.0625rem; }
.article .disclaimer {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 2rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Forms ========================================== */
.form-wrapper {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-weight: 600; font-size: 0.9375rem;
  margin-bottom: 6px; color: var(--color-text);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: #fff;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139,26,26,0.12);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.875rem; color: var(--color-text-muted);
}
.form-check input { width: auto; margin-top: 3px; }
.form-help {
  background: var(--color-bg-alt);
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 0.875rem; color: var(--color-text-muted);
  margin-top: 20px;
}

/* Contact info layout ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { }
.contact-item {
  display: flex; gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 4px; font-size: 0.9375rem; }
.contact-item p { margin-bottom: 0; color: var(--color-text-muted); font-size: 0.9375rem; }

/* WhatsApp float ================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 40;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* Cookie banner ================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 96px;
  max-width: 720px;
  background: var(--color-black);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 45;
  font-size: 0.875rem;
  border-left: 4px solid var(--color-primary);
}
.cookie-banner.show { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; color: rgba(255,255,255,0.92); }
.cookie-banner button {
  background: var(--color-primary); color: #fff;
  border: none; padding: 10px 20px; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; font-family: inherit;
  flex-shrink: 0;
}
.cookie-banner button:hover { background: var(--color-primary-dark); }

/* Footer ========================================= */
.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 24px;
  font-size: 0.9375rem;
  border-top: 4px solid var(--color-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.125rem; margin-bottom: 12px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.oab-info {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* CTA block ====================================== */
.cta-block {
  background: var(--color-black);
  color: #fff;
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  border-top: 4px solid var(--color-primary);
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,0.88); max-width: 540px; margin: 0 auto 24px; }

/* Mapa =========================================== */
.map-wrapper {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

/* Responsive ===================================== */
@media (max-width: 960px) {
  .areas-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .areas-grid-5 > :nth-child(1),
  .areas-grid-5 > :nth-child(2),
  .areas-grid-5 > :nth-child(3),
  .areas-grid-5 > :nth-child(4),
  .areas-grid-5 > :nth-child(5) { grid-column: auto; }
  .areas-grid-5 > :nth-child(5) { grid-column: 1 / 3; max-width: calc(50% - 12px); justify-self: center; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Logo no mobile */
  .brand-logo { height: 80px; }

  /* Menu mobile */
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    display: none;
    box-shadow: var(--shadow);
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta { margin-top: 8px; text-align: center; }

  /* Hero e seções */
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-escritorio { padding: 24px 0 28px; }
  .hero-escritorio h1 { font-size: 1.25rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .section { padding: 48px 0; }

  /* Vídeo */
  .hero-video-full { max-height: 45vh; }

  /* Grids */
  .areas-grid-5 { grid-template-columns: 1fr; }
  .areas-grid-5 > :nth-child(5) { grid-column: auto; max-width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Foto dos sócios no mobile — proporção mais alta e alinhada ao topo */
  .member-photo { aspect-ratio: 4/3; }
  .member-photo img { object-position: center top; }

  /* Utilitários */
  .cookie-banner { left: 16px; right: 16px; bottom: 88px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .cta-block { padding: 40px 24px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .brand-logo { height: 64px; }
  .hero h1 { font-size: 1.25rem; }
  .section-header h2 { font-size: 1.375rem; }
  .areas-grid-5 > :nth-child(5) { grid-column: auto; max-width: 100%; }
}
