/* ==========================================================
   index.css v1.0
   경로: root/theme/jjtheme/css/index.css
   index.php에서만 사용되는 전용 스타일
   ========================================================== */

/* ───────── ① 히어로 (유튜브 배경 영상) ───────── */
#fv-hero {
    margin-top: -70px;
}
.fv-hero-box {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    background: var(--brand-d);
}
.fv-hero-poster {
    position: absolute; inset: 0; z-index: 1;
    background-size: cover; background-position: center;
}
.fv-hero-yt-wrap {
    position: absolute; inset: 0; z-index: 2; overflow: hidden;
}
.fv-hero-yt-wrap iframe {
    pointer-events: none !important;
}
.fv-hero-yt-wrap .mbYTP_wrapper {
    pointer-events: none !important;
}
.fv-hero-yt-wrap [class*="ytp-"] {
    display: none !important;
}
.fv-hero-yt-wrap .mbYTP_wrapper > *:not(iframe) {
    display: none !important;
}
#fvHeroYtWrap > *:not(.mbYTP_wrapper):not(#bgndVideo) {
    display: none !important;
}
.fv-hero-mute-btn {
    display: none !important;
}
.fv-hero-fallback-bg {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-m) 55%, var(--brand-sub) 100%);
    display: none;
}
.fv-hero-fallback-bg.show { display: block; }

.fv-hero-overlay {
    position: absolute; inset: 0;
    z-index: 3;
}
.fv-hero-content {
    position: relative; z-index: 4; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 0 24px;
}
.fv-hero-content h1 {
    color: var(--db-surface); font-size: clamp(28px, 4.8vw, 56px);
    font-weight: 900; line-height: 1.25; margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.fv-hero-content h1 em {
    font-style: normal; color: var(--accent);
}
.fv-hero-content p {
    color: rgba(255,255,255,.85);
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.7;
    margin-bottom: 32px;
    text-shadow: 0 1px 12px rgba(0,0,0,.2);
}
.fv-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fv-hero-actions .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; border-radius: 50px;
    font-size: 14px; font-weight: 700; letter-spacing: 1px;
    transition: all .25s;
}
.fv-hero-actions .btn-primary {
    background: var(--accent); color: var(--brand); border: 1.5px solid var(--accent);
}
.fv-hero-actions .btn-primary:hover {
    background: var(--accent-d);
    border-color: var(--accent-d);
    transform: translateY(-2px);
}
.fv-hero-actions .btn-outline {
    background: transparent; color: var(--db-surface); border: 1.5px solid rgba(255,255,255,.5);
}
.fv-hero-actions .btn-outline:hover {
    background: rgba(255,255,255,.15); color: var(--db-surface);
}

/* ───────── ② 스티커 + 브랜드 스토리 ───────── */
#fv-about-band {
    padding: 72px 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(195,146,34,.14), transparent 34%),
        var(--bg);
}
.about-band-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, .65fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
}
.about-sticker-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.about-sticker-figure {
    width: min(100%, 220px);
    margin: 0;
    text-align: center;
}
.about-sticker-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 16px 30px rgba(41, 33, 13, .18));
}
.about-sticker-caption {
    margin-top: 16px;
    color: var(--txt-s);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}
.about-story {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.about-story .gap-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 50px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
}
.about-story .eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}
.about-story h2 {
    margin: 0;
    color: var(--brand);
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 900;
    line-height: 1.28;
}
.about-story .lead {
    margin: 0;
    color: var(--txt);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 700;
    line-height: 1.75;
}
.about-story .body-copy {
    margin: 0;
    color: var(--txt-s);
    font-size: 14px;
    line-height: 1.9;
}
.about-promise-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    width: 100%;
    margin: 4px 0 2px;
    padding: 0;
    list-style: none;
}
.about-promise-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--txt-s);
    font-size: 13px;
    line-height: 1.6;
}
.about-promise-list li i {
    flex: 0 0 auto;
    width: 16px;
    margin-top: 3px;
    color: var(--accent);
}
.fv-about-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 11px 25px;
    border: 1.5px solid var(--brand);
    border-radius: 50px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.fv-about-cta:hover {
    background: var(--brand);
    color: var(--db-surface);
    transform: translateY(-2px);
}

