/*
 * CraftCore homepage layer — v4.7.0
 * Loaded only on the WordPress front page and deliberately scoped to
 * homepage components so legacy/global rules cannot alter the quote flow.
 */

body.home {
    overflow-x: clip;
}

body.home main,
body.home .site-main {
    overflow: clip;
}

/* Hero */
.cc-home-hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 48%, rgba(0, 204, 255, .15), transparent 24%),
        linear-gradient(90deg, rgba(0, 0, 0, .98), rgba(0, 0, 0, .83) 48%, rgba(0, 0, 0, .30) 82%),
        url('../images/hero.jpg') center / cover no-repeat;
}

.cc-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 65%, rgba(2, 7, 12, .72));
    pointer-events: none;
}

.cc-home-hero__grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(370px, .68fr);
    gap: clamp(42px, 5vw, 72px);
    align-items: center;
    padding-top: 188px;
    padding-bottom: 92px;
}

.cc-home-hero__copy {
    min-width: 0;
}

.cc-home-hero__review {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    font-size: 12px;
}

.cc-home-hero__review span {
    color: #ffb400;
    letter-spacing: 2px;
}

.cc-home-hero__review strong {
    color: #fff;
    font-weight: 800;
}

.cc-home-hero .eyebrow {
    margin-top: 18px;
}

.cc-home-hero h1 {
    max-width: 900px;
    margin: 18px 0 24px;
    color: #fff;
    font-size: clamp(58px, 6.9vw, 94px);
    line-height: .93;
    letter-spacing: -.052em;
    text-wrap: balance;
}

.cc-home-hero h1 em {
    display: block;
    margin-top: 9px;
    color: var(--blue);
    font-style: normal;
}

.cc-home-hero__lead {
    max-width: 760px;
    margin: 0;
    color: #c6d2de;
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.68;
}

.cc-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: flex-start;
    margin-top: 30px;
}

.cc-home-hero__primary-action {
    display: grid;
    gap: 6px;
}

.cc-home-hero__primary-action small {
    padding-left: 15px;
    color: #a9b8c5;
    font-size: 11px;
    font-weight: 800;
}

.cc-home-hero__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.cc-home-hero__trust > div {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 15px;
    background: rgba(255, 255, 255, .055);
}

.cc-home-hero__trust strong,
.cc-home-hero__trust span {
    display: block;
}

.cc-home-hero__trust strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.cc-home-hero__trust span {
    margin-top: 3px;
    color: #9fb0c0;
    font-size: 11px;
    line-height: 1.3;
}

.cc-home-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: grid;
    place-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .66);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.cc-home-hero__scroll i {
    width: 1px;
    height: 24px;
    background: linear-gradient(var(--blue), transparent);
}

/* Three-step hero quote */
.cc-home-quote {
    min-width: 0;
    padding: clamp(23px, 2.5vw, 31px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 28px;
    background: rgba(5, 14, 24, .88);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .46);
    backdrop-filter: blur(20px);
}

.cc-home-quote__intro {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
}

.cc-home-quote__wave {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(0, 204, 255, .13);
    font-size: 24px;
}

