/* ==========================================================
   PRO PLUMBERS CORP — BROCKTON WATER HEATER REPLACEMENT
   Page-specific styles. Global site identity remains controlled
   by the existing styles.css / header.css / utils.css.
========================================================== */

:root {
    --ppc-navy: #0E2E50;
    --ppc-blue: #0A7AFF;
    --ppc-blue-dark: #065fd4;
    --ppc-text: #233142;
    --ppc-muted: #5f6b78;
    --ppc-border: #e4eaf0;
    --ppc-soft: #f6f9fc;
    --ppc-white: #ffffff;
    --ppc-shadow: 0 12px 35px rgba(14, 46, 80, .10);
    --ppc-radius: 16px;
}

.waterheater-hero,
.waterheater-section,
.waterheater-cost,
.waterheater-form-section,
.waterheater-locality-section,
.waterheater-faq-section,
.waterheater-final-cta,
.waterheater-breadcrumb-wrap,
.waterheater-footer {
    font-family: "Inter", sans-serif;
}

.waterheater-hero h1,
.waterheater-section h2,
.waterheater-section h3,
.waterheater-cost h2,
.waterheater-form-copy h2,
.waterheater-locality-copy h2,
.waterheater-faq-section h2,
.waterheater-faq-list summary,
.waterheater-final-cta h2 {
    font-family: "Poppins", sans-serif;
}

.waterheater-section,
.waterheater-locality-section,
.waterheater-faq-section {
    padding: 88px 0;
}

.waterheater-section .container,
.waterheater-locality-section .container,
.waterheater-faq-section .container {
    max-width: 1180px;
}

/* ---------- Breadcrumb ---------- */

.waterheater-breadcrumb-wrap {
    background: #f8fafc;
    border-bottom: 1px solid var(--ppc-border);
}

.waterheater-breadcrumb {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #687684;
    font-size: 13px;
}

.waterheater-breadcrumb a {
    color: var(--ppc-navy);
    font-weight: 600;
}

.waterheater-breadcrumb a:hover {
    color: var(--ppc-blue);
}

/* ---------- Hero ---------- */

.waterheater-hero {
    position: relative;
    background:
        linear-gradient(rgba(14, 46, 80, .79), rgba(14, 46, 80, .79)),
        url("/assets/photos/gallery/mechanical/heat/6.png") center center / cover no-repeat;
    color: var(--ppc-white);
    padding: 92px 0 82px;
    overflow: hidden;
}

.waterheater-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--ppc-blue);
}

.waterheater-hero-content {
    max-width: 820px;
}

.waterheater-hero .hero-tag {
    margin-bottom: 22px;
    background: var(--ppc-blue);
}

.waterheater-hero h1 {
    margin: 0 0 22px;
    font-size: 56px;
    line-height: 1.08;
    letter-spacing: -.8px;
}

.waterheater-hero p {
    max-width: 790px;
    margin: 0 0 34px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,.94);
}

.waterheater-hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.waterheater-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
    transition: .25s ease;
    text-align: center;
}

.waterheater-btn-primary {
    color: #fff;
    background: var(--ppc-blue);
    border: 2px solid var(--ppc-blue);
}

.waterheater-btn-primary:hover {
    background: var(--ppc-blue-dark);
    border-color: var(--ppc-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.waterheater-hero-phone {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 13px 24px;
    border: 2px solid #fff;
    font-weight: 700;
    transition: .25s ease;
}

.waterheater-hero-phone:hover {
    background: #fff;
    color: var(--ppc-navy);
}

.waterheater-trust-strip {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px 16px;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 600;
}

.waterheater-trust-strip i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7ec1ff;
}

/* ---------- Shared heading ---------- */

.waterheater-heading {
    max-width: 880px;
    margin: 0 auto 38px;
    text-align: center;
}

.waterheater-heading .section-eyebrow,
.waterheater-cost .section-eyebrow,
.waterheater-form-copy .section-eyebrow,
.waterheater-locality-copy .section-eyebrow,
.waterheater-final-cta .section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--ppc-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.waterheater-heading h2,
.waterheater-cost h2,
.waterheater-form-copy h2,
.waterheater-locality-copy h2,
.waterheater-final-cta h2 {
    color: var(--ppc-navy);
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 16px;
}

.waterheater-heading p,
.waterheater-locality-copy p,
.waterheater-form-copy p {
    color: var(--ppc-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* ---------- Repair vs. replace cards ---------- */

.waterheater-repair-section {
    background: #fff;
}

.waterheater-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.waterheater-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-height: 205px;
    padding: 27px;
    border: 1px solid var(--ppc-border);
    border-radius: var(--ppc-radius);
    background: #fff;
    box-shadow: 0 4px 18px rgba(14, 46, 80, .05);
    transition: .25s ease;
}

.waterheater-card:hover {
    transform: translateY(-4px);
    border-color: rgba(10,122,255,.35);
    box-shadow: var(--ppc-shadow);
}

.waterheater-card-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: #edf5ff;
    border-radius: 12px;
}

.waterheater-card-icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.waterheater-card h3 {
    color: var(--ppc-navy);
    font-size: 19px;
    line-height: 1.3;
    margin: 2px 0 10px;
}

.waterheater-card p {
    color: var(--ppc-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.waterheater-inline-link {
    display: inline-flex;
    margin-top: 15px;
    color: var(--ppc-blue);
    font-size: 13px;
    font-weight: 700;
}

.waterheater-inline-link:hover {
    color: var(--ppc-blue-dark);
}

/* ---------- Cost band ---------- */

.waterheater-cost {
    padding: 56px 0;
    background: var(--ppc-navy);
}

.waterheater-cost-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
}

.waterheater-cost .section-eyebrow {
    color: #79baff;
}

.waterheater-cost h2 {
    color: #fff;
    font-size: 34px;
    margin-bottom: 14px;
}

.waterheater-cost p {
    max-width: 880px;
    margin: 0;
    color: rgba(255,255,255,.87);
    line-height: 1.78;
    font-size: 15px;
}

.waterheater-btn-light {
    flex: 0 0 auto;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255,255,255,.78);
}

.waterheater-btn-light:hover {
    background: #fff;
    color: var(--ppc-navy);
}

/* ---------- Tank vs tankless ---------- */

.waterheater-options-section {
    background: #fff;
}

.waterheater-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 22px;
}

