/* ---------- 인트로 헤더 ---------- */
.intro-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    padding-block: 25px;
    background: #fff;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
    transition:
        visibility 0.3s ease,
        opacity 0.3s ease;
}

.intro-header.is-visible {
    visibility: visible;
    opacity: 1;
}

.intro-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-header-logo {
    margin: 0;
    line-height: 0;
}

.intro-header-logo img {
    display: block;
    height: auto;
    max-height: 40px;
    width: auto;
}

@media screen and (max-width: 1024px) {
    .intro-header {
        padding-block: 16px;
    }

    .intro-header-logo img {
        width: 162px;
    }
}

/* ---------- 인트로 ---------- */
.intro {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease;
    padding-inline: 25px;
}

.intro[aria-hidden="true"] {
    pointer-events: none;
    opacity: 0;
}

.intro-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.intro-bg img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    vertical-align: top;
    display: block;
}

.intro-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%); */
    pointer-events: none;
}

.intro-logo {
    position: absolute;
    left: 3%;
    top: 40%;
    transform: translateY(-50%);
    z-index: 1;
    height: auto;
    max-height: 60vh;
    width: auto;
    opacity: 0;
    pointer-events: none;
    animation: introLogoFade 1.2s ease 0.3s forwards;
}

@keyframes introLogoFade {
    to {
        opacity: 0.2;
    }
}

