/* =========================================================
   Xi YS Landing — Override Styles (Clean Reset)
   ========================================================= */

html,
body {
    background: #0b0d12;
    overflow-x: hidden;
}

/* =========================================================
   HERO
   ========================================================= */

#hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0b0d12;
}

#hero-image-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#hero-image-layer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 28%;
}

#hero-grad {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 50% 58%,
            rgba(10, 14, 28, .08) 0%,
            rgba(10, 14, 28, .18) 55%,
            rgba(10, 14, 28, .28) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, .02) 0%,
            rgba(0, 0, 0, .05) 55%,
            rgba(0, 0, 0, .10) 100%);
}

#hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0 18px;
    padding-top: 6vh;
}

#hero-eyebrow,
#hero-sub {
    display: none !important;
}

#hero-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 8vw, 82px);
    line-height: 1.05;
    letter-spacing: .16em;
    color: #F6E7C4;
    white-space: nowrap;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, .35),
        0 10px 28px rgba(0, 0, 0, .25);
}

#hero-btns {
    width: 100%;
    max-width: 240px;
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#hero-btns>a {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(12, 16, 26, .92);
    color: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

#hero-btns>a:hover {
    background: rgba(16, 22, 36, .94);
    border-color: rgba(255, 255, 255, .24);
    transform: translateY(-1px);
}

#hero-btns>a:active {
    transform: translateY(0);
}

/* =========================================================
   HERO RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
    #hero-image-layer img {
        object-position: center 36%;
    }

    #hero-title {
        font-size: clamp(30px, 7.2vw, 56px);
        letter-spacing: .15em;
        margin-bottom: 16px;
    }

    #hero-btns {
        max-width: 200px;
        margin-top: 36px;
    }

    #hero-btns>a {
        height: 40px;
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    #hero-image-layer img {
        object-position: center 24%;
    }

    #hero-content {
        padding-top: 5vh;
    }

    #hero-btns {
        max-width: 320px;
        margin-top: 22px;
    }

    #hero-btns>a {
        height: 44px;
        font-size: 14px;
    }
}

@media (min-width: 1280px) {
    #hero-image-layer img {
        object-position: center 30%;
    }
}

/* =========================================================
   DETAIL
   ========================================================= */

#detail {
    background: #0b0d12;
    overflow: hidden;
}

.h-card {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .10),
        0 22px 46px rgba(0, 0, 0, .55);
}

.h-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: 12px;
    background: radial-gradient(120% 90% at 50% 15%,
            rgba(255, 255, 255, .18) 0%,
            rgba(255, 255, 255, .08) 35%,
            rgba(255, 255, 255, 0) 70%);
}

.h-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .18) 0%,
            rgba(0, 0, 0, .06) 46%,
            rgba(0, 0, 0, 0) 78%);
}

.card-img-wrap {
    height: 100%;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .9s ease;
}

.h-card:hover img {
    transform: scale(1.06);
}

.card-body {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 40px;
    z-index: 2;
    padding: 14px 16px 12px;
    background: rgba(10, 12, 16, .18);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.card-num {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: .38em;
    color: rgba(255, 255, 255, .70);
}

.card-title {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, .35),
        0 10px 24px rgba(0, 0, 0, .45);
}

.card-desc {
    max-width: 420px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
    text-shadow:
        0 2px 3px rgba(0, 0, 0, .35),
        0 8px 18px rgba(0, 0, 0, .35);
}

@media (max-width: 768px) {
    .card-body {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 12px 14px 10px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-desc {
        font-size: 13px;
    }
}

/* =========================================================
   LOCATION
   ========================================================= */

#location-section {
    padding: 80px 20px 100px;
    background: #f5f6f8;
    text-align: center;
    overflow: hidden;
}

.location-head {
    margin-bottom: 40px;
}

.location-sub {
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: .35em;
    color: #b89b6a;
}

.location-title {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 500;
}

.location-map {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .15);
}

.location-map img {
    width: 100%;
    height: auto;
    display: block;
}

.location-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 50px auto 0;
}

.loc-item {
    background: #111f33;
    padding: 22px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
    transition: transform .25s ease, box-shadow .25s ease;
}

.loc-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.loc-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

.loc-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .35);
}

@media (min-width: 1024px) {
    #location-section {
        padding: 120px 20px;
    }

    #location-section .location-map {
        max-width: 820px;
    }

    #location-section .location-points {
        max-width: 720px;
        margin-top: 44px;
        gap: 18px;
    }

    #location-section .loc-item {
        padding: 18px;
    }

    #location-section .loc-item strong {
        font-size: 15px;
    }

    #location-section .loc-item span {
        font-size: 12px;
    }
}

@media (min-width: 1280px) {
    #location-section .location-map {
        max-width: 760px;
    }

    #location-section .location-points {
        max-width: 680px;
    }
}

