/* ========================================
   Hero Banner
   Figma HeroBanner.tsx → 일반 CSS 변환
======================================== */

.main-hero {
  width: 100%;
  background-color: #ffffff;
}

/* 모바일에서는 가로형 고정 높이,
   데스크톱에서는 화면 너비에 따라 확장 */
.hero-viewport {
  position: relative;
  width: 100%;
  height: clamp(200px, 28vw, 100vh);
  overflow: hidden;
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------
   Slide
---------------------------------------- */

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 1s ease,
    visibility 1s ease;
}

.hero-slide.active {
  z-index: 1;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  user-select: none;
  -webkit-user-drag: none;

  transform: scale(1);
  will-change: transform;
}

.hero-slide.active .hero-image {
  animation: hero-zoom 5000ms ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* ----------------------------------------
   Content
---------------------------------------- */

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: #ffffff;
}

.hero-content__container {
  width: 100%;
  max-width: 80rem;

  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  margin: 0 0 0.25em;

  color: #ffffff;
  font-size: clamp(1.1rem, 4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;

  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);

  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-subtitle {
  margin: 0 0 0.2em;

  color: #ffffff;
  font-size: clamp(0.75rem, 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;

  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);

  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-description {
  margin: 0 0 clamp(0.5rem, 2vw, 3rem);

  color: #ffffff;
  font-size: clamp(0.6rem, 1.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;

  opacity: 0.9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);

  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ----------------------------------------
   Detail Button
---------------------------------------- */

.main-hero .hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  padding:
    clamp(0.4rem, 1vw, 1.25rem)
    clamp(0.8rem, 2vw, 3rem);

  border: 2px solid #ffffff;
  border-radius: 9999px;

  background-color: #ffffff;
  color: #023da5;

  font-size: clamp(0.65rem, 1.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3);

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.main-hero .hero-link:hover,
.main-hero .hero-link:focus-visible {
  border-color: #023da5;
  background-color: #023da5;
  color: #ffffff;

  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35);
}

.main-hero .hero-link:active {
  border-color: #012f82;
  background-color: #012f82;
  color: #ffffff;
}

.main-hero .hero-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}
/* ----------------------------------------
   Pagination
---------------------------------------- */

.hero-pagination {
  position: absolute;
  right: 0;
  bottom: 1.5rem;
  left: 0;
  z-index: 10;

  display: flex;
  justify-content: center;

  pointer-events: none;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.5rem 1rem;

  border-radius: 9999px;

  background-color: rgba(0, 0, 0, 0.3);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  pointer-events: auto;
}

.hero-dot {
  display: block;
  flex: 0 0 auto;

  width: 0.5rem;
  height: 0.5rem;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 9999px;

  background-color: rgba(255, 255, 255, 0.5);

  cursor: pointer;

  transition:
    width 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
}

.hero-dot.active {
  width: 2rem;
  background-color: #ffffff;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.hero-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */

@media (max-width: 767px) {
  .hero-viewport {
    height: 200px;
  }

  .hero-content__container {
    padding: 0 1rem;
  }

  .hero-pagination {
    bottom: 0.875rem;
  }

  .hero-dots {
    gap: 0.3125rem;
    padding: 0.375rem 0.625rem;
  }

  .hero-dot {
    width: 0.375rem;
    height: 0.375rem;
  }

  .hero-dot.active {
    width: 1.5rem;
  }
}

/* 사용자가 애니메이션 최소화를 설정한 경우 */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slide.active .hero-image {
    animation: none;
  }

  .hero-link,
  .hero-dot {
    transition: none;
  }
}

.hero-title--logos {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  margin: 0;
}

.hero-title-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.hero-title-logo--enuri {
  height: 42px;
}

.hero-title-logo--elexa {
  height: 42px;
}

.hero-title-logo-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .main-hero .hero-title--logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;

    width: 100%;
    max-width: 250px;
    min-height: 0;
    margin: 0 0 8px;

    white-space: nowrap;
  }

  .main-hero .hero-title--logos .hero-title-logo {
    display: block;
    flex: 0 1 auto;

    width: auto !important;
    max-width: 100%;
    object-fit: contain;
  }

  .main-hero .hero-title--logos .hero-title-logo--enuri {
    width: auto !important;
    height: 21px !important;
    max-width: 125px;
  }

  .main-hero .hero-title--logos .hero-title-logo--elexa {
    width: auto !important;
    height: 21px !important;
    max-width: 95px;
  }

  .main-hero .hero-title-logo-separator {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 300;
    line-height: 1;
  }
}