@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #071c1d;
  --ink-soft: #0d2a2c;
  --charcoal: #0e1518;
  --charcoal-soft: #182125;
  --gold: #c9a35b;
  --gold-light: #d7bb83;
  --sand: #f3e9d8;
  --paper: #faf7f1;
  --white: #ffffff;
  --text: #183437;
  --text-soft: #5d6b69;
  --line-dark: rgba(215, 187, 131, 0.24);
  --line-light: rgba(7, 28, 29, 0.13);
  --whatsapp: #25d366;
  --whatsapp-text: #052311;
  --shadow-sm: 0 12px 32px rgba(7, 28, 29, 0.08);
  --shadow-md: 0 22px 60px rgba(4, 20, 21, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --header-height: 52px;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

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

body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

::selection {
  color: var(--charcoal);
  background: var(--gold-light);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h3 {
  text-wrap: balance;
}

strong {
  color: inherit;
  font-weight: 760;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: #8a651e;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.button--large {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 1rem;
}

.button--whatsapp {
  color: var(--whatsapp-text);
  background: var(--whatsapp);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.22);
}

.button--whatsapp:hover {
  background: #2add70;
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.3);
}

.button--ink {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(7, 28, 29, 0.17);
}

.button--ink:hover {
  background: #0d3032;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  min-height: var(--header-height);
  color: var(--white);
  background: linear-gradient(rgba(8, 8, 8, 0.56), rgba(8, 8, 8, 0.28) 58%, rgba(8, 8, 8, 0));
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.34s ease, box-shadow 0.34s ease, backdrop-filter 0.34s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 26px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 12, 12, 0.2), rgba(7, 12, 12, 0.07) 48%, transparent);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 48%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 48%, transparent 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 91, 0.34) 18%, rgba(201, 163, 91, 0.34) 82%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(7, 28, 29, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled::after,
.site-header.is-menu-open::after {
  opacity: 1;
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  padding-left: clamp(8px, 1vw, 14px);
  gap: 18px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  width: clamp(160px, 15vw, 204px);
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 21px);
  margin-left: auto;
}

.site-nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  font-size: clamp(0.76rem, 0.9vw, 0.86rem);
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-size 0.35s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  color: var(--gold-light);
  background-size: 100% 1px;
}

.button--header {
  min-height: 30px;
  flex: 0 0 auto;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--gold-light);
  background: transparent;
  font-size: 12px;
  font-weight: 620;
  box-shadow: none;
  white-space: nowrap;
}

.button--header:hover,
.button--header:focus-visible {
  color: #efe1c4;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.button--header img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.header-contact-copy {
  display: grid;
  line-height: 1;
}

.header-contact-copy strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

/* Hero */
.hero {
  min-height: clamp(650px, 82svh, 820px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(36, 27, 9, 0.32), rgba(5, 10, 11, 0.34) 42%, rgba(5, 10, 11, 0.95) 74%),
    url("../img/justica-hero.webp") 31% center / cover no-repeat,
    var(--charcoal);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 11, 12, 0.03), rgba(3, 11, 12, 0.08) 60%, rgba(3, 11, 12, 0.62)),
    radial-gradient(circle at 74% 48%, transparent, rgba(0, 0, 0, 0.22) 72%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: calc(var(--header-height) + 34px);
  padding-bottom: 64px;
}

.hero__copy {
  width: min(610px, 54%);
}

.hero__copy > .button {
  width: fit-content;
  display: flex;
  margin-inline: auto;
}

.hero h1 {
  max-width: 610px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.4rem, 3.65vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.42);
}

.hero__text {
  max-width: 590px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.hero__note {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.78rem;
  text-align: center;
}

/* Sections */
.section {
  padding-block: clamp(76px, 8vw, 112px);
}

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

.section--sand {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(201, 163, 91, 0.1), transparent 30%),
    var(--sand);
}

.section--ink {
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 163, 91, 0.08), transparent 28%),
    linear-gradient(130deg, #071c1d, #0b2527 60%, #07191a);
}

.section--dark {
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 163, 91, 0.1), transparent 30%),
    linear-gradient(145deg, var(--charcoal), #101a1d 58%, #0b1113);
}

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

.section-heading p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center p:last-child {
  margin-inline: auto;
}

.section-heading--light h2,
.section--ink h2,
.section--dark h2 {
  color: var(--white);
}

.section-heading--light p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

/* Situations */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  min-height: 285px;
  position: relative;
  overflow: hidden;
  padding: 28px 24px 25px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(201, 163, 91, 0.18);
  border-radius: 50%;
}

.case-card:hover {
  border-color: rgba(201, 163, 91, 0.62);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-card__number {
  display: inline-block;
  margin-bottom: 28px;
  color: #8a651e;
  font-family: var(--serif);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.case-card h3 {
  margin-bottom: 13px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.2;
}

.case-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
  line-height: 1.62;
}

/* Institutional */
.institutional__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: start;
}

