/* =========================================================
   WATER SOFTENER PAGE STYLES
   Color Palette (matches site):
   - Navy Blue:    #0f2748
   - Deep Blue:    #123b67
   - Cyan Blue:    #0788d1 / #009fe3
   - Light Blue:   #e8f6ff
   - Accent Gold:  #e4ac1c
   - Body Text:    #6c7a89
========================================================= */


/* ==================== GENERAL ==================== */

.section-padding {
    padding: 80px 0;
}

.section-badge {
    display: inline-block;
    background: #e4ac1c;
    color: #0f2748;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 14px;
}

.section-title {
    color: #0f2748;
    font-weight: 700;
    font-size: 38px;
}

.section-description {
    max-width: 700px;
    margin: 15px auto 0;
    color: #6c7a89;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   HERO
========================================================= */

.ws-hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url("../images/water-softner/water-softener.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ws-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 72, 0.80);
}

.min-vh-50 {
    min-height: 480px;
}

.ws-badge {
    display: inline-block;
    background: #e4ac1c;
    color: #0f2748;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}

.ws-hero h1 {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.ws-hero p {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   ABOUT / WHAT IS A WATER SOFTENER
========================================================= */

.ws-about-section {
    background: #ffffff;
}

.ws-image-wrapper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.ws-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: 0.4s ease;
}

.ws-image-wrapper:hover img {
    transform: scale(1.04);
}

.ws-about-section p {
    color: #555;
    line-height: 1.8;
}

.ws-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0f2748;
    font-size: 15px;
}

.ws-feature i {
    color: #e4ac1c;
    font-size: 20px;
}


/* =========================================================
   PROBLEMS CAUSED BY HARD WATER
========================================================= */

.ws-problems-section {
    background: #f7fbff;
    position: relative;
    overflow: hidden;
}

.ws-problems-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(0, 157, 226, 0.06);
    pointer-events: none;
}

.ws-problem-card {
    height: 100%;
    padding: 32px 26px;
    background: #ffffff;
    border: 1px solid #e3eff7;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(18, 82, 130, 0.06);
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}

.ws-problem-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 137, 214, 0.18);
    box-shadow: 0 18px 45px rgba(0, 109, 180, 0.12);
}

.ws-problem-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f6ff, #d8efff);
    color: #0078c9;
    font-size: 30px;
    transition: all 0.35s ease;
}

.ws-problem-card:hover .ws-problem-icon {
    background: linear-gradient(135deg, #0078d4, #009fe3);
    color: #ffffff;
    transform: rotate(-5deg) scale(1.08);
}

.ws-problem-card h5 {
    color: #123b67;
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 10px;
}

.ws-problem-card p {
    color: #6c7a89;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   BENEFITS
========================================================= */

.ws-benefits-section {
    background: #ffffff;
}

.ws-benefit-card {
    height: 100%;
    padding: 32px 24px;
    background: #f8fbfe;
    border-radius: 18px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.35s ease;
}

.ws-benefit-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-bottom-color: #e4ac1c;
    box-shadow: 0 18px 45px rgba(0, 109, 180, 0.10);
}

.ws-benefit-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0f2748;
    color: #e4ac1c;
    font-size: 32px;
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.ws-benefit-card:hover i {
    background: #e4ac1c;
    color: #0f2748;
    transform: rotate(6deg) scale(1.05);
}

.ws-benefit-card h5 {
    color: #123b67;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.ws-benefit-card p {
    color: #6c7a89;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   PRODUCT TYPES
========================================================= */

.ws-products-section {
    background: radial-gradient(circle at 5% 20%, rgb(9 68 102 / 40%), #1191be33 28%),
                radial-gradient(circle at 95% 80%, rgba(0, 174, 239, 0.07), transparent 30%),
                #f7fbff;
}

.ws-product-card {
    height: 100%;
    padding: 35px 30px;
    background: #ffffff;
    border: 1px solid #e3eff7;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(18, 82, 130, 0.07);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.ws-product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #006edc, #00aeea);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.ws-product-card:hover::before {
    transform: scaleX(1);
}

.ws-product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 137, 214, 0.18);
    box-shadow: 0 20px 50px rgba(0, 109, 180, 0.14);
}

.ws-product-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #e8f6ff, #d8efff);
    color: #0078c9;
    font-size: 30px;
    margin-bottom: 22px;
    transition: all 0.35s ease;
}

