.route-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  overflow: clip;
  background:
    linear-gradient(90deg, var(--color-surface) 0 58%, var(--color-surface-blue) 58%);
}

.route-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("../assets/photos/hero-consulta.webp") 26% 32% / cover no-repeat;
  opacity: var(--hero-media-opacity);
  -webkit-mask-image: linear-gradient(90deg,
      rgb(0 0 0 / 0.62) 0%,
      rgb(0 0 0 / 0.78) 32%,
      rgb(0 0 0 / 0.38) 60%,
      rgb(0 0 0 / 0.16) 100%);
  mask-image: linear-gradient(90deg,
      rgb(0 0 0 / 0.62) 0%,
      rgb(0 0 0 / 0.78) 32%,
      rgb(0 0 0 / 0.38) 60%,
      rgb(0 0 0 / 0.16) 100%);
  content: "";
}

.route-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  content: "";
}

.route-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(26rem, 0.82fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.route-hero__copy {
  padding-block: var(--space-4);
}

.route-hero__lead {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.route-hero__note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.route-hero__note::before {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
  border: 3px solid var(--color-blue);
  border-radius: 50%;
  content: "";
}

.authority {
  background: var(--color-white);
}

.authority__heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.authority__heading p {
  align-self: end;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.starting-point {
  background: var(--color-surface);
}

.journey-gallery {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: repeat(2, minmax(12rem, 15rem));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.journey-gallery__item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--color-navy);
}

.journey-gallery__item--main {
  grid-row: 1 / 3;
}

.journey-gallery__item--main img {
  object-position: left center;
}

.journey-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.journey-gallery__item:hover img {
  transform: scale(1.025);
}

.journey-gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(9, 22, 56, 0.88));
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.journey-gallery__item figcaption span {
  margin-right: 0.45rem;
  color: var(--color-blue-pale);
  font-size: var(--text-xs);
}

.starting-point__closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.starting-point__closing p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.process {
  background: var(--color-white);
}

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

.services .kicker {
  color: var(--color-blue-pale);
}

.services h2,
.services .section-intro p {
  color: var(--color-white);
}

.services .section-intro p {
  color: var(--color-blue-pale);
}

.services__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
}

.services__footer p {
  margin-bottom: 0;
  color: var(--color-blue-pale);
  font-size: var(--text-sm);
}

.team {
  background: var(--color-surface);
}

.team__layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.team__photo {
  position: relative;
  margin: 0;
}

.team__photo::before {
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  width: 42%;
  height: 4px;
  border-top: 4px solid var(--color-blue);
  content: "";
}

.team__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius-media);
}

.team__photo figcaption {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  max-width: 16rem;
  padding: 1rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 700;
}

.team__profiles {
  display: grid;
  margin-top: var(--space-4);
  border-top: 2px solid var(--color-navy);
}

.team__profile {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: var(--line);
}

.team__profile h3,
.team__profile p {
  margin-bottom: 0;
}

.team__profile p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.reviews {
  padding-block: clamp(4rem, 7vw, 5.5rem);
  background: var(--color-white);
}

.has-reveal [data-reveal] {
  opacity: 0.18;
  clip-path: inset(0 12% 0 0);
  transform: translateY(0.75rem);
  transition:
    clip-path 780ms var(--ease-out),
    opacity 620ms var(--ease-out),
    transform 780ms var(--ease-out);
}

.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
}

.has-reveal .journey-gallery__item[data-reveal],
.has-reveal .contact-band__media[data-reveal] {
  clip-path: inset(0 12% 0 0 round var(--radius-media));
}

.has-reveal .journey-gallery__item[data-reveal].is-revealed,
.has-reveal .contact-band__media[data-reveal].is-revealed {
  clip-path: inset(0 round var(--radius-media));
}

.journey-gallery [data-reveal]:nth-child(2) {
  transition-delay: 60ms;
}

.journey-gallery [data-reveal]:nth-child(3) {
  transition-delay: 110ms;
}

.contact-band {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-deep);
  color: var(--color-white);
}

.contact-band__layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.72fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.contact-band__media {
  min-height: 20rem;
  margin: calc(0rem - var(--space-section)) 0;
  overflow: hidden;
  border-radius: var(--radius-media);
}

.contact-band__media img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
}

.contact-band .kicker,
.contact-band h2,
.contact-band p {
  color: var(--color-white);
}

.contact-band p {
  margin-bottom: 0;
  color: var(--color-blue-pale);
}

.contact-band__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.site-footer {
  padding-block: 3.5rem;
  background: var(--color-navy);
  color: var(--color-white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--color-blue-pale);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer ul {
  margin-bottom: 0;
}

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

.site-footer a {
  color: var(--color-white);
  text-underline-offset: 0.25rem;
}

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-blue-pale);
  font-size: var(--text-xs);
}

@media (max-width: 61.99rem) {
  .route-hero {
    background: var(--color-surface);
  }

  .route-hero::before {
    background-position: 22% 20%;
    opacity: calc(var(--hero-media-opacity) * 0.8);
    -webkit-mask-image: linear-gradient(180deg,
        rgb(0 0 0 / 0.12) 0%,
        rgb(0 0 0 / 0.24) 40%,
        rgb(0 0 0 / 0.55) 68%,
        rgb(0 0 0 / 0.88) 100%);
    mask-image: linear-gradient(180deg,
        rgb(0 0 0 / 0.12) 0%,
        rgb(0 0 0 / 0.24) 40%,
        rgb(0 0 0 / 0.55) 68%,
        rgb(0 0 0 / 0.88) 100%);
  }

  .route-hero__layout,
  .authority__heading,
  .team__layout,
  .contact-band__layout {
    grid-template-columns: 1fr;
  }

  .route-hero__copy {
    max-width: 45rem;
  }

  .team__photo {
    max-width: 38rem;
  }

  .contact-band__media {
    min-height: 18rem;
    margin: calc(0rem - var(--space-section)) 0 0;
  }

  .contact-band__media img {
    min-height: 18rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 47.99rem) {
  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .route-hero {
    padding-block: 2.75rem 4rem;
  }

  .route-hero__layout {
    gap: 2.5rem;
  }

  .journey-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .journey-gallery__item,
  .journey-gallery__item--main {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .starting-point__closing,
  .services__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .team__photo::before {
    top: -0.75rem;
    left: -0.75rem;
  }

  .team__photo figcaption {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .team__profile {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .reviews {
    padding-block: 2rem;
  }

  .site-footer {
    padding-bottom: 6rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal [data-reveal] {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  .journey-gallery__item img {
    transform: none;
  }

  .reviews-carousel.is-enhanced .reviews-carousel__slide {
    transform: none;
    transition: none;
  }
}