.waterheater-option-card {
    padding: 31px;
    border: 1px solid var(--ppc-border);
    border-radius: var(--ppc-radius);
    background: #fff;
}

.waterheater-option-card.featured {
    box-shadow: var(--ppc-shadow);
}

.waterheater-option-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf5ff;
    color: var(--ppc-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.waterheater-option-card h3 {
    color: var(--ppc-navy);
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 13px;
}

.waterheater-option-card p {
    color: var(--ppc-muted);
    font-size: 15px;
    line-height: 1.78;
    margin: 0 0 14px;
}

/* ---------- Process ---------- */

.waterheater-process-section {
    background: var(--ppc-soft);
}

.waterheater-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
}

.waterheater-process-card {
    padding: 27px;
    border-radius: var(--ppc-radius);
    border: 1px solid var(--ppc-border);
    background: #fff;
}

.waterheater-process-number {
    width: 44px;
    height: 44px;
    margin-bottom: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ppc-blue);
    color: #fff;
    font: 700 17px "Poppins", sans-serif;
}

.waterheater-process-card h3 {
    color: var(--ppc-navy);
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.waterheater-process-card p {
    color: var(--ppc-muted);
    font-size: 14px;
    line-height: 1.72;
    margin: 0;
}

/* ---------- Form ---------- */

.waterheater-form-section {
    padding: 88px 0;
    background: #fff;
    scroll-margin-top: 90px;
}

.waterheater-form-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr);
    gap: 65px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.waterheater-form-copy {
    padding-top: 22px;
}

.waterheater-form-copy h2 {
    font-size: 36px;
}

.waterheater-form-copy p a {
    color: var(--ppc-blue);
    font-weight: 700;
}

.waterheater-form-note {
    margin-top: 23px;
    padding: 17px 18px;
    border-left: 3px solid var(--ppc-blue);
    background: #f5f9fe;
    color: #4e5e6f;
    font-size: 14px;
    line-height: 1.7;
}

.waterheater-form {
    padding: 30px;
    border: 1px solid var(--ppc-border);
    border-radius: var(--ppc-radius);
    background: #fff;
    box-shadow: var(--ppc-shadow);
}

.waterheater-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.waterheater-form input,
.waterheater-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #d6dee7;
    border-radius: 10px;
    background: #fff;
    color: var(--ppc-text);
    font: inherit;
    outline: none;
    transition: .2s ease;
    margin-bottom: 14px;
}

.waterheater-form textarea {
    resize: vertical;
    min-height: 132px;
}

.waterheater-form input:focus,
.waterheater-form textarea:focus {
    border-color: var(--ppc-blue);
    box-shadow: 0 0 0 3px rgba(10,122,255,.10);
}

.waterheater-form button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    min-height: 52px;
    padding: 14px 20px;
    background: var(--ppc-blue);
    color: #fff;
    font: 700 15px "Inter", sans-serif;
    cursor: pointer;
    transition: .25s ease;
}

.waterheater-form button:hover {
    background: var(--ppc-blue-dark);
}

/* ---------- Locality ---------- */

.waterheater-locality-section {
    background: var(--ppc-soft);
}

.waterheater-locality-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 65px;
}

.waterheater-locality-copy h2 {
    font-size: 37px;
}

.waterheater-inline-phone {
    display: inline-flex;
    margin-top: 24px;
    color: var(--ppc-blue);
    font-size: 15px;
    font-weight: 700;
}

