/* Unified hero treatment for main-menu service pages only (enqueued conditionally). */
.gccm-unified-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.2rem, 2.3vw, 2rem);
  align-items: center;
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  padding: clamp(1rem, 2.3vw, 1.8rem);
  border: 1px solid rgba(243, 111, 52, 0.28);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  background:
    radial-gradient(420px 220px at 88% 20%, rgba(33, 151, 100, 0.16), transparent 74%),
    radial-gradient(380px 180px at 8% 84%, rgba(243, 111, 52, 0.2), transparent 76%),
    linear-gradient(150deg, rgba(7, 15, 28, 0.95), rgba(6, 13, 25, 0.88));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  animation: none !important;
}

.gccm-unified-hero-shell.gccm-hero-shell-zoom-in {
  animation: gccmHeroZoomIn 0.68s cubic-bezier(0.2, 0.86, 0.24, 1) both !important;
}

@keyframes gccmHeroZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.965) translateY(12px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gccm-unified-hero-shell::before,
.gccm-unified-hero-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.gccm-unified-hero-shell::before {
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(243, 111, 52, 0.3), rgba(33, 151, 100, 0.24), rgba(243, 111, 52, 0.18));
  filter: blur(10px);
  opacity: 0.42;
}

.gccm-unified-hero-shell::after {
  width: min(220px, 35vw);
  height: min(220px, 35vw);
  right: -5%;
  bottom: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 111, 52, 0.22), transparent 72%);
  filter: blur(9px);
}

.gccm-unified-hero-media {
  box-sizing: border-box;
  --gccm-hero-frame-gap: clamp(0.3rem, 0.7vw, 0.5rem);
  width: 100%;
  max-width: min(100%, 640px);
  height: auto !important;
  min-height: 0 !important;
  position: relative !important;
  justify-self: center;
  align-self: center;
  aspect-ratio: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(243, 111, 52, 0.36);
  background:
    radial-gradient(300px 160px at 12% 14%, rgba(243, 111, 52, 0.2), transparent 72%),
    linear-gradient(160deg, rgba(8, 17, 31, 0.92), rgba(6, 12, 23, 0.95));
  box-shadow: var(--shadow-focus), 0 20px 46px rgba(2, 6, 12, 0.42);
  padding: var(--gccm-hero-frame-gap) var(--gccm-hero-frame-gap) 0 var(--gccm-hero-frame-gap) !important;
  transition: transform var(--motion-base) ease, border-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.gccm-unified-hero-media picture,
.gccm-unified-hero-media img {
  display: block;
}

.gccm-unified-hero-media img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  transform: scale(1.01);
  transition: transform var(--motion-base) ease, filter var(--motion-base) ease;
}

.gccm-unified-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 18px;
  z-index: 2;
  background: linear-gradient(124deg, transparent 24%, rgba(255, 255, 255, 0.18) 50%, transparent 74%);
  transform: translateX(-115%);
  transition: transform 0.85s ease;
}

.gccm-unified-hero-media:hover,
.gccm-unified-hero-media:focus-within {
  border-color: rgba(243, 111, 52, 0.62);
  box-shadow: var(--shadow-focus), 0 0 0 1px rgba(243, 111, 52, 0.2) inset;
  transform: translateY(-6px);
}

.gccm-unified-hero-media:hover::before,
.gccm-unified-hero-media:focus-within::before {
  transform: translateX(120%);
}

.gccm-unified-hero-media:hover img,
.gccm-unified-hero-media:focus-within img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.03);
}

.gccm-hero-chips,
.wm-hero-chips.gccm-hero-chips {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gccm-hero-chips .wm-hero-chip,
.gccm-hero-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 111, 52, 0.35);
  color: #eaf2ff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: linear-gradient(150deg, rgba(18, 30, 51, 0.88), rgba(11, 21, 37, 0.92));
  transition:
    transform var(--motion-base) ease,
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    color var(--motion-base) ease;
}

.gccm-hero-chips .wm-hero-chip:hover,
.gccm-hero-chips li:hover,
.gccm-hero-chips .wm-hero-chip:focus-visible,
.gccm-hero-chips li:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(243, 111, 52, 0.58);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(243, 111, 52, 0.16) inset;
  color: #f6fbff;
}

.gccm-hero-badge {
  position: absolute;
  inset: auto calc(var(--gccm-hero-frame-gap) + 0.3rem) 0.3rem auto;
  z-index: 3;
  width: max-content;
  min-width: 0;
  max-width: min(250px, 52%);
  padding: 0.34rem 0.48rem;
  border-radius: 10px;
  border: 1px solid rgba(243, 111, 52, 0.36);
  background: linear-gradient(140deg, rgba(10, 18, 32, 0.84), rgba(7, 14, 25, 0.9));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.gccm-unified-hero-media .wm-hero-badge.gccm-hero-badge,
.gccm-unified-hero-media .gccm-hero-badge {
  position: absolute !important;
  right: calc(var(--gccm-hero-frame-gap) + 0.3rem) !important;
  bottom: 0.3rem !important;
  left: auto !important;
  width: max-content !important;
  max-width: min(250px, 52%) !important;
  margin: 0 !important;
}

.gccm-hero-badge .wm-hero-badge-kicker {
  display: block;
  color: #9eb6d2;
  font-size: 0.56rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gccm-hero-badge .wm-hero-badge-value {
  display: block;
  margin-top: 0.04rem;
  color: #f4f8ff;
  font-size: clamp(0.74rem, 0.95vw, 0.88rem);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[dir="rtl"] .gccm-hero-chips {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .gccm-unified-hero-shell {
    grid-template-columns: 1fr;
  }

  .gccm-unified-hero-media {
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gccm-unified-hero-shell {
    animation: none !important;
  }
}
