/* 종합공사 페이지 전용 스타일 */

/* 히어로 제목 기본 스타일 */
.hero-title .title-line1,
.hero-title .title-line2 {
    display: inline;
}

.hero-title .title-line1::after {
    content: ' ';
}

/* 종합공사 페이지의 서비스 이미지 높이 증가 */
.services .service-image {
    height: 300px; /* 기본 220px에서 300px로 증가 */
}

/* 이미지 갤러리 스타일 */
.service-image-gallery {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--primary);
    border-color: var(--white);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

/* 갤러리 설명문 스타일 */
.gallery-captions {
    position: absolute;
    top: 15px;
    left: 169px; /* 15px + 154px = 169px로 이동 */
    right: 15px;
    z-index: 10;
    height: 40px; /* 고정 높이로 위치 안정화 */
}

.caption {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(8, 145, 178, 0.9));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
    white-space: nowrap;
    min-width: 140px; /* 최소 너비로 일관된 크기 */
    text-align: center;
    line-height: 1.2;
}

.caption.active {
    opacity: 1;
}

/* 해빙 가격 안내 스타일 */
.price-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.price-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.price-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.price-content p:last-child {
    margin-bottom: 0;
}

.price-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 독립적인 가격 안내 섹션 스타일 */
.price-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
}

.price-info-standalone {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.price-info-standalone .price-content {
    padding: 0;
}

.price-item {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.price-item:hover {
    background-color: #f8fafc;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-item h4::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.price-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* 종합공사는 2개 카드이므로 더 넓은 그리드 사용 */
.construction-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 800px;
    margin: 0 auto;
    gap: 3rem;
}

/* 카드 간격 조정 */
.services .service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 2rem 2rem 2rem; /* 하단 패딩만 조정 */
    line-height: 1.2;
    margin-bottom: 0; /* 설명 문구 없으므로 마진 제거 */
}

/* 445px 이하에서 히어로 제목 두 줄 분리 */
@media (max-width: 445px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .title-line1,
    .title-line2 {
        display: block;
    }
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .construction-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 2.5rem;
    }
    
    .services .service-image,
    .service-image-gallery {
        height: 280px;
    }
    
    .services .service-card h3 {
        font-size: 1.375rem;
        padding: 1.75rem 1.5rem 1.75rem;
    }
    
    /* 가격 안내 섹션 태블릿 반응형 */
    .price-section {
        padding: 3.5rem 0;
    }
    
    .price-item {
        padding: 1.75rem;
    }
    
    .price-item h4 {
        font-size: 1.15rem;
    }
    
    .price-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .services .service-image,
    .service-image-gallery {
        height: 250px;
    }
    
    .services .service-card h3 {
        font-size: 1.25rem;
        padding: 1.5rem 1.25rem 1.5rem;
    }
    
    .gallery-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-captions {
        top: 10px;
        left: 90px; /* 모바일에서는 90px로 적절히 조정 */
        right: 10px;
        height: 35px;
    }
    
    .caption {
        font-size: 0.8rem;
        padding: 6px 14px;
        min-width: 120px;
        border-radius: 6px;
    }
    
    .price-info {
        padding: 1.25rem;
        margin-top: 1.25rem;
    }
    
    .price-title {
        font-size: 1rem;
    }
    
    .price-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* 독립적인 가격 안내 섹션 반응형 */
    .price-section {
        padding: 3rem 0;
    }
    
    .price-item {
        padding: 1.5rem;
    }
    
    .price-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .price-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}
