/*
Theme Name: Standby Plumbing Redesign
Theme URI: https://standbyplumbing.com/
Author: iFortte Creative
Description: A clean, professional WordPress theme for Standby Plumbing & Heating Corp. built for emergency plumbing, sewer jetting, heating calls, heating system updates, and renovations.
Version: 1.0.0
Text Domain: standby-plumbing
*/

:root {
    --navy: #082b55;
    --navy-2: #0e3e73;
    --blue: #126bc5;
    --sky: #eaf5ff;
    --ice: #f6fbff;
    --text: #13202d;
    --muted: #5b6b7d;
    --line: #dce7f2;
    --white: #ffffff;
    --orange: #ff8a2a;
    --shadow: 0 24px 70px rgba(8, 43, 85, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(220, 231, 242, 0.85);
}

.top-strip {
    background: var(--navy);
    color: var(--white);
    font-size: 0.9rem;
}

.top-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
}

.top-strip a {
    color: var(--white);
    font-weight: 700;
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 210px;
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--navy);
    font-weight: 700;
}

.primary-nav a:not(.nav-cta) {
    position: relative;
}

.primary-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: var(--blue);
    border-radius: 10px;
    transition: width 0.2s ease;
}

.primary-nav a:hover::after {
    width: 100%;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(18, 107, 197, 0.25);
}

.nav-cta:hover,
.button:hover {
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--white);
    background: var(--navy);
    font-weight: 800;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 43, 85, 0.94) 0%, rgba(8, 43, 85, 0.84) 48%, rgba(8, 43, 85, 0.42) 100%),
        url('assets/images/hero-plumbing.jpg') center / cover no-repeat;
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: auto -80px -160px auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(18, 107, 197, 0.32);
    filter: blur(12px);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 72px;
    align-items: center;
    padding: 110px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 900;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.about-copy h2,
.cta-grid h2,
.contact-copy h2,
.default-page h1 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(3.2rem, 8vw, 6.7rem);
}

.hero-lead {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2.3vw, 1.26rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.button-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 16px 38px rgba(18, 107, 197, 0.26);
}

.button-secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.11);
}

.button-light {
    color: var(--navy);
    background: var(--white);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.trust-row span {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    font-size: 0.88rem;
}

.hero-card {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.hero-card h2 {
    margin: 18px 0 12px;
    font-size: 2rem;
}

.hero-card p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-card a {
    display: block;
    color: var(--white);
    font-size: 1.7rem;
    font-weight: 900;
}

.service-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--navy);
    background: var(--white);
    font-weight: 900;
    font-size: 0.83rem;
}

.quick-contact {
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.quick-contact-grid div {
    padding: 26px 30px;
    border-right: 1px solid var(--line);
}

.quick-contact-grid div:last-child {
    border-right: 0;
}

.quick-contact-grid span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-contact-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--navy);
    font-size: 1.05rem;
}

.section {
    padding: 108px 0;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 42px;
}

.section-heading h2,
.split-copy h2,
.about-copy h2,
.cta-grid h2,
.contact-copy h2 {
    color: var(--navy);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.section-heading p,
.split-copy p,
.about-copy p,
.contact-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    min-height: 302px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 40px rgba(8, 43, 85, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(18, 107, 197, 0.35);
    box-shadow: var(--shadow);
}

.service-card .icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 17px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--blue));
    font-weight: 900;
}

.service-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.35rem;
}

.service-card p {
    margin: 0 0 24px;
    color: var(--muted);
}

.service-card a {
    margin-top: auto;
    color: var(--blue);
    font-weight: 900;
}

.accent-card {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(145deg, var(--navy), var(--navy-2));
}

.accent-card h3,
.accent-card a,
.accent-card p {
    color: var(--white);
}

.accent-card .icon {
    color: var(--navy);
    background: var(--white);
}

.photo-section {
    background: linear-gradient(180deg, var(--ice), var(--white));
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.photo-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 40px rgba(8, 43, 85, 0.08);
}

.photo-card img {
    width: 100%;
    height: 285px;
    object-fit: cover;
}

