/* ============================================
   ATT — Hero Split Block
   ============================================ */

.att-hero-split {
  --att-navy: #00053e;
  --att-orange: #f57f29;
  --att-cream: #f5f0eb;

  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0;
}

.att-hero-split--bg-white {
  background-color: #ffffff;
}
.att-hero-split--bg-cream {
  background-color: var(--att-cream);
}
.att-hero-split--bg-navy {
  background-color: var(--att-navy);
}

.att-hero-split__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 992px) {
  .att-hero-split__container {
    grid-template-columns: 1fr 1fr;
    padding-inline: 30px;
  }
}

/* --- Corners -------------------------------- */
.att-hero-split__corner {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.att-hero-split__corner--top {
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--att-orange) 50%, transparent 50%);
}

.att-hero-split__corner--bottom {
  right: 0;
  bottom: 0;
  width: 192px;
  height: 192px;
  background: linear-gradient(315deg, var(--att-orange) 50%, transparent 50%);
}

/* --- Content -------------------------------- */
.att-hero-split__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.att-hero-split__badge {
  width: clamp(200px, 32vw, 400px);
}

.att-hero-split__badge-img {
  width: 100%;
  height: auto;
  display: block;
}

.att-hero-split__heading {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--att-navy);
}

.att-hero-split--bg-navy .att-hero-split__heading {
  color: #ffffff;
}

.att-hero-split__body {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  font-weight: 500;
  max-width: 40ch;
  margin: 0;
  color: #444444;
}

.att-hero-split--bg-navy .att-hero-split__body {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Buttons -------------------------------- */
.att-hero-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.att-hero-split__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

/* Primary: orange → navy */
.att-hero-split__btn--primary {
  background: var(--att-orange);
  border-color: var(--att-orange);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 5, 62, 0.18);
}

.att-hero-split__btn--primary:hover,
.att-hero-split__btn--primary:focus-visible {
  background: var(--att-navy);
  border-color: var(--att-navy);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 5, 62, 0.28);
}

/* Secondary: navy → orange */
.att-hero-split__btn--secondary {
  background: var(--att-navy);
  border-color: var(--att-navy);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 5, 62, 0.18);
}

.att-hero-split__btn--secondary:hover,
.att-hero-split__btn--secondary:focus-visible {
  background: var(--att-orange);
  border-color: var(--att-orange);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 127, 41, 0.3);
}

/* On navy background, give secondary a white outline so it's distinct */
.att-hero-split--bg-navy .att-hero-split__btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}

.att-hero-split--bg-navy .att-hero-split__btn--secondary:hover,
.att-hero-split--bg-navy .att-hero-split__btn--secondary:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--att-navy);
}

.att-hero-split__arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.att-hero-split__btn:hover .att-hero-split__arrow,
.att-hero-split__btn:focus-visible .att-hero-split__arrow {
  transform: translateX(4px);
}

/* --- Media ---------------------------------- */
.att-hero-split__media {
  position: relative;
  width: 100%;
  min-height: 420px;
}

.att-hero-split__media-accent {
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 28px;
  background: var(--att-navy);
  transition: transform 0.3s ease;
}

/* On navy bg, accent flips to orange for contrast */
.att-hero-split--bg-navy .att-hero-split__media-accent {
  background: var(--att-orange);
}

.att-hero-split__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 420px;
  max-height: 580px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 5, 62, 0.12);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.att-hero-split__media:hover .att-hero-split__image {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 5, 62, 0.22);
}

.att-hero-split__media:hover .att-hero-split__media-accent {
  transform: translate(8px, 8px);
}

/* When the primary button is hovered/focused, animate the image too */
.att-hero-split:has(.att-hero-split__btn--primary:hover) .att-hero-split__image,
.att-hero-split:has(.att-hero-split__btn--primary:focus-visible)
  .att-hero-split__image {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 5, 62, 0.22);
}

.att-hero-split:has(.att-hero-split__btn--primary:hover)
  .att-hero-split__media-accent,
.att-hero-split:has(.att-hero-split__btn--primary:focus-visible)
  .att-hero-split__media-accent {
  transform: translate(8px, 8px);
}

/* --- Responsive ----------------------------- */
@media (max-width: 991px) {
  .att-hero-split__media {
    min-height: auto;
  }

  .att-hero-split__image {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .att-hero-split {
    padding: 48px 0;
  }

  .att-hero-split__actions {
    flex-direction: column;
  }

  .att-hero-split__btn {
    width: 100%;
    justify-content: center;
  }

  .att-hero-split__corner--top {
    width: 110px;
    height: 110px;
  }
  .att-hero-split__corner--bottom {
    width: 130px;
    height: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .att-hero-split *,
  .att-hero-split *::before,
  .att-hero-split *::after {
    transition-duration: 0.01ms !important;
  }
}
