/* Commercial homepage HERO experiment.
   Scoped to the two commercial homepages so shared product and mining heroes
   remain unchanged. */

.hero.commercial-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(600px, 64vh, 720px);
  overflow: hidden;
  color: #fff;
  background: #00122f;
}

.commercial-home-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 18, 47, 0.98) 0%, rgba(0, 18, 47, 0.9) 37%, rgba(0, 18, 47, 0.42) 58%, rgba(0, 18, 47, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 18, 47, 0.05), rgba(0, 18, 47, 0.2));
  content: "";
  pointer-events: none;
}

.commercial-home-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
}

.commercial-home-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.commercial-home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-height: inherit;
  margin: 0;
  padding: clamp(38px, 4vw, 56px) clamp(28px, 5vw, 96px);
  align-items: start;
}

.commercial-home-hero__copy {
  width: min(52%, 840px);
}

.commercial-home-hero__copy .eyebrow {
  max-width: 800px;
  margin-bottom: 12px;
  color: var(--yellow, #f8b918);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero.commercial-home-hero h1 {
  max-width: 840px;
  margin: 0 0 18px;
  font-size: clamp(2.45rem, 3.8vw, 4rem);
  line-height: 1.03;
  text-wrap: balance;
}

.commercial-home-hero__lead {
  max-width: 800px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.55;
}

.commercial-home-hero .hero-actions {
  margin: 0;
}

.commercial-home-hero .btn.primary {
  min-height: 48px;
  padding-inline: 22px;
  box-shadow: 0 16px 34px rgba(248, 185, 24, 0.24);
}

.commercial-home-proof-strip {
  color: #071d3c;
  background: #fff;
  border-bottom: 1px solid rgba(7, 29, 60, 0.12);
}

.commercial-home-proof-strip__inner {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  padding: 0 clamp(28px, 5vw, 96px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.commercial-home-proof-strip article {
  min-width: 0;
  padding: 20px 22px 22px;
  border-left: 1px solid rgba(7, 29, 60, 0.12);
}

.commercial-home-proof-strip article:last-child {
  border-right: 1px solid rgba(7, 29, 60, 0.12);
}

.commercial-home-proof-strip strong,
.commercial-home-proof-strip span {
  display: block;
}

.commercial-home-proof-strip strong {
  margin-bottom: 6px;
  color: #073b87;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  line-height: 1.25;
}

.commercial-home-proof-strip span {
  color: rgba(7, 29, 60, 0.7);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (min-width: 1101px) {
  html[lang="es-419"] .commercial-home-hero__copy {
    width: min(59%, 900px);
  }

  html[lang="es-419"] .hero.commercial-home-hero h1 {
    max-width: 900px;
    font-size: clamp(2.35rem, 3.45vw, 3.65rem);
    text-wrap: pretty;
  }
}

@media (max-width: 1100px) {
  .commercial-home-hero__copy {
    width: min(64%, 740px);
  }

  .hero.commercial-home-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.6rem);
  }
}

@media (max-width: 900px) {
  .commercial-home-proof-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-home-proof-strip article:nth-child(2) {
    border-right: 1px solid rgba(7, 29, 60, 0.12);
  }

  .commercial-home-proof-strip article:nth-child(n + 3) {
    border-top: 1px solid rgba(7, 29, 60, 0.12);
  }
}

@media (max-width: 760px) {
  .hero.commercial-home-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    background: #00122f;
  }

  .commercial-home-hero::before {
    display: none;
  }

  .commercial-home-hero__media {
    position: relative;
    order: 1;
    inset: auto;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .commercial-home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .commercial-home-hero__inner {
    order: 2;
    width: 100%;
    min-height: 0;
    padding: 22px 20px 32px;
    background:
      radial-gradient(circle at 100% 0%, rgba(26, 123, 255, 0.22), transparent 46%),
      #00122f;
  }

  .commercial-home-hero__copy {
    display: flex;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    flex-direction: column;
  }

  .commercial-home-hero__copy .eyebrow {
    order: 1;
    margin-bottom: 10px;
    font-size: 0.75rem;
  }

  .hero.commercial-home-hero h1 {
    order: 2;
    margin-bottom: 16px;
    font-size: clamp(1.95rem, 8.4vw, 2.35rem);
    line-height: 1.08;
    text-wrap: pretty;
  }

  .commercial-home-hero__lead {
    order: 3;
    margin-bottom: 22px;
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .commercial-home-hero .hero-actions {
    order: 4;
    margin-bottom: 0;
  }

  .commercial-home-hero .hero-actions,
  .commercial-home-hero .btn.primary {
    width: 100%;
    font-size: 0.96rem;
    line-height: 1.3;
    text-align: center;
  }

  .mobile-cta[data-home-hero-cta] {
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .mobile-cta[data-home-hero-cta].is-hero-visible {
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .commercial-home-proof-strip__inner {
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .commercial-home-proof-strip article,
  .commercial-home-proof-strip article:nth-child(2),
  .commercial-home-proof-strip article:last-child {
    padding: 16px 0 17px;
    border-right: 0;
    border-left: 0;
  }

  .commercial-home-proof-strip article + article {
    border-top: 1px solid rgba(7, 29, 60, 0.12);
  }
}

/* Align the full-bleed home HERO's meaningful content with the site shell. */
@media (min-width: 1921px) {
  .commercial-home-hero__inner,
  .commercial-home-proof-strip__inner {
    box-sizing: border-box;
    width: var(--site-shell-wide, 1760px) !important;
    max-width: var(--site-shell-wide, 1760px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }
}
