/* ============================================================
   폰파킹 랜딩(이미지 상세) 페이지 전용 스타일 (landing.css)
   ============================================================ */

:root {
    --gold: #ffaf00;
    --gold-dark: #f59e00;
    --ink: #131313;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background: #fff;
    font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 디자인 이미지 세로 스택 */
.detail-wrap {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}

.detail-wrap .detail-img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    vertical-align: top;
}

/* 이미지 경계 부드럽게 (배경으로 페이드) */
.detail-img.fade-bottom {
    -webkit-mask-image: linear-gradient(to bottom, #000 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 93%, transparent 100%);
}

.detail-img.fade-top {
    margin-top: -2%;
    -webkit-mask-image: linear-gradient(to top, #000 95%, transparent 100%);
    mask-image: linear-gradient(to top, #000 95%, transparent 100%);
}

/* 이미지 위에 영상 오버레이 (이미지 하단 영역) */
.video-frame {
    position: relative;
    width: 100%;
    line-height: 0;
}

.video-frame .detail-img {
    width: 100%;
}

.video-embed {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 4%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* 푸터 (사업자 정보) */
.site-footer {
    width: 100%;
    margin-top: 0;
    padding: 28px 24px calc(90px + env(safe-area-inset-bottom)); /* 하단 고정 CTA 영역만큼 패딩 */
    border-top: 1px solid #eee;
    background: #0c0c0c;
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
}

.site-footer .footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 8px;
}

.site-footer .footer-copy {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #2a2a2a;
    font-size: 12px;
    color: #6b6b6b;
}

/* 하단 고정 CTA (이미지 배너) — 바닥에서 살짝 띄움 */
.cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 100;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    max-width: 740px; /* PC에서도 이미지 원본 너비(1479px)를 넘기지 않음 */
    margin: 0 auto;
    line-height: 0;
    padding: 0 10px;
    transition: transform .28s ease, opacity .28s ease;
    will-change: transform;
}

/* 스크롤 중에는 아래로 숨김, 멈추면 다시 올라옴 */
.cta-bar.is-hidden {
    transform: translateY(calc(100% + 20px + env(safe-area-inset-bottom)));
    opacity: 0;
    pointer-events: none;
}

.cta-bar a {
    display: block;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .12);
}

.cta-bar img {
    width: 100%;
    height: auto;
    display: block;
}

/* 세로 스택 이미지별 모서리/간격 (인라인 추출) */
.detail-img.r1 { margin-bottom: 30px; border-bottom-left-radius: 36px; border-bottom-right-radius: 36px; }
.detail-img.r2 { margin-top: 30px; border-top-left-radius: 12px; border-top-right-radius: 12px; margin-bottom: 50px; }
.detail-img.r3 { border-top-left-radius: 36px; border-top-right-radius: 36px; }
