.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(2rem, 7vw, 7rem) 160px;
  background: #10223a;
}

.hero-backgrounds,
.hero-bg-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backgrounds {
  z-index: -3;
  overflow: hidden;
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) scale(var(--scroll-scale, 1));
  transition: transform 220ms ease-out;
}

.hero-bg-slide {
  opacity: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 15px, 0) scale(1.08);
  transition:
    opacity 1400ms cubic-bezier(.22, 1, .36, 1),
    transform 1700ms cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.hero-lcp-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.expertise-section,
.video-section,
.blog-preview-section,
.home-contact-cta,
.google-reviews-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 24, 42, .82) 0%, rgba(16, 34, 58, .62) 38%, rgba(16, 34, 58, .22) 100%),
    radial-gradient(circle at 50% 45%, rgb(255 255 255 / 10%), transparent 46%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  justify-self: start;
  text-align: left;
  color: var(--white);
  opacity: var(--hero-opacity, 1);
  transform: translate3d(0, var(--hero-translate, 0px), 0);
  transition:
    opacity 180ms linear,
    transform 180ms linear;
  will-change: opacity, transform;
}

.hero-eyebrow {
  margin: 0 0 1.55rem;
  color: var(--orange);
  font-size: clamp(.72rem, 1vw, .82rem);
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-heading {
  max-width: 780px;
  margin: 0 0 1.35rem;
  color: rgb(255 255 255 / 94%);
  font-size: clamp(4.2rem, 6.6vw, 7.4rem);
  line-height: .84;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgb(3 14 28 / 26%);
}

.hero-heading span {
  display: block;
}

.hero-heading em {
  color: #87CEEB;
  font-style: normal;
}

.hero-lead {
  max-width: 600px;
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: 2rem;
}

.hero-primary {
  min-height: 54px;
  gap: .55rem;
  padding-inline: 1.35rem;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgb(255 122 0 / 28%);
}

.hero-primary[href*="wa.me"],
.hero-primary[href*="whatsapp"] {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 18px 44px rgb(37 211 102 / 28%);
}

.hero-primary[href*="wa.me"]:hover,
.hero-primary[href*="whatsapp"]:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: var(--white);
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgb(255 255 255 / 88%);
  font-weight: 900;
  text-decoration: none;
}

.hero-secondary-link span {
  color: var(--orange);
  transform: translateX(0);
  transition: transform 220ms ease;
}

.hero-secondary-link:hover {
  color: var(--white);
}

.hero-secondary-link:hover span {
  transform: translateX(6px);
}

.hero-values {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: clamp(5.6rem, 8.5vh, 6.4rem);
  left: clamp(1rem, 5vw, 5rem);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1400px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 11%);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgb(3 14 28 / 18%);
}

.hero-values div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 78px;
  padding: .75rem .9rem;
  background: rgb(255 255 255 / 5%);
  color: rgb(255 255 255 / 86%);
  font-size: .98rem;
  font-weight: 800;
}

.hero-line-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgb(255 122 0 / 76%);
  border-radius: 50%;
}

.hero-line-icon::before,
.hero-line-icon::after {
  content: "";
  position: absolute;
  background: rgb(255 122 0 / 86%);
}

.hero-line-icon::before {
  width: 10px;
  height: 1px;
  top: 13px;
  left: 8px;
}

.hero-line-icon::after {
  width: 1px;
  height: 10px;
  top: 8px;
  left: 13px;
}

.hero-slider-meta {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: clamp(1.45rem, 3vh, 2.1rem);
  left: clamp(1rem, 5vw, 5rem);
  z-index: 3;
  text-align: center;
}

.hero-photo-title {
  min-height: 1.1rem;
  margin: 0 0 .55rem;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .42em;
  text-transform: uppercase;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.hero-photo-title.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero-gallery-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

.hero-gallery-count button {
  position: relative;
  border: 0;
  width: clamp(48px, 5vw, 78px);
  height: 3px;
  padding: 0;
  border-radius: 99px;
  background: transparent;
}

.hero-gallery-count button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgb(255 255 255 / 34%);
}

.hero-gallery-count button.is-active::before {
  background: var(--orange);
}

