/* ==========================================================================
   home.css — 메인 페이지(new.index.php) 전용 스타일 (피그마 리디자인)
   common.css를 함께 로드하므로, 전역 규칙(.navbar/.nav-link/h1~h6 등)과
   충돌하는 부분만 아래에서 명시적으로 재정의한다.
   ========================================================================== */

/* 시스템 다크모드 사용자에게 브라우저가 사진/색상을 자동 보정(워시아웃)하는 것을 방지 */
html {
    color-scheme: light only;
}

/* -------------------- Navbar (공통 pill navbar를 투명 풀와이드로 재정의) -------------------- */
.navbar.site-nav {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 !important;
    z-index: 10;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.site-nav.scrolled {
    background: var(--dark-color) !important;
    padding: 0.8rem 0 !important;
}

.site-nav .navbar-logo {
    height: 36px;
}

.site-nav .nav-link {
    color: #ffffff !important;
    padding: 0.5rem 1.25rem !important;
    min-width: 0;
    font-weight: 500;
}

.site-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.site-nav .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.85);
}

/* -------------------- Hero -------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 9, 40, 0.72) 0%, rgba(0, 9, 40, 0.35) 55%, rgba(0, 9, 40, 0.15) 100%);
}

/* Hero 배경 슬라이더 (index.php와 동일한 이미지·동작 재사용) */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slider-slide.active {
    opacity: 1;
}

.hero-slider .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-slider .slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider .slider-indicators .indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.hero .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 4;
}

.hero .slider-nav:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.08);
}

.hero .slider-prev {
    left: 24px;
}

.hero .slider-next {
    right: 24px;
}

@media (max-width: 576px) {
    .hero .slider-nav {
        width: 40px;
        height: 40px;
    }

    .hero .slider-prev {
        left: 12px;
    }

    .hero .slider-next {
        right: 12px;
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
}

.hero-copy {
    max-width: 640px;
    text-align: left;
}

.hero-title {
    color: #ffffff;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.hero-lead-slides {
    position: relative;
    width: 100%;
    height: auto;
}

.hero-lead {
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-lead-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-lead-slide.active {
    opacity: 0.95;
    position: relative;
    pointer-events: auto;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-cta:hover {
    background: #1f3a80;
    color: #ffffff;
    transform: translateX(2px);
}

/* -------------------- 제품소개 (Products band) -------------------- */
.products-band {
    background: var(--dark-color);
    padding: 18rem 0;
}

.products-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.products-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0;
}

.pslider-viewport {
    overflow: hidden;
}

.pslider-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    transition: transform 0.45s ease;
}

.pcard {
    flex: 0 0 320px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    /* 카드 내부 여백 및 배치 */
    padding:16px;
    box-sizing:border-box;
    flex-direction:column;
    align-items:center;
}

.pcard-img {
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;

    border-radius:4px;
    overflow:hidden;
}

.pcard-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pcard-pill {
    display: block;
    width:85%;
    margin: 16px auto 0;
    text-align: center;
    background: var(--dark-color);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius:50px;
    box-sizing:border-box;
}

.pslider-progress {
    margin-top: 1.5rem;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.pslider-progress-bar {
    height: 100%;
    width: 25%;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* -------------------- SUCCESS PARTNER (brand-intro) -------------------- */
.brand-intro {
    background: #ffffff;
    padding: 12rem 0;
}

.brand-intro-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
}

.brand-intro-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.brand-intro-desc {
    color: var(--text-color);
    max-width: 640px;
    margin: 0 auto 5rem;
}

.brand-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.brand-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 5.5rem 1.5rem;

    transition:transform 0.3s ease; box-shadow 0.3s ease;
    transform: translateY(0);
}

.brand-card:hover{
    transform:translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.brand-card-icon {
    width: 97px;
    height: 97px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.brand-card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brand-card-desc {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* -------------------- 4분할 이미지 배너 (Pillars) -------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pillar {
    position: relative;
    min-height: 800px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content : center;
    align-items: center;
}

/* 4번째 이미지(비행기)는 피사체가 상단에 있어 크롭 시 위쪽이 보이도록 조정 */
.pillars-grid .pillar:nth-child(4) {
    background-position: top center;
}

.pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 9 40 / 70%) 0%, rgba(0, 9, 40, 0.65) 100%);

    /* 기본상태 : 숨김 + 전환효과*/
    opacity : 0;
    transition : opacity 0.3s ease;
    z-index : 1;
}

.pillar-body {
    position: relative;
    z-index: 2;
    width : 100%;
    box-sizing : border-box;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem 1.25rem;
    margin : 0 auto;

    /* 기본상태:숨김 + 전환효과 */
    opacity : 0;
    transform:translateY(20px);
    transition : opacity 0.3s ease, transform 0.3s ease;
}

.pillar:hover::before{
    opacity : 1;
}

.pillar:hover .pillar-body{
    opacity : 1;
    transform:translateY(0);
}

.pillar-body h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.pillar-body p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0;
    text-wrap:balance;
    word-break:keep-all;
}

/* -------------------- 오시는 길 (Location band) -------------------- */
.location-band {
    background: #ffffff;
    padding: 5rem 0;
}

.location-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.location-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2f2f2f;
    margin-bottom: 2rem;
}

.loc-list {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 1rem;
    column-gap: 1.5rem;
}

.loc-list dt {
    color: var(--primary-color);
    font-weight: 700;
}

.loc-list dd {
    color: var(--text-color);
    margin: 0;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    min-height: 320px;
}

/* 데스크톱에서만 지도 높이에 맞춰 텍스트를 아래로 정렬. 모바일은 세로 스택이라 불필요 */
@media (min-width: 992px) {
    .location-text-col {
        padding-top: 100pt;
    }
}

/* index.css에서 이식: 카카오맵 위젯이 컨테이너에 꽉 차도록 강제 */
#daumRoughmapContainer1751939936511 {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#daumRoughmapContainer1751939936511 .daum_roughmap {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* -------------------- 반응형 -------------------- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.4rem;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar {
        min-height: 420px;
    }

    .brand-cards {
        grid-template-columns: 1fr;
    }

    .products-band {
        padding: 6rem 0;
    }

    .pcard {
        flex-basis: 280px;
    }

    .pcard-img {
        height: 340px;
    }

    .brand-intro {
        padding: 6rem 0;
    }

    .brand-card {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar.site-nav {
        background: var(--dark-color) !important;
        padding: 0.9rem 0 !important;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .products-band {
        padding: 4rem 0;
    }

    .products-band .row {
        text-align: center;
    }

    .products-band .col-lg-4 {
        margin-bottom: 2rem;
    }

    .pcard {
        flex-basis: 240px;
    }

    .pcard-img {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar {
        min-height: 320px;
    }

    .pcard {
        flex-basis: 170px;
    }

    .pcard-img {
        height: 170px;
    }
}
