/* CSS untuk Halaman Layanan - SCTK Custom */

.layanan-hero {
    padding: 140px 0 80px;
    background-color: var(--white);
}

.layanan-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.layanan-hero-content {
    max-width: 650px;
}

.layanan-hero-title {
    font-size: clamp(34px, 4.8vw, 50px) !important;
    line-height: 1.2 !important;
    color: var(--dark) !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    margin-bottom: 24px;
    font-family: var(--font-heading) !important;
}

.layanan-hero-title span {
    color: #0f52ba !important;
}

.layanan-hero-desc {
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    font-family: var(--font-body) !important;
}

.layanan-hero-image-wrapper {
    position: relative;
    border-radius: 24px !important;
    box-shadow: var(--shadow-lg);
}

.layanan-hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 24px !important;
    transition: var(--transition);
}

.layanan-hero-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Water Lifecycle Section */
.lifecycle-section {
    padding: 90px 0;
    background-color: #f8fafc;
}

.lifecycle-header {
    text-align: center;
    margin-bottom: 60px;
}

.lifecycle-header h2 {
    font-size: 32px !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
}

/* Horizontal Timeline Layout */
.lifecycle-timeline-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.lifecycle-line-bg {
    position: absolute;
    top: 60px; /* Aligns with icons center */
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 1;
}

.lifecycle-line-fill {
    position: absolute;
    top: 60px;
    left: 10%;
    width: 80%; /* Active fill spans the timeline */
    height: 4px;
    background-color: #3b82f6;
    z-index: 2;
}

.lifecycle-steps-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 3;
}

.lifecycle-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    text-align: center;
}

.lifecycle-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background-color: var(--white);
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.lifecycle-step-item.active .lifecycle-step-icon {
    border-color: #3b82f6;
    background-color: #3b82f6;
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}

.lifecycle-step-item h3 {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin-bottom: 8px !important;
}

}

.lifecycle-illustration-container {
    max-width: 900px;
    margin: 50px auto 0;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 24px !important;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(15, 82, 186, 0.04) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.lifecycle-illustration-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(15, 82, 186, 0.08) !important;
}

.lifecycle-illustration-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px !important;
}

/* Water Treatment Process Section */
.treatment-section {
    padding: 100px 0;
    background-color: var(--white);
}

.treatment-container-box {
    background-color: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 24px !important;
    padding: 50px 40px;
}

.treatment-header-col {
    margin-bottom: 40px;
    max-width: 700px;
}

.treatment-header-col h2 {
    font-size: 32px !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    margin-bottom: 12px !important;
}

.treatment-header-col p {
    color: #64748b !important;
    font-size: 16px !important;
    font-family: var(--font-body) !important;
}

.treatment-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.treatment-card {
    background-color: var(--white) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01) !important;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.treatment-card:hover {
    transform: translateY(-5px);
}

.treatment-card .card-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.treatment-card:hover .card-icon-wrapper {
    transform: scale(1.1);
}

/* Unique Soft Colors & Hover States for Treatment Cards */
.treatment-card:nth-child(1) .card-icon-wrapper {
    background-color: rgba(15, 82, 186, 0.08) !important;
    color: #0f52ba !important;
}
.treatment-card:nth-child(1):hover {
    border-color: rgba(15, 82, 186, 0.4) !important;
    box-shadow: 0 12px 24px -5px rgba(15, 82, 186, 0.12) !important;
}

.treatment-card:nth-child(2) .card-icon-wrapper {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
}
.treatment-card:nth-child(2):hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 12px 24px -5px rgba(16, 185, 129, 0.12) !important;
}

.treatment-card:nth-child(3) .card-icon-wrapper {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: #d97706 !important;
}
.treatment-card:nth-child(3):hover {
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 12px 24px -5px rgba(245, 158, 11, 0.12) !important;
}

.treatment-card:nth-child(4) .card-icon-wrapper {
    background-color: rgba(139, 92, 246, 0.08) !important;
    color: #7c3aed !important;
}
.treatment-card:nth-child(4):hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 12px 24px -5px rgba(139, 92, 246, 0.12) !important;
}

.treatment-card:nth-child(5) .card-icon-wrapper {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
}
.treatment-card:nth-child(5):hover {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 12px 24px -5px rgba(239, 68, 68, 0.12) !important;
}

.treatment-card h3 {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
}