/* ───────── ②-1 대표의 한마디 ───────── */
#fv-founder-note {
    padding: 56px 0;
    background: var(--brand-light);
}
#fv-founder-note .fv-inner {
    max-width: 720px;
    text-align: center;
}
#fv-founder-note .fa-quote-left {
    font-size: 22px;
    color: var(--brand-sub);
    opacity: .5;
}
#fv-founder-note p {
    font-size: clamp(15px, 2vw, 19px);
    color: var(--brand);
    font-weight: 700;
    line-height: 1.8;
    margin: 14px 0 16px;
}
#fv-founder-note .founder-sign {
    font-size: 13px;
    color: var(--txt-s);
}

/* ───────── ③ 베스트 메뉴 ───────── */
#fv-best-menu { padding: 80px 0; background: var(--white); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
    font-size: 12px; font-weight: 700; color: var(--accent);
    letter-spacing: 2px; margin-bottom: 8px;
}
.section-head h2 {
    font-size: clamp(24px, 3.2vw, 38px); font-weight: 900; color: var(--brand);
    line-height: 1.2; margin-bottom: 10px;
}
.section-head p {
    font-size: 14px; color: var(--txt-s); line-height: 1.7;
}
.best-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.best-card {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border); transition: all .3s;
    background: var(--white);
}
.best-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.best-card-img {
    aspect-ratio: 1/1; background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--brand-sub);
    overflow: hidden;
}
.best-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.best-card-body { padding: 18px 20px; }
.best-card-body .badge {
    display: inline-block; padding: 2px 10px; border-radius: 50px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
    background: var(--accent); color: var(--brand);
    margin-bottom: 6px;
}
.best-card-body h3 { font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.best-card-body .price { font-size: 14px; font-weight: 700; color: var(--brand-sub); }
.best-card-body .desc { font-size: 13px; color: var(--txt-s); line-height: 1.6; margin-top: 6px; }

/* ───────── ④ STATS ───────── */
#fv-stats {
    background: var(--brand); padding: 60px 0;
    color: var(--db-surface);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-item {
    text-align: center; padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: clamp(32px, 4vw, 48px); font-weight: 900;
    line-height: 1.1; margin-bottom: 4px;
    color: var(--db-surface);
    text-shadow: 0 1px 10px rgba(0,0,0,.16);
}
.stat-num .count-value,
.stat-suffix {
    color: var(--db-surface);
}
.stat-suffix {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,.86);
    opacity: 1;
    letter-spacing: 0.5px;
}

/* ───────── ⑤ SERVICE TABS (카테고리별 상품) ───────── */
#fv-services { padding: 80px 0; background: var(--bg); }

.fv-svc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 4px 10px;
    position: relative;
}

@media (max-width: 768px) {
    .fv-svc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        padding: 0 4px 10px;
    }
    .fv-svc-tabs::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

.fv-svc-tab {
    flex-shrink: 0;
    padding: 10px 28px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--txt-s);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .22s;
    white-space: nowrap;
}
.fv-svc-tab.is-active,
.fv-svc-tab:hover { background: var(--brand); color: var(--db-surface); border-color: var(--brand); }

.fv-svc-tabs .swipe-hint {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    z-index: 5;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.fv-svc-tabs.scrollable .swipe-hint {
    opacity: 1;
    animation: hintFadeOut 1.8s ease forwards;
}
@keyframes hintFadeOut {
    0%, 50% { opacity: 1; }
    100% { opacity: 0; }
}
@media (min-width: 769px) {
    .fv-svc-tabs .swipe-hint {
        display: none !important;
    }
}

.fv-svc-panel { display: none; }
.fv-svc-panel.is-active { display: block; }
.svc-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.svc-card {
    background: var(--white); border-radius: 14px;
    padding: 24px 20px; text-align: center;
    border: 1px solid var(--border); transition: all .3s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card .icon {
    font-size: 32px; color: var(--brand); margin-bottom: 12px;
}
.svc-card .icon i { background: var(--brand-light); padding: 14px; border-radius: 50%; }
.svc-card h4 { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.svc-card p { font-size: 13px; color: var(--txt-s); line-height: 1.6; margin-bottom: 12px; }
.svc-card .link { font-size: 12px; font-weight: 700; color: var(--accent); }

/* ───────── ⑥ 매장 안내 (지도 포함) ───────── */
#fv-store-info { padding: 80px 0; background: var(--white); }
.store-grid {
    display: grid; grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: stretch;
}
.store-map {
    background: var(--brand-light);
    border-radius: 20px;
    min-height: 380px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
#kakao-map { width: 100%; height: 100%; min-height: 380px; }
.store-map .map-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: var(--db-surface); text-align: center; padding: 20px;
}
.store-map .map-fallback i { font-size: 40px; color: var(--accent); margin-bottom: 6px; }
.store-map .map-btns {
    position: absolute; z-index: 10; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.store-map .map-btns a {
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.95);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: all .2s;
}
.store-map .map-btns a:hover {
    background: var(--db-surface);
    transform: translateY(-2px);
}

.store-info {
    background: var(--db-surface);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.store-info .info-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 4px;
}
.store-info .info-title i {
    color: var(--accent);
    margin-right: 8px;
}
.store-info .info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.store-info .info-row:last-child { border-bottom: none; }
.store-info .info-row .icon {
    width: 28px;
    color: var(--accent);
    text-align: center;
    flex-shrink: 0;
    padding-top: 2px;
}
.store-info .info-row .label {
    font-weight: 700;
    color: var(--txt);
    width: 70px;
    flex-shrink: 0;
}
.store-info .info-row .value {
    color: var(--txt-s);
    line-height: 1.6;
}
.store-info .info-row .value a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}
.store-info .info-row .value a:hover { text-decoration: underline; }
.store-info .gap-cert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
}
.store-info .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.store-info .btn-group .btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--brand);
    color: var(--db-surface);
    font-size: 14px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    transition: all .22s;
}
.store-info .btn-group .btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.store-info .btn-group .btn-map.kakao {
    background: var(--accent);
    color: var(--brand-d);
}
.store-info .btn-group .btn-map.kakao:hover {
    background: var(--accent-d);
}

