/* home-style.css */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* 롤링 배너 */
#section1 {
  position: relative;
  width: 100%;
  height: 100vh;  /* 화면 꽉 채우기 */
  overflow: hidden;
  background-color: #000;
}

/* ▼▼▼ 롤링 배너 스타일 ▼▼▼ */
.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
    /* 슬라이더가 뷰포트를 가득 채우도록 설정 */
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out; /* 페이드 효과 */
    opacity: 0; 
    z-index: 1;
}

.banner-slide:first-child {
    opacity: 1; /* 첫 번째 슬라이드만 보이게 설정 - home-script.js 확인 */
}


.banner-content {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 5%; /* 좌우 여백 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 수직 중앙 정렬 */
    align-items: flex-start; /* 좌측 정렬 */
    color: white;
    background: rgba(0, 0, 0, 0.4); /* 오버레이 */
    z-index: 2;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    text-align: left; /* 문구 좌측 정렬 */
    max-width: 750px;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.8); */
}

.banner-btn {
    padding: 14px 28px;
    font-size: 1.2rem;
    border-radius: 100px;
    cursor: pointer;
    border: 1px solid #fff;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s, border 0.3s;
}

.banner-btn:hover {
    background-color: #b50000;
    color: #fff;
    border: 1px solid #b50000;
}

.banner-slide.slide-1 {
    background-image: url('../images/home-main-1.jpg');
}
.banner-slide.slide-2 {
    background-image: url('../images/home-main-2.jpg');
}
.banner-slide.slide-3 {
    background-image: url('../images/home-main-3.jpg');
}
.banner-slide.slide-4 {
    background-image: url('../images/home-main-4.jpg');
}

/* --- 모바일 반응형 스타일 --- */
@media (max-width: 768px) {
    .banner-content {
        align-items: center;
        padding: 0 10%;
        justify-content: flex-start; 
        padding-top: 15vh;
    }
    .banner-title {
        font-size: 2rem;
        text-align: center; /* 모바일에서는 텍스트 중앙 정렬로 변경 */
        max-width: 90%;
        margin-top: 50px;
    }
    .banner-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .info-pane {
        margin-bottom: 40px;
    }
    .image-wrapper {
        height: 350px; /* 모바일에서 이미지 높이 조정 */
    }
    .banner-slide.slide-1 {
        background-image: url('../images/home-main-mo-1.jpg'); 
    }
    .banner-slide.slide-2 {
        background-image: url('../images/home-main-mo-2.jpg');
    }
    .banner-slide.slide-3 {
        background-image: url('../images/home-main-mo-3.jpg');
    }
    .banner-slide.slide-4 {
        background-image: url('../images/home-main-mo-4.jpg');
    }    
}
/* ▲▲▲ 롤링 배너 스타일 끝 ▲▲▲ */



/* ================================ */
/* 프로모션 섹션 스타일 */
/* ================================ */
.promo-section {
  width: 100%;
  height: 100vh; /* 화면 전체 높이 */
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 40px;
  box-sizing: border-box;
}

/* Alternate section background color */
.promo-section.promo-section--alt {
    background-color: #151515;
}

.promo-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column; /* Mobile-first: stack vertically */
  align-items: center;
  text-align: center;
  gap: 40px;
}

.promo-text-container {
  max-width: 600px;
}

.promo-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 스크립트로 is-visible 클래스가 추가되면 애니메이션 실행 */
.promo-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 각 요소가 순차적으로 나타나도록 transition-delay 설정 */
.promo-text-container .promo-item:nth-child(1) { transition-delay: 0.1s; } /* h2 */
.promo-text-container .promo-item:nth-child(2) { transition-delay: 0.2s; } /* p */
.promo-text-container .promo-item:nth-child(3) { transition-delay: 0.3s; } /* badge */
.promo-text-container .promo-item:nth-child(4) { transition-delay: 0.4s; } /* buttons */
.promo-image-container.promo-item { transition-delay: 0.5s; } /* image */


.promo-text-container h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.promo-text-container p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 25px;
  color: #c0c0c0;
}

.promo-badge-wrapper {
  margin-bottom: 25px;
}

.promo-badge {
  display: inline-block;
  padding: 0;
  border: none;
  color: #c0c0c0;
  border-radius: 0;
  font-weight: 400;
  font-size: 1rem;
  background-color: transparent;
}

.promo-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.promo-btn, .promo-btn-primary {
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.promo-btn {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.promo-btn:hover {
  background-color: #fff;
  color: #000;
}

.promo-btn-primary {
  background-color: #b50000;
  border: 1px solid #b50000;
  color: #fff;
}
.promo-btn-primary:hover {
  background-color: #d10000;
  border-color: #d10000;
}


.promo-image-container {
  position: relative; 
  margin-top: 50px;
  max-width: 500px;
}

.promo-image-container img {
  width: 100%;
  height: auto;
}


/* 데스크탑 & 태블릿 가로모드 반응형 */
@media (min-width: 769px) {
    .promo-content {
        flex-direction: row; /* side-by-side layout */
        text-align: left;
        align-items: center;
    }

    .promo-section--alt .promo-content {
        flex-direction: row-reverse; /* alternate layout */
    }

    .promo-text-container, .promo-image-container {
        flex: 1; /* take up half the space */
    }

    .promo-text-container {
        max-width: none;
    }

    .promo-buttons {
        justify-content: flex-start; /* align buttons to the left */
    }

    .promo-text-container p {
        margin: 0 0 25px 0;
    }
    .promo-image-container {
      margin-top: 0;
    }
}


/* 모바일 반응형 */
@media (max-width: 768px) {
    .promo-text-container h2 {
        font-size: 2rem;
    }
    .promo-text-container p {
        font-size: 1rem;
    }
    .promo-image-container {
      max-width: 350px;
      margin-top: 30px;
    }
  }