/* Hero (refined) — typography & legibility; scoped to .hero-v2* */

.hero-v2-agent {
  position: relative;
  z-index: 10;
  margin-top: 90px;
}

.hero-v2-agent__inner {
  max-width: 72rem;
}

.hero-v2-agent__line {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.35rem;
  row-gap: 0.25rem;
}

@media (min-width: 1024px) {
  .hero-v2-agent__line {
    font-size: 0.9375rem;
    column-gap: 0.5rem;
  }
}

.hero-v2-agent__eyebrow {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68em;
  opacity: 0.95;
  font-feature-settings: "kern" 1, "liga" 1;
}

@media (min-width: 1024px) {
  .hero-v2-agent__eyebrow {
    font-size: 0.72em;
  }
}

.hero-v2-agent__dot {
  opacity: 0.45;
  font-weight: 300;
  user-select: none;
}

.hero-v2-agent__dot--wide {
  display: none;
}

@media (min-width: 640px) {
  .hero-v2-agent__dot--wide {
    display: inline;
  }
}

.hero-v2-agent__meta {
  white-space: nowrap;
}

.hero-v2-agent__label {
  font-weight: 500;
  opacity: 0.85;
  margin-right: 0.25rem;
}

.hero-v2-agent__name {
  font-weight: 700;
}

.hero-v2-agent__channels {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.hero-v2-agent__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-v2-agent__link:hover,
.hero-v2-agent__link:focus {
  color: #86c8bc;
  outline: none;
}

.hero-v2-agent__sep {
  opacity: 0.5;
  font-weight: 300;
}

/* Scrim */
.hero-v2__scrim {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    rgba(4, 30, 66, 0.62) 0%,
    rgba(4, 30, 66, 0.32) 40%,
    rgba(4, 30, 66, 0.1) 70%,
    transparent 90%
  );
  pointer-events: none;
}

/* Eyebrow above headline */
.hero-v2__kicker-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.hero-v2__kicker-ornament {
  flex: 0 0 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, #babc16, #86c8bc);
  border-radius: 2px;
  opacity: 0.95;
}

.hero-v2__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .hero-v2__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.26em;
  }
}

/* Display headline: weight + optional pearlescent gradient (fallback: solid white) */
.hero-v2__headline {
  margin: 0;
  line-height: 0.94;
}

.hero-v2__headline-inner {
  display: block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.35rem, 6.5vw, 5.25rem);
  letter-spacing: -0.042em;
  text-transform: uppercase;
  text-wrap: balance;
  /* Fallback when gradient text unsupported */
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 6px 28px rgba(0, 0, 0, 0.38);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-v2__headline-inner {
    background-image: linear-gradient(
      168deg,
      #ffffff 0%,
      #f1f5f9 18%,
      #ffffff 32%,
      #e2e8f0 48%,
      #fefce8 62%,
      #ecfccb 76%,
      #ffffff 88%,
      #f8fafc 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Thin edge so gradient letters stay crisp on busy photos */
    -webkit-text-stroke: 0.45px rgba(4, 30, 66, 0.2);
    text-shadow: none;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 20px rgba(4, 30, 66, 0.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2__headline-inner {
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-text-stroke: 0 !important;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1),
      0 2px 8px rgba(0, 0, 0, 0.5) !important;
    filter: none !important;
  }
}

/* Angled accent bar */
.hero-v2__rule {
  width: 5rem;
  height: 5px;
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
  background: linear-gradient(90deg, #babc16 0%, #86c8bc 55%, rgba(134, 200, 188, 0.35) 100%);
  border-radius: 1px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  opacity: 0.98;
}

/* Subhead: editorial contrast to condensed display */
.hero-v2__subhead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.93);
  max-width: 38ch;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .hero-v2__subhead {
    max-width: 44ch;
    font-size: clamp(1.05rem, 1.75vw, 1.3rem);
  }
}

/* Size columns to the available copy width instead of squeezing four buttons. */
.hero-v2 .hero-v2__actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.hero-v2__actions > .btn {
  min-width: 0;
  height: auto;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Vary only the fill opacity so labels retain their full contrast. */
.hero-v2 .hero-v2__action {
  --hero-action-opacity: 1;
  background-color: rgba(134, 200, 188, var(--hero-action-opacity));
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: #041e42;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero-v2 .hero-v2__action--call {
  --hero-action-opacity: 0.94;
}

.hero-v2 .hero-v2__action--inquiry {
  --hero-action-opacity: 0.88;
}

.hero-v2 .hero-v2__action:hover,
.hero-v2 .hero-v2__action:focus {
  background-color: #9cd3c9;
  border-color: transparent;
  border-radius: 0.5rem;
  color: #041e42;
}

.hero-v2 .hero-v2__action:active {
  background-color: #76b8ac;
  border-color: transparent;
  color: #041e42;
}

.hero-v2 .hero-v2__action--sitemap {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.hero-v2 .hero-v2__action--sitemap:hover,
.hero-v2 .hero-v2__action--sitemap:focus {
  background-color: #fff;
  border-color: #fff;
  color: #041e42;
}

.hero-v2 .hero-v2__action--sitemap:active {
  background-color: #e2e8f0;
  border-color: #e2e8f0;
  color: #041e42;
}

.hero-v2 .hero-v2__action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .hero-v2 .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .hero-v2-agent__line {
    font-size: 0.7rem;
  }
}

.hero-v2-modal__box {
  background-color: #fff;
}

.hero-v2-modal__box .hs-form {
  margin-top: 1rem;
}

.hero-v2-modal__close {
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #333 !important;
}

.hero-v2-modal__close:hover {
  background-color: rgba(0, 0, 0, 0.15) !important;
  color: #000 !important;
}

.modal:has(.hero-v2-modal__box) {
  z-index: 999;
}
