/*
 * 메인 상단 비주얼 (#nt-hero) — 2026-10 리뉴얼, 시안 A 현장 사진형
 * 마크업: resources/views/pages/partials/home-hero.blade.php / 동작: nt-home-hero.js
 * 모든 선택자는 #nt-hero 로 시작한다 (Avada 의 #main h2, .post-content p, body a 등보다 우선).
 */

#nt-hero {
    --nt-interval: 7000ms;
    position: relative;
    overflow: hidden;
    background: #0B2540;
    color: #FFFFFF;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

#nt-hero *,
#nt-hero *::before,
#nt-hero *::after {
    box-sizing: border-box;
}

#nt-hero .nt-hero__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 슬라이드는 한 칸에 겹쳐 쌓고, 가장 긴 슬라이드가 높이를 정한다 */
#nt-hero .nt-hero__viewport {
    display: grid;
}

#nt-hero .nt-hero__slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 680px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

#nt-hero .nt-hero__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s;
}

#nt-hero .nt-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
}

#nt-hero .nt-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 62% 55%;
}

#nt-hero .nt-hero__slide--mes .nt-hero__media img {
    object-position: 80% 45%;
}

#nt-hero .nt-hero__slide--sewing .nt-hero__media img {
    object-position: 70% 50%;
}

#nt-hero .nt-hero__scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(11, 37, 64, 0.95) 0%, rgba(11, 37, 64, 0.88) 36%, rgba(11, 37, 64, 0.5) 62%, rgba(11, 37, 64, 0.12) 100%);
}

#nt-hero .nt-hero__scrim::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 200px;
    background: linear-gradient(0deg, rgba(11, 37, 64, 0.92) 0%, rgba(11, 37, 64, 0) 100%);
}

/* 헤더 로고와 같은 1170px 기준선 (좌우 여백 30px 포함 1230px) */
#nt-hero .nt-hero__inner {
    position: relative;
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 30px;
}

#nt-hero .nt-hero__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
    padding: 64px 0 112px;
}

#nt-hero .nt-hero__chip {
    align-self: flex-start;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid rgba(114, 191, 172, 0.45);
    border-radius: 999px;
    background: rgba(114, 191, 172, 0.16);
    color: #9ED6C8;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
}

/*
 * Avada 의 fusion-responsive-typography.js 가 모든 h1~h6 에 인라인 line-height 와 --fontSize 를 넣고,
 * 1000px 이하에서는 .fusion-responsive-typography-calculated { font-size: … !important } 로 글자를 줄인다.
 * 시안 크기를 지키려고 제목의 font-size·line-height 만 !important 로 고정한다.
 */
#nt-hero .nt-hero__title {
    margin: 0;
    font-family: inherit;
    font-size: 52px !important;
    font-style: normal;
    font-weight: 750;
    line-height: 1.25 !important;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

#nt-hero .nt-hero__lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #D5DCE4;
    text-wrap: balance;
}

#nt-hero .nt-hero__lead strong {
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}

#nt-hero .nt-hero__nowrap {
    white-space: nowrap;
}

#nt-hero .nt-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

#nt-hero .nt-hero__stat {
    display: flex;
    flex: 0 1 180px;
    flex-direction: column-reverse;
    gap: 2px;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

#nt-hero .nt-hero__stat dt {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #C7D0DA;
}

#nt-hero .nt-hero__stat dd {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 30px;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    white-space: nowrap;
}

#nt-hero .nt-hero__tags,
#nt-hero .nt-hero__steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nt-hero .nt-hero__steps {
    gap: 8px 30px;
}

#nt-hero .nt-hero__tags li,
#nt-hero .nt-hero__steps li {
    position: relative;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    list-style: none;
}

#nt-hero .nt-hero__steps li {
    border-radius: 999px;
}