/* ───────── ⑦ CTA ───────── */
#fv-cta-final {
    padding: 80px 0; text-align: center;
    background: linear-gradient(135deg, var(--brand-d), var(--brand) 60%, var(--brand-m));
}
#fv-cta-final h2 {
    font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--db-surface);
    line-height: 1.2; margin-bottom: 24px;
}
#fv-cta-final p {
    font-size: 16px; color: rgba(255,255,255,.8);
    margin-bottom: 32px; line-height: 1.7;
}
#fv-cta-final .btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    font-size: 14px; font-weight: 700; letter-spacing: 1px;
    transition: all .25s;
}
#fv-cta-final .btn-primary {
    background: var(--accent); color: var(--brand); border: 1.5px solid var(--accent);
}
#fv-cta-final .btn-primary:hover {
    background: var(--accent-d);
    border-color: var(--accent-d);
    transform: translateY(-2px);
}
#fv-cta-final .btn-outline {
    background: transparent; color: var(--db-surface); border: 1.5px solid rgba(255,255,255,.4);
}
#fv-cta-final .btn-outline:hover { background: rgba(255,255,255,.12); }

/* ───────── reveal 애니메이션 ───────── */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay,0ms); }
.reveal.is-in { opacity:1; transform: translateY(0); }

/* ───────── 반응형 (index 전용) ───────── */
@media (max-width: 960px) {
    .about-band-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-sticker-wrap {
        order: 1;
    }
    .about-story {
        order: 2;
        align-items: center;
        text-align: center;
    }
    .about-sticker-figure {
        width: min(68vw, 280px);
    }
    .about-promise-list {
        max-width: 620px;
        text-align: left;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.15); }

    .store-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .store-info .btn-group .btn-map {
        flex: 1 1 100%;
    }
    .store-map .map-btns a {
        padding: 6px 12px;
        font-size: 11px;
    }
    .store-map .map-btns {
        gap: 6px;
        bottom: 12px;
    }

    #fv-hero { padding: 0; }
    .fv-hero-content h1 { font-size: 22px; }
    .fv-hero-content p { font-size: 13px; margin-bottom: 20px; }
    .fv-hero-actions .btn { padding: 11px 22px; font-size: 12px; }

    #fv-about-band, #fv-best-menu, #fv-services, #fv-store-info, #fv-cta-final {
        padding: 48px 0;
    }
}

@media (max-width: 768px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .best-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    #fv-about-band {
        padding: 48px 0;
    }
    .about-sticker-figure {
        width: min(82vw, 300px);
    }
    .about-promise-list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-left: 6px;
    }
}

@media (max-width: 400px) {
    .store-map .map-btns a {
        padding: 5px 10px;
        font-size: 10px;
    }
    .store-map .map-btns {
        gap: 4px;
        bottom: 10px;
    }
}
/* Reference hero sizes were formerly supplied by index.php inline styles. */
#fv-hero .fv-hero-box { height: min(92vh, 780px); min-height: 560px; }
#fv-hero .fv-hero-overlay {background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.48));}
.fv-main .best-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:767px){#fv-hero .fv-hero-box{height:72vh;min-height:470px}.fv-main .best-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.fv-main .reveal{opacity:1;transform:none;transition:none}}
