
/* ==== HOME PAGE ==== */

/* Hero Section */
/* The Divi section wrapper for the hero */
.hp-homepage-details-section {
  position: relative;
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

/* The fullwidth code container inside the section */
.hp-homepage-details-section-fullwidth_code {
  position: relative;
  width: 100%;
  max-width: 100vw;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Background image container that holds the <img> */
#hp-bg-image-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}


/* Background Image Base */
.hp-homepage-hero-bg,
.bg-cycle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}


/* Active image is shown */
.bg-cycle.active {
  visibility: visible;
  opacity: 1;
  z-index: 1;
}

.bg-cycle.tall {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: center top;
}

/* Overlay Container */
.hp-homepage-hero-overlay {
  position: absolute; /* ✅ Must be absolute to layer over image */
  top: 0;
  left: 0;
  z-index: 2; /* ✅ Higher than image z-index */
  max-width: 400px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  background: none;
}

/* Logo */
.hp-homepage-hero-logo {
  max-width: 170px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

/* Heading Text */
.hp-homepage-hero-overlay h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation: fadeInText 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

/* Subheading Text */
.hp-homepage-hero-overlay p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: fadeInText 2s ease-out forwards;
  animation-delay: 1s;
}

.hp-homepage-hero-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hp-homepage-hero-controls button {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.hp-homepage-hero-toggle-fit-mode {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3; /* above images, below overlay if needed */
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.hp-homepage-hero-navigation {
  display: flex;
  gap: 2.5rem;
}

.hp-homepage-hero-copyright {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  z-index: 5; /* ✅ ensures it sits above images and overlay */
}

.hp-homepage-hero-copyright.show {
  opacity: 1;
}

body.hp-homepage-modal-scroll-lock {
  overflow: hidden !important;
}

body.hp-homepage-modal-scroll-lock #main-header,
body.hp-homepage-modal-scroll-lock #et-top-navigation,
body.hp-homepage-modal-scroll-lock #et-left-area,
body.hp-homepage-modal-scroll-lock .container,
body.hp-homepage-modal-scroll-lock #et-info,
body.hp-homepage-modal-scroll-lock #et-secondary-menu {
  display: none !important;
}


.hp-homepage-hero-zoom-image-modal {
  display: none;              /* hidden by default */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.97);
  justify-content: center;
  align-items: center;
}

.hp-homepage-hero-zoom-image-modal.show {
  display: flex;              /* show when toggled */
}

.hp-homepage-hero-zoom-image-content {
  position: relative; /* ✅ enables absolute positioning for children */
  display: flex;
  align-items: center;     /* ✅ vertical centering */
  justify-content: center; /* ✅ horizontal centering */
  width: 95vw;
  height: 95vh;
  margin: auto;
  overflow: hidden;
  touch-action: none;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.hp-homepage-hero-zoom-image-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  position: relative;
}

.hp-homepage-hero-zoom-hint {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 1rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  z-index: 1001;
  pointer-events: none;
}


#hp-homepage-hero-zoom-image-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  /* Size: smaller, square */
  width: 50px;
  height: 50px;

  /* Center the glyph */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Remove padding that can offset baseline */
  padding: 0;
  padding-bottom: 8px;

  /* Tame font metrics */
  font-size: 35px;
  line-height: 1;         /* prevents baseline drift */
  font-weight: 700;

  /* Visuals */
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease;
}


#hp-homepage-hero-zoom-image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Text Fade-In Animation */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