.treatment-card p {
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

/* Distribution Section */
.distribution-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.dist-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.dist-title-col h2 {
    font-size: 32px !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    margin-bottom: 16px !important;
}

.dist-title-col p {
    color: #64748b !important;
    font-size: 16px !important;
    font-family: var(--font-body) !important;
    margin-bottom: 36px;
    line-height: 1.7 !important;
}

.dist-locations-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dist-location-item {
    background-color: var(--white) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01) !important;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.dist-location-item:hover,
.dist-location-item.active {
    transform: translateY(-2px);
}

.dist-location-item .pin-circle {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Kibin - Orange */
.dist-location-item[data-keyword="kibin"] .pin-circle {
    background-color: rgba(226, 138, 80, 0.08) !important;
    color: #e28a50 !important;
}
.dist-location-item[data-keyword="kibin"]:hover,
.dist-location-item[data-keyword="kibin"].active {
    border-color: #e28a50 !important;
    box-shadow: 0 10px 20px rgba(226, 138, 80, 0.12) !important;
}
.dist-location-item[data-keyword="kibin"]:hover .pin-circle,
.dist-location-item[data-keyword="kibin"].active .pin-circle {
    background-color: #e28a50 !important;
    color: #ffffff !important;
}

/* Cikande - Purple */
.dist-location-item[data-keyword="cikande"] .pin-circle {
    background-color: rgba(155, 89, 182, 0.08) !important;
    color: #9b59b6 !important;
}
.dist-location-item[data-keyword="cikande"]:hover,
.dist-location-item[data-keyword="cikande"].active {
    border-color: #9b59b6 !important;
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.12) !important;
}
.dist-location-item[data-keyword="cikande"]:hover .pin-circle,
.dist-location-item[data-keyword="cikande"].active .pin-circle {
    background-color: #9b59b6 !important;
    color: #ffffff !important;
}

/* Bandung - Green */
.dist-location-item[data-keyword="bandung"] .pin-circle {
    background-color: rgba(39, 174, 96, 0.08) !important;
    color: #27ae60 !important;
}
.dist-location-item[data-keyword="bandung"]:hover,
.dist-location-item[data-keyword="bandung"].active {
    border-color: #27ae60 !important;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.12) !important;
}
.dist-location-item[data-keyword="bandung"]:hover .pin-circle,
.dist-location-item[data-keyword="bandung"].active .pin-circle {
    background-color: #27ae60 !important;
    color: #ffffff !important;
}

/* Pamarayan - Yellow */
.dist-location-item[data-keyword="pamarayan"] .pin-circle {
    background-color: rgba(183, 149, 11, 0.08) !important;
    color: #b7950b !important;
}
.dist-location-item[data-keyword="pamarayan"]:hover,
.dist-location-item[data-keyword="pamarayan"].active {
    border-color: #b7950b !important;
    box-shadow: 0 10px 20px rgba(183, 149, 11, 0.12) !important;
}
.dist-location-item[data-keyword="pamarayan"]:hover .pin-circle,
.dist-location-item[data-keyword="pamarayan"].active .pin-circle {
    background-color: #b7950b !important;
    color: #ffffff !important;
}

/* Kopo - Pink/Red */
.dist-location-item[data-keyword="kopo"] .pin-circle {
    background-color: rgba(231, 76, 60, 0.08) !important;
    color: #e74c3c !important;
}
.dist-location-item[data-keyword="kopo"]:hover,
.dist-location-item[data-keyword="kopo"].active {
    border-color: #e74c3c !important;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.12) !important;
}
.dist-location-item[data-keyword="kopo"]:hover .pin-circle,
.dist-location-item[data-keyword="kopo"].active .pin-circle {
    background-color: #e74c3c !important;
    color: #ffffff !important;
}

/* Jawilan - Blue */
.dist-location-item[data-keyword="jawilan"] .pin-circle {
    background-color: rgba(41, 128, 185, 0.08) !important;
    color: #2980b9 !important;
}
.dist-location-item[data-keyword="jawilan"]:hover,
.dist-location-item[data-keyword="jawilan"].active {
    border-color: #2980b9 !important;
    box-shadow: 0 10px 20px rgba(41, 128, 185, 0.12) !important;
}
.dist-location-item[data-keyword="jawilan"]:hover .pin-circle,
.dist-location-item[data-keyword="jawilan"].active .pin-circle {
    background-color: #2980b9 !important;
    color: #ffffff !important;
}

/* Binuang - Brown */
.dist-location-item[data-keyword="binuang"] .pin-circle {
    background-color: rgba(142, 111, 80, 0.08) !important;
    color: #8e6f50 !important;
}
.dist-location-item[data-keyword="binuang"]:hover,
.dist-location-item[data-keyword="binuang"].active {
    border-color: #8e6f50 !important;
    box-shadow: 0 10px 20px rgba(142, 111, 80, 0.12) !important;
}
.dist-location-item[data-keyword="binuang"]:hover .pin-circle,
.dist-location-item[data-keyword="binuang"].active .pin-circle {
    background-color: #8e6f50 !important;
    color: #ffffff !important;
}

.dist-location-item span {
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
}

/* Map Image wrapper */
.dist-map-wrapper {
    position: relative;
    border-radius: 24px !important;
    box-shadow: var(--shadow-lg);
}

.dist-map-wrapper::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -20px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(15, 82, 186, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(25px);
    pointer-events: none;
}

.dist-map-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px !important;
    object-fit: cover;
}

.dist-map-wrapper iframe {
    width: 100%;
    height: 450px;
    display: block;
    border-radius: 24px !important;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Client Logos Section */
.clients-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #e2e8f0;
}

.clients-title {
    text-align: center;
    font-size: 26px !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    margin-bottom: 12px !important;
    position: relative;
}

.clients-title-decor {
    width: 50px;
    height: 3px;
    background-color: #3b82f6;
    margin: 0 auto 40px;
    border-radius: 2px;
}

.clients-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.client-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
    height: 48px;
    max-width: 150px;
}

.client-logo-box:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* Specific styling for SVG Client Logos */
.client-logo-box svg {
    height: 100%;
    width: auto;
    max-width: 140px;
}

/* Responsivitas Layanan */
@media (max-width: 1024px) {
    .layanan-hero-grid {
        gap: 40px;
    }
    .treatment-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dist-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .layanan-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layanan-hero-image-wrapper {
        order: -1;
    }
    .lifecycle-line-bg,
    .lifecycle-line-fill {
        display: none;
    }
    .lifecycle-steps-row {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .lifecycle-step-item {
        width: 100%;
    }
    .lifecycle-step-icon {
        margin-bottom: 10px;
    }
    .treatment-container-box {
        padding: 30px 20px;
    }
    .treatment-cards-grid {
        grid-template-columns: 1fr;
    }
    .dist-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dist-map-wrapper {
        order: -1;
    }
    .dist-locations-list {
        grid-template-columns: 1fr;
    }
    .clients-row {
        justify-content: center;
        gap: 40px;
    }
}
