/* ==========================================================================
   Firm Authority — award badges + firm heading + CTA over an optional
   background video and/or the LA/NYC skyline
   ========================================================================== */

.firm-authority {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 10px auto;
  background: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.firm-authority__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 105px 40px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* ------------------------------ Badges ---------------------------------- */

.firm-authority__badges {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  flex-wrap: wrap;
}

.firm-authority__badge {
  flex: 0 1 305px;
  max-width: 305px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.firm-authority__badge-icon {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

.firm-authority__badge-caption {
  text-align: center;
  font-family: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #b29447;
}

/* ------------------------------ Heading --------------------------------- */

.firm-authority__heading {
  margin: 0;
  max-width: 1100px;
  text-align: center;
  font-family: 'Quattrocento', Georgia, serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #282828;
}

.firm-authority__heading em {
  font-family: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
}

.firm-authority__heading strong {
  font-weight: 700;
  font-style: italic;
}

/* CTA size override to match design (296×64) */
.firm-authority__inner > .c-btn {
  min-width: 296px;
}

/* ------------------------------ Background media ------------------------ */

.firm-authority__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.firm-authority__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Over the photo/video the heading turns white, per the Sept 2026 design update. */
.firm-authority--has-media .firm-authority__heading {
  color: #ffffff;
}

/* Reduced motion: drop the video, the poster on .firm-authority__media stays. */
@media (prefers-reduced-motion: reduce) {
  .firm-authority__video {
    display: none;
  }
}

/* ------------------------------ Skyline --------------------------------- */

.firm-authority__skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 720px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  line-height: 0;
}

.firm-authority__skyline svg {
  display: block;
  width: 100%;
  position: absolute;
  bottom: 0;
}

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1024px) {
  .firm-authority__badges {
    gap: 48px;
    flex-wrap: nowrap;
  }
  .firm-authority__heading {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .firm-authority__inner {
    padding: 73px 15px 180px;
    gap: 40px;
    max-width: none;
  }

  /* Badges — 3 in a row (no wrap), tiny thumbnails per mobile design. */
  .firm-authority__badges {
    flex-wrap: nowrap;
    gap: 28px;
    align-items: flex-start;
  }

  .firm-authority__badge {
    flex: inherit;
    max-width: none;
    gap: 6px;
  }

  .firm-authority__badge-icon {
    max-height: 60px;
  }

  .firm-authority__badge-caption {
    font-size: 10px;
    line-height: 1.25;
  }

  /* Heading — matches Figma: 32px serif, "Law Firm" as bold italic sans. */
  .firm-authority__heading {
    font-size: 32px;
    line-height: 1.32;
  }

  /* CTA keeps its current color/variant — only size + width shrink. */
  .firm-authority__inner > .c-btn {
    min-width: 194px;
    height: 50px;
    min-height: 50px;
    padding: 12px 30px;
    font-size: 20px;
  }

  /* Skyline shrinks so it doesn't dominate the shorter section. */
  .firm-authority__skyline {
    height: 220px;
  }
}

/* ------------------------------ Editor preview -------------------------- */

.firm-authority--is-preview {
  zoom: 0.55;
}

.firm-authority--is-preview .firm-authority__inner {
  padding: 60px 40px 80px;
  gap: 40px;
}

.firm-authority--is-preview .firm-authority__skyline {
  display: none;
}
