@charset "UTF-8";

/* ============================================
   서울쏙쏙치과 - 공통 페이지 스타일
   반응형 기반, CSS 변수, 타이포그래피
   ============================================ */

:root {
    /* 강남루덴플러스 × Beehive Dental 톤 */
    --ssok-primary: #1B2A4A;
    --ssok-primary-light: #2C3E6B;
    --ssok-primary-bg: #F5F0EB;
    --ssok-accent: #C4A265;
    --ssok-accent-dark: #A68845;
    --ssok-accent-light: #E8D5B5;
    --ssok-text: #2A2A2A;
    --ssok-text-light: #5A5A5A;
    --ssok-text-muted: #8A8A8A;
    --ssok-bg: #FDFBF8;
    --ssok-bg-light: #F7F3EF;
    --ssok-bg-warm: #F5F0EB;
    --ssok-bg-dark: #1B2A4A;
    --ssok-border: #E8E2DA;
    --ssok-success: #5A8F6A;
    --ssok-danger: #C45B5B;
    --ssok-shadow: 0 2px 16px rgba(27,42,74,0.06);
    --ssok-shadow-lg: 0 12px 40px rgba(27,42,74,0.10);
    --ssok-radius: 8px;
    --ssok-radius-sm: 6px;
    --ssok-radius-lg: 16px;
    --ssok-max-width: 1200px;
    --ssok-font: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --ssok-font-serif: 'Noto Serif KR', 'Georgia', serif;

    /* v3 iter 7 (2026-05-20): 타이포 가독성 시스템 — 토스+Mayo Clinic 기준
       - base 16 → 17px (모바일 동일, 사용자 피드백 "글자 작고 가독성 낮음")
       - line-height 1.7 (토스, .page-wrap에 이미 1.7 적용 — 토큰화)
       - KR letter-spacing -0.005em → -0.01em (토스 표준)
       - 본문 단락 max-width 65ch (Mayo Clinic) */
    --fst-body-size: 17px;
    --fst-leading-body: 1.7;
    --fst-letter-kr: -0.01em;
    --fst-max-width-prose: 65ch;
}

/* v3 iter 7: 진료/특수 페이지 base 타이포 — body 자체에 17px 적용.
   .page-wrap 컨테이너 + 단일 body 양쪽 커버. 모바일 동일 17px 유지. */
body.fst-page, .page-wrap{
    font-size: var(--fst-body-size);
    line-height: var(--fst-leading-body);
}

/* Reset for new pages */
.page-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--ssok-font);
    color: var(--ssok-text);
    line-height: 1.7;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

/* 레거시 footer.css의 section { min-width:1280px; width:100%; } 무력화 */
body section,
.page-wrap section,
section.page-hero,
section.page-section,
.page-wrap > section {
    min-width: 0 !important;
    width: auto !important;
}

.page-wrap *,
.page-wrap *::before,
.page-wrap *::after {
    box-sizing: border-box;
}

/* Container */
.page-inner {
    max-width: var(--ssok-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-inner--narrow {
    max-width: 900px;
}

.page-inner--wide {
    max-width: 1400px;
}

/* Typography */
.page-wrap h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--ssok-text);
}

.page-wrap h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
    color: var(--ssok-text);
}

.page-wrap h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ssok-text);
}

.page-wrap h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ssok-text);
}

.page-wrap p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ssok-text-light);
}

.page-wrap .text-primary { color: var(--ssok-primary); }
.page-wrap .text-accent { color: var(--ssok-accent-dark); }
.page-wrap .text-muted { color: var(--ssok-text-muted); }
.page-wrap .text-center { text-align: center; }

/* Shared route cards */
.route-intro {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.route-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ssok-accent-dark);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.route-intro__eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ssok-accent);
}

.route-intro__lead {
    margin: 14px auto 0;
    color: var(--ssok-text-light);
    font-size: 0.92rem;
    line-height: 1.85;
}

.route-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.route-card {
    display: block;
    padding: 28px 24px;
    border: 1px solid var(--ssok-border);
    border-radius: 24px;
    background: #fff;
    color: var(--ssok-text);
    text-decoration: none;
    box-shadow: var(--ssok-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.route-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 162, 101, 0.45);
    box-shadow: var(--ssok-shadow-lg);
}

.route-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ssok-accent-dark);
    font-size: 0.76rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.route-card__tag::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--ssok-accent);
}

.route-card h3,
.route-card h4 {
    margin: 0 0 10px;
    color: var(--ssok-primary);
    font-size: 1.02rem;
    line-height: 1.65;
}

.route-card p {
    margin: 0;
    color: var(--ssok-text-light);
    font-size: 0.86rem;
    line-height: 1.8;
}

.route-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--ssok-accent-dark);
    font-size: 0.84rem;
    font-weight: 600;
}

