/**
 * Safeguard hero variants V1–V5 (light topologies).
 * Tokens come from safeguard-home.css.
 */

/* Shared */
.sg-hv {
  position: relative;
  background: #fff;
  color: var(--sg-ink);
  overflow: clip;
}

.sg-hv__badge {
  margin: 0 0 0.5rem;
  font-family: var(--sg-font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-blue);
}

.sg-hv__badge--on-dark {
  color: #8fb8d4;
}

.sg-hv__title {
  margin: 0 0 0.75rem;
  font-family: var(--sg-font-head);
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--sg-navy);
}

.sg-hv__title--on-dark {
  color: #fff;
}

.sg-hv__accent {
  color: var(--sg-blue);
}

.sg-hv__title--on-dark .sg-hv__accent {
  color: var(--sg-orange);
}

.sg-hv__lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--sg-muted);
}

.sg-hv__lead--on-dark {
  color: rgba(255, 255, 255, 0.72);
  max-width: none;
  font-size: 0.95rem;
}

.sg-hv__ctas {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}

.sg-hv__ctas .sg-btn {
  flex: 0 1 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sg-hv__ctas {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
  }

  .sg-hv__ctas .sg-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

.sg-hv__ctas--center {
  justify-content: center;
}

.sg-hv__ctas--stack {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.sg-hv__ctas--stack .sg-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.sg-hv__note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--sg-muted);
}

.sg-hv__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--sg-muted);
}

.sg-hv__breadcrumb a {
  color: var(--sg-blue);
  text-decoration: none;
}

.sg-hv__breadcrumb a:hover {
  text-decoration: underline;
}

.sg-hv--rail .sg-hv__breadcrumb {
  color: rgba(255, 255, 255, 0.65);
}

.sg-hv--rail .sg-hv__breadcrumb a {
  color: #8fb8d4;
}

.sg-hv__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-hv__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background: linear-gradient(145deg, #e8eaed, #9aa3ad 55%, var(--sg-navy));
  color: rgba(12, 45, 68, 0.45);
  font-family: var(--sg-font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.sg-hv__ph span {
  max-width: 12rem;
}

/* Soft orange / soft blue CTAs use global .sg-btn--soft-* in safeguard-home.css */

/* ========== V1 Stack ========== */
.sg-hv--stack {
  background: #fff;
  border-bottom: 1px solid var(--sg-line);
}

.sg-hv--stack__inner {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 1.5rem;
}

.sg-hv--stack__copy {
  max-width: 40rem;
}

.sg-hv--stack__media {
  width: 100%;
  min-height: clamp(12rem, 32vw, 22rem);
  border-top: 1px solid var(--sg-line);
  background: transparent;
  overflow: hidden;
}

.sg-hv--stack__media .sg-hv__ph,
.sg-hv--stack__media .sg-cctv-media-placeholder,
.sg-hv--stack__media img,
.sg-hv--stack__media .sg-hero__pillar-img {
  min-height: clamp(12rem, 32vw, 22rem);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-hv--stack__media .sg-cctv-media-placeholder {
  display: block;
  background: linear-gradient(145deg, #e8eaed, #9aa3ad 55%, var(--sg-navy));
}

/* ========== V2 Bleed — light wash + overlay copy + feature banner ========== */
.sg-hv--bleed {
  min-height: clamp(28rem, 62vw, 38rem);
  display: flex;
  align-items: stretch;
  background: #fff;
}

.sg-hv--bleed__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sg-hv--bleed__bg-img,
.sg-hv--bleed__bg .sg-hv__img,
.sg-hv--bleed__bg img,
.sg-hv--bleed__bg .sg-hero__pillar-img,
.sg-hv--bleed__bg .sg-cctv-media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.sg-hv--bleed__ph {
  min-height: 100%;
}

.sg-hv--bleed__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247, 248, 250, 0.97) 0%,
    rgba(247, 248, 250, 0.9) 34%,
    rgba(247, 248, 250, 0.45) 62%,
    rgba(247, 248, 250, 0.08) 100%
  );
}

.sg-hv--bleed__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding-block: clamp(2rem, 5vw, 3rem) 0;
}

.sg-hv--bleed__copy {
  width: min(100%, 34rem);
  padding-bottom: 0.5rem;
}