.ws-product-card:hover .ws-product-icon {
    background: linear-gradient(135deg, #0078d4, #009fe3);
    color: #ffffff;
    transform: rotate(-5deg) scale(1.08);
}

.ws-product-card h4 {
    color: #123b67;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 12px;
}

.ws-product-card p {
    color: #6c7a89;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 18px;
}


/* Product list */

.ws-product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}

.ws-product-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f2748;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
}

.ws-product-list li i {
    color: #e4ac1c;
    font-size: 16px;
}


/* Product CTA button */

.btn-ws {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0078d4, #009fe3);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ws:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 126, 207, 0.25);
}

.btn-ws i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.btn-ws:hover i {
    transform: translateX(4px);
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.ws-how-section {
    background: #ffffff;
}

.ws-step-card {
    height: 100%;
    padding: 35px 24px;
    background: #f8fbfe;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid #e8f2fa;
    transition: all 0.35s ease;
}

.ws-step-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 109, 180, 0.10);
    border-color: rgba(0, 137, 214, 0.18);
}

.ws-step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 123, 255, 0.07);
}

.ws-step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0f2748;
    color: #e4ac1c;
    font-size: 32px;
    transition: all 0.35s ease;
}

.ws-step-card:hover .ws-step-icon {
    background: #e4ac1c;
    color: #0f2748;
    transform: rotate(6deg) scale(1.05);
}

.ws-step-card h5 {
    color: #123b67;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.ws-step-card p {
    color: #6c7a89;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   CTA
========================================================= */

.ws-cta {
    position: relative;
    padding: 90px 0;
    background-image: url("../images/index/cta-banner.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ws-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 72, 0.85);
}

.cta-icon {
    font-size: 42px;
    color: #e4ac1c;
}

.ws-cta h2 {
    font-size: 38px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .section-title {
        font-size: 32px;
    }

    .ws-image-wrapper img {
        height: 400px;
    }

    .ws-product-card {
        padding: 30px 26px;
    }

    .ws-cta h2 {
        font-size: 32px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .section-padding {
        padding: 55px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .ws-hero {
        min-height: 420px;
    }

    .min-vh-50 {
        min-height: 420px;
    }

    .ws-hero h1 {
        font-size: 30px;
    }

    .ws-hero p {
        font-size: 16px;
    }

    .ws-hero .btn-lg {
        font-size: 15px;
        padding: 10px 18px;
        margin-bottom: 8px;
    }

    .ws-image-wrapper img {
        height: 320px;
    }

    .ws-problem-card {
        padding: 28px 22px;
    }

    .ws-benefit-card {
        padding: 28px 22px;
    }

    .ws-product-card {
        padding: 28px 24px;
    }

    .ws-step-card {
        padding: 30px 22px;
    }

    .ws-cta {
        padding: 65px 15px;
    }

    .ws-cta h2 {
        font-size: 26px;
    }

    .ws-cta .btn-lg {
        font-size: 15px;
        padding: 10px 20px;
        margin-bottom: 8px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .section-title {
        font-size: 25px;
    }

    .ws-hero h1 {
        font-size: 26px;
    }

    .ws-hero p {
        font-size: 15px;
    }

    .ws-badge {
        font-size: 12px;
        padding: 7px 16px;
    }

    .ws-image-wrapper img {
        height: 260px;
    }

    .ws-feature {
        font-size: 14px;
    }

    .ws-problem-icon,
    .ws-benefit-card i,
    .ws-step-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .ws-product-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .ws-step-number {
        font-size: 32px;
    }
}