.route-card-grid--compact {
    grid-template-columns: 1fr;
    gap: 14px;
}

.route-card--compact {
    padding: 22px 20px;
    border-radius: 20px;
}

.route-card--compact h3,
.route-card--compact h4 {
    font-size: 0.98rem;
}

.route-card--compact p {
    font-size: 0.83rem;
    line-height: 1.75;
}

/* Hero Section — Fullscreen Photo Background */
.page-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--ssok-bg-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42,36,28,0.6) 0%, rgba(42,36,28,0.25) 50%, rgba(42,36,28,0.1) 100%);
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--ssok-bg) 0%, transparent 100%);
    z-index: 1;
}

.page-hero > .page-inner {
    position: relative;
    z-index: 2;
    padding-left: 60px;
    padding-right: 60px;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 24px;
    font-family: var(--ssok-font-serif);
    font-size: 3.4rem;
    /* v3 iter 8: page-hero h1 weight 400 → 600 (히어로 시각 무게감 + 신뢰감) */
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.5px;
}

.page-hero h1 strong,
.page-hero h1 em {
    font-weight: 700;
    font-style: normal;
}

.page-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 580px;
    line-height: 1.9;
}

.page-hero .hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(196,162,101,0.2);
    border: 1px solid rgba(196,162,101,0.5);
    border-radius: 2px;
    font-size: 0.8rem;
    color: var(--ssok-accent-light);
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Hero variant — no photo, solid color */
.page-hero--solid {
    min-height: auto;
    padding: 120px 0 80px;
    background: var(--ssok-bg-dark);
}

.page-hero--solid::before { display: none; }
.page-hero--solid::after { height: 80px; }

/* Scroll Hint — Hero 하단 바운스 쉐브론 */
.scroll-hint {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint::before,
.scroll-hint::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-right: 1.5px solid rgba(255,255,255,0.5);
    border-bottom: 1.5px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    margin: 0 auto;
}

.scroll-hint::before {
    margin-bottom: -6px;
    opacity: 0.35;
}

.scroll-hint::after {
    opacity: 0.7;
}

.scroll-hint {
    animation: scrollBounce 2.4s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 모바일에서 위치 조정 */
@media (max-width: 768px) {
    .scroll-hint {
        bottom: 32px;
    }

    .route-intro {
        margin-bottom: 24px;
    }

    .route-card,
    .route-card--compact {
        padding: 24px 20px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-hint {
        bottom: 24px;
    }
}

/* Breadcrumb */
.page-breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--ssok-text-muted);
}

.page-breadcrumb a {
    color: var(--ssok-text-muted);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: var(--ssok-primary);
}

.page-breadcrumb .separator {
    margin: 0 8px;
    color: var(--ssok-border);
}

/* Section */
.page-section {
    padding: 100px 0;
}

.page-section--gray {
    background: var(--ssok-bg-light);
}

.page-section--primary {
    background: var(--ssok-primary);
    color: #fff;
}

.page-section--primary h2,
.page-section--primary h3 {
    color: #fff;
}

.page-section--primary p {
    color: rgba(255,255,255,0.85);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ssok-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

/* Serif accent for headings */
/* v3 iter 8 (2026-05-20): serif 헤딩 weight 400 → 600 (의료 신뢰감 + 가독성). */
.page-wrap h2.serif,
.section-header h2 {
    font-family: var(--ssok-font-serif);
    font-weight: 600;
}

.section-header h2 strong {
    font-weight: 700;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--ssok-bg);
    border-radius: var(--ssok-radius);
    padding: 32px 24px;
    box-shadow: var(--ssok-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ssok-shadow-lg);
}

.card h4 {
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ssok-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--ssok-bg);
    border-radius: var(--ssok-radius-sm);
    box-shadow: var(--ssok-shadow);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-badge .badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ssok-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    min-height: 44px; /* 모바일 터치 타겟 최소 기준 (Apple HIG) */
    border-radius: var(--ssok-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: var(--ssok-font);
}

.btn--primary {
    background: var(--ssok-primary);
    color: #fff;
    border-radius: 2px;
}

.btn--primary:hover {
    background: var(--ssok-primary-light);
}

.btn--accent {
    background: var(--ssok-accent);
    color: #fff;
    border-radius: 2px;
}

.btn--accent:hover {
    background: var(--ssok-accent-dark);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--ssok-accent);
    color: var(--ssok-accent);
    border-radius: 2px;
}

.btn--outline:hover {
    background: var(--ssok-accent);
    color: #fff;
}

.btn--white {
    background: #fff;
    color: var(--ssok-primary);
    border-radius: 2px;
}

.btn--white:hover {
    background: var(--ssok-bg-warm);
}