.cc-home-quote__intro small {
    display: block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.cc-home-quote__intro h2 {
    margin: 6px 0 7px;
    color: #fff;
    font-size: clamp(25px, 2.3vw, 32px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.cc-home-quote__intro p,
.cc-home-quote__privacy {
    margin: 0;
    color: #afbfcc;
}

.cc-home-quote__intro p {
    font-size: 14px;
    line-height: 1.55;
}

.cc-home-quote__progress {
    height: 5px;
    margin: 20px 0 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.cc-home-quote__progress i {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
    transition: width .25s ease;
}

.cc-home-quote__status {
    margin: 0 0 15px;
    color: #8fa3b4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: right;
    text-transform: uppercase;
}

.cc-home-quote__step[hidden] {
    display: none !important;
}

.cc-home-quote__step.is-active {
    animation: ccQuoteIn .22s ease both;
}

@keyframes ccQuoteIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.cc-home-quote fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cc-home-quote legend,
.cc-home-quote label > span {
    display: block;
    color: #eef8ff;
    font-size: 13px;
    font-weight: 850;
}

.cc-home-quote legend {
    margin-bottom: 10px;
}

.cc-home-quote__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.cc-home-quote__choices button {
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.cc-home-quote__choices button:hover,
.cc-home-quote__choices button:focus-visible {
    border-color: rgba(0, 204, 255, .7);
    background: rgba(0, 204, 255, .09);
}

.cc-home-quote__choices button.is-selected {
    border-color: var(--blue);
    background: rgba(0, 204, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(0, 204, 255, .2);
}

.cc-home-quote__choice-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    color: var(--blue);
    font-size: 15px;
}

.cc-home-quote__message {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--blue);
    border-radius: 0 12px 12px 0;
    background: rgba(0, 204, 255, .08);
    color: #dce8f1;
    font-size: 13px;
    line-height: 1.5;
}

.cc-home-quote label {
    display: block;
    margin-top: 11px;
}

.cc-home-quote label > span {
    margin-bottom: 6px;
}

.cc-home-quote input:not([type="hidden"]) {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    outline: 0;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cc-home-quote input::placeholder {
    color: #7f91a2;
}

.cc-home-quote input:focus {
    border-color: var(--blue);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 3px rgba(0, 204, 255, .11);
}

.cc-home-quote__error {
    min-height: 20px;
    margin: 8px 0 0;
    color: #ff9f9f;
    font-size: 12px;
    font-weight: 750;
}

.cc-home-quote__step > .btn {
    width: 100%;
    margin-top: 9px;
}

.cc-home-quote__step-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    margin-top: 9px;
}

.cc-home-quote__privacy {
    margin-top: 14px;
    font-size: 10.5px;
    line-height: 1.45;
}

/* Homepage service links: keyboard and touch states */
body.home .cc-service-v5__media:focus-visible,
body.home .cc-area-card-v9:focus-visible,
body.home .btn:focus-visible,
body.home .cc-home-hero__scroll:focus-visible {
    outline: 3px solid rgba(0, 204, 255, .55);
    outline-offset: 4px;
}

/* Compact Proline Exterior Cleaning Standard component lives in this homepage-only file. */
.cc-standard-v46 {
    position: relative;
    overflow: hidden;
    padding: clamp(62px, 6.6vw, 88px) 0;
    background: #f4f7fa;
    color: #07111c;
}

.cc-standard-v46::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -220px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 204, 255, .13), rgba(0, 204, 255, 0) 68%);
    pointer-events: none;
}

.cc-standard-v46 .container { position: relative; z-index: 1; }

.cc-standard-v46__header {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr);
    gap: clamp(30px, 5vw, 78px);
    align-items: end;
    margin-bottom: clamp(26px, 2.8vw, 36px);
}

.cc-standard-v46__heading .eyebrow { margin: 0 0 12px; color: #009fc9; }

.cc-standard-v46__heading h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(40px, 4.6vw, 63px);
    line-height: .99;
    letter-spacing: -.052em;
}

.cc-standard-v46__intro p {
    max-width: 540px;
    margin: 0 0 13px;
    color: #526374;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.62;
}

.cc-standard-v46__intro a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #007f9f;
    font-size: 14px;
    font-weight: 900;
}

.cc-standard-v46__layout {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
    gap: clamp(18px, 2.2vw, 30px);
    align-items: stretch;
}

.cc-standard-v46__media {
    position: relative;
    min-height: 390px;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #07111c;
    box-shadow: 0 22px 54px rgba(7, 17, 28, .13);
}

.cc-standard-v46__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.cc-standard-v46__media:hover img { transform: scale(1.025); }

.cc-standard-v46__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 11, 18, 0) 35%, rgba(4, 11, 18, .82) 100%);
}

