/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0B1A2C;
  --navy-2:     #152234;
  --navy-3:     #1E2F42;
  --navy-4:     #243650;
  --gold:       #C5973F;
  --gold-light: #D4AF6A;
  --gold-dim:   rgba(197,151,63,0.15);
  --white:      #FFFFFF;
  --off-white:  #F6F5F1;
  --border:     #E4E2DC;
  --text:       #1A1A1A;
  --text-light: #5A6472;
  --text-xlight:#8A919A;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:  0 6px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 16px 56px rgba(0,0,0,0.14);
  --radius:     6px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --transition: 0.28s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { font-family: inherit; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-tag.light { color: var(--gold-light); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-heading.light { color: var(--white); }

.heading-muted       { color: var(--text-light); font-weight: 400; }
.heading-muted-light { color: rgba(255,255,255,0.5); font-weight: 400; }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 540px;
}
.section-desc.light { color: rgba(255,255,255,0.6); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #a97d30;
  border-color: #a97d30;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,151,63,0.35);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  font-size: 1rem;
  padding: 15px 32px;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

.btn-email {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
  font-size: 1rem;
  padding: 15px 32px;
}
.btn-email:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== ANOS BADGE ===== */
.anos-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--off-white);
}
.anos-badge--light {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}

.anos-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.anos-text {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.anos-badge--light .anos-text { color: rgba(255,255,255,0.55); }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: var(--transition);
}

#header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
#header.scrolled .navbar { padding: 14px 40px; }

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.amp {
  color: var(--gold);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover {
  background: #a97d30;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(197,151,63,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(30,70,120,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}
.bullet-icon {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Hero image */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy-3);
  aspect-ratio: 3/4;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(197,151,63,0.2);
  z-index: 2;
  pointer-events: none;
}

.hero-img-wrap.img-fallback {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-4));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap.img-fallback::after {
  content: 'Foto da equipe';
  font-size: 0.9rem;
  color: rgba(255,255,255,0.2);
  font-style: italic;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ===== ATUAÇÃO ===== */
.atuacao {
  padding: 110px 0;
  background: var(--white);
}

.atuacao-intro {
  margin-bottom: 64px;
}

.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.area-item {
  display: flex;
  gap: 24px;
  padding: 36px 32px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Remove right border from right column */
.area-item:nth-child(even) { border-right: none; }

.area-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}

.area-item:hover {
  background: var(--off-white);
}
.area-item:hover::before { transform: scaleY(1); }

.area-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  transition: var(--transition);
}
.area-item:hover .area-num { color: var(--gold); }

.area-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.area-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== O ESCRITÓRIO ===== */
.escritorio {
  padding: 110px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.escritorio::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(197,151,63,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(30,70,120,0.25) 0%, transparent 50%);
  pointer-events: none;
}

.escritorio .container { position: relative; z-index: 1; }

.escritorio-header {
  max-width: 620px;
  margin-bottom: 72px;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 840px;
}

.membro-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}
.membro-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(197,151,63,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.membro-foto {
  height: 340px;
  background: var(--navy-3);
  overflow: hidden;
  position: relative;
}

.membro-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.membro-card:hover .membro-foto img { transform: scale(1.03); }

.membro-foto.foto-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.membro-foto.foto-fallback::after {
  content: '';
  font-size: 0.85rem;
  color: rgba(255,255,255,0.15);
  font-style: italic;
}

.membro-body {
  padding: 28px 28px 32px;
}

.membro-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.membro-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 6px;
}

.membro-oab {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.membro-bio {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 110px 0;
  background: var(--off-white);
}

.cta-inner {
  max-width: 680px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  max-width: 420px;
  line-height: 1.6;
  text-align: right;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-oab,
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer-sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.15);
}

/* ===== SCROLL-IN ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: left;
  }
  .hero-visual { justify-content: flex-start; }
  .hero-img-wrap { max-width: 360px; }

  .areas-list { grid-template-columns: 1fr; }
  .area-item { border-right: none; }
  .area-item:nth-child(even) { border-right: none; }

  .equipe-grid { max-width: 100%; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
  html { font-size: 16px; }

  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .navbar { padding: 16px 20px; }
  #header.scrolled .navbar { padding: 12px 20px; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 44px;
    z-index: 999;
  }
  .nav-links.open a {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.85);
  }

  /* Hero */
  .hero-inner { padding: 100px 20px 64px; }
  .hero-img-wrap { max-width: 100%; aspect-ratio: 4/3; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Atuação */
  .atuacao { padding: 80px 0; }
  .area-item { padding: 28px 20px; gap: 16px; }

  /* Escritório */
  .escritorio { padding: 80px 0; }
  .equipe-grid { grid-template-columns: 1fr; }
  .membro-foto { height: 300px; }
  .escritorio-header { margin-bottom: 48px; }

  /* CTA */
  .cta-section { padding: 80px 0; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-top { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-img-wrap { aspect-ratio: 1/1; }
  .membro-body { padding: 20px; }
  .membro-name { font-size: 1.4rem; }
}
