/* ===================================================
   [Hjcare Premium Service V4 - Toilet Clog]
   - Ultra High-End Layout & Interactions
=================================================== */

:root {
    --svc-bg-light: #ffffff;
    --svc-bg-off: #fbfbfd;
    --svc-bg-dark: #0a0c10;
    --svc-accent: #0088ff; /* 고급 골드 */
    --svc-danger: #ff3b30; /* 포인트 레드 */
    --svc-text-main: #111111;
    --svc-text-sub: #666666;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.svc-wrap {
    overflow-x: hidden;
    width: 100%;
}

.svc-container {
    max-width: 1210px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .svc-container { padding: 0 24px; }
}

/* 01. Hero Section */
.svc-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--svc-bg-off);
    text-align: center;
    overflow: hidden;
}

.svc-hero-bg {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05), transparent 60%);
    z-index: 0;
}

.svc-badge {
    display: inline-block;
    padding: 8px 22px;
    background: var(--svc-bg-dark);
    color: var(--svc-accent);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 100px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.svc-hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -2px;
    margin: 0;
    position: relative;
    z-index: 2;
    word-break: keep-all;
}

.svc-hero h1 span {
    color: var(--svc-accent);
}

.svc-hero p {
    font-size: 20px;
    color: var(--svc-text-sub);
    margin-top: 30px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    word-break: keep-all;
}

/* Float Image Element */
.hero-visual {
    margin-top: 80px;
    position: relative;
    z-index: 2;
    width: 100%; /* 너비 제한 제거하여 넓게 활용 */
    margin-left: auto;
    margin-right: auto;
    animation: heroImageFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.ba-comparison {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2단 그리드로 변경 */
    gap: 30px;
    padding: 20px 0;
}

.ba-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.ba-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.ba-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    bottom: 25px;
    left: 25px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.9);
    color: #111;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.after .ba-label { 
    background: var(--svc-accent); 
    color: #fff;
    left: auto;
    right: 25px;
}

/* 중앙 구분선 제거 (카드형으로 분리되었으므로) */
.ba-comparison::after { display: none; }

/* Anatomy Section Improvements */
.anatomy-img-wrap {
    position: relative;
    max-width: 600px; /* PC에서 너무 크지 않게 축소 */
    margin: 60px auto 0;
    border-radius: 40px;
    background: #fbfbfd;
    box-shadow: 0 40px 80px rgba(0,0,0,0.05);
}

.premium-anatomy-img {
    width: 100%;
    display: block;
}

.anatomy-point {
    position: absolute;
    display: flex;
    flex-direction: column; /* 세로 배치로 변경하여 가독성 확보 */
    align-items: center;
    gap: 10px;
    z-index: 100; /* 최상단으로 올림 */
}

.point-pulse {
    width: 16px;
    height: 16px;
    background: var(--svc-danger);
    border-radius: 50%;
    position: relative;
}

.point-pulse::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid var(--svc-danger);
    border-radius: 50%;
    animation: pointRipple 2s infinite;
}

@keyframes pointRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.point-label {
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .ba-comparison { grid-template-columns: 1fr; gap: 20px; }
    .ba-item { border-radius: 20px; }
    .ba-label { bottom: 15px; left: 15px; font-size: 11px; padding: 6px 14px; }
    .after .ba-label { right: 15px; }
    
    .anatomy-point .point-label { font-size: 10px; padding: 5px 10px; }
    .anatomy-img-wrap { margin-top: 30px; border-radius: 20px; box-shadow: none; background: transparent; max-width: 100%; }
    .premium-anatomy-img { transform: none; } /* 포인트 위치 어긋남 방지를 위해 scale 제거 */
}

/* 02. Problem Showcase (Anatomy) */
.svc-anatomy {
    padding: 140px 0;
    background: #fff;
    position: relative;
}

.svc-sec-header {
    text-align: center;
    margin-bottom: 80px;
}

.svc-sec-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
    word-break: keep-all;
}