.sg-hv--bleed .sg-hv__lead {
  color: var(--sg-muted);
  max-width: 34rem;
}

.sg-hv--bleed__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sg-hv--bleed__btn-icon {
  display: inline-flex;
  color: inherit;
}

.sg-hv--bleed__btn-icon .sg-lucide-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.sg-hv--bleed__banner {
  margin-top: auto;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sg-line);
  border-bottom: 0;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(12, 45, 68, 0.06);
}

.sg-hv--bleed__banner .sg-hv--split__features-list {
  padding-top: 0;
}

@media (max-width: 640px) {
  .sg-hv--bleed {
    min-height: 0;
  }

  .sg-hv--bleed__wash {
    background: linear-gradient(
      180deg,
      rgba(247, 248, 250, 0.97) 0%,
      rgba(247, 248, 250, 0.92) 52%,
      rgba(247, 248, 250, 0.55) 100%
    );
  }

  .sg-hv--bleed__bg-img,
  .sg-hv--bleed__bg .sg-hv__img,
  .sg-hv--bleed__bg img,
  .sg-hv--bleed__bg .sg-hero__pillar-img {
    object-position: center center;
  }

  .sg-hv--bleed__copy {
    width: 100%;
  }

  .sg-hv--bleed__inner {
    padding-bottom: 0;
  }

  .sg-hv--bleed__banner {
    border-radius: 0.65rem 0.65rem 0 0;
    padding: 0.75rem 0.65rem;
  }
}

/* ========== V3 Range deck ========== */
.sg-hv--deck {
  background: #fff;
  border-bottom: 1px solid var(--sg-line);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.sg-hv--deck__head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

.sg-hv--deck__head .sg-hv__lead {
  margin-inline: auto;
}

.sg-hv--deck__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .sg-hv--deck__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sg-hv--deck__tile {
  min-width: 0;
  border: 1px solid var(--sg-line);
  background: transparent;
}

.sg-hv--deck__link {
  display: grid;
  grid-template-rows: 8.5rem auto;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sg-hv--deck__link:hover .sg-hv--deck__body strong {
  color: var(--sg-blue);
}

.sg-hv--deck__media {
  overflow: hidden;
  background: transparent;
}

.sg-hv--deck__media .sg-hv__ph,
.sg-hv--deck__media img,
.sg-hv--deck__media .sg-cctv-media-placeholder {
  min-height: 8.5rem;
  height: 100%;
}

.sg-hv--deck__body {
  padding: 0.95rem 1rem 1.1rem;
}

.sg-hv--deck__body strong {
  display: block;
  font-family: var(--sg-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 0.25rem;
}

.sg-hv--deck__body span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--sg-muted);
}

/* ========== V4 Contained panel split (navy copy + image) ========== */
.sg-hv--rail {
  background: #fff;
  border-bottom: 1px solid var(--sg-line);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.sg-hv--rail__shell {
  max-width: var(--sg-max);
  margin-inline: auto;
}

.sg-hv--rail__layout {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--sg-line);
  overflow: hidden;
  background: var(--sg-navy);
}

@media (min-width: 900px) {
  .sg-hv--rail__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 26rem;
  }
}

.sg-hv--rail__copy {
  color: #fff;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.15rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.sg-hv--rail__media {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background: var(--sg-navy);
}

@media (min-width: 900px) {
  .sg-hv--rail__media {
    min-height: 100%;
  }
}

