:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #555a61;
  --paper: #ffffff;
  --soft: #f5f3ef;
  --line: #ded8ce;
  --charcoal: #20252b;
  --navy: #1e3345;
  --wine: #7a1f2b;
  --gold: #b68a3a;
  --gold-soft: #e6d7b6;
  --shadow: 0 18px 40px rgba(23, 23, 23, 0.1);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
picture {
  display: block;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(182, 138, 58, 0.75);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(222, 216, 206, 0.85);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--charcoal);
}

.brand img {
  width: auto;
  height: 54px;
  aspect-ratio: 1683 / 935;
  object-fit: contain;
}

.brand span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--wine);
  background: #f7eee9;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.button {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--wine);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(122, 31, 43, 0.2);
}

.button:hover {
  background: #641925;
}

.button--light {
  color: var(--charcoal);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

.button--outline {
  color: var(--wine);
  background: transparent;
  border-color: rgba(122, 31, 43, 0.35);
  box-shadow: none;
}

.text-link {
  color: var(--wine);
  text-underline-offset: 0.25em;
}

.hero {
  position: relative;
  min-height: calc(100svh - 132px);
  color: #ffffff;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 132px);
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 22, 27, 0.9) 0%, rgba(18, 22, 27, 0.72) 38%, rgba(18, 22, 27, 0.22) 72%, rgba(18, 22, 27, 0.08) 100%),
    linear-gradient(0deg, rgba(18, 22, 27, 0.35), rgba(18, 22, 27, 0.05));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  min-height: calc(100svh - 132px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.65rem, 8vw, 5.8rem);
}

.hero p {
  max-width: 650px;
  margin: 1.35rem 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions,
.cta-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.trust-strip {
  background: var(--navy);
  color: #ffffff;
}

.trust-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  padding: 1.2rem 1.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--gold-soft);
}

.trust-item span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section {
  padding: clamp(3.8rem, 8vw, 6.5rem) 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  color: #ffffff;
  background: var(--charcoal);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section--dark .section-kicker {
  color: var(--gold-soft);
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-lead {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.76);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1fr);
}

.split--wide-media {
  grid-template-columns: minmax(460px, 1.25fr) minmax(0, 0.75fr);
}

.split__media img,
.feature-image img,
.portrait img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__copy p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.section--dark .split__copy p {
  color: rgba(255, 255, 255, 0.78);
}

.service-grid,
.method-grid,
.info-grid,
.legal-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.service-card,
.method-card,
.info-card,
.contact-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card,
.method-card,
.info-card,
.legal-card {
  padding: 1.35rem;
}

.service-card h3,
.method-card h3,
.info-card h3,
.contact-card h2,
.legal-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.service-card p,
.method-card p,
.info-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.service-card p,
.method-card p,
.info-card p,
.legal-card p {
  margin: 0.75rem 0 0;
}

.numbered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy);
  font-weight: 800;
}

.quote-band {
  background: linear-gradient(135deg, var(--navy), #29333d 60%, var(--wine));
  color: #ffffff;
}

.quote-band blockquote {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.18;
  text-align: center;
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(26, 31, 37, 0.92), rgba(26, 31, 37, 0.76)),
    var(--charcoal);
}

.page-hero--about {
  background:
    linear-gradient(90deg, rgba(26, 31, 37, 0.88), rgba(26, 31, 37, 0.58)),
    url("../img/advogados.webp") center 38% / cover no-repeat;
}

.page-hero--contact {
  background:
    linear-gradient(90deg, rgba(26, 31, 37, 0.9), rgba(26, 31, 37, 0.62)),
    url("../img/contato-hero.webp") center / cover no-repeat;
}

.page-hero--privacy {
  background:
    linear-gradient(90deg, rgba(26, 31, 37, 0.9), rgba(26, 31, 37, 0.64)),
    url("../img/privacidade-hero.webp") center / cover no-repeat;
}

.page-hero--terms {
  background:
    linear-gradient(90deg, rgba(26, 31, 37, 0.9), rgba(26, 31, 37, 0.62)),
    url("../img/termos-hero.webp") center / cover no-repeat;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: #ffffff;
  border-radius: var(--radius);
}

.timeline strong {
  display: block;
  color: var(--wine);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.profile-gallery {
  display: grid;
  gap: 1rem;
}

.profile-gallery img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-layout .split__copy p:not(.section-kicker) {
  text-align: justify;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem;
}

.contact-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.contact-card a {
  color: var(--wine);
  font-weight: 700;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.social-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.social-link__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.social-link__icon svg {
  width: 100%;
  height: 100%;
}

.map-panel {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #ffffff;
}

.map-panel img {
  width: 100%;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
}

.map-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin: 2rem 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.cta {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--navy);
  color: #ffffff;
}

.cta__inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.cta p {
  max-width: 680px;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: #15191d;
}

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid p {
  margin: 0.35rem 0;
}

.footer-grid a {
  display: inline-block;
  margin: 0.25rem 0;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  right: max(14px, calc(env(safe-area-inset-right) + 14px));
  bottom: 24px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #25d366;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32), 0 8px 18px rgba(23, 23, 23, 0.18);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.whatsapp-float:hover {
  background: #1fbd5d;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.36), 0 10px 22px rgba(23, 23, 23, 0.2);
}

.whatsapp-float:active {
  transform: translateY(0);
}

body.nav-open .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 980px) {
  .service-grid,
  .method-grid,
  .info-grid,
  .legal-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split--reverse,
  .split--wide-media,
  .profile-layout,
  .contact-layout,
  .cta__inner {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: -1;
  }

  .cta__inner {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 16px 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 0.75rem;
  }

  .hero,
  .hero__media img,
  .hero__content {
    min-height: calc(100svh - 96px);
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(18, 22, 27, 0.92), rgba(18, 22, 27, 0.62));
  }

  .hero__content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .trust-grid,
  .service-grid,
  .method-grid,
  .info-grid,
  .legal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:last-child {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-bottom .container {
    flex-direction: column;
  }

  .whatsapp-float {
    right: max(12px, calc(env(safe-area-inset-right) + 12px));
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
