/* =======================================================
   Hero Module Base Styles
   ======================================================= */

.hero-module {
  width: 100%;
  min-height: clamp(300px, calc(500px - 10vw), 500px);
}

.hero-content {
  max-width: 1900px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

/* =======================================================
   12-Column Grid Layout
   ======================================================= */

.hero-left-col {
  grid-column: 2 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  margin: 0;
}

.hero-right-col {
  grid-column: 8 / span 4;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.hero-txt {
  margin-bottom: 50px;
}

.hero-txt h1 {
  font-size: clamp(32px, 6vw, 60px);
  line-height: clamp(38px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
}

.hero-txt p {
  font-size: clamp(16px, 3vw, 18px);
  line-height: clamp(24px, 5vw, 28px);
  font-weight: 500 !important;
}


/* =======================================================
   Tags
   ======================================================= */

.hero-tag-repeater {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding-bottom: 20px;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.2rem 0.7rem;
  background-color: rgba(250, 250, 250, 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  outline: 2px solid #fff;
  /* Tags always use dark text regardless of module text_color */
  color: #191919 !important;
}

.hero-tags > * {
  min-width: 1em;
  flex-shrink: 0;
}

.hero-tags svg,
.hero-tags i {
  color: #1a1a1a;
  fill: #1a1a1a;
  height: 1em;
  width: auto;
  display: block;
}

/* =======================================================
   Cutout Image
   ======================================================= */

.hero-cutout {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-cutout img {
  height: auto;
  width: auto;
  max-height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  min-width: 500px;
}


/* =======================================================
   Background Gradient Classes
   ======================================================= */
.bg-turquoise-purple {
  background: linear-gradient(
    151deg,
    rgba(51, 216, 216, 1) 1%,
    rgba(0, 140, 150, 1) 19%,
    rgba(89, 6, 142, 1) 79%,
    rgba(57, 4, 91, 1) 93%
  );
}
  
  
.bg-purple {
  background: linear-gradient(90deg, rgba(41, 0, 66, 1) 0%, rgba(89, 6, 142, 1) 44%, rgba(163, 53, 255, 1) 80%, rgba(200, 134, 255, 1) 100%);
}

.bg-yellow-purple {
background: linear-gradient(312deg,rgba(255, 216, 73, 1) 6%, rgba(255, 223, 107, 1) 9%, rgba(255, 221, 95, 1) 17%, rgba(200, 134, 255, 1) 36%, rgba(163, 53, 255, 1) 52%, rgba(127, 6, 195, 1) 66%, rgba(89, 6, 142, 1) 74%, rgba(57, 4, 91, 1) 92%);
  );
}


.bg-yellow-purple-turquoise {
background: linear-gradient(148deg, rgba(189, 246, 125, 1) 0%, rgba(35, 167, 149, 1) 22%, rgba(73, 5, 117, 1) 73%, rgba(57, 4, 91, 1) 99%);
}

.bg-turquoise-green {
background: linear-gradient(90deg, rgba(4, 44, 59, 1) 1%, rgba(0, 168, 175, 1) 82%, rgba(51, 216, 216, 1) 100%);
}

.bg-inview {
  background: linear-gradient(90deg, rgba(56, 18, 90, 1) 4%, rgba(166, 74, 42, 1) 49%, rgba(255, 155, 23, 1) 82%, rgba(255, 191, 69, 1) 100%);
}

.bg-halloween {
  background: linear-gradient(
    142deg,
    rgba(255, 153, 84, 1) 5%,
    rgba(232, 209, 215, 1) 37%,
    rgba(163, 53, 255, 1) 93%
  );
}

.bg-dark-gradient {
  background-color: hsla(0, 0%, 100%, 1);
  background-image:
    radial-gradient(at 63% 65%, hsla(272, 100%, 60%, 0.48) 0px, transparent 50%),
    radial-gradient(at 25% 63%, hsla(23, 0%, 100%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 1%, hsla(340, 0%, 100%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 99%, hsla(22, 0%, 100%, 1) 0px, transparent 50%),
    radial-gradient(at 46% 99%, hsla(272, 100%, 80%, 1) 0px, transparent 50%),
    radial-gradient(at 61% 93%, hsla(272, 100%, 80%, 1) 0px, transparent 50%),
    radial-gradient(at 88% 43%, hsla(266, 97%, 57%, 1) 0px, transparent 50%),
    radial-gradient(at 85% 88%, hsla(266, 100%, 54%, 1) 0px, transparent 50%),
    radial-gradient(at 64% 0%, hsla(266, 95%, 55%, 1) 0px, transparent 50%),
    radial-gradient(at 99% 3%, hsla(152, 100%, 48%, 1) 0px, transparent 50%),
    radial-gradient(at 80% 1%, hsla(258, 100%, 21%, 1) 0px, transparent 50%),
    radial-gradient(at 99% 98%, hsla(259, 98%, 33%, 1) 0px, transparent 50%);
}

.frosted-backdrop {
  backdrop-filter: blur(var(--_gradient-blur)) contrast(100%) brightness(100%);
  -webkit-backdrop-filter: blur(var(--_gradient-blur)) contrast(100%) brightness(100%);
}

/* =======================================================
   Text Color — Auto-set by Background
   ======================================================= */

/* Dark backgrounds → white text */
.bg-turquoise-green,
.bg-turquoise-green h1,
.bg-yellow-purple-turquoise,
.bg-yellow-purple-turquoise h1,
.bg-yellow-purple,
.bg-yellow-purple h1,
.bg-purple,
.bg-purple h1,
.bg-turquoise-purple,
.bg-turquoise-purple h1, 
.bg-inview,
.bg-inview h1 {
  color: #ffffff;
}

/* Light backgrounds → dark text */
.bg-halloween,
.bg-halloween h1,
.bg-dark-gradient,
.bg-dark-gradient h1 {
  color: #191919;
}



/* =======================================================
   Responsive: Large Mobile (max-width: 1023px)
   ======================================================= */

@media (max-width: 1023px) {
  .hero-module {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    position: relative;
    min-height: 400px;
    max-height: none;
    width: 100%;
    
  }

  .hero-content {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 100px;
  }

  .hero-content h1,
  .hero-content p {
  color: #191919 !important;
  }


  .hero-left-col {
    grid-column: auto;
    width: 100%;
    padding: 30px 20px;
    background: transparent;
    z-index: 3;
    position: relative;
    text-align: left;
    color: #191919 !important;
  }

  .hero-right-col {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  

  .hero-right-col::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2;
    pointer-events: none;
  }
}

/* =======================================================
   Responsive: Small Mobile (max-width: 690px)
   ======================================================= */

@media (max-width: 690px) {
  .hero-left-col {
    padding: 20px 10px;
    width: 100%;
    align-self: flex-start;
  }

  .hero-right-col::after {
    background: rgba(255, 255, 255, 0.85);
  }
  
}