.institutional h2 {
  max-width: 470px;
  margin-bottom: 0;
}

.institutional__copy {
  position: relative;
  padding-left: 34px;
  border-left: 1px solid rgba(215, 187, 131, 0.35);
}

.institutional__copy p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.82;
}

.institutional__copy p:last-child {
  margin-bottom: 0;
}

.institutional__copy strong {
  color: var(--white);
}

/* Assessment */
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.assessment-card {
  min-height: 270px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(7, 28, 29, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 42px rgba(7, 28, 29, 0.07);
  backdrop-filter: blur(8px);
}

.assessment-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.8rem;
}

.assessment-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.52rem;
  line-height: 1.2;
}

.assessment-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: rgba(215, 187, 131, 0.17);
  border: 1px solid rgba(215, 187, 131, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.steps li {
  min-height: 230px;
  display: flex;
  gap: 20px;
  padding: 32px 28px;
  background: rgba(14, 21, 24, 0.94);
}

.steps__number {
  flex: 0 0 auto;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.steps h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.2;
}

.steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Documents */
.documents__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 108px);
  align-items: start;
}

.documents__intro {
  position: sticky;
  top: calc(var(--header-height) + 34px);
}

.documents__intro p:last-child {
  color: var(--text-soft);
}

.document-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.document-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  padding: 25px 2px;
  border-bottom: 1px solid var(--line-light);
}

.document-list article > span {
  width: 30px;
  height: 30px;
  position: relative;
  display: block;
  margin-top: 2px;
  border: 1px solid rgba(138, 101, 30, 0.42);
  border-radius: 50%;
}

.document-list article > span::before,
.document-list article > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: #8a651e;
  transform: translate(-50%, -50%);
}

.document-list article > span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.document-list h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.35;
}

.document-list p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Attorney */
.attorney {
  padding-bottom: clamp(52px, 5vw, 72px);
}

.attorney__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(56px, 9vw, 126px);
  align-items: center;
}

.attorney__media {
  width: min(450px, 100%);
  position: relative;
}

.portrait {
  width: min(390px, calc(100% - 34px));
  margin: 0 0 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(138, 101, 30, 0.34);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -90px 90px rgba(7, 28, 29, 0.08);
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 437;
  object-fit: cover;
}

.anniversary-seal {
  width: clamp(116px, 13vw, 164px);
  position: absolute;
  bottom: -34px;
  left: 0;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: var(--sand);
  border: 5px solid var(--sand);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(7, 28, 29, 0.22);
}

.anniversary-seal img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.attorney__copy {
  max-width: 610px;
}

.attorney__copy h2 {
  margin-bottom: 8px;
}

.credential {
  margin-bottom: 30px;
  color: #795918;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.attorney__copy > p:not(.eyebrow):not(.credential) {
  color: var(--text-soft);
}

.attorney__copy .button {
  width: fit-content;
  display: flex;
  margin: 10px auto 0;
}

/* Reviews */
.reviews {
  overflow: hidden;
}

.reviews .section-heading {
  margin-bottom: 22px;
}

.reviews-proof {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
  padding: 10px 20px;
  color: var(--text-soft);
  background: var(--white);
  border: 1px solid rgba(201, 163, 91, 0.24);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(7, 28, 29, 0.08);
  font-size: 0.88rem;
  font-weight: 720;
}

.reviews-proof__stars {
  color: #e7a700;
  letter-spacing: 0.04em;
}

.google-widget {
  margin-top: 20px;
}

.google-review-track {
  width: min(1240px, calc(100vw - 52px));
  display: flex;
  gap: 20px;
  margin-left: 50%;
  padding: 4px 0 22px;
  overflow-x: auto;
  transform: translateX(-50%);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 163, 91, 0.78) rgba(7, 28, 29, 0.09);
  -webkit-overflow-scrolling: touch;
}

.google-review-track:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.google-review-track::-webkit-scrollbar {
  height: 7px;
}

.google-review-track::-webkit-scrollbar-track {
  background: rgba(7, 28, 29, 0.09);
  border-radius: 999px;
}

.google-review-track::-webkit-scrollbar-thumb {
  background: rgba(201, 163, 91, 0.78);
  border-radius: 999px;
}

.google-review-card {
  min-height: 250px;
  flex: 0 0 356px;
  padding: 23px;
  position: relative;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(7, 28, 29, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 34px rgba(7, 28, 29, 0.09);
  scroll-snap-align: start;
}

.google-review-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.google-avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.google-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-review-name {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.2;
}

.google-review-date {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.68rem;
}

.google-platform {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #4285f4;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 900;
}

.google-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
  color: #e7a700;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.035em;
}