.sg-hv--rail__media .sg-hv__ph,
.sg-hv--rail__media img,
.sg-hv--rail__media .sg-hv--rail__img,
.sg-hv--rail__media .sg-hero__pillar-img,
.sg-hv--rail__media .sg-cctv-media-placeholder,
.sg-hv--rail__media .sg-ps-hero-placeholder,
.sg-hv--rail__media .sg-ps-media-placeholder,
.sg-hv--rail__media [class*="placeholder"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.sg-hv--rail__media .sg-hv__ph {
  display: grid;
  place-items: center;
  position: absolute;
}

/* ========== V5 Centered editorial ========== */
.sg-hv--editorial {
  background: #fff;
  border-bottom: 1px solid var(--sg-line);
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.sg-hv--editorial__inner {
  max-width: 40rem;
  margin-inline: auto;
}

.sg-hv--editorial .sg-hv__breadcrumb {
  justify-content: center;
}

.sg-hv--editorial .sg-hv__lead {
  margin-inline: auto;
}

.sg-hv--editorial__phone {
  margin: 0 0 1.25rem;
  font-family: var(--sg-font-head);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.sg-hv--editorial__phone a {
  color: var(--sg-blue);
  text-decoration: none;
}

.sg-hv--editorial__phone a:hover {
  color: var(--sg-blue-hover);
}

.sg-hv--editorial__proof {
  list-style: none;
  margin: 1.75rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 40rem;
  border-top: 1px solid var(--sg-line);
}

@media (min-width: 640px) {
  .sg-hv--editorial__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sg-hv--editorial__proof li {
  padding: 0.95rem 0.65rem;
  font-size: 0.82rem;
  color: var(--sg-muted);
  border-bottom: 1px solid var(--sg-line);
}

@media (min-width: 640px) {
  .sg-hv--editorial__proof li {
    border-bottom: 0;
    border-right: 1px solid var(--sg-line);
  }

  .sg-hv--editorial__proof li:last-child {
    border-right: 0;
  }
}

.sg-hv--editorial__proof strong {
  display: block;
  font-family: var(--sg-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 0.15rem;
}

/* ========== Light split (contained: copy L / photo R + edge fade) ========== */
.sg-hv--split {
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
}

.sg-hv--split__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sg-hv--split__stage {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  background: transparent;
}

@media (min-width: 900px) {
  .sg-hv--split__stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: clamp(24rem, 52vh, 30rem);
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: stretch;
  }
}

.sg-hv--split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 1.5vw, 1rem) 0 clamp(1.25rem, 3vw, 1.75rem);
  background: transparent;
  z-index: 1;
}

.sg-hv--split__copy .sg-hv__title {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  max-width: 14ch;
}

/* Brand accent = orange (usual Safeguard pattern). */
.sg-hv--split .sg-hv__accent {
  color: var(--sg-orange);
}

.sg-hv--split__copy .sg-hv__lead {
  max-width: 32rem;
  color: var(--sg-muted);
}

.sg-hv--split__copy .sg-hv__ctas {
  flex-wrap: nowrap;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .sg-hv--split__copy .sg-hv__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .sg-hv--split__copy .sg-hv__ctas .sg-btn {
    width: 100%;
    justify-content: center;
  }
}

.sg-hv--split__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sg-hv--split__btn-icon {
  display: inline-flex;
  line-height: 0;
}

.sg-hv--split__btn-icon .sg-lucide-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.sg-hv--split__media {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  background: transparent;
}

@media (min-width: 900px) {
  .sg-hv--split__media {
    min-height: 100%;
  }
}

.sg-hv--split__media .sg-hv__ph,
.sg-hv--split__media img,
.sg-hv--split__media .sg-hv--split__img,
.sg-hv--split__media .sg-hero__pillar-img,
.sg-hv--split__media .sg-cctv-media-placeholder,
.sg-hv--split__media .sg-ps-hero-placeholder,
.sg-hv--split__media [class*="placeholder"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.sg-hv--split__media .sg-hv__ph {
  display: grid;
  place-items: center;
}

.sg-hv--split__fade {
  display: none;
  pointer-events: none;
}

/* Soft blend only — no hard card edge between copy and photo. */
@media (min-width: 900px) {
  .sg-hv--split__fade {
    display: block;
    position: absolute;
    inset: 0 auto 0 0;
    width: clamp(2.5rem, 8vw, 4.5rem);
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
  }
}

.sg-hv--split__features {
  margin-top: 1rem;
  border: 0;
  border-top: 1px solid var(--sg-line);
  border-radius: 0;
  background: transparent;
}

.sg-hv--split__features-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 0;
}

.sg-hv--split__features-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 9.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sg-muted);
  border-right: 1px solid var(--sg-line);
}

.sg-hv--split__features-list li:last-child {
  border-right: 0;
}

.sg-hv--split__feature-icon {
  display: inline-flex;
  color: var(--sg-navy);
  line-height: 0;
  flex-shrink: 0;
}

.sg-hv--split__feature-icon .sg-lucide-icon {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 899px) {
  .sg-hv--split__features-list li {
    border-right: 0;
    min-width: calc(50% - 0.5rem);
    padding-left: 0;
  }
}
