:root {
  --ink: #10202D;
  --ink-soft: #24384A;
  --parchment: #F7F4EC;
  --panel: #FFFFFF;
  --gold: #9C7A32;
  --gold-bright: #B99544;
  --text: #2A333B;
  --text-muted: #5B6470;
  --hairline: #D2D6D9;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', sans-serif;
  --deep-grad: linear-gradient(135deg, #0A1626 0%, #14314D 55%, #1D4066 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--text);
  line-height: 1.65;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

section { scroll-margin-top: 96px; }

img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }

/* ============================================
   HEADER
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep-grad);
  border-bottom: 1px solid rgba(184, 149, 68, 0.4);
  box-shadow: 0 10px 30px rgba(6, 14, 24, 0.25);
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(184, 149, 68, 0.32), transparent 70%);
  filter: blur(4px);
  z-index: -1;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--parchment);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(247, 244, 236, 0.82);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active { color: var(--gold); }

.nav-cta {
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: 2px;
  color: var(--gold) !important;
}

.nav-cta:hover { background: var(--gold); color: var(--panel) !important; }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 110px 0 100px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.18;
  margin: 18px 0 24px;
}

.hero-copy h1 em { font-style: italic; color: var(--gold); font-weight: 400; }

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
  text-decoration: none;
  padding: 15px 30px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: background 0.25s ease;
}

.btn-primary:hover { background: var(--gold); }

.btn-ghost {
  color: var(--ink);
  text-decoration: none;
  padding: 15px 6px;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.hero-panel { position: relative; }

.panel-frame {
  aspect-ratio: 4 / 5;
  background: var(--ink);
  border: 1px solid var(--gold);
  outline: 1px solid var(--hairline);
  outline-offset: 10px;
  overflow: hidden;
}

.panel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.panel-tag {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 16px 20px;
  max-width: 220px;
  box-shadow: 0 12px 30px rgba(16,32,45,0.12);
}

.panel-tag strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 1rem; }
.panel-tag span { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   QUEM SOMOS
   ============================================ */
.quem-somos { padding: 90px 0; background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.split { display: grid; grid-template-columns: 0.7fr 2fr; gap: 56px; }

.rule-gold { width: 44px; height: 2px; background: var(--gold); margin-top: 16px; }

.split-body .lead { font-size: 1.2rem; color: var(--ink-soft); font-family: var(--serif); font-weight: 400; margin-bottom: 20px; }

.split-body p { color: var(--text-muted); margin-bottom: 16px; max-width: 62ch; }

/* ============================================
   PRINCÍPIOS (Missão, Visão e Valores)
   ============================================ */
.principios {
  position: relative;
  background: var(--deep-grad);
  padding: 110px 0;
  overflow: hidden;
}

.principios::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.principios .container { position: relative; }

.principios .eyebrow { color: var(--gold-bright); }

.principios .section-head h2 {
  color: var(--parchment);
  font-size: 1.9rem;
  max-width: 22ch;
}

.principios .section-head::after { background: rgba(184, 149, 68, 0.5); }

.principios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 56px;
}

.principio {
  padding-left: 30px;
  border-left: 1px solid rgba(184, 149, 68, 0.3);
}

.principio:first-child { border-left: none; padding-left: 0; }

.principio-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.principio p {
  color: rgba(247, 244, 236, 0.78);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 34ch;
}

@media (max-width: 720px) {
  .principios { padding: 80px 0; }
  .principios-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 38px; }
  .principio {
    border-left: none;
    padding-left: 0;
    padding-top: 26px;
    border-top: 1px solid rgba(184, 149, 68, 0.3);
  }
  .principio:first-child { border-top: none; padding-top: 0; }
}

/* ============================================
   ÁREAS DE ATUAÇÃO
   ============================================ */
.areas { padding: 100px 0; }

.section-head { margin-bottom: 48px; }

.section-head h2 { font-size: 2rem; margin-top: 10px; }

.section-head::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--ink);
  margin-top: 18px;
}

.areas-list { border-top: 1px solid var(--hairline); }

