/* Top page hero based on the supplied comp. */
.home-hero {
  --home-navy: #082d57;
  --home-red: #ed3e43;
  width: 100%;
  color: var(--home-navy);
  background: linear-gradient(115deg, #fffaf6 0%, #fff4ed 100%);
  overflow: hidden;
}

.home-hero,
.home-hero * { box-sizing: border-box; }

.home-hero__inner {
  display: grid;
  width: min(calc(100% - 48px), var(--container));
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(44px, 4.7vw, 72px) 0 24px;
}

.home-hero__copy { position: relative; z-index: 1; min-width: 0; }

.home-hero__eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 26px;
  padding: 9px 20px 10px;
  color: var(--home-red);
  background: #fff;
  border: 1px solid #f6d8d2;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(237, 62, 67, .08);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  animation: craffit-eyebrow-float 3.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes craffit-eyebrow-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

.home-hero__eyebrow::before,
.home-hero__eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  transform: translateX(-50%);
}

.home-hero__eyebrow::before {
  bottom: -11px;
  border-top: 11px solid #f6d8d2;
}

.home-hero__eyebrow::after {
  bottom: -9px;
  border-top: 10px solid #fff;
}

.home-hero h1 {
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.055em;
}

.home-hero h1 span { display: block; white-space: nowrap; }

.home-hero h1 em {
  color: var(--home-red);
  font-style: normal;
}

.home-hero__lead {
  margin: 22px 0 0;
  color: var(--home-navy);
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .01em;
}

.home-hero__actions { margin-top: 20px; }

.home-hero__button {
  display: inline-flex;
  width: min(100%, 414px);
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 25px;
  color: #fff;
  background: linear-gradient(120deg, #ea3940 0%, #f14b44 100%);
  border: 2px solid var(--home-red);
  border-radius: 999px;
  box-shadow: 0 9px 18px rgba(224, 50, 55, .16);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.home-hero__button:hover {
  color: var(--home-red);
  background: #fff;
  transform: translateY(-2px);
}

.home-hero__button:focus,
.home-hero__button:focus-visible {
  outline: 3px solid var(--home-navy);
  outline-offset: 4px;
}

.home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0;
  color: var(--home-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.home-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0 -22px 0 0;
}

.home-hero__visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(39vw, 590px);
  aspect-ratio: 1;
  background: rgba(255, 255, 255, .72);
  border-radius: 50%;
  transform: translate(-48%, -50%);
}

.home-hero__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 20px; }
  .home-hero h1 { font-size: clamp(43px, 5.8vw, 60px); }
  .home-hero__eyebrow { font-size: 16px; }
}

@media (max-width: 760px) {
  .home-hero {
    background: linear-gradient(145deg, #fffaf6 0%, #fff3ec 100%);
  }
  .home-hero__inner {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 0 20px;
  }
  .home-hero__eyebrow { margin-bottom: 22px; padding: 8px 15px; font-size: 14px; }
  .home-hero h1 { font-size: clamp(33px, 9.2vw, 39px); line-height: 1.32; letter-spacing: -.05em; }
  .home-hero h1 span { white-space: nowrap; }
  .home-hero__lead { margin-top: 18px; font-size: 17px; line-height: 1.75; }
  .home-hero__actions { margin-top: 20px; }
  .home-hero__button { width: 100%; min-height: 58px; font-size: 16px; }
  .home-hero__facts { justify-content: center; margin-top: 12px; font-size: 12px; text-align: center; }
  .home-hero__visual { width: calc(100% + 18px); margin: 0 -9px -4px; }
  .home-hero__visual::before { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__button { transition: none; }
  .home-hero__eyebrow {
    animation: none;
    will-change: auto;
  }
}