/* 공정 사이의 화살표 */
#nt-hero .nt-hero__steps li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -19px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #9ED6C8;
    border-right: 2px solid #9ED6C8;
    transform: translateY(-50%) rotate(45deg);
}

#nt-hero .nt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

#nt-hero .nt-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

#nt-hero .nt-hero__btn svg {
    flex-shrink: 0;
}

#nt-hero .nt-hero__btn--primary,
#nt-hero .nt-hero__btn--primary:hover,
#nt-hero .nt-hero__btn--primary:focus {
    color: #0B2540;
}

#nt-hero .nt-hero__btn--primary {
    background: #72BFAC;
}

#nt-hero .nt-hero__btn--primary:hover {
    background: #8CCDBD;
}

#nt-hero .nt-hero__btn--ghost,
#nt-hero .nt-hero__btn--ghost:hover,
#nt-hero .nt-hero__btn--ghost:focus {
    color: #FFFFFF;
}

#nt-hero .nt-hero__btn--ghost {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

#nt-hero .nt-hero__btn--ghost:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

#nt-hero a:focus-visible,
#nt-hero button:focus-visible {
    outline: 3px solid #72BFAC;
    outline-offset: 2px;
}

#nt-hero .nt-hero__note {
    margin: -6px 0 0;
    padding-left: 0.85em;
    text-indent: -0.85em;
    font-size: 13px;
    line-height: 1.5;
    color: #A9B5C2;
}

#nt-hero .nt-hero__note-mo {
    display: none;
}

/* 슬라이드 탭 + 이전/멈춤/다음 (스크립트가 준비된 뒤에만 보인다) */
#nt-hero .nt-hero__nav {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding-bottom: 28px;
}

#nt-hero.is-ready .nt-hero__nav {
    display: block;
}

#nt-hero .nt-hero__nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
}

#nt-hero .nt-hero__tabs {
    display: flex;
    flex: 1 1 auto;
    gap: 16px;
    min-width: 0;
    max-width: 720px;
}

#nt-hero .nt-hero__tab {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 14px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #A9B5C2;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

#nt-hero .nt-hero__tab:hover,
#nt-hero .nt-hero__tab.is-active {
    color: #FFFFFF;
}

#nt-hero .nt-hero__tab.is-active {
    font-weight: 700;
}

#nt-hero .nt-hero__bar {
    display: block;
    height: 3px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
}

#nt-hero .nt-hero__progress {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 2px;
    background: #72BFAC;
}

#nt-hero .nt-hero__tab.is-active .nt-hero__progress {
    width: 100%;
}

#nt-hero .nt-hero__tab.is-active .nt-hero__progress.is-running {
    animation: nt-hero-progress var(--nt-interval) linear forwards;
}

#nt-hero.is-paused .nt-hero__progress.is-running {
    animation-play-state: paused;
}

@keyframes nt-hero-progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

#nt-hero .nt-hero__tab-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#nt-hero .nt-hero__tab-num {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#nt-hero .nt-hero__controls {
    display: flex;
    flex: none;
    gap: 8px;
}

#nt-hero .nt-hero__ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(11, 37, 64, 0.35);
    box-shadow: none;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

#nt-hero .nt-hero__ctrl:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
}

#nt-hero .nt-hero__icon-play,
#nt-hero.is-stopped .nt-hero__icon-pause {
    display: none;
}

#nt-hero.is-stopped .nt-hero__icon-play {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    #nt-hero .nt-hero__slide,
    #nt-hero .nt-hero__slide.is-active {
        transition: none;
    }
}

/* 태블릿 */
@media (max-width: 1023px) {
    #nt-hero .nt-hero__slide {
        min-height: 620px;
    }

    #nt-hero .nt-hero__scrim {
        background: linear-gradient(90deg, rgba(11, 37, 64, 0.95) 0%, rgba(11, 37, 64, 0.9) 50%, rgba(11, 37, 64, 0.62) 80%, rgba(11, 37, 64, 0.4) 100%);
    }

    #nt-hero .nt-hero__content {
        max-width: 560px;
        padding-top: 56px;
    }

    #nt-hero .nt-hero__title {
        font-size: 44px !important;
    }

    #nt-hero .nt-hero__lead {
        font-size: 17px;
    }
}