.cc-standard-v46__media figcaption {
    position: absolute;
    left: clamp(22px, 3vw, 32px);
    right: clamp(22px, 3vw, 32px);
    bottom: clamp(22px, 3vw, 30px);
    color: #fff;
}

.cc-standard-v46__media figcaption span {
    display: block;
    margin-bottom: 7px;
    color: #62ddff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cc-standard-v46__media figcaption strong {
    display: block;
    max-width: 470px;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.cc-standard-v46__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cc-standard-v46__card {
    min-width: 0;
    padding: clamp(19px, 1.8vw, 24px);
    border: 1px solid #dce5ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 11px 30px rgba(7, 17, 28, .052);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.cc-standard-v46__card:hover {
    transform: translateY(-3px);
    border-color: #b9dfea;
    box-shadow: 0 17px 38px rgba(7, 17, 28, .085);
}

.cc-standard-v46__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 13px;
    background: #eafaff;
    color: #007fa3;
}

.cc-standard-v46__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-standard-v46__card h3 {
    margin: 0 0 7px;
    font-size: clamp(20px, 1.55vw, 24px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.cc-standard-v46__card p {
    margin: 0;
    color: #617181;
    font-size: 14px;
    line-height: 1.54;
}

@media (max-width: 1180px) {
    .cc-home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .68fr);
        gap: 38px;
    }

    .cc-home-hero h1 {
        font-size: clamp(53px, 6.2vw, 78px);
    }

    .cc-home-hero__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .cc-home-hero {
        min-height: auto;
    }

    .cc-home-hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 145px;
        padding-bottom: 82px;
    }

    .cc-home-hero__copy {
        max-width: 850px;
    }

    .cc-home-quote {
        width: 100%;
        max-width: 760px;
    }

    .cc-home-hero__scroll {
        display: none;
    }

    .cc-standard-v46__header {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .cc-standard-v46__intro p { max-width: 720px; }
    .cc-standard-v46__layout { grid-template-columns: 1fr; }
    .cc-standard-v46__media { min-height: 360px; }
}

