/* ========================================
   서브페이지 — 밝은 배경 + 공통 네비
   ======================================== */

.sub-page {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f5f5f5;
    color: #0a0a0a;
}

.sub-page .main-content {
    padding-top: 0;
    min-height: 100vh;
}

/* 고정 네비 아래 여백 */
.sub-page .page-hero {
    margin-top: 72px;
    padding: clamp(48px, 8vh, 72px) 0 clamp(40px, 6vh, 56px);
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.sub-page .page-hero .hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.sub-page .hero-badge {
    background: #f5f5f5;
    border-color: #e5e5e5;
    color: #525252;
}

.sub-page .hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0a0a0a;
    background: none;
    -webkit-text-fill-color: unset;
}

.sub-page .services-hero .hero-title {
    background: none;
    -webkit-text-fill-color: unset;
    color: #0a0a0a;
}

.sub-page .hero-description {
    color: #525252;
    font-size: 15px;
}

/* 본문 섹션 */
.sub-page .section {
    background: #fff;
}

.sub-page .section:nth-of-type(even) {
    background: #fafafa;
}

.sub-page .section-title {
    color: #0a0a0a;
}

.sub-page .cta,
.sub-page section.cta {
    background: #0c0c0c !important;
    color: #fff !important;
}

.sub-page .cta .cta-title,
.sub-page .cta .cta-description,
.sub-page section.cta .cta-title,
.sub-page section.cta .cta-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 네비 활성·스크롤 */
.xf-nav__menu .xf-nav__link.is-active {
    opacity: 1;
    font-weight: 600;
}

.sub-page .xf-nav.is-light.is-scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* 플로팅 상담 — 밝은 페이지 톤 */
.sub-page .floating-consultation .consultation-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sub-page .scroll-top {
    background: #0a0a0a;
    color: #fff;
    border: none;
}

/* 소개 페이지: 첫 화면에서 바로 보이도록 (관찰 실패 대비) */
.page-about .animate-on-scroll:not(.animate-fade-in) {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .sub-page .page-hero {
        margin-top: 64px;
    }
}

/* ========================================
   서비스 페이지
   ======================================== */
.sub-page .services-detail {
    background: #f5f5f5;
}

.sub-page .service-section {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: clamp(48px, 8vh, 72px) 0;
}

.sub-page .service-section--featured {
    position: relative;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin: 32px 0;
    padding: clamp(40px, 6vh, 56px) clamp(24px, 4vw, 40px);
}

.sub-page .featured-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    left: auto;
    transform: none;
    background: #0a0a0a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.sub-page .service-badge {
    background: #eee;
    color: #333;
}

.sub-page .step-number {
    background: #0a0a0a;
    color: #fff;
}

.sub-page .example-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sub-page .example-item:hover {
    border-color: #ccc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sub-page .example-icon {
    background: #0a0a0a;
    color: #fff;
}

.sub-page .example-content h4 {
    color: #0a0a0a;
}

.sub-page .portfolio-link-text {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.sub-page .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sub-page .example-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sub-page .package-inquiry-lead {
    font-size: 14px;
    color: #525252;
    margin: -8px 0 20px;
    line-height: 1.6;
}

.sub-page .package-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.sub-page .package-item {
    background: #fff;
    border: none;
    border-right: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 24px 20px;
}

.sub-page .package-item:last-child {
    border-right: none;
}

.sub-page .package-item:hover {
    transform: none;
    background: #fafafa;
    box-shadow: none;
}

.sub-page .package-item--highlight {
    background: #fafafa;
    box-shadow: inset 0 0 0 2px #0a0a0a;
}

.sub-page .package-item.featured {
    transform: none;
}

.sub-page .package-price {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.sub-page .package-inquiry-cta {
    text-align: center;
    margin-top: 24px;
}

.sub-page .package-inquiry-cta a {
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: none;
    border-bottom: 1px solid #0a0a0a;
    padding-bottom: 2px;
}

.sub-page .package-inquiry-cta a:hover {
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .sub-page .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sub-page .package-item:nth-child(2) {
        border-right: none;
    }
    .sub-page .package-item:nth-child(1),
    .sub-page .package-item:nth-child(2) {
        border-bottom: 1px solid #e8e8e8;
    }
}

@media (max-width: 768px) {
    .sub-page .process-steps,
    .sub-page .example-grid {
        grid-template-columns: 1fr;
    }
    .sub-page .package-grid {
        grid-template-columns: 1fr;
    }
    .sub-page .package-item {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    .sub-page .package-item:last-child {
        border-bottom: none;
    }
    .sub-page .featured-badge {
        position: static;
        display: inline-block;
        margin-bottom: 16px;
    }
}