.btn--ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 2px;
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Credential List */
.credential-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credential-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 1rem;
    color: var(--ssok-text-light);
    line-height: 1.6;
}

.credential-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ssok-primary);
}

.credential-list li.highlight {
    font-weight: 600;
    color: var(--ssok-primary);
}

.credential-list li.highlight::before {
    background: var(--ssok-accent);
    width: 10px;
    height: 10px;
    top: 15px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 24px 16px;
    counter-increment: step;
}

.process-step::before {
    content: counter(step);
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ssok-primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.process-step h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.9rem;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ssok-border);
    font-size: 0.95rem;
}

.info-table th {
    font-weight: 600;
    color: var(--ssok-primary);
    width: 120px;
    white-space: nowrap;
}

/* (구버전 Floating CTA 스타일 제거됨 — #floatingCta in page-head.php가 대체) */

/* Images */
.page-wrap img {
    max-width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: var(--ssok-radius);
}

.img-shadow {
    box-shadow: var(--ssok-shadow-lg);
}

/* Divider */
.page-divider {
    border: none;
    border-top: 1px solid var(--ssok-border);
    margin: 48px 0;
}

/* Sidebar: 새 페이지에서 완전 숨김 */
.page-wrap ~ .side_bar {
    display: none !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .page-hero {
        min-height: 70vh;
    }

    .page-hero h1 { font-size: 2.6rem; }
    .page-hero > .page-inner { padding-left: 40px; padding-right: 40px; }
    .page-wrap h2 { font-size: 1.6rem; }
    .page-wrap h3 { font-size: 1.3rem; }

    .page-section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 60vh;
    }

    .page-hero::after {
        height: 60px;
    }

    .page-hero h1 { font-size: 1.8rem; line-height: 1.5; }
    .page-hero > .page-inner { padding-left: 24px; padding-right: 24px; }
    .page-wrap h2 { font-size: 1.4rem; }
    .page-wrap h3 { font-size: 1.15rem; }
    .page-wrap h4 { font-size: 1.05rem; }

    .page-section {
        padding: 56px 0;
    }

    .page-inner {
        padding: 0 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 24px 20px;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .trust-badges {
        gap: 10px;
    }

    .trust-badge {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    .info-table th {
        width: 90px;
        font-size: 0.85rem;
    }

    .info-table td {
        font-size: 0.85rem;
    }

    /* Footer 모바일 세로 배치 */
    footer .inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 32px 20px !important;
        gap: 20px;
    }

    footer .inner .f_text ul {
        flex-direction: column !important;
        gap: 0;
    }

    footer .inner .f_text ul li {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    footer .inner .f_text p {
        font-size: 12px !important;
        margin-top: 12px;
    }

    footer .top_btn {
        bottom: 20px !important;
        right: 16px !important;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: 55vh;
    }

    .page-hero h1 { font-size: 1.5rem; }
    .page-wrap h2 { font-size: 1.25rem; }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Scroll Reveal 애니메이션 시스템
   ============================================ */

/* 초기 상태: 보이지 않음 */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 리빌 완료: 보임 */
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 변형: 위에서 아래로 */
[data-reveal="fade-down"] {
    transform: translateY(-24px);
}

[data-reveal="fade-down"].is-revealed {
    transform: translateY(0);
}

/* 변형: 제자리 페이드 (이동 없음) */
[data-reveal="fade"] {
    transform: none;
}

/* 변형: 왼쪽에서 */
[data-reveal="fade-left"] {
    transform: translateX(-24px);
}

[data-reveal="fade-left"].is-revealed {
    transform: translateX(0);
}

/* 변형: 오른쪽에서 */
[data-reveal="fade-right"] {
    transform: translateX(24px);
}

[data-reveal="fade-right"].is-revealed {
    transform: translateX(0);
}

/* 순차 딜레이 (stagger) — 부모에 data-reveal-stagger 적용 */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal-stagger].is-revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* 각 자식에 순차 딜레이 (CSS로 최대 8개) */
[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.4s; }
[data-reveal-stagger].is-revealed > *:nth-child(7) { transition-delay: 0.48s; }
[data-reveal-stagger].is-revealed > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================
   Service Grid Mobile Toggle
   모바일에서 서비스 카드 4개만 우선 표시
   ============================================ */

.service-toggle {
    display: none; /* 데스크톱: 완전 숨김 */
    margin: 0 auto;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--ssok-accent);
    color: var(--ssok-accent-dark);
    font-size: 0.9rem;
    font-family: var(--ssok-font);
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}

.service-toggle:hover {
    background: var(--ssok-accent);
    color: #fff;
}