.svc-sec-header h2 span {
    color: var(--svc-danger);
}

.svc-sec-header p {
    font-size: 18px;
    color: var(--svc-text-sub);
    margin: 0;
}

.anatomy-visual {
    position: relative;
    background: var(--svc-bg-off);
    border-radius: 40px;
    padding: 80px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.pipe-svg-wrap {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.pipe-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.5s ease;
}

.anatomy-warning {
    margin-top: -30px;
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: var(--svc-danger);
    color: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 59, 48, 0.2);
}

.anatomy-warning h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 25px 0;
    word-break: keep-all;
}

.warning-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.w-item {
    background: rgba(0,0,0,0.2);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.w-item i {
    font-size: 20px;
}

/* 03. Causes Grid (Magnetic Hover Cards) */
.svc-causes {
    padding: 120px 0;
    background: var(--svc-bg-dark);
    color: #fff;
}

.svc-causes .svc-sec-header h2 {
    color: #fff;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.c-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px 15px; /* 패딩 대폭 축소 */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.c-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--svc-accent);
    transform: translateY(-10px) scale(1.02);
}

.c-card svg, .c-card i {
    width: 32px !important; /* 아이콘 크기 축소 */
    height: 32px !important;
    color: var(--svc-accent);
    margin: 0 auto 12px !important;
    display: block;
    transition: transform 0.4s ease;
}

.c-card:hover i {
    transform: rotateY(180deg);
}

.c-card h4 {
    font-size: 15px; /* 폰트 크기 축소 */
    font-weight: 700;
    margin: 0;
    color: rgba(255,255,255,0.9);
    word-break: keep-all;
}

/* 04. Solution / Price (Apple Card Style) */
.svc-problems {
    padding: 140px 0 180px; /* 하단 여백 살짝 더 추가 */
    background: #fbfbfd;
}

.svc-solution {
    padding: 140px 0;
    background: #fff;
}

.solution-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--svc-bg-off);
    border-radius: 32px;
    padding: 60px 80px;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.sol-title h2 {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.sol-title p {
    font-size: 20px;
    color: var(--svc-text-sub);
    margin: 0;
}

.sol-price {
    text-align: right;
}

.sol-price .badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--svc-danger);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.sol-price strong {
    display: block;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
}

.sol-price strong span {
    font-size: 24px;
    font-weight: 700;
    color: var(--svc-text-sub);
}

.sol-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.f-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.f-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.f-item img, .f-item i {
    font-size: 50px;
    color: var(--svc-accent);
    margin-bottom: 20px;
    display: block;
}

.f-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* 05. CTA / Map */
.svc-cta {
    padding: 100px 0;
    background: var(--svc-accent);
    text-align: center;
    color: #111;
}

.svc-cta h2 {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 20px 0;
}

.svc-cta p {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 40px 0;
}

/* Magnetic Button Wrapper */
.magnetic-btn-wrap {
    display: inline-block;
    padding: 20px; /* 마우스 호버 여유 영역 */
}

.huge-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #111;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    padding: 25px 50px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    will-change: transform;
}

.huge-call-btn i {
    font-size: 32px;
    color: var(--svc-accent);
}

/* GSAP Settings */
.gs-reveal-svc { opacity: 0; }
.gs-clip-path { clip-path: inset(100% 0 0 0); }

/* 브레이크포인트 제어 */
.pc-br { display: block; }
.mo-br { display: none; }

@media (max-width: 768px) {
    .pc-br { display: none; }
    .mo-br { display: block; }
}

.svc-problems .svc-sec-header {
    margin-bottom: 80px;
    text-align: center; /* 중앙 정렬로 복구 */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.svc-problems .svc-sec-header h2 span {
    color: var(--svc-accent); /* 빨강에서 블루로 변경 */
}

.svc-problems .svc-sec-header h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #111;
}

.svc-problems .svc-sec-header p {
    font-size: 18px;
    color: #888;
}