.waterheater-area-card {
    padding: 30px;
    border-radius: var(--ppc-radius);
    border: 1px solid var(--ppc-border);
    background: #fff;
    box-shadow: 0 5px 20px rgba(14,46,80,.05);
}

.waterheater-area-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ppc-border);
}

.waterheater-area-pin {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf5ff;
    font-size: 22px;
}

.waterheater-area-card-top strong,
.waterheater-area-card-top span {
    display: block;
}

.waterheater-area-card-top strong {
    color: var(--ppc-navy);
    font: 600 18px "Poppins", sans-serif;
}

.waterheater-area-card-top span {
    color: #778494;
    margin-top: 2px;
    font-size: 13px;
}

.waterheater-town-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 22px;
}

.waterheater-town-pills span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f4f7fa;
    color: #425467;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- FAQ ---------- */

.waterheater-faq-section {
    background: #fff;
}

.waterheater-faq-list {
    max-width: 920px;
    margin: 0 auto;
    border-top: 1px solid var(--ppc-border);
}

.waterheater-faq-list details {
    border-bottom: 1px solid var(--ppc-border);
}

.waterheater-faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 52px 22px 0;
    position: relative;
    color: var(--ppc-navy);
    font-size: 18px;
    font-weight: 600;
}

.waterheater-faq-list summary::-webkit-details-marker {
    display: none;
}

.waterheater-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 5px;
    top: 18px;
    color: var(--ppc-blue);
    font-size: 25px;
    font-weight: 400;
}

.waterheater-faq-list details[open] summary::after {
    content: "−";
}

.waterheater-faq-list p {
    margin: -3px 0 22px;
    max-width: 820px;
    color: var(--ppc-muted);
    font-size: 15px;
    line-height: 1.75;
}

.waterheater-final-cta {
    margin-top: 55px;
    padding: 32px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: var(--ppc-radius);
    background: #f2f7fd;
    border: 1px solid #dfeaf4;
}

.waterheater-final-cta h2 {
    font-size: 28px;
    margin: 0;
}

.waterheater-final-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.waterheater-btn-outline {
    color: var(--ppc-blue);
    border: 2px solid var(--ppc-blue);
    background: #fff;
}

.waterheater-btn-outline:hover {
    color: #fff;
    background: var(--ppc-blue);
}

/* ---------- Footer ---------- */

.waterheater-footer {
    padding: 28px 20px 90px;
    margin-bottom: 20px;
    text-align: center;
    background: #fff;
    color: #687684;
    font-size: 13px;
}

.waterheater-footer > a {
    display: inline-block;
    margin-bottom: 17px;
}

.waterheater-footer .img-fluid {
    max-width: 140px;
    height: auto;
    margin: 0 auto;
}

.waterheater-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.waterheater-footer-links a:hover {
    color: var(--ppc-blue);
}

.fixed-footer {
    z-index: 1000;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .waterheater-hero h1 {
        font-size: 49px;
    }

    .waterheater-process-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .waterheater-form-layout {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 850px;
    }

    .waterheater-form-copy {
        padding-top: 0;
    }
}

@media (max-width: 991px) {
    .waterheater-section,
    .waterheater-locality-section,
    .waterheater-faq-section,
    .waterheater-form-section {
        padding: 65px 0;
    }

    .waterheater-hero {
        padding: 68px 0 60px;
    }

    .waterheater-hero h1 {
        font-size: 38px;
        letter-spacing: -.3px;
    }

    .waterheater-hero p {
        font-size: 16px;
        line-height: 1.75;
    }

    .waterheater-trust-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .waterheater-trust-strip i {
        display: none;
    }

    .waterheater-heading h2,
    .waterheater-locality-copy h2,
    .waterheater-form-copy h2 {
        font-size: 31px;
    }

    .waterheater-cost-inner,
    .waterheater-final-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .waterheater-card-grid,
    .waterheater-options-grid,
    .waterheater-locality-grid {
        grid-template-columns: 1fr;
    }

    .waterheater-locality-grid {
        gap: 35px;
    }

    .waterheater-final-actions {
        width: 100%;
    }

    .waterheater-final-actions .waterheater-btn {
        flex: 1 1 220px;
    }
}

@media (max-width: 700px) {
    .waterheater-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .waterheater-form {
        padding: 22px;
    }

    .waterheater-breadcrumb {
        font-size: 12px;
        min-height: 42px;
    }

    .waterheater-process-grid {
        grid-template-columns: 1fr;
    }

    .waterheater-final-cta {
        padding: 26px;
    }
}

@media (max-width: 520px) {
    .waterheater-hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .waterheater-hero-buttons .waterheater-btn,
    .waterheater-hero-buttons .waterheater-hero-phone {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }

    .waterheater-card {
        min-height: 0;
        padding: 23px;
    }

    .waterheater-faq-list summary {
        font-size: 16px;
    }
}