.area-row {
  display: grid;
  grid-template-columns: 150px 260px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.35s ease, border-color 0.35s ease;
  /* .area-row agora é um <a>: remove sublinhado/cor de link padrão */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.area-row:hover {
  padding-left: 16px;
  border-bottom-color: var(--gold);
}

.area-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  white-space: nowrap;
}

.area-name {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s ease;
}

.area-row:hover .area-name { color: var(--gold); }

.area-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  opacity: 0.55;
  max-width: 46ch;
  transition: opacity 0.35s ease;
}

.area-row:hover .area-desc { opacity: 1; }

.areas-more { margin-top: 28px; color: var(--text-muted); font-size: 0.92rem; }

.areas-more a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); }

@media (max-width: 720px) {
  .area-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 4px;
  }
  .area-row:hover { padding-left: 4px; }
  .area-desc { opacity: 0.75; max-width: none; }
}

/* ============================================
   ESCRITÓRIO
   ============================================ */
.escritorio { padding: 100px 0; background: var(--panel); border-top: 1px solid var(--hairline); }

.escritorio-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, 140px);
  gap: 18px;
}

.escritorio-frame {
  background: var(--ink);
  border: 1px solid var(--ink-soft);
  overflow: hidden;
}

.escritorio-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.escritorio-frame:hover img { transform: scale(1.04); }

.escritorio-frame.tall { grid-row: span 2; }

/* ============================================
   CONTATO
   ============================================ */
.contato { padding: 100px 0; }

.contato h2 { font-size: 1.9rem; margin: 12px 0 32px; max-width: 16ch; }

.contato-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }

.contato-list { list-style: none; }

.contato-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.96rem;
}

.contato-list i { color: var(--ink-soft); width: 18px; margin-top: 3px; }

.contato-actions { display: flex; flex-direction: column; gap: 16px; }

.contato-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--ink-soft);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contato-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.contato-card i { font-size: 1.4rem; color: var(--ink-soft); }

.contato-card small { color: var(--text-muted); font-weight: 400; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--ink); color: rgba(247,244,236,0.6); padding: 26px 0; font-size: 0.82rem; }

.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================
   FADE-IN ON SCROLL
   ============================================ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   PÁGINA EQUIPE
   ============================================ */
.equipe-hero { padding: 90px 0 60px; }

.equipe-hero-copy p { max-width: 60ch; }

.equipe-section { padding-top: 20px; }

/* Lista em coluna (flexbox): um advogado por linha, foto pequena + informações */
.equipe-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.advogado-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  scroll-margin-top: 120px;
}

.advogado-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(16, 32, 45, 0.1);
}

/* Destaque temporário quando se chega direto num advogado pelo link de uma área */
.advogado-card:target {
  border-color: var(--gold);
  background: #FBF8F0;
  box-shadow: 0 0 0 2px var(--gold);
}

/* Foto pequena e fixa, não estica com o texto */
.advogado-photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ink);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.advogado-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Coluna de informações ao lado da foto */
.advogado-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advogado-info h3 { font-size: 1.2rem; }

.advogado-oab {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.advogado-especialidades {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}

.advogado-especialidades li {
  font-size: 0.76rem;
  color: var(--ink-soft);
  background: var(--parchment);
  border: 1px solid var(--hairline);
  padding: 5px 11px;
  border-radius: 2px;
}

.advogado-contato {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}

.advogado-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.advogado-link i { color: var(--ink-soft); width: 16px; }

.advogado-link:hover { color: var(--gold); }
.advogado-link:hover i { color: var(--gold); }

/* Em telas pequenas, foto acima das informações */
@media (max-width: 560px) {
  .advogado-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .advogado-especialidades,
  .advogado-contato { justify-content: center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-grid, .split, .contato-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; max-width: 340px; }
  .escritorio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px 140px; }
  .escritorio-frame.tall { grid-row: span 1; grid-column: span 2; }
}

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-menu {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    gap: 26px;
    transition: right 0.3s ease;
  }
  .nav-menu.show { right: 0; }
  .nav-menu .nav-link { color: var(--parchment); }
  .nav-cta { border-color: var(--gold); }
  .areas-more { font-size: 0.88rem; }
  .hero { padding: 70px 0 60px; }
}