/* Lit Aid brand visual layer for TOP and About. Loaded after post-launch-polish.css. */

.c-hero--top {
  position: relative;
  display: grid;
  min-height: max(660px, calc(100svh - 76px));
  align-items: center;
  padding: clamp(76px, 8vw, 116px) 0;
  overflow: hidden;
  color: #fff;
  background-color: #020610;
}

.c-hero--top .c-hero-brand-media,
.c-hero--top .c-hero-brand-overlay {
  position: absolute;
  inset: 0;
}

.c-hero--top .c-hero-brand-media {
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020610;
}

.c-hero--top .c-hero-brand-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.c-hero--top .c-hero-brand-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 6, 16, 0.72) 0%, rgba(2, 6, 16, 0.44) 40%, rgba(2, 6, 16, 0.12) 66%, rgba(2, 6, 16, 0.03) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 36%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(circle at 75% 24%, rgba(35, 142, 255, 0.07), transparent 30%);
  pointer-events: none;
}

.c-hero--top .c-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.c-hero--top .c-hero__content {
  width: 100%;
  max-width: 650px;
}

.c-hero--top .c-section-label {
  color: #69cbff;
}

.c-hero--top h1 {
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  text-wrap: balance;
}

.c-hero--top .c-hero__lead {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.34);
}

.c-hero--top .c-button--secondary {
  color: #fff;
  background: rgba(5, 17, 34, 0.66);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.c-hero--top .c-button--secondary:hover,
.c-hero--top .c-button--secondary:focus {
  background: rgba(8, 30, 58, 0.88);
  border-color: rgba(105, 203, 255, 0.56);
}

.c-hero--top .c-scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.c-hero--top .c-scope-list li {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(3, 13, 27, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

/* The operating-map markup remains available for rollback, but the brand image is the TOP visual. */
.c-hero--top .c-command-visual {
  display: none !important;
}

/* About: replace the old placeholder with the same brand visual used in the TOP hero. */
body.page-template-page-about .c-batch-brand-panel::before {
  display: none !important;
  content: none !important;
}

body.page-template-page-about .c-batch-brand-panel__visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-bottom: 24px;
  overflow: hidden;
  background: #020610;
  border: 1px solid rgba(12, 49, 85, 0.14);
  border-radius: 4px;
}

body.page-template-page-about .c-batch-brand-panel__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1201px) {
  .c-hero--top .c-hero-brand-media img {
    object-position: center;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .c-hero--top {
    min-height: 680px;
  }

  .c-hero--top .c-hero-brand-media img {
    object-position: center;
  }

  .c-hero--top .c-hero-brand-overlay {
    background:
      linear-gradient(90deg, rgba(2, 6, 16, 0.76) 0%, rgba(2, 6, 16, 0.5) 44%, rgba(2, 6, 16, 0.11) 72%, rgba(2, 6, 16, 0.03) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 36%, rgba(0, 0, 0, 0.18) 100%);
  }

  .c-hero--top .c-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  }
}

@media (max-width: 900px) {
  .c-hero--top {
    min-height: 760px;
    padding: 70px 0 80px;
    align-items: start;
  }

  .c-hero--top .c-hero-brand-media img {
    object-position: 66% center;
  }

  .c-hero--top .c-hero-brand-overlay {
    background:
      linear-gradient(90deg, rgba(2, 6, 16, 0.96) 0%, rgba(2, 6, 16, 0.84) 48%, rgba(2, 6, 16, 0.38) 76%, rgba(2, 6, 16, 0.12) 100%),
      linear-gradient(180deg, rgba(2, 6, 16, 0.14) 0%, rgba(2, 6, 16, 0.04) 52%, rgba(2, 6, 16, 0.24) 100%);
  }

  .c-hero--top .c-hero__inner {
    display: block;
    min-height: 610px;
  }

  .c-hero--top .c-hero__content {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .c-hero--top {
    min-height: 760px;
    padding: 52px 0 64px;
  }

  .c-hero--top .c-hero-brand-media img {
    object-position: 72% center;
  }

  .c-hero--top .c-hero-brand-overlay {
    background:
      linear-gradient(90deg, rgba(2, 6, 16, 0.97) 0%, rgba(2, 6, 16, 0.9) 52%, rgba(2, 6, 16, 0.45) 78%, rgba(2, 6, 16, 0.14) 100%),
      linear-gradient(180deg, rgba(2, 6, 16, 0.1) 0%, rgba(2, 6, 16, 0.02) 50%, rgba(2, 6, 16, 0.25) 100%);
  }

  .c-hero--top .c-hero__inner {
    min-height: 640px;
  }

  .c-hero--top h1 {
    font-size: clamp(2rem, 9.4vw, 2.75rem);
    line-height: 1.2;
  }

  .c-hero--top .c-hero__lead {
    max-width: 94%;
    font-size: 1rem;
    line-height: 1.75;
  }

  .c-hero--top .c-button-group {
    gap: 10px;
  }

  .c-hero--top .c-scope-list {
    max-width: 92%;
    margin-top: 20px;
  }

  body.page-template-page-about .c-batch-brand-panel__visual {
    aspect-ratio: 16 / 9;
  }

  body.page-template-page-about .c-batch-brand-panel__visual img {
    object-position: 60% center;
  }
}