.prob-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.prob-card {
    background: #fff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.02);
    border: 2px solid rgba(0,0,0,0.03); /* 기본 테두리 살짝 추가 */
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* 탄성 있는 효과 */
    position: relative;
    overflow: hidden;
}

.prob-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--svc-accent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.prob-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 50px 100px rgba(0, 136, 255, 0.1);
    border: 2px solid var(--svc-accent); /* 호버 시 테두리 강조 */
}

.prob-card:hover::before {
    transform: scaleX(1);
}

.prob-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.prob-icon {
    width: 56px;
    height: 56px;
    background: #eef7ff; /* 더 연한 블루 배경 */
    color: var(--svc-accent);
    border-radius: 100px; /* 완전한 원형 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 5px rgba(0,136,255,0.05);
}

.prob-icon svg {
    width: 28px;
    height: 28px;
}

.prob-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.prob-card p {
    font-size: 17px;
    color: var(--svc-text-sub);
    line-height: 1.7;
    margin: 10px 0 20px;
    word-break: keep-all;
}

.prob-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    padding: 8px 16px;
    background: rgba(0, 136, 255, 0.05);
    color: var(--svc-accent);
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .svc-hero h1 { font-size: clamp(38px, 6vw, 56px); }
    .anatomy-visual { padding: 40px; }
    .solution-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px 30px; }
    .sol-price { text-align: center; }
    .prob-grid { grid-template-columns: 1fr; }
    .svc-problems { padding: 80px 0; }
}

@media (max-width: 768px) {
    .svc-hero { padding: 80px 0 60px; }
    .svc-hero h1 { font-size: clamp(28px, 7vw, 36px); }
    .svc-hero p { font-size: 18px; padding: 0 20px; }
    
    .svc-sec-header { margin-bottom: 40px; }
    .svc-sec-header h2 { font-size: 22px; line-height: 1.3; }
    .svc-sec-header p { font-size: 15px; padding: 0 10px; line-height: 1.5; word-break: keep-all; }

    .svc-anatomy { padding: 60px 0; }
    .anatomy-visual { padding: 20px; border-radius: 24px; }
    .anatomy-warning { padding: 30px 20px; margin-top: -20px; border-radius: 20px; }
    .anatomy-warning h3 { font-size: 20px; }
    .w-item { font-size: 15px; padding: 10px 16px; }

    .causes-grid { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 8px !important; 
        margin-top: 30px; 
    }
    .c-card { padding: 15px 5px; border-radius: 12px; }
    .c-card svg, .c-card i { width: 24px !important; height: 24px !important; margin-bottom: 8px !important; }
    .c-card h4 { font-size: 11px; letter-spacing: -0.5px; }

    .svc-solution { padding: 60px 0; }
    .solution-banner { padding: 40px 24px; gap: 20px; }
    .sol-title h2 { font-size: 24px; line-height: 1.3; }
    .sol-title p { font-size: 16px; }
    .sol-price strong { font-size: 42px; }
    .sol-features { grid-template-columns: 1fr; gap: 20px; }
    .f-item { padding: 30px; border-radius: 24px; }

    .prob-card { padding: 35px 25px; border-radius: 24px; }
    .prob-card h3 { font-size: 18px; word-break: keep-all; }
    .prob-card p { font-size: 15px; }
    .tag { font-size: 13px; padding: 6px 14px; }

    .svc-cta { padding: 80px 0; }
    .svc-cta h2 { font-size: 30px; word-break: keep-all; line-height: 1.3; }
    .svc-cta p { font-size: 18px; padding: 0 20px; }
    
    .huge-call-btn { 
        font-size: 16px; 
        padding: 18px 24px; 
        width: calc(100% - 40px);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        border-radius: 18px;
    }
    .huge-call-btn strong { font-size: 24px; letter-spacing: 0; }
    .huge-call-btn i { font-size: 24px; margin-bottom: 2px; }
}
