/* Theta HVAC - Hero Split Slider Styling */
:root {
  --th-hero-zoom-scale: 1.15;
  --th-hero-zoom-duration: 6s;
}

.th-hero-wrap {
  position: relative;
  width: 100%;
  display: flex;
  background-color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

/* Vertical Rotated Text Column on Left */
.th-hero-vertical-col {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  user-select: none;
  background: #ffffff;
  z-index: 5;
}

.th-hero-vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #9ca3af;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Main Container */
.th-hero-container {
  flex: 1;
  width: 100%;
  min-width: 0;
  position: relative;
}

/* Slide Item */
.th-hero-slide {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  position: relative;
}

/* Content Column (Left Side of Slide - 50% width) */
.th-hero-content-col {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  padding-bottom: 60px;
  padding-left: max(60px, calc((100% - 1140px) / 2));
  padding-right: 40px;
  box-sizing: border-box;
  background: #ffffff;
  z-index: 2;
}

/* 1140px Grid Alignment Mode */
.th-hero-wrap.layout-boxed_grid .th-hero-content-col {
  justify-content: flex-start !important;
  padding-left: max(60px, calc((100% - 1140px) / 2)) !important;
  padding-right: 40px !important;
}

/* Edge to Edge Alignment Mode */
.th-hero-wrap.layout-edge_edge .th-hero-content-col {
  justify-content: flex-start !important;
  padding-left: 80px !important;
  padding-right: 40px !important;
}

.th-hero-content-inner {
  max-width: 520px;
  width: 100%;
}

.th-hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00966b;
  margin-bottom: 18px;
  font-family: "Montserrat", sans-serif;
}

.th-hero-title {
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.25;
  font-weight: 400;
  color: #0d2b4e;
  margin: 0 0 24px 0;
  font-family: "Montserrat", sans-serif;
}

.th-hero-title strong,
.th-hero-title b {
  font-weight: 800;
  color: #0d2b4e;
}

.th-hero-desc {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 28px;
}

.th-hero-btn-wrap {
  margin-top: 10px;
}

.th-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  border-radius: 50px;
  background: linear-gradient(90deg, #0b5394 0%, #1aa3e6 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 83, 148, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
  cursor: pointer;
}

.th-hero-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  color: #ffffff !important;
}

/* Image Column (Right Side of Slide) */
.th-hero-image-col {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-hero-img-overflow {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.th-hero-img {
  width: 100%;
  height: 100% !important;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

.th-hero-image-col.fit-cover .th-hero-img {
  object-fit: cover;
}

.th-hero-image-col.fit-contain {
  padding: 40px;
}

.th-hero-image-col.fit-contain .th-hero-img {
  object-fit: contain;
}

.th-hero-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #cbd5e1;
  font-size: 48px;
}

/* ==================== ZOOM IN / OUT ANIMATIONS ==================== */

/* Zoom In Effect (Active Slide Ken Burns Zoom In) */
.th-hero-wrap.zoom-zoom_in .swiper-slide-active .th-hero-img {
  animation: thHeroZoomIn var(--th-hero-zoom-duration, 6s)
    cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Zoom Out Effect (Active Slide Ken Burns Zoom Out) */
.th-hero-wrap.zoom-zoom_out .swiper-slide-active .th-hero-img {
  animation: thHeroZoomOut var(--th-hero-zoom-duration, 6s)
    cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Hover Zoom Effect */
.th-hero-wrap.zoom-hover_zoom .th-hero-img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.th-hero-wrap.zoom-hover_zoom:hover .th-hero-img {
  transform: scale(var(--th-hero-zoom-scale, 1.15));
}

@keyframes thHeroZoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(var(--th-hero-zoom-scale, 1.15));
  }
}

@keyframes thHeroZoomOut {
  0% {
    transform: scale(var(--th-hero-zoom-scale, 1.15));
  }
  100% {
    transform: scale(1);
  }
}

/* Text Slide In Subtle Animation when Slide Becomes Active */
.th-hero-wrap .th-hero-content-inner > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.th-hero-wrap .swiper-slide-active .th-hero-content-inner > * {
  opacity: 1;
  transform: translateY(0);
}

.th-hero-wrap .swiper-slide-active .th-hero-eyebrow {
  transition-delay: 0.15s;
}

.th-hero-wrap .swiper-slide-active .th-hero-title {
  transition-delay: 0.25s;
}

.th-hero-wrap .swiper-slide-active .th-hero-desc {
  transition-delay: 0.35s;
}

.th-hero-wrap .swiper-slide-active .th-hero-btn-wrap {
  transition-delay: 0.45s;
}

/* Navigation Arrows */
.th-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0d2b4e;
  border: 1px solid rgba(0, 0, 0, 0.08);
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.th-hero-arrow:hover {
  background: #00966b;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.th-hero-arrow-prev {
  left: max(60px, calc((100% - 1140px) / 2));
}

.th-hero-arrow-next {
  right: max(24px, calc((100% - 1140px) / 2));
}

/* Pagination Dots */
.th-hero-wrap .swiper-pagination {
  position: absolute;
  bottom: 24px !important;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.th-hero-wrap .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background-color: #cbd5e1;
  opacity: 1;
  border-radius: 5px;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background-color 0.3s ease,
    border-radius 0.3s ease;
}

.th-hero-wrap .swiper-pagination-bullet-active {
  background-color: #00966b;
  width: 26px;
  border-radius: 6px;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .th-hero-slide {
    flex-direction: column;
    min-height: auto;
  }

  .th-hero-content-col,
  .th-hero-wrap.layout-boxed_grid .th-hero-content-col,
  .th-hero-wrap.layout-edge_edge .th-hero-content-col {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 70px 24px 40px !important;
    text-align: left;
    justify-content: flex-start !important;
  }

  .th-hero-content-inner {
    max-width: 100%;
  }

  .th-hero-image-col {
    flex: 0 0 380px;
    width: 100%;
    min-height: 380px;
  }

  .th-hero-vertical-col {
    display: none;
  }

  .th-hero-title {
    font-size: 32px;
  }

  .th-hero-arrow-prev {
    left: 15px;
  }

  .th-hero-arrow-next {
    right: 15px;
  }
}
