/* Announcement bar */
.announcement-bar {
  background: var(--color-white);
  border-bottom: 1px solid rgba(var(--color-blue-rgb), 0.08);
}

.announcement-bar__inner {
  padding: 0.65rem 0;
  text-align: center;
}

.announcement-bar__text {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  line-height: 1.5;
  margin: 0;
}

.announcement-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--color-blue);
  transition: color var(--transition);
}

.announcement-bar__link:hover {
  color: var(--color-navy);
}

.announcement-bar__link i {
  font-size: 0.7rem;
}

/* Hero viewport — announcement bar + hero fill remaining viewport below header */
.hero-viewport {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
}

.hero-viewport > .announcement-bar {
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../../assets/images/hero-image-bg.png') center center / cover no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(var(--color-blue-rgb), 0.82) 0%,
    rgba(var(--color-blue-rgb), 0.74) 30%,
    rgba(var(--color-blue-rgb), 0.46) 50%,
    rgba(var(--color-blue-rgb), 0.12) 68%,
    rgba(var(--color-blue-rgb), 0) 82%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 1.25rem;
  min-height: 0;
  order: 1;
}

.hero__copy {
  max-width: 620px;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__text {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.25rem;
}

/* Hero button uses global .btn--light hover styles */

/* Hero product boxes */
.hero__products {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding-bottom: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  order: 2;
}

.hero-product {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
  border: none;
  box-shadow: 0 10px 40px rgba(8, 12, 32, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.hero-product--link {
  cursor: pointer;
}

.hero-product--link::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.65rem;
  line-height: 1;
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  bottom: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(var(--color-blue-rgb), 0.08);
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}

.hero-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(8, 12, 32, 0.2);
}

.hero-product--link:hover::after,
.hero-product--link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
  background: rgba(var(--color-blue-rgb), 0.12);
}

.hero-product__media {
  flex: 0 0 35%;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.hero-product__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-product__body {
  flex: 1 1 65%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
}

.hero-product__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  margin: 0;
  overflow-wrap: anywhere;
}

.hero-product__text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-gray);
  margin: 0;
  overflow-wrap: anywhere;
}

/* Tablet / small laptop: 2 across */
@media (max-width: 1024px) {
  .hero__products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding-top: 1.5rem;
  }
}

/* Hide product cards on mobile */
@media (max-width: 768px) {
  .hero__products {
    display: none;
  }
}

/* Business pillars */
.hero__trust {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 1.75rem;
  width: 100%;
}

.hero__trust-header {
  text-align: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.hero__trust-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.hero__trust-sub {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.hero__carousel {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 0 0 4px;
  flex-shrink: 0;
}

.hero__carousel-track {
  position: relative;
  width: 100%;
  margin: 0;
  --ease-carousel: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-carousel: 0.9s;
}

.hero__carousel-track:not(.is-ready) .hero-pillar {
  visibility: hidden;
}

.hero-pillar {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 20px;
  background: transparent;
  border: none;
  border-radius: 18px;
  box-shadow: none;
  transform: none;
  transform-origin: top center;
  transition:
    left var(--duration-carousel) var(--ease-carousel),
    width 0s,
    margin-top var(--duration-carousel) var(--ease-carousel),
    transform var(--duration-carousel) var(--ease-carousel),
    opacity var(--duration-carousel) var(--ease-carousel),
    padding var(--duration-carousel) var(--ease-carousel);
  overflow: hidden;
  z-index: 1;
}

.hero-pillar__glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 40px rgba(8, 12, 32, 0.15);
  transition:
    background var(--duration-carousel) var(--ease-carousel),
    border-color var(--duration-carousel) var(--ease-carousel),
    box-shadow var(--duration-carousel) var(--ease-carousel),
    backdrop-filter var(--duration-carousel) var(--ease-carousel),
    -webkit-backdrop-filter var(--duration-carousel) var(--ease-carousel);
}

.hero-pillar > *:not(.hero-pillar__glass) {
  position: relative;
  z-index: 2;
}

.hero-pillar.is-active,
.hero-pillar[data-offset="0"] {
  transition:
    left var(--duration-carousel) var(--ease-carousel),
    width 0s,
    margin-top var(--duration-carousel) var(--ease-carousel),
    transform var(--duration-carousel) var(--ease-carousel),
    opacity var(--duration-carousel) var(--ease-carousel),
    padding var(--duration-carousel) var(--ease-carousel);
}

.hero-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-green);
  border-radius: 18px 18px 0 0;
  z-index: 1;
  transition: background var(--duration-carousel) var(--ease-carousel);
}

.hero-pillar[data-offset="-1"] {
  margin-top: 20px;
  padding: 16px;
  transform: scale(0.88);
  opacity: 1;
  z-index: 2;
}

.hero-pillar[data-offset="0"],
.hero-pillar.is-active {
  margin-top: 0;
  padding: 20px;
  transform: none;
  opacity: 1;
  z-index: 3;
}