.photo-card figcaption {
    padding: 18px 20px 20px;
    color: var(--navy);
    font-weight: 900;
    font-size: 1.05rem;
}

.split-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--ice), var(--white));
}

.split-grid,
.about-grid,
.contact-grid,
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: center;
}

.split-image img,
.image-card img {
    width: 100%;
    min-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

.check-grid span {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: var(--navy);
    font-weight: 800;
}

.check-grid span::before {
    content: "✓";
    color: var(--blue);
    font-weight: 900;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
    padding: 22px;
    border-radius: 20px;
    color: var(--white);
    background: var(--navy);
}

.price-box span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

.price-box strong {
    font-size: 2.5rem;
    line-height: 1;
}

.price-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.about-section {
    background: var(--white);
}

.feature-list {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.feature-list div {
    padding: 22px;
    border-left: 5px solid var(--blue);
    border-radius: 18px;
    background: var(--ice);
}

.feature-list strong,
.feature-list span {
    display: block;
}

.feature-list strong {
    color: var(--navy);
    font-size: 1.05rem;
}

.feature-list span {
    margin-top: 4px;
    color: var(--muted);
}

.image-card {
    position: relative;
}

.image-card-note {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 22px;
    border-radius: 20px;
    color: var(--white);
    background: rgba(8, 43, 85, 0.88);
    backdrop-filter: blur(14px);
}

.image-card-note strong,
.image-card-note span {
    display: block;
}

.image-card-note strong {
    font-size: 1.3rem;
}

.cta-band {
    padding: 76px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--blue));
}

.cta-grid {
    color: var(--white);
}

.cta-grid h2 {
    color: var(--white);
}

.cta-grid .eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.cta-grid .button {
    justify-self: end;
}

.contact-section {
    background: var(--ice);
}

.contact-cards {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-cards a,
.contact-cards div {
    display: block;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.contact-cards span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-cards strong {
    display: block;
    margin-top: 4px;
    color: var(--navy);
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 15px;
    color: var(--text);
    background: var(--white);
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(18, 107, 197, 0.16);
    border-color: var(--blue);
}

.form-message {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.form-message.success {
    color: #0f5132;
    background: #d1e7dd;
}

.form-message.error {
    color: #842029;
    background: #f8d7da;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #061f3f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
    padding: 62px 0;
}

.footer-logo {
    width: 190px;
    padding: 10px;
    border-radius: 12px;
    background: var(--white);
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.site-footer p {
    margin: 12px 0 0;
}

.site-footer a {
    color: var(--white);
    font-weight: 800;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.92rem;
}

.content-wrap {
    max-width: 850px;
}

.default-page {
    padding: 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.default-page h1 {
    color: var(--navy);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .mobile-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 10px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 14px 16px;
    }

    .primary-nav a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .hero-grid,
    .split-grid,
    .about-grid,
    .contact-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        gap: 36px;
        padding: 84px 0 120px;
    }

    .hero-card {
        max-width: 560px;
    }

    .quick-contact-grid,
    .services-grid,
    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-contact-grid div:nth-child(2) {
        border-right: 0;
    }

    .quick-contact-grid div:last-child {
        grid-column: span 2;
        border-top: 1px solid var(--line);
    }

    .cta-grid .button {
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .top-strip-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .brand img {
        width: 178px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4.5rem);
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .quick-contact {
        margin-top: -34px;
    }

    .quick-contact-grid,
    .services-grid,
    .photo-grid,
    .check-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-contact-grid div,
    .quick-contact-grid div:nth-child(2),
    .quick-contact-grid div:last-child {
        grid-column: auto;
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .quick-contact-grid div:first-child {
        border-top: 0;
    }

    .section,
    .split-section {
        padding: 78px 0;
    }

    .contact-form {
        padding: 24px;
    }

    .split-image img,
    .image-card img {
        min-height: 330px;
    }

    .price-box {
        display: block;
    }

    .price-box strong {
        display: block;
        margin: 12px 0;
    }
}