@media (max-width: 640px) {
    .location-points {
        grid-template-columns: 1fr;
    }

    .loc-item strong {
        white-space: normal;
    }
}

/* =========================================================
   FOOTER CTA BUTTON — FINAL
   ========================================================= */

#site-footer #btn-main-line {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 4px !important;

    min-width: 320px;
    max-width: 420px;
    height: 54px;
    padding: 0 32px !important;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14) !important;

    background: linear-gradient(180deg, #c62828 0%, #a61d1d 100%) !important;
    color: #fff !important;
    text-decoration: none !important;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;

    box-shadow:
        0 10px 24px rgba(166, 29, 29, .22),
        0 4px 10px rgba(0, 0, 0, .10);

    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#site-footer #btn-main-line:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 14px 28px rgba(166, 29, 29, .26),
        0 6px 12px rgba(0, 0, 0, .12);
}

#site-footer #btn-main-line:active {
    transform: translateY(0);
}

#site-footer #btn-main-line .cta-main,
#site-footer #btn-main-line .cta-sub {
    color: #fff !important;
    line-height: 1 !important;
    white-space: nowrap;
}

#site-footer #btn-main-line .cta-main {
    font-size: 16px !important;
    font-weight: 600 !important;
}

#site-footer #btn-main-line .cta-sub {
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* =========================================================
   LOCATION — remove white button box
   ========================================================= */

#location-section .loc-trigger {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;

    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

#location-section .loc-trigger strong,
#location-section .loc-trigger span {
    background: transparent !important;
}

#location-section .loc-item {
    overflow: hidden;
}

/* =========================================================
   LOCATION accordion
   기본은 닫힘, 클릭한 카드만 열림
   ========================================================= */

/* 기본 숨김 */
#location-section .loc-panel {
    display: none;
    margin-top: 0;
}

/* 열렸을 때만 표시 */
#location-section .loc-item.is-open .loc-panel,
#location-section .loc-item.active .loc-panel,
#location-section .loc-trigger[aria-expanded="true"]+.loc-panel {
    display: block;
    margin-top: 14px;
}

/* =========================================================
   LOCATION panel text
   ========================================================= */

#location-section .loc-panel {
    width: 100%;
    margin-top: 14px;
}

#location-section .loc-panel p {
    margin: 0;
    max-width: 420px;
    text-align: left;
    line-height: 1.6;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.70);
    word-break: keep-all;
}

@media (max-width: 768px) {
    #location-section .loc-panel p {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.55;
    }
}

#footer-copy {
    white-space: nowrap;
}

/* =========================================================
   MOBILE RENDER STABILIZATION ONLY
   - 디자인 변경 없음
   - 모바일 렌더링/크롭/애니 안정화
   ========================================================= */

html,
body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

/* iOS/모바일 vh 흔들림 방지 */
:root {
    --app-vh: 100vh;
}

/* -------------------------
   HERO
------------------------- */
#hero {
    min-height: var(--app-vh);
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#hero-image-layer,
#hero-image-layer img,
#hero-clip,
.hero-clip,
.hero-media,
.hero-media img {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 이미지 리샘플/깜빡임 완화 */
#hero-image-layer img,
.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

/* -------------------------
   DETAIL / HSCROLL
------------------------- */
#detail,
#detail .hscroll,
#detail .track,
#detail .panel {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#detail {
    overflow: hidden;
}

/* -------------------------
   LOCATION
------------------------- */
#location-section,
.loc-item,
.loc-panel,
.loc-trigger,
.loc-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* -------------------------
   MOBILE ONLY
------------------------- */
@media (max-width: 991px) {

    html,
    body {
        overflow-x: hidden;
    }

    /* 모바일에서 과도한 will-change 남발 금지 */
    #hero-image-layer,
    #hero-image-layer img,
    #detail .track,
    .loc-item,
    .loc-panel {
        will-change: auto;
    }

    /* clip-path 애니 중 경계 떨림 완화 */
    #hero-image-layer,
    #hero-clip,
    .hero-clip {
        contain: layout paint style;
    }

    /* 모바일에서 부동소수점 흔들림 완화 */
    #detail .track {
        transform: translate3d(0, 0, 0);
    }

    /* 아코디언 열릴 때 미세 깜빡임 방지 */
    .loc-content {
        overflow: hidden;
    }
}

/* -------------------------
   SMALL MOBILE
------------------------- */
@media (max-width: 767px) {
    #hero {
        min-height: var(--app-vh);
        min-height: 100svh;
    }
}

/* MOBILE STABILITY */

@media (max-width: 991px) {

    #hero,
    #detail,
    #location-section {
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    #hero-image-layer img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        display: block;
    }

    body {
        overflow-x: hidden;
    }

}

.loc-trigger {
    -webkit-tap-highlight-color: transparent;
}