:root {
  --black: #11100e;
  --charcoal: #1b1916;
  --ink: #27231d;
  --gold: #c99a43;
  --gold-light: #e8c77d;
  --linen: #f5eddf;
  --paper: #fffaf1;
  --muted: #9f9381;
  --muted-dark: #5f574c;
  --line: rgba(232, 199, 125, 0.2);
  --shadow: 0 24px 70px rgba(10, 9, 7, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--paper);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(201, 154, 67, 0.16), transparent 32%),
    linear-gradient(rgba(255, 250, 241, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 241, 0.03) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.64) 55%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  padding-top: 78px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 12px 0;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-pill,
.brand-wordmark,
.nav-whatsapp,
.primary-link,
.secondary-link,
.floating-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

h1,
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-pill {
  width: min(680px, 100%);
  gap: 4px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 25, 22, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.nav-pill a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: 180ms ease;
}

.nav-pill a:hover {
  background: rgba(232, 199, 125, 0.12);
  color: var(--paper);
}

.brand-wordmark {
  min-width: 86px;
  margin-right: auto;
  color: var(--gold-light) !important;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  line-height: 1;
}

.nav-whatsapp {
  width: auto;
  height: 40px;
  margin-left: auto;
  padding: 0 14px !important;
  gap: 8px;
  background: linear-gradient(135deg, #d9ae5c, #9f6f24);
  color: #15120d !important;
}

.nav-whatsapp svg {
  font-size: 1.08rem;
}

.nav-whatsapp span {
  color: #15120d;
}

.primary-link,
.floating-whatsapp {
  gap: 9px;
  background: linear-gradient(135deg, #d9ae5c, #9f6f24);
  color: #15120d;
  box-shadow: 0 18px 46px rgba(201, 154, 67, 0.22);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

section {
  scroll-margin-top: 96px;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  padding: 30px 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: rise-in 700ms ease both;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 15px;
  color: var(--gold-light);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  color: var(--paper);
  font-size: clamp(4.3rem, 9vw, 8.4rem);
  line-height: 0.86;
}

h2 {
  margin-bottom: 16px;
  color: var(--paper);
  font-size: clamp(2.15rem, 4vw, 4.1rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 1.06rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy p {
  max-width: 610px;
  margin-bottom: 28px;
  color: #d9d0c2;
  font-size: 1.12rem;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link {
  min-height: 54px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font-weight: 900;
  font-size: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-link:hover,
.secondary-link:hover,
.floating-whatsapp:hover {
  transform: translateY(-2px);
}

.secondary-link {
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(27, 25, 22, 0.76);
  color: var(--paper);
}

.secondary-link:hover {
  border-color: rgba(232, 199, 125, 0.52);
}

.hero-stats {
  margin-top: 30px;
}

.hero-stats div {
  min-width: 150px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 25, 22, 0.72);
}

.hero-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold-light);
  font-size: 1.45rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  animation: float-in 850ms 120ms ease both;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 7% 0 5% 9%;
  background: url("/mr/advogadas-principal.jpg") center / cover;
  filter: blur(22px) saturate(0.95);
  opacity: 0.2;
  transform: scale(1.06);
}

.hero-media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 640px;
  padding: 0;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.88) contrast(1.04) brightness(0.9);
  border-radius: 8px;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 15%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-composite: intersect;
  transition: transform 600ms ease;
}

.hero-media:hover > img {
  transform: scale(1.035);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.7) 0%, rgba(17, 16, 14, 0.18) 30%, transparent 64%),
    linear-gradient(180deg, transparent 50%, rgba(17, 16, 14, 0.68) 100%);
  pointer-events: none;
}

.feature-section,
.team-section,
.contact-section {
  display: grid;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(58px, 9vw, 110px) 0;
  border-top: 1px solid rgba(232, 199, 125, 0.14);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.practice-section {
  padding: clamp(58px, 9vw, 110px) 0;
  border-top: 1px solid rgba(232, 199, 125, 0.14);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.practice-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(232, 199, 125, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.06), rgba(255, 250, 241, 0.02)),
    rgba(27, 25, 22, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 199, 125, 0.45);
  background: rgba(35, 31, 25, 0.92);
}

