/* =========================================================
   Pool Care Basics — dedicated homepage section
   This file is loaded directly by index.php so this section
   remains independent from the rest of the homepage CSS.
   ========================================================= */

.pool-care-basics-v2 {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(50,86,221,.07), transparent 25%),
        linear-gradient(180deg, #f6f8fd 0%, #ffffff 100%);
}

.pool-care-basics-v2::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(50,86,221,.08);
    right: -180px;
    top: 80px;
    pointer-events: none;
}

.pcb-intro {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 40px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto 48px;
}

.pcb-intro-copy {
    text-align: left;
}

.pcb-intro-copy .eyebrow {
    margin-bottom: 9px;
}

.pcb-intro-copy h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.pcb-intro-copy p {
    max-width: 790px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.pcb-intro-badge {
    position: relative;
    width: 150px;
    height: 150px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 36px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 22px 48px rgba(50,86,221,.22);
}

.pcb-badge-ring {
    position: absolute;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    top: -34px;
    right: -32px;
}

.pcb-badge-wave {
    position: absolute;
    width: 160px;
    height: 60px;
    left: -24px;
    bottom: -25px;
    border-top: 2px solid rgba(255,255,255,.22);
    border-radius: 50%;
    transform: rotate(-7deg);
}

.pcb-intro-badge strong {
    position: relative;
    z-index: 1;
    font-size: 35px;
    line-height: 1;
    letter-spacing: -1px;
}

.pcb-intro-badge small {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    text-align: center;
    color: rgba(255,255,255,.82);
    font-size: 10px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.pcb-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pcb-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e5ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 38px rgba(35,55,100,.075);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pcb-card:hover {
    transform: translateY(-5px);
    border-color: rgba(50,86,221,.28);
    box-shadow: 0 25px 55px rgba(50,86,221,.15);
}

.pcb-card-visual {
    position: relative;
    height: 142px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, #3256dd 0%, #2747c4 100%);
}

.pcb-card-visual::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -75px;
    top: -115px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.17);
}

.pcb-card-visual::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 80px;
    left: 25%;
    bottom: -55px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    transform: rotate(-6deg);
}

.pcb-equipment {
    background: linear-gradient(135deg, #3559de 0%, #223fae 100%);
}

.pcb-volume {
    background: linear-gradient(135deg, #3155d9 0%, #3f63e6 100%);
}

.pcb-costs {
    background: linear-gradient(135deg, #294bc7 0%, #3256dd 100%);
}

.pcb-card-number {
    position: absolute;
    z-index: 3;
    right: 18px;
    top: 16px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .7px;
}

.pcb-icon-box {
    position: relative;
    z-index: 3;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 10px 25px rgba(13,31,91,.15);
}

.pcb-icon-box svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pcb-visual-label {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 25px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.pcb-visual-orb {
    position: absolute;
    z-index: 1;
    width: 105px;
    height: 105px;
    left: 32%;
    top: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

.pcb-card-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 27px 28px 28px;
}

.pcb-card-content h3 {
    margin: 0 0 11px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.28;
    letter-spacing: -.55px;
}

.pcb-card-content p {
    flex: 1;
    margin: 0 0 23px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.pcb-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 11px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.pcb-link span {
    transition: transform .2s ease;
}

.pcb-link:hover {
    background: var(--primary);
    color: #fff;
}

.pcb-link:hover span {
    transform: translateX(4px);
}

.pcb-note {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 28px auto 0;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 19px;
    border: 1px solid #dce3f2;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
}

.pcb-note-mark {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.pcb-note p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.pcb-note strong {
    color: var(--text);
}

@media (max-width: 900px) {
    .pcb-intro {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 34px;
    }

    .pcb-intro-badge {
        width: 120px;
        height: 120px;
        margin-left: 0;
    }

    .pcb-intro-badge strong {
        font-size: 29px;
    }
}

@media (max-width: 720px) {
    .pcb-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pcb-intro-copy h2 {
        font-size: 31px;
    }

    .pcb-card-visual {
        height: 118px;
        padding: 22px;
    }

    .pcb-icon-box {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .pcb-icon-box svg {
        width: 26px;
        height: 26px;
    }

    .pcb-visual-label {
        right: 22px;
        bottom: 20px;
    }

    .pcb-card-content {
        padding: 23px 22px 24px;
    }

    .pcb-card-content h3 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .pcb-intro-copy h2 {
        font-size: 28px;
    }

    .pcb-intro-copy p {
        font-size: 14px;
    }

    .pcb-intro-badge {
        display: none;
    }

    .pcb-card {
        border-radius: 20px;
    }

    .pcb-card-content p {
        font-size: 13.5px;
    }

    .pcb-note {
        padding: 15px;
    }
}