@media (max-width: 720px) {
    .cc-home-hero__grid {
        padding-top: 124px;
        padding-bottom: 74px;
    }

    .cc-home-hero h1 {
        font-size: clamp(42px, 12.5vw, 56px);
        line-height: .97;
        letter-spacing: -.045em;
    }

    .cc-home-hero__lead {
        font-size: 16px;
        line-height: 1.58;
    }

    .cc-home-hero__actions {
        display: grid;
    }

    .cc-home-hero__primary-action,
    .cc-home-hero__actions > .btn,
    .cc-home-hero__primary-action .btn {
        width: 100%;
    }

    .cc-home-hero__trust {
        grid-template-columns: 1fr 1fr;
    }

    .cc-home-quote {
        padding: 21px;
        border-radius: 23px;
    }

    .cc-home-quote__intro {
        grid-template-columns: 42px 1fr;
    }

    .cc-home-quote__wave {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .cc-home-quote__intro h2 {
        font-size: 25px;
    }

    .cc-home-quote__choices {
        grid-template-columns: 1fr;
    }

    .cc-home-quote__choices button {
        min-height: 52px;
    }

    .cc-home-quote__step-actions {
        grid-template-columns: 1fr;
    }

    .cc-home-quote__step-actions .btn {
        width: 100%;
    }

    .cc-standard-v46 {
        padding: 46px 0 50px;
    }

    .cc-standard-v46__header {
        gap: 15px;
        margin-bottom: 24px;
    }

    .cc-standard-v46__heading .eyebrow {
        margin-bottom: 10px;
        font-size: 13px;
        letter-spacing: .18em;
    }

    .cc-standard-v46__heading h2 {
        max-width: 13ch;
        font-size: clamp(32px, 9.2vw, 39px);
        line-height: 1.02;
        letter-spacing: -.04em;
    }

    .cc-standard-v46__intro p {
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 1.55;
    }

    .cc-standard-v46__layout {
        gap: 15px;
    }

    .cc-standard-v46__media {
        min-height: 300px;
        border-radius: 19px;
    }

    .cc-standard-v46__grid {
        grid-template-columns: 1fr;
    }

    .cc-standard-v46__card {
        padding: 20px;
        border-radius: 17px;
    }
}

@media (max-width: 430px) {
    .cc-home-hero__trust {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-home-quote__step.is-active,
    .cc-standard-v46__media img,
    .cc-standard-v46__card,
    .cc-home-quote__progress i {
        animation: none;
        transition: none;
    }
}

/* =========================================================
   CraftCore v1.1.3 — homepage quote-card vertical balance
   The quote assistant is taller than the copy column, so true
   centre alignment places its top edge too close to the navigation.
   A controlled desktop offset centres it within the visible hero
   area without changing the mobile/tablet flow.
   ========================================================= */
@media (min-width: 1021px) {
    .cc-home-quote {
        position: relative;
        top: clamp(22px, 3vh, 32px);
        align-self: center;
    }
}

@media (min-width: 1021px) and (max-height: 850px) {
    .cc-home-quote {
        top: 14px;
        padding: 22px;
    }

    .cc-home-quote__intro h2 {
        font-size: 27px;
    }

    .cc-home-quote__intro p {
        line-height: 1.45;
    }

    .cc-home-quote__progress {
        margin-top: 16px;
    }

    .cc-home-quote__choices button {
        min-height: 50px;
    }

    .cc-home-quote__privacy {
        margin-top: 10px;
        line-height: 1.35;
    }
}

/* =========================================================
   CraftCore v9.3.0 — homepage finalisation
   Final visual, accessibility and responsive consistency pass.
   ========================================================= */
.cc-home-quote__wave svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.home .cc-section-heading h2,
body.home .cc-standard-v46__heading h2,
body.home .cc-process-v7__header h2,
body.home .cc-areas-v9__header h2,
body.home .cc-faq-v1__header h2 {
    text-wrap: balance;
}

body.home .cc-section-heading > p,
body.home .cc-standard-v46__intro p,
body.home .cc-process-v7__header > p,
body.home .cc-areas-v9__header > p,
body.home .cc-faq-v1__header > p {
    text-wrap: pretty;
}

body.home .cc-service-v5__media,
body.home .cc-project-card,
body.home .cc-area-card-v9 {
    -webkit-tap-highlight-color: transparent;
}

body.home .cc-service-v5__media:focus-visible,
body.home .cc-project-card:focus-visible,
body.home .cc-area-card-v9:focus-visible,
body.home .cc-faq-item summary:focus-visible {
    outline: 3px solid rgba(0, 204, 255, .6);
    outline-offset: 4px;
}

body.home .cc-project-card {
    appearance: none;
    font: inherit;
}

body.home .cc-home-quote__privacy,
body.home .cc-quick-quote-v087__note {
    max-width: 62ch;
}

@media (max-width: 720px) {
    body.home .cc-home-hero__review {
        max-width: 100%;
        line-height: 1.35;
    }

    body.home .cc-home-hero .eyebrow {
        margin-top: 15px;
    }

    body.home .cc-home-hero h1 {
        margin-top: 14px;
        margin-bottom: 18px;
    }

    body.home .cc-home-hero__actions {
        margin-top: 24px;
    }

    body.home .cc-home-hero__trust {
        gap: 8px;
        margin-top: 24px;
    }

    body.home .cc-home-hero__trust > div {
        padding: 13px 14px;
    }

    body.home .cc-home-quote__intro p {
        font-size: 13px;
    }

    body.home .cc-home-quote__privacy,
    body.home .cc-quick-quote-v087__note {
        font-size: 11px;
        line-height: 1.5;
    }
}

@media (max-width: 430px) {
    body.home .cc-home-hero__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home .cc-home-hero__trust strong {
        font-size: 13px;
    }

    body.home .cc-home-hero__trust span {
        font-size: 10.5px;
    }
}
