/* ============================================
   ATT Hero Block
   ============================================ */

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

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

/* Themes */
.att-hero--dark {
  background-color: var(--att-navy);
  color: #fff !important;
}

.att-hero--light {
  background-color: var(--att-cream);
  color: var(--att-navy);
}

.att-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .att-hero__container {
    padding-right: 30px;
    padding-left: 30px;
  }
}

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

.att-hero__corner--top {
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
}

.att-hero__corner--bottom {
  right: 0;
  bottom: 0;
  width: 192px;
  height: 192px;
}

.att-hero--dark .att-hero__corner--top {
  background: linear-gradient(
    135deg,
    rgba(42, 63, 117, 0.4) 50%,
    transparent 50%
  );
}

.att-hero--dark .att-hero__corner--bottom {
  background: linear-gradient(
    315deg,
    rgba(42, 63, 117, 0.4) 50%,
    transparent 50%
  );
}

.att-hero--light .att-hero__corner--top {
  background: linear-gradient(135deg, var(--att-orange) 50%, transparent 50%);
}

.att-hero--light .att-hero__corner--bottom {
  background: linear-gradient(315deg, var(--att-orange) 50%, transparent 50%);
}

/* --- Breadcrumb ------------------------------ */
.att-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.att-hero__breadcrumb a,
.att-hero__breadcrumb span {
  color: currentColor;
  text-decoration: none;
  transition: color 0.2s ease;
}

.att-hero__breadcrumb a:hover,
.att-hero__breadcrumb a:focus-visible {
  color: var(--att-orange);
}

.att-hero__breadcrumb [aria-current="page"] {
  color: var(--att-orange);
  font-weight: 700;
}

/* --- Grid ------------------------------------ */
.att-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.att-hero__content {
  max-width: 640px;
}

/* --- Heading & tagline ----------------------- */
.att-hero__heading {
  max-width: 12ch;
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
}

.att-hero__tagline {
  max-width: 54ch;
  margin: 0 0 30px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.7;
}

.att-hero--dark .att-hero__tagline {
  color: rgba(255, 255, 255, 0.9);
}

.att-hero--light .att-hero__tagline {
  color: rgb(68, 68, 68);
}

/* --- Actions --------------------------------- */
.att-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.att-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 0;
  border-radius: 10px;
  background: var(--att-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.att-hero__button:hover,
.att-hero__button:focus-visible {
  background: #fff;
  color: var(--att-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.att-hero--light .att-hero__button:hover,
.att-hero--light .att-hero__button:focus-visible {
  background: var(--att-navy);
  color: #fff;
}

.att-hero__button-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.att-hero__button:hover .att-hero__button-arrow,
.att-hero__button:focus-visible .att-hero__button-arrow {
  transform: translateX(4px);
}

.att-hero:has(.att-hero__button:hover) .att-hero__image,
.att-hero:has(.att-hero__button:focus-visible) .att-hero__image {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
}

.att-hero:has(.att-hero__button:hover) .att-hero__image-accent,
.att-hero:has(.att-hero__button:focus-visible) .att-hero__image-accent {
  transform: translate(8px, 8px);
}

/* --- Phone link --------------------------------- */

/* Base link styling */
.att-hero a.att-hero__phone,
.att-hero a.att-hero__phone:link,
.att-hero a.att-hero__phone:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: color 0.22s ease !important;
}

/* Dark hero: white text + white icon */
.att-hero--dark a.att-hero__phone,
.att-hero--dark a.att-hero__phone:link,
.att-hero--dark a.att-hero__phone:visited {
  color: #ffffff !important;
}

.att-hero--dark a.att-hero__phone svg {
  stroke: #ffffff !important;
}

/* Light hero: navy text + navy icon */
.att-hero--light a.att-hero__phone,
.att-hero--light a.att-hero__phone:link,
.att-hero--light a.att-hero__phone:visited {
  color: #00053e !important;
}

.att-hero--light a.att-hero__phone svg {
  stroke: #00053e !important;
}

/* Hover / focus (both themes) — orange */
.att-hero a.att-hero__phone:hover,
.att-hero a.att-hero__phone:focus,
.att-hero a.att-hero__phone:focus-visible {
  color: #f57f29 !important;
}

.att-hero a.att-hero__phone:hover svg,
.att-hero a.att-hero__phone:focus svg,
.att-hero a.att-hero__phone:focus-visible svg {
  stroke: #f57f29 !important;
}

/* Icon circle wrapper */
.att-hero__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background-color 0.22s ease;
}

/* Subtle background on hover */
.att-hero--dark a.att-hero__phone:hover .att-hero__phone-icon,
.att-hero--dark a.att-hero__phone:focus-visible .att-hero__phone-icon {
  background: rgba(255, 255, 255, 0.12);
}

.att-hero--light a.att-hero__phone:hover .att-hero__phone-icon,
.att-hero--light a.att-hero__phone:focus-visible .att-hero__phone-icon {
  background: rgba(245, 127, 41, 0.14);
}

/* --- Highlights ------------------------------ */
.att-hero__highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.att-hero__highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: inherit;
}