@media screen and (min-width: 1025px) {
    .intro .br-mobile {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .intro-logo {
        display: none;
    }

    .intro .br-mobile {
        display: block;
    }
}

.intro-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* 소제목: 나눔명조 */
.intro-subtitle,
.intro-subtitle .line,
.intro-subtitle .char {
    font-family: "Nanum Myeongjo", NanumMyeongjoOTF, serif;
}

.intro-subtitle {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: 12px;
    text-transform: capitalize;
}

.intro-title {
    margin: 0;
    color: #fff;
    text-align: center;
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: 60px;
    font-style: normal;
    font-weight: 300;
    line-height: 130%;
    letter-spacing: -1.2px;
    text-transform: capitalize;
}

/* 제목 2줄 고정 */
.intro-title .intro-title__line {
    display: block !important;
    width: 100% !important;
    text-align: center;
}

.intro-desc {
    margin: 0;
    color: #fff;
    text-align: center;
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: -0.48px;
    text-transform: capitalize;
}

/* 모바일: 인트로 텍스트  */
@media screen and (max-width: 768px) {
    .intro-subtitle {
        font-size: 16px;
        letter-spacing: 6.4px;
    }

    .intro-title {
        font-size: 30px;
        letter-spacing: -0.6px;
    }

    .intro-desc {
        font-size: 18px;
        font-weight: 400;
        letter-spacing: -0.36px;
    }
}

/* ---------- 페이지 선택 ---------- */
.page-select {
    padding: 0px 20px;
    height: 100%;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
    background: #fff;
}

.page-select[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.page-select-inner {
    padding-top: 45px;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.page-select-card {
    border-radius: 20px;
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    background-size:
        100% 100%,
        100% 100%;
    background-position:
        center,
        0 0;
    border: 1px solid transparent;
    background-repeat: no-repeat, no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
}

.page-select-card:nth-child(1) {
    background-image:
        url("../img/intro/intro_item_bg_1.png"),
        linear-gradient(to bottom right,
            rgba(197, 128, 102, 0.16) 0%,
            rgba(197, 128, 102, 0.04) 35%,
            rgba(44, 25, 18, 0.04) 65%,
            rgba(44, 25, 18, 0.16) 100%);
}

.page-select-card:nth-child(2) {
    background-image:
        url("../img/intro/intro_item_bg_2.png"),
        linear-gradient(to bottom right,
            rgba(197, 128, 102, 0.16) 0%,
            rgba(197, 128, 102, 0.04) 35%,
            rgba(44, 25, 18, 0.04) 65%,
            rgba(44, 25, 18, 0.16) 100%);
}

.page-select-card:nth-child(3) {
    background-image:
        url("../img/intro/intro_item_bg_3.png"),
        linear-gradient(to bottom right,
            rgba(197, 128, 102, 0.16) 0%,
            rgba(197, 128, 102, 0.04) 35%,
            rgba(44, 25, 18, 0.04) 65%,
            rgba(44, 25, 18, 0.16) 100%);
}

.page-select-card:nth-child(4) {
    background-image:
        url("../img/intro/intro_item_bg_4.png"),
        linear-gradient(to bottom right,
            rgba(197, 128, 102, 0.16) 0%,
            rgba(197, 128, 102, 0.04) 35%,
            rgba(44, 25, 18, 0.04) 65%,
            rgba(44, 25, 18, 0.16) 100%);
}

.page-select-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 24px 0 rgba(142, 91, 72, 0.35);
}

.page-select-card:nth-child(1):hover {
    background-image:
        url("../img/intro/intro_item_bg_1.png"),
        linear-gradient(to bottom right,
            #c58066 0%,
            rgba(197, 128, 102, 0.15) 35%,
            rgba(44, 25, 18, 0.15) 65%,
            #2c1912 100%);
}

.page-select-card:nth-child(2):hover {
    background-image:
        url("../img/intro/intro_item_bg_2.png"),
        linear-gradient(to bottom right,
            #c58066 0%,
            rgba(197, 128, 102, 0.15) 35%,
            rgba(44, 25, 18, 0.15) 65%,
            #2c1912 100%);
}

.page-select-card:nth-child(3):hover {
    background-image:
        url("../img/intro/intro_item_bg_3.png"),
        linear-gradient(to bottom right,
            #c58066 0%,
            rgba(197, 128, 102, 0.15) 35%,
            rgba(44, 25, 18, 0.15) 65%,
            #2c1912 100%);
}

.page-select-card:nth-child(4):hover {
    background-image:
        url("../img/intro/intro_item_bg_4.png"),
        linear-gradient(to bottom right,
            #c58066 0%,
            rgba(197, 128, 102, 0.15) 35%,
            rgba(44, 25, 18, 0.15) 65%,
            #2c1912 100%);
}

.page-select-card-top {
    padding: 81px 28px 0;
    text-align: center;
    flex: 0 0 auto;
}

.page-select-card-subtitle {
    margin: 0 0 6px;
    color: #171717;
    text-align: center;
    font-family: "Nanum Myeongjo", NanumMyeongjoOTF, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
}

.page-select-card-title-wrap {
    margin-bottom: 20px;
}

.page-select-card-title .br-mobile {
    display: none;
}

.page-select-card-title {
    text-align: center;
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.6px;
    color: #454545;
    transition: all 0.5s ease;
}

.page-select-card:nth-child(4) .page-select-card-top>.page-select-card-title {
    margin-bottom: 20px;
}

.page-select-card:hover .page-select-card-title,
.page-select-card:hover .page-select-card-title-em {
    background: linear-gradient(180deg, #8e5b48 31.41%, #1f0d06 110.9%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* color: transparent; */
}

.page-select-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid #8e5b48;
    background: rgba(17, 17, 17, 0.01);
    box-shadow:
        -3px -3px 4px 0 rgba(255, 255, 255, 0.2) inset,
        2px 2px 6px 0 rgba(255, 255, 255, 0.25) inset;
    backdrop-filter: blur(5px);
    color: #8e5b48;
    text-align: center;
    font-family: "Nanum Myeongjo", NanumMyeongjoOTF, serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.page-select-card:hover .page-select-card-btn {
    opacity: 1;
    pointer-events: auto;
}

.page-select-card-btn:hover {
    background-color: #8e5b48;
    box-shadow: none;
}

.page-select-card-btn:hover .page-select-card-btn-txt {
    color: #fff;
}

.page-select-card-btn:hover svg,
.page-select-card-btn:hover svg path {
    stroke: #fff;
}

.page-select-card-btn .page-select-card-btn-txt {
    color: #8e5b48;
    text-align: center;
    font-family: "Nanum Myeongjo", NanumMyeongjoOTF, serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
}

.page-select-card-img {
    margin-top: 35px;
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.page-select-card-img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.page-select-card-img2 {
    position: relative;
    top: 7px;
    transform: scale(1.1);
}

@media screen and (max-width: 1024px) {
    .page-select-list {
        grid-template-columns: 1fr;
    }

    .page-select-card {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }

    .page-select-card-top {
        flex: 1;
        min-width: 0;
        padding: 24px 20px 24px 24px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .page-select-card-btn {
        width: fit-content;
    }

    .page-select-card-subtitle,
    .page-select-card-title {
        text-align: left;
    }

    .page-select-card-img {
        flex: 0 0 auto;
        width: 32%;
        margin-top: 0;
        aspect-ratio: 1;
        padding: 0;
        align-items: flex-end;
    }
}

@media screen and (max-width: 1024px) {
    .page-select {
        min-height: 100%;
        height: auto;
    }

    .page-select-inner {
        display: block;
        height: auto;
        padding-top: 98px;
        padding-bottom: 40px;
    }
}

/* 모바일 */
@media screen and (max-width: 768px) {
    .page-select {
        min-height: 100%;
        height: auto;
    }

    .page-select-card-top {
        padding: 25px 0 25px 18px;
        text-align: left;
    }

    .page-select-card-subtitle {
        font-size: 13px;
        margin-bottom: 4px;
        text-align: left;
    }

    .page-select-card-title {
        font-size: 20px;
        text-align: left;
    }

    .page-select-card-title .br-mobile {
        display: block;
    }

    .page-select-card-title-wrap .page-select-card-title {
        display: inline;
    }

    .page-select-card-btn {
        width: fit-content;
        font-size: 14px;
        padding: 8px 12px;
        gap: 0;
    }

    .page-select-card-btn .page-select-card-btn-txt {
        font-size: 14px;
        text-align: left;
    }

    /* 모바일: 4번째 카드 이미지만 상단 여백 */
    .page-select-card:nth-child(4) .page-select-card-img {
        padding-top: 20px;
    }
}