/* Homepage hero — full-bleed image with seamless dark left fade */

.home-hero {
  --hh-ink: #ffffff;
  --hh-muted: #b8d0e6;
  --hh-blue: #7dd3fc;
  --hh-blue-deep: #0b66c3;
  --hh-line: rgba(255, 255, 255, 0.18);
  --hh-wash: #061b2c;
  position: relative;
  overflow: hidden;
  min-height: clamp(640px, 88vh, 820px);
  padding: clamp(118px, 12vw, 132px) 0 0;
  display: flex;
  flex-direction: column;
  font-family: "Outfit", "Outfit Placeholder", sans-serif;
  color: var(--hh-ink);
  background: var(--hh-wash);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero-media-base {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  /* Let the photo show through early; wash handles readability */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 22%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.88) 52%,
    #000 66%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 22%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.88) 52%,
    #000 66%,
    #000 100%
  );
}

.home-hero-media-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Long soft fade — no hard mid band */
  background:
    linear-gradient(
      90deg,
      #041421 0%,
      #061b2c 24%,
      rgba(6, 27, 44, 0.92) 36%,
      rgba(6, 27, 44, 0.68) 46%,
      rgba(6, 27, 44, 0.4) 56%,
      rgba(6, 27, 44, 0.18) 66%,
      rgba(6, 27, 44, 0.06) 76%,
      rgba(6, 27, 44, 0) 88%
    );
  pointer-events: none;
}

/* Soft edge blur only in the merge zone — very light so it doesn’t muddy */
.home-hero-media-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.5) 52%,
    rgba(0, 0, 0, 0.25) 62%,
    transparent 74%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.5) 52%,
    rgba(0, 0, 0, 0.25) 62%,
    transparent 74%
  );
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  flex: 1 1 auto;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: clamp(420px, 56vh, 560px);
  padding-bottom: clamp(28px, 4vw, 40px);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 60%);
  max-width: 760px;
  padding: 12px 0 8px;
  animation: home-hero-rise 0.7s ease both;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #9ad4ff;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  min-height: 38px;
}

.home-hero-eyebrow-track {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 12ch;
}

.home-hero-eyebrow-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  white-space: nowrap;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s;
}

.home-hero-eyebrow-item.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-eyebrow-item {
    transition: none;
  }
}

.home-hero h1 {
  margin: 0 0 18px;
  max-width: none;
  font-size: clamp(1.85rem, 3.4vw, 3.1rem);
  font-weight: 750 !important;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-transform: none;
}

.home-hero-title-accent {
  display: block;
  white-space: nowrap;
  color: #7dd3fc;
}

.home-hero-title-rest {
  display: block;
  white-space: nowrap;
  color: #fff;
}

.home-hero-lede {
  margin: 0 0 28px;
  max-width: 58ch;
  color: var(--hh-muted);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.home-hero-partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 2px;
}

.home-hero-partner-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.home-hero-partner-kicker strong {
  color: #fff;
  font-weight: 700;
}

.home-hero-partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.home-hero-partner-badge img {
  display: block;
  width: auto;
  height: 68px;
  max-width: min(300px, 100%);
  object-fit: contain;
  object-position: center;
}

.home-hero-reviews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.home-hero-review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-review-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 26, 45, 0.12);
}

.home-hero-review-badge img {
  display: block;
  width: auto;
  max-width: 210px;
  height: 44px;
  object-fit: contain;
}

.home-hero-review-badge--clutch {
  background: #fff;
}

.home-hero-clutch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: max-content;
  max-width: 210px;
  min-height: 50px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.home-hero-clutch .clutch-widget {
  display: block;
  width: max-content !important;
  max-width: 210px;
  min-width: 0 !important;
  margin: 0 !important;
  line-height: 0;
  background: transparent !important;
}

.home-hero-clutch .clutch-widget iframe {
  display: block !important;
  max-width: 210px !important;
  margin: 0 !important;
}

