/**
 * Shared page-hero scene (Today-style photo/video/reel) for domain hubs + landing.
 * Pair with today-briefing-scene.js and _page_hero_scene.html.
 */

.page-hero-scene.tb-scene,
.tb-scene.page-hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero-scene .tb-scene__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.page-hero-scene .tb-scene__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.page-hero-scene .tb-scene__photo,
.page-hero-scene .tb-scene__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.page-hero-scene .tb-scene__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(44, 62, 80, 0.35) 0%,
      rgba(26, 32, 44, 0.78) 100%
    ),
    linear-gradient(
      115deg,
      rgba(44, 62, 80, 0.55) 0%,
      rgba(246, 139, 30, 0.22) 100%
    );
}

/* Opportunities — replace gradient-only scene with media */
.om-header__scene.page-hero-scene {
  background: #2c3e50;
}

/* Businesses mast */
.biz-show__mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #2c3e50;
}

.biz-show__mast-scene.page-hero-scene {
  border-radius: inherit;
}

.biz-show__mast-inner {
  position: relative;
  z-index: 1;
}

.biz-show__mast .um-page-eyebrow,
.biz-show__mast .um-page-title,
.biz-show__mast .um-page-sub {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.biz-show__mast .um-page-sub {
  color: rgba(255, 255, 255, 0.88);
}

/* Services hero */
.sd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.sd-hero__scene.page-hero-scene {
  border-radius: inherit;
}

.sd-hero__inner {
  position: relative;
  z-index: 1;
}

.sd-hero.um-domain-hero--services .um-page-eyebrow,
.sd-hero.um-domain-hero--services .um-page-title,
.sd-hero.um-domain-hero--services .um-page-sub,
.sd-hero.um-domain-hero--services .um-domain-hero__kicker {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.sd-hero.um-domain-hero--services .um-page-sub,
.sd-hero.um-domain-hero--services .um-domain-hero__kicker {
  color: rgba(255, 255, 255, 0.9);
}

.sd-hero.um-domain-hero--services {
  background: #2c3e50;
  color: #fff;
  border-radius: 16px;
  padding: 1.15rem 1rem 1.25rem;
}

.sd-hero.um-domain-hero--services .sd-search--toolbar {
  background: rgba(255, 255, 255, 0.95);
}

/* Commerce hero — minimal greeting + two actions (Today-style) */
.cp-hero-mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: #2c3e50;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cp-hero-mast__scene.page-hero-scene {
  border-radius: inherit;
}

.cp-hero-mast__inner {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1rem 1.15rem;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
}

.cp-hero-mast__brand {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.cp-hero-mast__greeting {
  margin: 0;
  font-family: var(--unimart-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.cp-hero-mast__name {
  color: var(--unimart-orange, #f68b1e);
}

.cp-hero-mast__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.15rem;
  max-width: 22rem;
}

.cp-hero-mast__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cp-hero-mast__btn:hover,
.cp-hero-mast__btn:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
}

.cp-hero-mast__btn--primary {
  background: var(--unimart-orange, #f68b1e);
  border-color: var(--unimart-orange, #f68b1e);
}

.cp-hero-mast__btn--primary:hover,
.cp-hero-mast__btn--primary:focus-visible {
  background: var(--unimart-orange-deep, #e96703);
  border-color: var(--unimart-orange-deep, #e96703);
}

/* Landing — media slot hosts the shared scene */
.ul-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ul-hero__media .page-hero-scene {
  position: absolute;
  inset: 0;
}

.ul-hero__media .page-hero-scene .tb-scene__shade {
  background:
    linear-gradient(180deg, rgba(20, 24, 32, 0.25) 0%, rgba(20, 24, 32, 0.72) 100%),
    linear-gradient(105deg, rgba(44, 62, 80, 0.4) 0%, rgba(246, 139, 30, 0.18) 100%);
}
