:root {
  --ink: #171717;
  --charcoal: #242220;
  --navy: #172838;
  --paper: #fbf8f2;
  --ivory: #f2eadf;
  --stone: #d8d0c4;
  --gold: #b08a54;
  --gold-dark: #8c6b3f;
  --sage: #657366;
  --clay: #8f5848;
  --muted: #626466;
  --white: #ffffff;
  --line: rgba(23, 23, 23, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(19, 22, 26, 0.16);
  --radius: 8px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(23, 23, 23, 0.78);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.solid {
  background: rgba(23, 23, 23, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid rgba(176, 138, 84, 0.4);
  background: #050505;
}

.brand-copy {
  display: grid;
  gap: 2px;
  color: var(--white);
}

.brand-name {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--stone);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--white);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: #c09a62;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: 640px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 19, 19, 0.92) 0%, rgba(17, 19, 19, 0.72) 52%, rgba(17, 19, 19, 0.35) 100%),
    url("../images/escritorio-juridico.jpg") center / cover no-repeat;
  padding: 148px 0 74px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 48px;
}

.hero-content h1,
.section-heading h2,
.about-copy h2,
.lgpd-grid h2,
.contact-copy h2,
.legal-hero h1,
.legal-content h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.14;
  margin: 0;
}

.hero-content h1 {
  font-size: 64px;
  margin-top: 12px;
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.lgpd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button svg,
.header-cta svg,
.menu-toggle svg,
.contact-list svg,
.floating-whatsapp svg,
.practice-card svg,
.calculator-intro svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #c09a62;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: transparent;
}

.button-dark {
  width: 100%;
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #20384d;
}

.button-small {
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.button-outline-dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.proof-band {
  color: var(--white);
  background: var(--navy);
}

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

.proof-grid div {
  min-height: 118px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
}

.proof-grid strong {
  display: block;
  color: var(--gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.proof-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 104px 0;
}

.section-light {
  background: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.about-copy h2,
.lgpd-grid h2,
.contact-copy h2 {
  margin-top: 12px;
  font-size: 40px;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.lgpd-grid p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
}

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

.practice-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(21, 21, 21, 0.05);
}

.practice-card .card-number {
  position: absolute;
  top: 22px;
  right: 22px;
  color: rgba(23, 23, 23, 0.12);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
}

.practice-card svg {
  width: 32px;
  height: 32px;
  color: var(--gold-dark);
  margin-bottom: 30px;
}

.practice-card h3,
.partner-card h3 {
  margin: 0 0 14px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
}

.practice-card p,
.partner-card p,
.partner-card li,
.method-item p {
  color: var(--muted);
  font-size: 15px;
}

.calculators-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.calculator-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(21, 21, 21, 0.08);
}

.calculator-intro {
  padding: 30px 30px 24px;
  color: var(--white);
  background: var(--navy);
}

.calculator-intro svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 20px;
}

.calculator-intro span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-intro h3 {
  margin: 0 0 12px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 25px;
  line-height: 1.2;
}

.calculator-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.calculator-panel {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.calculator-panel .button {
  width: 100%;
  margin-top: 4px;
}

.lead-capture {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.result-box {
  min-height: 0;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 800;
}

.result-box:empty {
  display: none;
}

.method-section {
  color: var(--white);
  background: var(--charcoal);
}

.method-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.method-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: start;
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}

.method-item:first-child {
  border-top: 1px solid var(--line-dark);
}

.method-item span {
  color: var(--ivory);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
}

.method-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.about-section {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 64px;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, 0.12);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.about-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.about-list span {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: var(--radius);
  font-weight: 700;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.founder-grid {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.partner-card {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.partner-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.partner-copy {
  padding: 34px;
}

.partner-role {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.partner-card ul {
  margin: 24px 0 0;
  padding: 22px 0 0 18px;
  border-top: 1px solid var(--line);
}

.partner-card li + li {
  margin-top: 8px;
}

.lgpd-section {
  color: var(--white);
  background: var(--sage);
}

.lgpd-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: center;
}

.lgpd-grid p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
}

.lgpd-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-section {
  color: var(--white);
  background: linear-gradient(90deg, var(--charcoal) 0%, var(--charcoal) 50%, var(--navy) 50%, var(--navy) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.contact-list svg {
  color: var(--gold);
}

.contact-form {
  padding: 36px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row.two-columns {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row label {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 23, 23, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(176, 138, 84, 0.36);
  outline-offset: 2px;
}

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.privacy-check a {
  color: var(--navy);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #1f9d59;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.28);
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: #111111;
  padding: 62px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}

.footer-grid strong {
  display: block;
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-grid span {
  display: block;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-grid a,
.footer-grid button {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.footer-grid button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.footer-grid .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 13px;
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 32px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 0 8px;
  font-family: "Libre Baskerville", Georgia, serif;
}

.modal-panel p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.toggle-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.toggle-row input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: 148px 0 58px;
  color: var(--white);
  background: var(--navy);
}

.legal-hero h1 {
  margin-top: 12px;
  font-size: 44px;
}

.legal-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.legal-content {
  max-width: 840px;
  padding-top: 64px;
  padding-bottom: 88px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 24px;
}

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

.legal-content a {
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 16px;
  }

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

  .calculator-grid,
  .partners-grid,
  .partner-card {
    grid-template-columns: 1fr;
  }

  .partner-card img {
    height: 420px;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    background: rgba(23, 23, 23, 0.98);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 16px 0;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero {
    min-height: 600px;
    padding-top: 124px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .proof-grid,
  .method-grid,
  .about-grid,
  .lgpd-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .method-grid,
  .about-grid,
  .contact-grid {
    gap: 42px;
  }

  .lgpd-actions {
    justify-content: flex-start;
  }

  .contact-section {
    background: var(--charcoal);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 46px;
    background-position: 62% center;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .lgpd-actions {
    display: grid;
  }

  .hero-notes {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .about-copy h2,
  .lgpd-grid h2,
  .contact-copy h2 {
    font-size: 30px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .practice-grid,
  .calculator-grid,
  .form-row.two-columns {
    grid-template-columns: 1fr;
  }

  .practice-card {
    min-height: auto;
  }

  .method-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .media-frame img {
    height: 380px;
  }

  .partner-copy,
  .contact-form,
  .modal-panel {
    padding: 24px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    width: 100%;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .brand-copy {
    display: none;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .section-heading h2,
  .about-copy h2,
  .lgpd-grid h2,
  .contact-copy h2 {
    font-size: 27px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }
}