.google-verified {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  color: var(--white);
  background: #1a73e8;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.google-review-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.google-controls-line {
  width: 58px;
  height: 5px;
  margin: 10px auto 0;
  overflow: hidden;
  background: rgba(7, 28, 29, 0.12);
  border-radius: 999px;
}

.google-controls-line::after {
  content: "";
  width: 24px;
  height: 100%;
  display: block;
  background: var(--gold);
  border-radius: inherit;
}

.google-widget.is-live-snapshot .google-review-card {
  animation: review-card-enter 0.7s ease both;
}

.google-widget.is-live-snapshot .google-review-card:nth-child(2) { animation-delay: 0.08s; }
.google-widget.is-live-snapshot .google-review-card:nth-child(3) { animation-delay: 0.16s; }
.google-widget.is-live-snapshot .google-review-card:nth-child(4) { animation-delay: 0.24s; }

@keyframes review-card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FAQ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: calc(var(--header-height) + 34px);
}

.faq__intro h2 {
  font-size: clamp(2.1rem, 3.7vw, 3.35rem);
}

.faq__intro > p:last-child {
  color: rgba(255, 255, 255, 0.64);
}

.faq__list {
  border-top: 1px solid rgba(215, 187, 131, 0.28);
}

.faq details {
  border-bottom: 1px solid rgba(215, 187, 131, 0.23);
}

.faq summary {
  min-height: 82px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 52px 20px 0;
  color: var(--white);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 18px;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0);
}

.faq details p {
  max-width: 720px;
  margin-bottom: 24px;
  padding-right: 52px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(86px, 9vw, 124px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 28, 29, 0.98), rgba(7, 28, 29, 0.9)),
    url("../img/justica-hero.webp") center / cover no-repeat,
    var(--ink);
}

.final-cta::before,
.final-cta::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(201, 163, 91, 0.14);
  border-radius: 50%;
}

.final-cta::before {
  top: -170px;
  left: -90px;
}

.final-cta::after {
  right: -120px;
  bottom: -220px;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.final-cta h2 {
  max-width: 850px;
  margin-inline: auto;
  color: var(--white);
}

.final-cta p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.72);
}