/* 모바일: 사진은 위쪽 띠, 문구는 그 아래 */
@media (max-width: 767px) {
    #nt-hero .nt-hero__slide {
        min-height: 0;
    }

    /* 사진 위쪽 48px(구역 표지판)은 잘라 낸다 */
    #nt-hero .nt-hero__media {
        top: -48px;
        bottom: auto;
        height: 468px;
    }

    #nt-hero .nt-hero__slide--support .nt-hero__media img {
        object-position: 62% 30%;
    }

    #nt-hero .nt-hero__slide--mes .nt-hero__media img {
        object-position: 78% 40%;
    }

    #nt-hero .nt-hero__slide--sewing .nt-hero__media img {
        object-position: 72% 50%;
    }

    #nt-hero .nt-hero__scrim {
        background: linear-gradient(180deg, rgba(11, 37, 64, 0.25) 0, rgba(11, 37, 64, 0.7) 207px, rgba(11, 37, 64, 0.96) 366px, #0B2540 509px);
    }

    #nt-hero .nt-hero__scrim::after {
        display: none;
    }

    #nt-hero .nt-hero__inner {
        padding: 0 20px;
    }

    #nt-hero .nt-hero__content {
        gap: 14px;
        max-width: none;
        padding: 220px 0 92px;
    }

    #nt-hero .nt-hero__chip {
        padding: 6px 12px;
        background: rgba(33, 69, 87, 0.76);
        font-size: 13px;
        line-height: 18px;
    }

    #nt-hero .nt-hero__title {
        font-size: 30px !important;
        line-height: 1.3 !important;
    }

    #nt-hero .nt-hero__lead {
        font-size: 15px;
        line-height: 1.65;
        text-wrap: pretty;
    }

    #nt-hero .nt-hero__stats {
        flex-wrap: nowrap;
        gap: 10px;
    }

    #nt-hero .nt-hero__stat {
        flex: 1 1 0;
        padding: 12px 14px;
    }

    #nt-hero .nt-hero__stat dt {
        font-size: 12px;
        line-height: 17px;
    }

    #nt-hero .nt-hero__stat dd {
        font-size: 20px;
        line-height: 26px;
    }

    #nt-hero .nt-hero__tags li,
    #nt-hero .nt-hero__steps li {
        padding: 5px 10px;
        font-size: 13px;
        line-height: 18px;
    }

    #nt-hero .nt-hero__steps {
        gap: 8px 24px;
    }

    #nt-hero .nt-hero__steps li + li::before {
        left: -16px;
    }

    #nt-hero .nt-hero__actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }

    #nt-hero .nt-hero__btn {
        width: 100%;
        min-height: 50px;
    }

    #nt-hero .nt-hero__note {
        margin-top: 0;
        font-size: 12px;
    }

    #nt-hero .nt-hero__note-pc {
        display: none;
    }

    #nt-hero .nt-hero__note-mo {
        display: inline;
    }

    #nt-hero .nt-hero__nav {
        padding-bottom: 20px;
    }

    #nt-hero .nt-hero__nav-inner {
        flex-wrap: nowrap;
        gap: 12px;
    }

    #nt-hero .nt-hero__tabs {
        gap: 10px;
    }

    #nt-hero .nt-hero__tab {
        min-height: 44px;
        padding-top: 9px;
        font-size: 13px;
        line-height: 18px;
    }

    #nt-hero .nt-hero__bar {
        margin-bottom: 9px;
    }

    #nt-hero .nt-hero__tab-num,
    #nt-hero .nt-hero__ctrl--step {
        display: none;
    }
}