.hero-pillar[data-offset="0"] .hero-pillar__glass,
.hero-pillar.is-active .hero-pillar__glass {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 52px rgba(8, 12, 32, 0.22);
}

.hero-pillar[data-offset="1"] {
  margin-top: 20px;
  padding: 16px;
  transform: scale(0.88);
  opacity: 1;
  z-index: 2;
}

.hero-pillar[data-offset="-2"],
.hero-pillar[data-offset="2"] {
  margin-top: 22px;
  padding: 16px;
  transform: scale(0.84);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-pillar[data-offset="0"]::before,
.hero-pillar.is-active::before {
  background: var(--color-blue);
}

.hero-pillar__num {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.hero-pillar__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(var(--color-blue-rgb), 0.15);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition:
    background var(--duration-carousel) var(--ease-carousel),
    color var(--duration-carousel) var(--ease-carousel);
}

.hero-pillar[data-offset="0"] .hero-pillar__icon,
.hero-pillar.is-active .hero-pillar__icon {
  background: var(--color-blue);
  color: var(--color-white);
}

.hero-pillar:nth-child(even) .hero-pillar__icon {
  color: var(--color-blue);
  background: rgba(var(--color-blue-rgb), 0.12);
}

.hero-pillar:nth-child(even).is-active .hero-pillar__icon,
.hero-pillar:nth-child(even)[data-offset="0"] .hero-pillar__icon {
  background: var(--color-green);
  color: var(--color-white);
}

.hero-pillar__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-pillar__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-pillar[data-offset="-1"] .hero-pillar__icon,
.hero-pillar[data-offset="1"] .hero-pillar__icon {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.hero-pillar[data-offset="-1"] .hero-pillar__title,
.hero-pillar[data-offset="1"] .hero-pillar__title {
  font-size: 0.88rem;
}

.hero-pillar[data-offset="-1"] .hero-pillar__text,
.hero-pillar[data-offset="1"] .hero-pillar__text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Hero load entrance — pure CSS (no JS) */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow,
.hero__title,
.hero__text,
.hero__copy .btn,
.hero__trust-eyebrow,
.hero__trust-sub {
  animation: heroEntrance var(--reveal-duration) var(--ease-out-expo) both;
}

@keyframes heroEntranceFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero__carousel {
  animation: heroEntranceFade var(--reveal-duration) var(--ease-out-expo) both;
}

.hero__eyebrow {
  animation-delay: 0ms;
}

.hero__title {
  animation-delay: 100ms;
}

.hero__text {
  animation-delay: 200ms;
}

.hero__copy .btn {
  animation-delay: 300ms;
}

.hero__trust-eyebrow {
  animation-delay: 450ms;
}

.hero__trust-sub {
  animation-delay: 530ms;
}

.hero__carousel {
  animation-delay: 620ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title,
  .hero__text,
  .hero__copy .btn,
  .hero__trust-eyebrow,
  .hero__trust-sub,
  .hero__carousel {
    animation: none;
  }
}

@media (max-width: 767px) {
  .hero-pillar[data-offset="-1"],
  .hero-pillar[data-offset="1"] {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }

  .hero-pillar[data-offset="0"],
  .hero-pillar.is-active {
    margin-top: 0;
    padding: 16px;
    transform: none;
  }

  .hero__carousel {
    padding: 0 16px 4px;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .hero-viewport {
    height: auto;
    min-height: calc(100dvh - var(--site-header-height));
  }

  .hero {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: calc(100dvh - var(--site-header-height));
    overflow: visible;
  }

  .hero__content {
    flex: 1 1 auto;
    min-height: calc(100dvh - var(--site-header-height));
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .hero__products {
    padding-top: 1.5rem;
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  .hero-viewport {
    height: auto;
    min-height: calc(100dvh - var(--site-header-height));
  }

  .hero__content {
    padding-top: 2.75rem;
    padding-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .hero__trust-header {
    margin-bottom: 0.85rem;
  }

  .hero-pillar__title {
    font-size: 0.9rem;
  }

  .hero-pillar__text {
    font-size: 0.8rem;
  }

  .announcement-bar__text {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

@media (max-width: 768px) {
  .hero {
    flex: 1 1 auto;
    min-height: 0;
  }

  .hero__content {
    flex: 1 1 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: center;
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero__text {
    font-size: var(--font-size-base);
    margin-bottom: 1.5rem;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(var(--color-blue-rgb), 0.8) 0%,
      rgba(var(--color-blue-rgb), 0.64) 60%,
      rgba(var(--color-blue-rgb), 0.34) 100%
    );
  }

  .hero-viewport {
    height: auto;
    min-height: calc(100dvh - var(--site-header-height));
  }

  .hero__trust {
    padding-bottom: 1.5rem;
  }
}
