:root {
  --ink: #22211f;
  --ink-soft: #55514b;
  --paper: #f7f5f1;
  --paper-warm: #eeeae3;
  --white: #ffffff;
  --charcoal: #171816;
  --charcoal-2: #252522;
  --line: #d8d2c8;
  --gold: #aa8350;
  --gold-light: #d2b27e;
  --gold-dark: #7b5d36;
  --success: #315f46;
  --danger: #8b3737;
  --shadow: 0 20px 50px rgba(26, 24, 21, 0.12);
  --radius: 3px;
  --container: 1180px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

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

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 18px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 18px;
}

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

.section {
  padding: 96px 0;
}

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

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-intro {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-heading.center {
  text-align: center;
}

.section-heading.center::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: 24px auto 0;
  background: var(--gold);
}

.section-dark .section-intro {
  color: #c8c5bf;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary:hover {
  background: var(--gold-dark);
}

.button-outline {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--ink);
}

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

.button-light:hover {
  color: var(--ink);
  background: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(34, 33, 31, 0.08);
  transition: box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(22, 21, 19, 0.08);
}

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

.logo {
  width: min(330px, 48vw);
  flex: 0 1 330px;
}

.logo img {
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 650px;
  color: var(--white);
  background-color: var(--charcoal);
  background-image: linear-gradient(90deg, rgba(13, 14, 12, 0.96) 0%, rgba(16, 17, 15, 0.82) 40%, rgba(16, 17, 15, 0.12) 75%), url("../img/hero-justice.svg");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-inner {
  min-height: 650px;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  padding: 75px 0;
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--gold-light);
}

.hero-lead {
  max-width: 580px;
  margin: 26px 0 0;
  color: #e1ded8;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #c9c3b9;
  font-size: 0.9rem;
}

.hero-note::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* Values */
.values-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value-item {
  min-height: 178px;
  padding: 34px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.value-item:first-child {
  border-left: 1px solid var(--line);
}

.icon-box {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  color: var(--ink);
}

.icon-box svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-item h3 {
  margin: 0 0 7px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.value-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 72px;
}

.about-copy p {
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.about-copy .button {
  margin-top: 30px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  box-shadow: var(--shadow);
}

.about-image::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 40%;
  right: -18px;
  bottom: -18px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  z-index: -1;
}

.signature-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.signature-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--charcoal);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.signature-block strong,
.signature-block span {
  display: block;
}

.signature-block span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Services */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.practice-card {
  position: relative;
  min-height: 360px;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.practice-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
}

.practice-number {
  position: absolute;
  right: 18px;
  top: 3px;
  color: rgba(170, 131, 80, 0.1);
  font-family: Georgia, serif;
  font-size: 6.5rem;
  line-height: 1;
}

.practice-icon {
  position: relative;
  width: 54px;
  height: 54px;
  color: var(--gold);
}

.practice-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card h3 {
  position: relative;
  margin: 22px 0 12px;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.practice-card p {
  position: relative;
  margin: 0;
  color: var(--ink-soft);
}

.practice-card ul {
  position: relative;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.practice-card li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid #eeeae3;
}

.practice-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.process-step {
  position: relative;
  padding: 34px 30px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.process-step:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.process-step span {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.process-step h3 {
  margin: 14px 0 8px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.process-step p {
  margin: 0;
  color: #c9c5bd;
  font-size: 0.9rem;
}

/* Normative framework */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.legal-card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 28px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 30px rgba(28, 26, 23, 0.06);
}

.legal-card .law-type {
  color: var(--gold-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-card h3 {
  margin: 12px 0 10px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.legal-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-card a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-note {
  margin: 26px auto 0;
  max-width: 920px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: #ebe5db;
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-family: Georgia, serif;
  font-size: 1.16rem;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  padding: 0 54px 24px 0;
  color: var(--ink-soft);
}

.faq-answer p {
  margin: 0;
}

/* Contact */
.contact-section {
  padding: 88px 0 0;
  background: var(--charcoal-2);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  padding-bottom: 72px;
}

.contact-copy h2,
.contact-form-wrap h2 {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-copy > p {
  margin: 0;
  color: #d1cdc5;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.contact-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  color: #ddd9d2;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item strong,
.contact-item span {
  display: block;
}

.contact-item strong {
  color: var(--white);
  font-size: 0.84rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.9rem;
}

.contact-item a:hover {
  color: var(--gold-light);
}

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

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d7d2ca;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid #76736d;
  border-radius: 0;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.form-field select option {
  color: var(--ink);
}

.form-field textarea {
  min-height: 124px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.065);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa69f;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  font-size: 0.86rem;
}

.form-status.success {
  color: #b9dec8;
}

.form-status.error {
  color: #f0b7b7;
}

.privacy-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #a8a49d;
  font-size: 0.76rem;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  color: #c7c3bc;
  background: #1b1c1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.78rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-links a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.social-links a:hover {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #2d7d51;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(16, 59, 37, 0.35);
  transition: transform 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  :root {
    --header-height: 78px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 20px 30px rgba(22, 21, 19, 0.12);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

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

  .value-item:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .value-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .process-step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 52px;
  }

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

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

  .section {
    padding: 72px 0;
  }

  .logo {
    width: 245px;
    flex-basis: 245px;
  }

  .hero,
  .hero-inner {
    min-height: 610px;
  }

  .hero {
    background-image: linear-gradient(90deg, rgba(13, 14, 12, 0.96) 0%, rgba(16, 17, 15, 0.82) 68%, rgba(16, 17, 15, 0.55) 100%), url("../img/hero-justice.svg");
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .values-grid,
  .practice-grid,
  .process-grid,
  .legal-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .value-item,
  .value-item:first-child,
  .value-item:nth-child(3) {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .value-item:last-child {
    border-bottom: 0;
  }

  .about-image::before {
    display: none;
  }

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

  .process-step,
  .process-step:first-child,
  .process-step:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .contact-form .form-field,
  .form-field.full,
  .form-submit-row,
  .privacy-note {
    grid-column: auto;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    text-align: center;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