.practice-card svg {
  margin-bottom: 28px;
  color: var(--gold-light);
  font-size: 1.7rem;
}

.feature-section {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 199, 125, 0.22);
  border-radius: 8px;
  background: var(--linen);
  box-shadow: var(--shadow);
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.16;
  object-fit: cover;
  object-position: center 24%;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: #ddd2c2;
  line-height: 1.58;
}

.check-list svg {
  margin-top: 2px;
  color: var(--gold-light);
}

.team-section {
  grid-template-columns: 1fr 0.85fr;
}

.lawyer-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(232, 199, 125, 0.18);
  border-radius: 8px;
  background: rgba(27, 25, 22, 0.72);
}

.lawyer-card img {
  width: 170px;
  height: 140px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 7px;
}

.lawyer-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 1.05rem;
}

.lawyer-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.62;
}

.process-panel,
.contact-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(232, 199, 125, 0.2);
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(255, 250, 241, 0.08), rgba(255, 250, 241, 0.025));
  box-shadow: var(--shadow);
}

.process-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid rgba(232, 199, 125, 0.14);
}

.process-step:first-of-type {
  border-top: 0;
}

.process-step span {
  color: var(--gold-light);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.process-step p {
  margin-bottom: 0;
  color: #d7cbb9;
}

.contact-section {
  grid-template-columns: 0.86fr 1.14fr;
  padding-bottom: 70px;
}

.contact-card p {
  margin-bottom: 26px;
}

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

.info-list {
  display: grid;
  gap: 12px;
}

.info-list a,
.info-list div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(232, 199, 125, 0.16);
  border-radius: 8px;
  background: rgba(27, 25, 22, 0.72);
}

.info-list svg {
  color: var(--gold-light);
  font-size: 1.35rem;
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--paper);
}

.info-list span {
  color: var(--muted);
  line-height: 1.45;
}

footer {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  padding: 26px 0 96px;
  border-top: 1px solid rgba(232, 199, 125, 0.14);
  color: var(--muted);
}

footer strong {
  color: var(--gold-light);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .hero-section,
  .feature-section,
  .team-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-media {
    min-height: 520px;
    order: -1;
  }

  .hero-media > img {
    min-height: 520px;
    mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-shell {
    padding-top: 68px;
  }

  main,
  .topbar,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    width: min(100% - 20px, 1180px);
    min-height: 68px;
    padding: 10px 0;
  }

  .nav-pill {
    gap: 1px;
    padding: 5px;
  }

  .nav-pill a {
    padding: 9px 9px;
    font-size: 0.82rem;
  }

  .brand-wordmark {
    min-width: 58px;
    margin-right: 2px;
    font-size: 1.28rem !important;
  }

  .nav-whatsapp {
    width: auto;
    height: 38px;
    margin-left: 2px;
    padding: 0 10px !important;
    gap: 6px;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-media > img {
    min-height: 360px;
    object-position: 50% 34%;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .practice-card {
    min-height: 168px;
    padding: 14px;
  }

  .practice-card svg {
    margin-bottom: 10px;
    font-size: 1.22rem;
  }

  .practice-card h3 {
    margin-bottom: 7px;
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .practice-card p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .lawyer-card {
    grid-template-columns: 1fr;
  }

  .lawyer-card img {
    width: 100%;
    height: 260px;
    object-position: center 24%;
  }

  .hero-actions .primary-link,
  .hero-actions .secondary-link,
  .contact-card .primary-link,
  .contact-actions .secondary-link {
    width: 100%;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 52px;
    min-height: 52px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .floating-whatsapp svg {
    font-size: 1.25rem;
  }

  footer {
    padding-bottom: 84px;
  }
}
