:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #ebf0f5;
  --navy: #0e2439;
  --navy-deep: #091826;
  --accent: #0078b8;
  --accent-dark: #005b8e;
  --accent-light: #e6f3fa;
  --ink: #1b2530;
  --ink-soft: #55616d;
  --border: #d8e0e9;
  --whatsapp: #008069;
  --whatsapp-hover: #006b57;
  --radius: 10px;
  --max-w: 1140px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1.05rem;
  background: var(--accent);
  color: #ffffff !important;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

/* Hero Banner (Dark Navy-Slate) */
.hero-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%, #123654 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7cc6ee;
  margin-bottom: 0.85rem;
}

.hero-banner h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 4.2vw, 3.45rem);
  margin-bottom: 1.2rem;
}

.hero-banner .hero-lead {
  color: #cbd7e4;
  font-size: 1.05rem;
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #0088d1;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-meta-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7cc6ee;
  margin-bottom: 0.2rem;
}

.hero-meta-item span {
  font-size: 0.92rem;
  color: #eef4fa;
}

.hero-visual {
  position: relative;
}

.hero-photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  background: var(--navy-deep);
}

.hero-photo-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.hero-photo-caption {
  padding: 1rem 1.25rem;
  background: rgba(9, 24, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #dce7f2;
}

.hero-photo-caption img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-header {
  max-width: 66ch;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.65rem;
}

/* Sobre o Titular (Foto + Bio + Missão/Visão/Valores) */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}

.lawyer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 36, 57, 0.06);
}

.lawyer-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.lawyer-card-body {
  padding: 1.35rem 1.5rem;
}

.lawyer-card-body h3 {
  font-size: 1.55rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.lawyer-oab {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.lawyer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.about-content h2 {
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.pillar-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem;
}

.pillar-box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.pillar-box p,
.pillar-box ul {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

.pillar-box ul {
  padding-left: 1.1rem;
}

.pillar-box li {
  margin-bottom: 0.25rem;
}

/* Interactive Practice Areas */
.areas-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.areas-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.area-tab {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s ease;
}

.area-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.area-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.area-tab-num {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
}

.area-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.area-panel.is-active {
  display: block;
}

.area-panel h3 {
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.area-panel-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.5rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.area-panel-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.area-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Timeline / Etapas */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.timeline-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.timeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-step h4 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: var(--ink);
}

.timeline-step p {
  font-size: 0.88rem;
  margin: 0;
}

/* Contato Split */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.address-box {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.address-box h3 {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.address-box p {
  color: #cbd7e4;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  transition: border-color 0.15s ease;
}

.contact-item:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.contact-item-wide {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.contact-sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Floating WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 200;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.whatsapp-fab:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-split,
  .about-grid,
  .areas-layout,
  .contact-split {
    grid-template-columns: 1fr;
  }
  .pillars-row {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .area-panel-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1.5rem;
    gap: 0.75rem;
  }
  .nav {
    gap: 0.65rem 1rem;
  }
  .timeline,
  .contact-list {
    grid-template-columns: 1fr;
  }
}

/* Print Stylesheet */
@media print {
  @page {
    margin: 1.2cm 1.4cm;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 10pt;
    line-height: 1.45;
  }

  .container {
    padding: 0;
  }

  .topbar {
    position: static;
    background: #ffffff;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 0.75rem;
  }

  .topbar-inner {
    min-height: 48px;
  }

  .brand-logo {
    height: 32px;
  }

  .nav,
  .hero-actions,
  .hero-visual,
  .areas-tabs,
  .whatsapp-fab,
  .area-panel .btn,
  .address-box .btn,
  .footer-links {
    display: none !important;
  }

  .section,
  .section-white {
    padding: 0.9rem 0;
    border: none;
    background: #ffffff;
  }

  .section-header {
    margin-bottom: 0.9rem;
  }

  .section-header h2,
  .about-content h2 {
    font-size: 1.55rem;
    margin-bottom: 0.3rem;
  }

  .hero-banner {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0.75rem 0 1rem;
    border-bottom: 1px solid #d0d7de;
  }

  .hero-banner h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }

  .hero-banner h1,
  .hero-banner .hero-lead,
  .hero-meta-item strong,
  .hero-meta-item span,
  .address-box h3,
  .address-box p,
  .hero-eyebrow {
    color: #000000 !important;
  }

  .hero-banner .hero-lead {
    font-size: 10pt;
    margin-bottom: 0.75rem;
    max-width: none;
  }

  .hero-meta-row {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    gap: 1.5rem;
    border-top-color: #d0d7de;
  }

  .hero-split,
  .about-grid,
  .areas-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lawyer-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .lawyer-card img {
    width: 96px;
    height: 96px;
    border-radius: 6px;
    aspect-ratio: 1 / 1;
  }

  .lawyer-card-body {
    padding: 0;
  }

  .lawyer-card-body h3 {
    font-size: 1.25rem;
  }

  .lawyer-oab {
    margin-bottom: 0.35rem;
  }

  .lawyer-links {
    flex-direction: row;
    gap: 1rem;
    padding-top: 0.4rem;
    margin-top: 0.4rem;
  }

  .pillars-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.9rem;
  }

  .pillar-box,
  .timeline-step,
  .contact-item,
  .address-box {
    padding: 0.85rem;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .area-panel {
    display: block !important;
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .area-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
  }

  .area-panel p {
    margin-bottom: 0.45rem;
  }

  .area-panel-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 1rem;
    margin: 0.5rem 0 0;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .contact-split {
    grid-template-columns: 1fr 1.4fr;
    gap: 0.85rem;
  }

  .address-box {
    background: #ffffff !important;
    border: 1px solid #cccccc;
  }

  .contact-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .footer {
    padding: 0.75rem 0;
  }
}
