/* Oqtane adds pane and container borders in page edit mode. Both wrappers
   must preserve the height chain for the absolutely positioned hero image. */
.dmvh-hero .app-pane,
.dmvh-hero .app-module,
.dmvh-hero .app-pane-admin-border,
.dmvh-hero .dmvh-bare-module,
.dmvh-hero .dmvh-hero-module {
  height: 100%;
}

.dmvh-hero-module {
  margin-bottom: var(--dmvh-hero-margin-bottom, 0);
}

.dmvh-hero-module .dmvh-hero-copy h1 {
  white-space: pre-line;
}

/* Overlays */
.dmvh-hero-module.dmvh-hero-overlay-dark::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 60, 86, .66), rgba(38, 60, 86, .08));
  pointer-events: none;
}

.dmvh-hero-module.dmvh-hero-overlay-blue::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 80, 120, .76), rgba(71, 151, 210, .12));
  pointer-events: none;
}

.dmvh-hero-module.dmvh-hero-overlay-orange::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 118, 47, .72), rgba(242, 118, 47, .08));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.dmvh-hero-module.dmvh-hero-overlay-none::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Image scaling */
.dmvh-hero-module .dmvh-hero-media img {
  transform: scale(var(--dmvh-image-scale, 1));
  transform-origin: var(--dmvh-image-position, center);
  transition: transform .3s ease;
}

/* Height presets */
.dmvh-hero-module.dmvh-hero-height-compact {
  min-height: 420px;
}

.dmvh-hero-module.dmvh-hero-height-medium {
  min-height: 560px;
}

.dmvh-hero-module.dmvh-hero-height-tall {
  min-height: 850px;
}

.dmvh-hero-module.dmvh-hero-height-full {
  min-height: 100vh;
}

.dmvh-hero-module.dmvh-hero-height-custom {
  height: var(--dmvh-hero-custom-height, auto);
  min-height: var(--dmvh-hero-custom-height, auto);
}

.dmvh-hero-module.dmvh-hero-height-compact .dmvh-hero-copy {
  padding-top: 180px;
}

.dmvh-hero-module.dmvh-hero-height-medium .dmvh-hero-copy {
  padding-top: 240px;
}

/* Action buttons */
.dmvh-hero-module .dmvh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.dmvh-hero-module .dmvh-hero-copy .dmvh-button-secondary {
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff !important;
}

.dmvh-hero-module .dmvh-hero-copy .dmvh-button-secondary:hover {
  background: rgba(255, 255, 255, .32);
}

/* Alignment */
.dmvh-hero-module.dmvh-hero-align-center .dmvh-hero-copy {
  text-align: center;
  margin-inline: auto;
}

.dmvh-hero-module.dmvh-hero-align-center .dmvh-hero-copy h1,
.dmvh-hero-module.dmvh-hero-align-center .dmvh-hero-copy p {
  margin-inline: auto;
}

.dmvh-hero-module.dmvh-hero-align-center .dmvh-hero-actions {
  justify-content: center;
}

/* Masks */
.dmvh-hero-module.dmvh-hero-mask-none {
  -webkit-mask: none !important;
  mask: none !important;
}

.dmvh-hero-module.dmvh-hero-mask-home {
  -webkit-mask: url("/Themes/DMVH.Theme.WebSite/masks/home-hero.svg?v=3") center / 100% 100% no-repeat !important;
  mask: url("/Themes/DMVH.Theme.WebSite/masks/home-hero.svg?v=3") center / 100% 100% no-repeat !important;
}

.dmvh-hero-module.dmvh-hero-mask-page {
  -webkit-mask: url("/Themes/DMVH.Theme.WebSite/masks/page-hero.svg?v=3") center / 100% 100% no-repeat !important;
  mask: url("/Themes/DMVH.Theme.WebSite/masks/page-hero.svg?v=3") center / 100% 100% no-repeat !important;
}

