:root {
  --legal-red: #e33a2f;
  --legal-red-dark: #b92821;
  --legal-ink: #14232b;
  --legal-charcoal: #26343a;
  --legal-paper: #f4f5f4;
  --legal-white: #ffffff;
  --legal-muted: #657078;
  --legal-line: rgba(20, 35, 43, 0.14);
  --legal-shadow: 0 18px 50px rgba(20, 35, 43, 0.13);
  --legal-radius: 4px;
}

body {
  color: var(--legal-ink);
  background: var(--legal-white);
}

body:not(.page-redesign) .top-blocks--sticky {
  background: rgba(20, 35, 43, 0.78);
  backdrop-filter: blur(10px);
}

body:not(.page-redesign) .top-blocks--sticky .block-header {
  background: rgba(20, 35, 43, 0.78);
  box-shadow: 0 8px 24px rgba(20, 35, 43, 0.12);
}

body:not(.page-redesign) .top-blocks--sticky .block-header .background {
  --background-color: rgba(20, 35, 43, 0.78) !important;
  backdrop-filter: blur(10px);
}

.page-redesign .block-header__nav a,
.page-redesign .block-header-item__label {
  color: var(--legal-ink) !important;
}

.page-redesign .block-header__hamburger-menu span {
  background: var(--legal-ink) !important;
}

.site-scrolled .top-blocks--sticky .block-header {
  background: rgba(20, 35, 43, 0.96);
  box-shadow: 0 10px 30px rgba(20, 35, 43, 0.16);
}

.site-scrolled .top-blocks--sticky .block-header .background {
  --background-color: rgba(20, 35, 43, 0.96) !important;
  backdrop-filter: blur(12px);
}

.site-scrolled .top-blocks--sticky .block-header__nav a,
.site-scrolled .top-blocks--sticky .block-header-item__label {
  color: var(--legal-white) !important;
}

.site-scrolled .top-blocks--sticky .block-header__hamburger-menu span {
  background: var(--legal-white) !important;
}

.block-header__nav a,
.local-menu a {
  letter-spacing: 0.04em;
}

.block-header__nav a {
  position: relative;
}

.enhanced-nav-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.block-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--legal-red);
  transition: right 180ms ease;
}

.block-header__nav a:hover::after,
.block-header__nav a:focus-visible::after {
  right: 0;
}

.custom-page-hero {
  position: relative;
  min-height: min(72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--legal-ink);
  color: var(--legal-white);
}

.custom-page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  z-index: -2;
}

.custom-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 25, 31, 0.94) 0%, rgba(12, 25, 31, 0.72) 46%, rgba(12, 25, 31, 0.25) 100%);
}

.custom-page-hero__content {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) 0 clamp(64px, 9vw, 112px);
}

.custom-page-hero__content > * {
  max-width: 760px;
}

.custom-page-hero h1 {
  margin: 12px 0 22px;
  color: var(--legal-white);
  font-family: "Jacques Francois", Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: none;
}

.custom-page-hero p:not(.eyebrow) {
  max-width: 680px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  color: var(--legal-red);
  font: 600 0.86rem/1.2 Poppins, Arial, sans-serif;
  letter-spacing: 0.18em;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--legal-red);
  border-radius: 999px;
  font: 600 0.9rem/1.2 Poppins, Arial, sans-serif;
  letter-spacing: 0.07em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--legal-red-dark);
  border-color: var(--legal-red-dark);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--legal-ink);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--legal-white);
  background: var(--legal-red);
  transform: translateY(-2px);
}

.custom-section {
  padding: clamp(64px, 8vw, 112px) 24px;
}

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

.custom-section--ink {
  color: var(--legal-white);
  background: var(--legal-ink);
}

.custom-container {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 46px;
}

.section-intro h2,
.about-story h2,
.profile-intro h2 {
  margin: 10px 0 18px;
  font-family: "Jacques Francois", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.section-intro p,
.about-story p,
.profile-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.about-story__copy p:first-child {
  margin-top: 0;
}

.value-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.value-card,
.method-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--legal-line);
  border-top: 4px solid var(--legal-red);
  background: var(--legal-white);
}