/* Footer */
.site-footer {
  padding-top: 64px;
  color: rgba(255, 255, 255, 0.68);
  background: #050c0d;
  border-top: 1px solid rgba(201, 163, 91, 0.23);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr 0.8fr;
  align-items: start;
  gap: 42px;
  padding-bottom: 46px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand > a {
  width: min(230px, 100%);
  display: block;
  margin-top: -7px;
  line-height: 0;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-brand > p {
  max-width: 300px;
  margin: 24px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer address,
.site-footer li,
.site-footer a {
  font-size: 0.82rem;
  line-height: 1.72;
}

.site-footer address {
  font-style: normal;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-underline-offset: 4px;
  text-decoration-color: rgba(215, 187, 131, 0.34);
}

.site-footer a:hover {
  color: var(--white);
  text-decoration-color: var(--gold-light);
}

.footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
}

/* Privacy page */
.privacy-page {
  min-height: 100svh;
  background: var(--paper);
}

.privacy-page .site-header {
  background: rgba(7, 28, 29, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.privacy-page .site-header::after {
  opacity: 1;
}

.privacy-hero {
  padding: calc(var(--header-height) + 74px) 0 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(201, 163, 91, 0.13), transparent 30%),
    linear-gradient(135deg, var(--ink), #0c2b2d);
}

.privacy-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.privacy-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.privacy-content {
  padding-block: 76px 100px;
}

.privacy-content__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(46px, 8vw, 112px);
  align-items: start;
}

.privacy-aside {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  padding: 24px;
  background: var(--sand);
  border: 1px solid rgba(7, 28, 29, 0.1);
  border-radius: var(--radius-md);
}

.privacy-aside p {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.privacy-aside a {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
  text-underline-offset: 4px;
}

.privacy-prose {
  max-width: 780px;
}

.privacy-prose section {
  padding-block: 28px;
  border-bottom: 1px solid var(--line-light);
}

.privacy-prose section:first-child {
  padding-top: 0;
}

.privacy-prose section:last-child {
  border-bottom: 0;
}

.privacy-prose h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.privacy-prose p,
.privacy-prose li {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.privacy-prose ul {
  padding-left: 22px;
}

/* Responsive */
@media (max-width: 1120px) {
  .container {
    width: min(100% - 40px, 1080px);
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.73rem;
  }

  .brand img {
    width: 184px;
  }

  .button--header {
    padding: 0;
  }

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

  .case-card {
    min-height: 240px;
  }

}

@media (max-width: 1080px) {
  :root {
    --header-height: 50px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    width: min(360px, calc(100vw - 40px));
    max-height: calc(100svh - var(--header-height) - 20px);
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    visibility: hidden;
    background: rgba(7, 28, 29, 0.985);
    border: 1px solid rgba(201, 163, 91, 0.3);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 46px;
    justify-content: center;
    padding: 10px 14px;
    background: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.93rem;
    text-align: center;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .button--header {
    width: 154px;
    min-height: 36px;
    margin-left: auto;
    padding: 0;
  }

  .button--header img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .header-contact-copy strong {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 690px;
    background-position: 20% center;
  }

  .hero__copy {
    width: min(580px, 62%);
  }

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

  .institutional__grid,
  .documents__grid,
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .institutional h2 {
    max-width: 680px;
  }

  .institutional__copy {
    max-width: 820px;
  }

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

  .documents__intro,
  .faq__intro,
  .privacy-aside {
    position: static;
  }

  .attorney__grid {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 56px;
  }

  .google-review-card {
    min-height: 235px;
    flex-basis: min(100%, 356px);
  }

  .privacy-content__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .privacy-aside {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

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

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

  .section {
    padding-block: 72px;
  }

  .attorney {
    padding-bottom: 52px;
  }

  .brand img {
    width: clamp(138px, 40vw, 174px);
  }

  .button--header {
    width: 136px;
    min-height: 34px;
    padding: 0;
  }

  .button--header img {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }

  .header-contact-copy strong {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .hero {
    min-height: auto;
    padding-top: var(--header-height);
    background:
      linear-gradient(180deg, rgba(5, 10, 11, 0.2), rgba(5, 10, 11, 0.88) 54%, rgba(5, 10, 11, 0.98) 83%),
      url("../img/justica-hero-mobile.webp") 38% top / auto 52% no-repeat,
      var(--charcoal);
  }

  .hero__inner {
    min-height: 720px;
    align-items: end;
    justify-content: center;
    padding: 280px 0 54px;
  }

  .hero__copy {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    max-width: 600px;
    margin-inline: auto;
    font-size: clamp(2rem, 9vw, 2.85rem);
    line-height: 1.05;
  }

  .hero__text {
    margin-inline: auto;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero .button {
    width: min(100%, 360px);
  }

  .google-review-track {
    width: calc(100vw - 30px);
    gap: 14px;
  }

  .google-review-card {
    flex-basis: min(86vw, 340px);
  }

  .case-grid,
  .assessment-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .case-card,
  .assessment-card,
  .steps li {
    min-height: 0;
  }

  .case-card {
    padding: 25px 22px;
  }

  .case-card__number,
  .assessment-card > span {
    margin-bottom: 22px;
  }

  .institutional__copy {
    padding-left: 22px;
  }

  .assessment-card {
    padding: 27px;
  }

  .steps li {
    padding: 27px 23px;
  }

  .attorney__grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .attorney__media {
    margin-inline: auto;
  }

  .attorney__copy {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 48px;
  }

  .header-inner {
    width: min(100% - 18px, 680px);
    gap: 6px;
    padding-left: 0;
  }

  .brand img {
    width: clamp(116px, 34vw, 148px);
    max-height: 36px;
  }

  .site-nav {
    right: 15px;
    width: calc(100vw - 30px);
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .button--header {
    width: 112px;
    height: 34px;
    min-height: 34px;
  }

  .header-contact-copy strong {
    font-size: 9.5px;
    letter-spacing: 0;
  }

  .menu-toggle {
    padding: 9px;
  }

  .button--large {
    width: 100%;
    padding-inline: 18px;
    font-size: 0.92rem;
  }

  .hero__inner {
    min-height: 700px;
    padding-top: 262px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.7vw, 2.5rem);
  }

  .hero__note {
    padding-inline: 10px;
  }

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

  .case-card h3 {
    font-size: 1.3rem;
  }

  .document-list article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
  }

  .document-list article > span {
    width: 27px;
    height: 27px;
  }

  .portrait {
    width: calc(100% - 24px);
  }

  .anniversary-seal {
    width: 122px;
    left: -2px;
    bottom: -38px;
  }

  .attorney__copy .button {
    width: 100%;
  }

  .reviews-proof {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-inline: 14px;
    font-size: 0.8rem;
  }

  .google-review-card {
    min-height: 225px;
    padding: 21px;
  }

  .faq summary {
    min-height: 76px;
    padding-right: 42px;
    font-size: 1.05rem;
  }

  .faq details p {
    padding-right: 10px;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 5px;
  }

  .brand img {
    width: clamp(110px, 34vw, 124px);
    max-height: 34px;
  }

  .button--header {
    width: 105px;
  }

  .button--header img {
    display: none;
  }

  .header-contact-copy strong {
    font-size: 9px;
  }

  .hero__inner {
    min-height: 650px;
    padding-top: 215px;
    padding-bottom: 32px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: 1.85rem;
  }

  .hero__text {
    margin-bottom: 22px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero__note {
    margin-top: 12px;
    font-size: 0.7rem;
  }
}

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