.service-toggle-icon {
    display: inline-block;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    /* 모바일: 서비스 카드 5~8번째 숨김 */
    .service-grid > .service-card:nth-child(n+5) {
        display: none;
    }

    /* 펼침 상태: 카드 5~8 표시 */
    .service-grid.is-expanded > .service-card:nth-child(n+5) {
        display: block;
    }

    /* 토글 버튼 표시 */
    .service-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

/* 접근성: 모션 축소 설정 시 애니메이션 비활성화 */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================
   접근성: 본문 바로가기 (Skip to Content)
   ============================================ */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 12px 24px;
    background: var(--ssok-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   접근성: 페이지 내 :focus-visible 스타일
   ============================================ */

/* 서비스 카드 */
.service-card:focus-visible {
    outline: 2px solid var(--ssok-accent);
    outline-offset: 2px;
}

/* 일반 버튼 */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.service-toggle:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ssok-accent);
    outline-offset: 2px;
}

/* 페이지 내 일반 링크 (네비게이션 제외) */
.page-section a:focus-visible,
.page-cta a:focus-visible {
    outline: 2px solid var(--ssok-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Floating Mobile CTA Bar ─── */
.floating-cta {
    display: none;
}

@media (max-width: 768px) {
    .floating-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        gap: 6px;
        z-index: 1000;
        background: var(--ssok-primary, #1B2A4A);
        box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
        padding: 10px 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .floating-cta.is-visible {
        transform: translateY(0);
    }

    .floating-cta__btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 12px 0;
        min-height: 48px; /* v3 iter 1: WCAG tap-target 시스템화 */
        border-radius: 8px;
        font-size: 0.78rem;
        font-weight: 600;
        text-decoration: none;
        transition: opacity 0.2s;
        letter-spacing: 0.02em;
        -webkit-tap-highlight-color: rgba(196,162,101,0.18);
    }

    .floating-cta__btn:active {
        opacity: 0.8;
    }

    .floating-cta__call {
        background: transparent;
        color: #fff;
        border: 1px solid rgba(255,255,255,0.3);
    }

    .floating-cta__book {
        background: var(--ssok-accent, #C4A265);
        color: var(--ssok-primary, #1B2A4A);
    }

    .floating-cta__chat {
        background: transparent;
        color: #fff;
        border: 1px solid rgba(255,255,255,0.3);
    }

    .floating-cta__check {
        background: rgba(255,255,255,0.08);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.3);
    }

    .floating-cta__btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .floating-cta__btn:focus-visible {
        outline: 2px solid var(--ssok-accent);
        outline-offset: 2px;
    }

    /* 플로팅 CTA에 가려지지 않도록 하단 여백 확보 */
    body {
        padding-bottom: 72px;
    }
}

@media (max-width: 380px) {
    .floating-cta { padding: 8px 10px; gap: 4px; }
    .floating-cta__btn { font-size: 0.72rem; padding: 10px 0; }
    .floating-cta__btn svg { width: 14px; height: 14px; }
}

/* ─── Site Footer ─── */
.site-footer {
    background: var(--ssok-primary);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    line-height: 1.7;
}

.site-footer__main {
    max-width: var(--ssok-max-width);
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 48px;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
}

.site-footer__logo img {
    height: 28px;
    /* 로고가 밝은 배경 전용이면 filter: brightness(10) 등 조정 필요 */
}

.site-footer__tagline {
    font-family: var(--ssok-font-serif);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    line-height: 1.6;
}

.site-footer__creds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(196,162,101,0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--ssok-accent);
    letter-spacing: 0.5px;
}

.site-footer__heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ssok-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.site-footer__links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85rem;
}

.site-footer__links a:hover {
    color: var(--ssok-accent);
}

.site-footer__phone {
    margin-bottom: 12px;
}

.site-footer__phone a {
    font-family: var(--ssok-font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.site-footer__addr {
    font-style: normal;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    font-size: 0.82rem;
    line-height: 1.6;
}

.site-footer__hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    margin-bottom: 20px;
    font-size: 0.82rem;
}

.site-footer__hours dt {
    color: rgba(255,255,255,0.5);
}

.site-footer__hours dd {
    margin: 0;
    color: rgba(255,255,255,0.8);
}

.site-footer__buttons {
    display: flex;
    gap: 8px;
}

.site-footer__bottom {
    max-width: var(--ssok-max-width);
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.site-footer__platforms {
    display: flex;
    gap: 16px;
}

.site-footer__platforms a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__platforms a:hover {
    color: var(--ssok-accent);
}

/* Top button repositioning for new footer */
.site-footer .top_btn.page-top-btn {
    position: absolute;
    bottom: 80px;
    right: 24px;
}

.site-footer {
    position: relative;
}

@media (max-width: 768px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 24px 32px;
    }

    .site-footer__links {
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .site-footer__phone a {
        font-size: 1.2rem;
    }

    .site-footer .top_btn.page-top-btn {
        bottom: auto;
        top: 20px;
        right: 20px;
    }
}