.home-hero-review {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: #0b1220;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 26, 45, 0.12);
}

.home-hero-review-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.home-hero-review-meta {
  display: grid;
  gap: 3px;
}

.home-hero-review-meta strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}

.home-hero-stars {
  display: inline-flex;
  gap: 2px;
}

.home-hero-stars i {
  width: 11px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.home-hero-stars--clutch {
  color: #ef4444;
}

.home-hero-stars--google {
  color: #fbbc05;
}

.home-hero-google-g {
  flex-shrink: 0;
}

.home-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px 0 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b66c3 0%, #0854a0 100%);
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(11, 102, 195, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-hero-cta-icon {
  flex-shrink: 0;
}

.home-hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(11, 102, 195, 0.34);
}

.home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hero-trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d7e8f7;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero-trust-item--blue { color: #9ad4ff; }
.home-hero-trust-item--navy { color: #e8f2fb; }
.home-hero-trust-item--sky { color: #7dd3fc; }
.home-hero-trust-item--teal { color: #5eead4; }
.home-hero-trust-item--indigo { color: #a5b4fc; }

@keyframes home-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .home-hero {
    min-height: clamp(560px, 77vh, 736px);
    padding-top: 110px;
    padding-bottom: clamp(42px, 7.2vw, 58px);
  }

  .home-hero-inner {
    width: min(100% - 32px, 720px);
    min-height: clamp(416px, 58vh, 544px);
    padding-bottom: clamp(29px, 4.8vw, 42px);
  }

  .home-hero-copy {
    width: 100%;
    max-width: none;
  }

  .home-hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 6.2vw, 2.35rem);
  }

  .home-hero-title-accent,
  .home-hero-title-rest {
    white-space: normal;
  }

  .home-hero-lede {
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(1rem, 3.6vw, 1.15rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.35;
  }

  .home-hero-media-base {
    object-position: center 28%;
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 28%,
      rgba(0, 0, 0, 0.65) 52%,
      #000 72%,
      #000 100%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 28%,
      rgba(0, 0, 0, 0.65) 52%,
      #000 72%,
      #000 100%
    );
  }

  .home-hero-media-wash {
    background: linear-gradient(
      180deg,
      #041421 0%,
      #061b2c 28%,
      rgba(6, 27, 44, 0.9) 42%,
      rgba(6, 27, 44, 0.55) 58%,
      rgba(6, 27, 44, 0.2) 74%,
      rgba(6, 27, 44, 0) 92%
    );
  }

  .home-hero-media-wash::after {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      transparent 28%,
      rgba(0, 0, 0, 0.4) 48%,
      rgba(0, 0, 0, 0.35) 62%,
      transparent 80%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      transparent 28%,
      rgba(0, 0, 0, 0.4) 48%,
      rgba(0, 0, 0, 0.35) 62%,
      transparent 80%
    );
  }
}

@media (max-width: 560px) {
  .home-hero {
    min-height: clamp(592px, 80svh, 784px);
    padding-bottom: clamp(51px, 9.6vw, 70px);
  }

  .home-hero-inner {
    min-height: clamp(448px, 62svh, 592px);
  }

  .home-hero-actions {
    align-items: stretch;
    margin-bottom: 18px;
  }

  .home-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .home-hero-partner {
    align-items: center;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .home-hero-partner-badge {
    width: fit-content;
    max-width: min(100%, 320px);
    padding: 6px 8px;
  }

  .home-hero-partner-badge img {
    width: auto;
    height: 76px;
    max-width: 100%;
  }

  .home-hero-reviews {
    justify-content: center;
  }

  .home-hero-review-badge {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .home-hero-review-badge img {
    width: 100%;
    max-width: none;
    height: 40px;
  }

  .home-hero-trust-item {
    min-height: 46px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-copy {
    animation: none;
  }

  .home-hero-media-blur {
    filter: blur(12px);
  }
}