.att-hero--dark .att-hero__highlight {
  color: rgba(255, 255, 255, 0.9);
}

.att-hero--light .att-hero__highlight {
  color: rgba(0, 5, 62, 0.82);
}

.att-hero__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--att-orange);
  color: #ffffff;
}

/* --- Media ----------------------------------- */
.att-hero__media {
  position: relative;
  min-height: 380px;
}

.att-hero__image-accent {
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 28px;
  transition: transform 0.3s ease;
}

.att-hero--dark .att-hero__image-accent {
  background: var(--att-orange);
}

.att-hero--light .att-hero__image-accent {
  background: var(--att-navy);
}

.att-hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 380px;
  max-height: 500px;
  max-width: 100%;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.att-hero__media:hover .att-hero__image {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
}

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

/* --- Responsive ------------------------------ */

/* Tablet & below: single column, content first */
@media (max-width: 991px) {
  .att-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .att-hero__content {
    max-width: 100%;
    order: 1;
  }

  .att-hero__media {
    min-height: auto;
    order: 2;
  }

  .att-hero__heading {
    max-width: 100%;
  }
}

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

  /* Centre heading & tagline */
  .att-hero__content {
    text-align: center;
  }

  .att-hero__heading {
    font-size: clamp(2rem, 9vw, 2.75rem);
    margin: 0 auto 14px;
  }

  .att-hero__tagline {
    font-size: 1rem;
    margin: 0 auto 24px;
  }

  /* Breadcrumb stays left-aligned */
  .att-hero__breadcrumb {
    justify-content: flex-start;
    margin-bottom: 24px;
    font-size: 0.85rem;
  }

  /* Actions: keep CTA + phone side-by-side, centred */
  .att-hero__actions {
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .att-hero__button {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  /* Phone: hide text label, keep icon only */
  .att-hero a.att-hero__phone {
    padding: 8px;
    gap: 0;
  }

  .att-hero a.att-hero__phone > span:last-child {
    /* Hides the phone number text */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .att-hero__phone-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
  }

  .att-hero--light .att-hero__phone-icon {
    background: rgba(0, 5, 62, 0.06);
  }

  /* Highlights: left-align (readability) */
  .att-hero__highlights {
    text-align: left;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Image */
  .att-hero__image,
  .att-hero__image-accent {
    border-radius: 20px;
  }

  .att-hero__image {
    min-height: 240px;
    max-height: 320px;
  }

  /* Decorative corners smaller */
  .att-hero__corner--top {
    width: 110px;
    height: 110px;
  }

  .att-hero__corner--bottom {
    width: 130px;
    height: 130px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .att-hero {
    padding: 40px 0;
  }

  .att-hero__heading {
    font-size: clamp(1.9rem, 10vw, 2.4rem);
  }

  .att-hero__image {
    min-height: 220px;
  }
}