@media (max-height: 820px) and (min-width: 981px) {
  .home-hero {
    padding-top: 108px;
    padding-bottom: 132px;
  }

  .hero-eyebrow {
    margin-bottom: 1rem;
  }

  .hero-heading {
    font-size: clamp(3.7rem, 5.8vw, 6.3rem);
  }

  .hero-lead {
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 1.5rem;
  }

  .hero-values {
    bottom: 4.9rem;
  }

  .hero-values div {
    min-height: 64px;
  }
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 100svh;
    height: auto;
    padding: 112px 1.5rem 10.5rem;
  }

  .hero-heading {
    font-size: clamp(3.2rem, 12vw, 5.6rem);
  }

  .hero-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 5.2rem;
  }

  .hero-values div {
    min-height: 58px;
  }

  .home-contact-cta {
    display: block;
    min-height: 0;
    margin-block: clamp(2.5rem, 8vw, 4rem) 0;
    overflow: hidden;
    background: var(--white);
  }

  .home-contact-cta::before {
    background: linear-gradient(180deg, var(--white) 0%, rgb(255 255 255 / 84%) 58%, rgb(255 255 255 / 22%) 100%);
  }

  .home-contact-cta__copy {
    width: 100%;
    padding: clamp(2rem, 7vw, 3rem) 1.5rem;
  }

  .home-contact-cta__image {
    position: relative;
    inset: auto;
    height: auto;
    margin: 0;
  }

  .home-contact-cta__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .expertise-carousel {
    display: flex;
    gap: 1rem;
    min-height: 0;
    margin-inline: -1rem;
    padding: .5rem 1rem 1.5rem;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    perspective: none;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .expertise-carousel::-webkit-scrollbar {
    display: none;
  }

  .expertise-card {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 min(86vw, 370px);
    width: auto;
    min-height: 330px;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    scroll-snap-align: center;
  }

  .expertise-carousel .carousel-arrow,
  .expertise-carousel .carousel-dots {
    display: none;
  }
}

@media (max-width: 620px) {
  .expertise-section,
  .video-section,
  .blog-preview-section,
  .home-contact-cta,
  .google-reviews-section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .home-contact-cta {
    display: block;
    padding: 2rem 1.4rem;
    background: #f8fafc;
  }

  .home-contact-cta::before {
    z-index: 1;
    background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 92%) 54%, rgb(255 255 255 / 28%) 100%);
  }

  .home-contact-cta__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
  }

  .home-contact-cta__image {
    position: absolute;
    inset: 0 0 0 38%;
    height: 100%;
    opacity: .34;
    pointer-events: none;
  }

  .home-contact-cta__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .home-hero {
    padding-inline: 1rem;
    padding-bottom: 10.2rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 34, 58, .62), rgba(16, 34, 58, .5), rgba(16, 34, 58, .76)),
      radial-gradient(circle at 50% 40%, rgb(255 255 255 / 13%), transparent 44%);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-primary {
    width: min(100%, 240px);
  }

  .hero-secondary-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-values {
    right: 1rem;
    left: 1rem;
    grid-template-columns: 1fr 1fr;
    border-radius: 8px;
  }

  .hero-values div {
    justify-content: flex-start;
    min-height: 54px;
    font-size: .76rem;
  }

  .hero-line-icon {
    width: 24px;
    height: 24px;
  }

  .hero-line-icon::before {
    top: 11px;
    left: 7px;
  }

  .hero-line-icon::after {
    top: 7px;
    left: 11px;
  }

  .hero-gallery-count {
    gap: .45rem;
  }

  .hero-gallery-count button {
    width: clamp(32px, 12vw, 58px);
  }
}

@media (max-width: 390px) {
  .home-hero {
    padding-top: 104px;
  }

  .hero-heading {
    font-size: clamp(2.85rem, 14vw, 3.45rem);
  }

  .hero-values div {
    gap: .5rem;
    padding-inline: .65rem;
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backgrounds,
  .hero-bg-slide,
  .home-hero__content,
  .hero-photo-title,
  .hero-secondary-link span {
    transition: none;
  }
}
