/* Google Fonts fallback for Cormorant Garamond italic serif */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400;1,500;1,600&display=swap');

.hero-slider {
  position: relative;
  width: 100%;
  height: var(--hero-height-desktop, calc(100vh - 106px));
  min-height: 600px;
  max-height: 860px;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide Content */
.hero-copy {
  width: min(560px, 50vw);
  margin-left: 8vw;
  position: relative;
  z-index: 4;
  box-sizing: border-box;
}

.hero-slide.active .hero-copy {
  animation: heroIn 0.7s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Slide Position & Alignment Classes (9-Point Grid)
   ============================================ */
/* Center Left (Default) */
.hero-slide.pos-center-left {
  justify-content: flex-start;
  align-items: center;
}
.hero-slide.pos-center-left .hero-copy {
  margin-left: 8vw;
  margin-right: auto;
}

/* Center Center */
.hero-slide.pos-center-center {
  justify-content: center;
  align-items: center;
}
.hero-slide.pos-center-center .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

/* Center Right */
.hero-slide.pos-center-right {
  justify-content: flex-end;
  align-items: center;
}
.hero-slide.pos-center-right .hero-copy {
  margin-right: 8vw;
  margin-left: auto;
}

/* Top Left */
.hero-slide.pos-top-left {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 80px;
}
.hero-slide.pos-top-left .hero-copy {
  margin-left: 8vw;
  margin-right: auto;
}

/* Top Center */
.hero-slide.pos-top-center {
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
}
.hero-slide.pos-top-center .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

/* Top Right */
.hero-slide.pos-top-right {
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 80px;
}
.hero-slide.pos-top-right .hero-copy {
  margin-right: 8vw;
  margin-left: auto;
}

/* Bottom Left */
.hero-slide.pos-bottom-left {
  justify-content: flex-start;
  align-items: flex-end;
  padding-bottom: 90px;
}
.hero-slide.pos-bottom-left .hero-copy {
  margin-left: 8vw;
  margin-right: auto;
}

/* Bottom Center */
.hero-slide.pos-bottom-center {
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 90px;
}
.hero-slide.pos-bottom-center .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

/* Bottom Right */
.hero-slide.pos-bottom-right {
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 90px;
}
.hero-slide.pos-bottom-right .hero-copy {
  margin-right: 8vw;
  margin-left: auto;
}

/* Text Alignments */
.hero-slide.text-left .hero-copy {
  text-align: left;
}
.hero-slide.text-left .hero-copy .button {
  margin-right: auto;
  margin-left: 0;
}

.hero-slide.text-center .hero-copy {
  text-align: center;
}
.hero-slide.text-center .hero-copy span {
  margin-left: auto;
  margin-right: auto;
}
.hero-slide.text-center .hero-copy .button {
  margin-left: auto;
  margin-right: auto;
}

.hero-slide.text-right .hero-copy {
  text-align: right;
}
.hero-slide.text-right .hero-copy span {
  margin-left: auto;
  margin-right: 0;
}
.hero-slide.text-right .hero-copy .button {
  margin-left: auto;
  margin-right: 0;
}


/* Kicker / Eyebrow */
.hero-copy p {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--kicker-color, #ffffff);
  line-height: 1.4;
}

/* Title */
.hero-copy h1 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(46px, 5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 400;
  color: var(--title-color, #ffffff);
}

.hero-copy h1 em {
  font-family: "Parkside Regular", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.08em;
  font-weight: 400;
}

/* Subtitle / Copy */
.hero-copy span {
  display: block;
  max-width: 450px;
  margin: 25px 0 30px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--copy-color, rgba(255, 255, 255, 0.85));
}

/* Button */
.hero-copy .button {
  min-height: 44px;
  width: max-content;
  padding: 0 22px;
  display: flex;
  gap: 19px;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 9px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 0;
}

.hero-copy .light-button {
  background: var(--btn-bg, #ffffff);
  color: var(--btn-text, #211816);
}

.hero-copy .light-button:hover {
  background: var(--btn-hover-bg, #a70000);
  color: var(--btn-hover-text, #ffffff);
}

.hero-copy .light-button svg {
  display: block;
  transition: transform 0.25s ease;
}

.hero-copy .light-button:hover svg {
  transform: translateX(3px);
}

/* Slide Dots / Indicators (Lines) */
.hero-dots {
  position: absolute;
  z-index: 5;
  bottom: 30px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button,
.hero-dots .hero-dot {
  width: 28px;
  height: 2px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
  border-radius: 1px;
}

.hero-dots button.active,
.hero-dots .hero-dot.active {
  width: 52px;
  background: #ffffff;
}

/* Slide Counter (01 / 03) */
.hero-count {
  position: absolute;
  z-index: 5;
  right: 40px;
  bottom: 26px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #ffffff;
  font-family: inherit;
  font-weight: 500;
  display: flex;
  align-items: baseline;
}

.hero-count span {
  opacity: 0.55;
  font-size: 9px;
  margin-left: 6px;
}

/* Mobile Responsive */
@media (max-width: 760px) {
  .hero-slider {
    height: var(--hero-height-mobile, 74vh);
    min-height: 560px;
    align-items: flex-end;
    padding-bottom: 80px;
  }

  .hero-slide {
    background-image: var(--slide-bg-mobile, var(--slide-bg));
    background-position: 62% center;
    align-items: flex-end;
    padding-bottom: 80px;
  }

  /* Force override even if an inline background-image style exists */
  .hero-slide[data-mobile-image],
  .hero-slide[style*="--slide-bg-mobile"] {
    background-image: var(--slide-bg-mobile, var(--slide-bg)) !important;
  }

  /* Mobile Position Overrides */
  .hero-slide.mobile-pos-top {
    align-items: flex-start !important;
    padding-top: 55px !important;
    padding-bottom: 0 !important;
  }

  .hero-slide.mobile-pos-center {
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-slide.mobile-pos-bottom,
  .hero-slide.mobile-pos-bottom-center {
    align-items: flex-end !important;
    padding-bottom: 80px !important;
  }

  .hero-copy {
    margin: 0 24px;
    width: auto;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-copy span {
    font-size: 12px;
    margin: 18px 0 23px;
  }

  .hero-dots {
    left: 22px;
    transform: none;
    bottom: 22px;
  }

  .hero-count {
    right: 18px;
    bottom: 18px;
  }
}