.value-card h3,
.method-card h3 {
  margin: 12px 0 16px;
  color: var(--legal-ink);
  font-family: "Jacques Francois", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.value-card p,
.method-card p {
  margin: 0;
  color: var(--legal-muted);
  line-height: 1.75;
}

.card-number {
  color: var(--legal-red);
  font: 600 0.82rem/1 Poppins, Arial, sans-serif;
  letter-spacing: 0.16em;
}

.profile-intro {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 52px;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--legal-line);
  border-radius: var(--legal-radius);
  background: var(--legal-white);
  box-shadow: var(--legal-shadow);
}

.profile-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9dddc;
}

.profile-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 500ms ease;
}

.profile-card:hover .profile-card__image img {
  transform: scale(1.025);
}

.profile-card__body {
  padding: clamp(24px, 4vw, 38px);
}

.profile-card h2 {
  margin: 0 0 8px;
  font-family: "Jacques Francois", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
}

.profile-focus {
  min-height: 3em;
  margin: 0 0 20px;
  color: var(--legal-red-dark);
  font: 600 0.88rem/1.5 Poppins, Arial, sans-serif;
  letter-spacing: 0.04em;
}

.profile-summary,
.profile-details p {
  color: var(--legal-muted);
  line-height: 1.75;
}

.profile-details {
  margin-top: 20px;
  border-top: 1px solid var(--legal-line);
  padding-top: 18px;
}

.profile-details summary {
  cursor: pointer;
  color: var(--legal-ink);
  font-weight: 600;
}

.profile-details summary::marker {
  color: var(--legal-red);
}

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

.instagram-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 1180px);
  margin: 34px auto 0;
}

.instagram-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  color: var(--legal-white);
  background: var(--legal-ink);
  text-decoration: none;
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, opacity 250ms ease;
}

.instagram-card__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 52px 20px 20px;
  background: linear-gradient(transparent, rgba(10, 20, 25, 0.9));
  font: 500 0.95rem/1.45 Poppins, Arial, sans-serif;
  transform: translateY(8px);
  transition: transform 220ms ease;
}

.instagram-card:hover img,
.instagram-card:focus-visible img {
  transform: scale(1.045);
  opacity: 0.86;
}

.instagram-card:hover .instagram-card__caption,
.instagram-card:focus-visible .instagram-card__caption {
  transform: translateY(0);
}

.floating-whatsapp {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid var(--legal-white);
  border-radius: 999px;
  color: var(--legal-white);
  background: #25d366;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font: 600 0.9rem/1 Poppins, Arial, sans-serif;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  background: #1ebe5d;
  transform: translateY(-3px);
}

.floating-whatsapp__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.floating-whatsapp__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-cta {
  padding: clamp(56px, 8vw, 96px) 24px;
  color: var(--legal-white);
  background: var(--legal-ink);
  text-align: center;
}

.page-cta__inner {
  width: min(100%, 780px);
  margin: 0 auto;
}

.page-cta h2 {
  margin: 0 0 16px;
  color: var(--legal-white);
  font-family: "Jacques Francois", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
}

.page-cta p {
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.reveal-ready .reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-ready .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .custom-page-hero {
    min-height: 640px;
  }

  .custom-page-hero::after {
    background: linear-gradient(0deg, rgba(12, 25, 31, 0.96) 0%, rgba(12, 25, 31, 0.66) 70%, rgba(12, 25, 31, 0.42) 100%);
  }

  .custom-page-hero__content {
    width: min(100% - 36px, 720px);
  }

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

  .value-grid,
  .method-grid,
  .instagram-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-focus {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .custom-section {
    padding: 56px 18px;
  }

  .value-grid,
  .method-grid,
  .instagram-gallery {
    grid-template-columns: 1fr;
  }

  .value-card,
  .method-card {
    min-height: 0;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 56px;
    min-height: 56px;
    justify-content: center;
    padding: 0;
  }

  .floating-whatsapp__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .profile-card__image img,
  .instagram-card img,
  .instagram-card__caption,
  .floating-whatsapp,
  .button-primary,
  .button-secondary {
    transition: none;
  }
}
