/*
 * CraftCore v6.1.0 — responsive typography and interface system
 * Loaded after all template styles to remove historic heading drift.
 */
:root{
    /* Global CraftCore design tokens. Values mirror the approved service-page system. */
    --cc-container:1180px;
    --cc-page-gutter:40px;
    --cc-section-space:88px;
    --cc-section-space-tablet:74px;
    --cc-section-space-mobile:58px;
    --cc-radius-sm:13px;
    --cc-radius-md:18px;
    --cc-radius-lg:24px;
    --cc-shadow-card:0 24px 65px rgba(5,27,43,.12);
    --cc-focus-ring:0 0 0 4px rgba(16,200,238,.20);
    --cc-button-height:50px;
    --cc-button-radius:10px;
    --cc-type-h1:clamp(3.35rem,5.4vw,5.5rem);
    --cc-type-h2:clamp(2.45rem,4.15vw,4.25rem);
    --cc-type-h3:clamp(1.35rem,1.75vw,1.7rem);
    --cc-type-h4:clamp(1.08rem,1.3vw,1.28rem);
    --cc-type-body:1rem;
    --cc-heading-line:.99;
    --cc-heading-track:-.045em;
}

/* Shared heading rhythm. Component-specific colours and margins remain intact. */
main h1{font-size:var(--cc-type-h1);line-height:.96;letter-spacing:var(--cc-heading-track)}
main h2{font-size:var(--cc-type-h2);line-height:var(--cc-heading-line);letter-spacing:var(--cc-heading-track)}
main h3{font-size:var(--cc-type-h3);line-height:1.13;letter-spacing:-.025em}
main h4{font-size:var(--cc-type-h4);line-height:1.2;letter-spacing:-.018em}

/* Known section-title selectors previously carrying conflicting local sizes. */
.cc-section-heading h2,
.cc-services-v5__heading h2,
.cc-recent-work__heading h2,
.cc-reviews-v6__header h2,
.cc-process-v7__header h2,
.cc-areas-v8__header h2,
.cc-areas-v9__header h2,
.cc-faq-v1__header h2,
.cc-final-cta-v086__copy h2,
.cc-final-cta-v087__copy h2,
.cc-ah-heading h2,
.cc-ah-quote__content h2,
.cc-ah-faq__intro h2,
.cc-loc-section-heading h2,
.cc-loc-intro__content h2,
.cc-loc-final-quote__content h2{
    font-size:var(--cc-type-h2) !important;
    line-height:var(--cc-heading-line) !important;
    letter-spacing:var(--cc-heading-track) !important;
}

/* Card titles must remain subordinate to section headings. */
.cc-service-card__content h3,
.cc-service-v5__copy h3,
.cc-process-step h3,
.cc-ah-standard__grid h3,
.cc-loc-standard h3,
.cc-loc-service-card h3{
    font-size:var(--cc-type-h3) !important;
    line-height:1.13 !important;
    letter-spacing:-.025em !important;
}

/* Areas direct-search autocomplete. */
.cc-ah-search{position:relative}
.cc-ah-search__suggestions{
    position:absolute;
    z-index:20;
    top:calc(100% - 20px);
    left:0;
    right:0;
    overflow:hidden;
    border:1px solid rgba(126,157,176,.34);
    border-radius:15px;
    background:#0a1722;
    box-shadow:0 22px 50px rgba(0,0,0,.38);
}
.cc-ah-search__suggestions[hidden]{display:none}
.cc-ah-search__suggestions button{
    width:100%;
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:11px 15px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:transparent;
    color:#fff;
    text-align:left;
    cursor:pointer;
}
.cc-ah-search__suggestions button:last-child{border-bottom:0}
.cc-ah-search__suggestions button:hover,
.cc-ah-search__suggestions button.is-active{background:rgba(0,204,255,.11)}
.cc-ah-search__suggestions span{display:grid;gap:1px}
.cc-ah-search__suggestions strong{font-size:.94rem}
.cc-ah-search__suggestions small{color:#8499a8;font-size:.75rem}
.cc-ah-search__suggestions i{color:#00ccff;font-style:normal;font-weight:900}

@media(max-width:1024px){
    :root{
        --cc-type-h1:clamp(2.85rem,7vw,4.4rem);
        --cc-type-h2:clamp(2.15rem,5.2vw,3.45rem);
        --cc-type-h3:clamp(1.27rem,2.7vw,1.55rem);
    }
}

@media(max-width:720px){
    :root{
        --cc-type-h1:clamp(2.45rem,11vw,3.35rem);
        --cc-type-h2:clamp(2rem,8.5vw,2.65rem);
        --cc-type-h3:clamp(1.2rem,5.4vw,1.42rem);
        --cc-heading-line:1.01;
        --cc-heading-track:-.038em;
    }
    main h1{line-height:.98}
    main h2{line-height:1.01}
    main p{font-size:min(1rem,4.4vw)}
    .cc-ah-search__suggestions{top:calc(100% - 16px)}
}

@media(max-width:390px){
    :root{
        --cc-type-h1:clamp(2.15rem,10.8vw,2.7rem);
        --cc-type-h2:clamp(1.82rem,8.2vw,2.25rem);
        --cc-type-h3:clamp(1.14rem,5.2vw,1.32rem);
    }
}

/* CraftCore v9.0.1 — signature motif hotfix
   Hero motifs are intentionally disabled: existing hero layouts and imagery remain untouched.
   The motif is reserved for final conversion sections and the footer only. */
.cc-signature-cta,
.cc-signature-footer{
    position:relative;
    isolation:isolate;
    overflow:hidden;
}
.cc-signature-cta::after,
.cc-signature-footer::after{
    content:"";
    position:absolute;
    z-index:0;
    pointer-events:none;
    background-repeat:no-repeat;
    background-size:contain;
}
.cc-signature-cta::after{
    left:-4%;
    bottom:-7%;
    width:min(65vw,880px);
    height:112%;
    background-image:url('../images/brand/signature-cta.svg');
    background-position:bottom left;
    opacity:.72;
}
.cc-signature-footer::after{
    right:-2%;
    bottom:-8%;
    width:min(48vw,680px);
    height:82%;
    background-image:url('../images/brand/signature-footer.svg');
    background-position:bottom right;
    opacity:.58;
}
.cc-signature-cta > *,
.cc-signature-footer > *{
    position:relative;
    z-index:2;
}
.cc-signature-cta .dc-final__box,
.cc-signature-cta .cc-final-cta-v087__inner{
    position:relative;
    z-index:2;
}
.cc-signature-footer::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(90deg,#02080e 0%,rgba(2,8,14,.98) 55%,rgba(2,8,14,.80) 100%);
}
@media(max-width:980px){
    .cc-signature-cta::after{left:-18%;width:88vw;opacity:.54}
    .cc-signature-footer::after{right:-18%;width:72vw;opacity:.42}
}
@media(max-width:720px){
    .cc-signature-cta::after{left:-38%;bottom:-2%;width:118vw;height:68%;opacity:.38}
    .cc-signature-footer::after{right:-34%;width:100vw;height:54%;opacity:.28}
}
@media(prefers-reduced-motion:reduce){
    .cc-signature-cta::after,
    .cc-signature-footer::after{transform:none!important}
}

/* CraftCore v9.1.0 — final flagship polish
   Shared restraint: consistent spacing, controls, focus states and elevation
   without changing established hero grid architecture. */
:root{
    --cc-space-1:8px;
    --cc-space-2:12px;
    --cc-space-3:16px;
    --cc-space-4:24px;
    --cc-space-5:32px;
    --cc-space-6:48px;
    --cc-space-7:64px;
    --cc-space-8:88px;
    --cc-shadow-low:0 10px 28px rgba(5,27,43,.07);
    --cc-shadow-mid:0 20px 52px rgba(5,27,43,.11);
    --cc-shadow-high:0 28px 78px rgba(0,0,0,.24);
    --cc-control-height:49px;
    --cc-transition:180ms ease;
}

/* Consistent interactive controls across old and new component families. */
.dc-btn,
.btn{
    min-height:var(--cc-button-height,50px);
    border-radius:var(--cc-button-radius,10px);
    transition:transform var(--cc-transition),background-color var(--cc-transition),border-color var(--cc-transition),box-shadow var(--cc-transition),color var(--cc-transition);
}
.dc-btn:hover,
.btn:hover{transform:translateY(-2px)}
.dc-btn:active,
.btn:active{transform:translateY(0)}

.craftcore-enquiry-form input,
.craftcore-enquiry-form select,
.craftcore-enquiry-form textarea{
    min-height:var(--cc-control-height);
    border-radius:11px;
    transition:border-color var(--cc-transition),box-shadow var(--cc-transition),background-color var(--cc-transition);
}
.craftcore-enquiry-form textarea{min-height:120px;padding-block:12px;resize:vertical}
.craftcore-enquiry-form input:focus,
.craftcore-enquiry-form select:focus,
.craftcore-enquiry-form textarea:focus{
    outline:0;
    border-color:#00bfe9;
    box-shadow:var(--cc-focus-ring);
}
.craftcore-enquiry-form input:invalid:not(:placeholder-shown),
.craftcore-enquiry-form select:invalid:not(:focus){border-color:#c6d5dd}

/* Shared elevation hierarchy: content cards remain quiet; conversion panels lead. */
.dc-quote{box-shadow:var(--cc-shadow-high)}
.dc-final__form{box-shadow:var(--cc-shadow-high)}
.cc-signature-cta .dc-final__form{box-shadow:0 26px 70px rgba(0,0,0,.28)}

/* Signature artwork is a bookend, never a wallpaper. */
.cc-signature-cta::after{opacity:.58}
.cc-signature-footer::after{opacity:.34}

/* Strong, visible keyboard focus throughout the theme. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
    outline:3px solid #00ccff;
    outline-offset:3px;
}

@media(max-width:720px){
    :root{--cc-page-gutter:14px;--cc-control-height:50px}
    .dc-btn,.btn{min-height:52px}
    .cc-signature-cta::after{opacity:.30}
    .cc-signature-footer::after{opacity:.18}
}

@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
    .dc-btn:hover,.btn:hover{transform:none}
}

/* CraftCore v10.2.6 — shared service conversion system
   Keeps all service-page quote panels, controls and reassurance rows aligned. */
.dc-page .dc-quote{
    border-radius:20px;
}
.dc-page .dc-quote h2{
    margin-bottom:10px;
    text-wrap:balance;
}
.dc-page .dc-quote > p{
    margin-top:0;
    line-height:1.58;
}
.dc-page .craftcore-enquiry-form{
    display:grid;
    gap:13px;
}
.dc-page .craftcore-enquiry-form label{
    display:grid;
    min-width:0;
    gap:6px;
}
.dc-page .craftcore-enquiry-form label > span{
    font-size:.72rem;
    font-weight:850;
    line-height:1.25;
}
.dc-page .craftcore-enquiry-form input,
.dc-page .craftcore-enquiry-form select,
.dc-page .craftcore-enquiry-form textarea{
    width:100%;
    min-width:0;
}
.dc-page .craftcore-enquiry-form .dc-btn{
    width:100%;
    margin-top:1px;
}
.dc-page .dc-quote__proof{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px 14px;
    margin-top:4px;
    color:#536b79;
}
.dc-page .dc-quote__proof span{
    display:inline-flex;
    min-width:0;
    align-items:center;
    gap:5px;
    color:#536b79;
    font-size:.66rem;
    font-weight:850;
    line-height:1.25;
    white-space:nowrap;
}
.dc-page .craftcore-enquiry-form > small{
    display:block;
    margin-top:0;
    color:#6a7d88;
    font-size:.68rem;
    line-height:1.45;
}
@media(max-width:650px){
    .dc-page .dc-quote__proof{
        align-items:flex-start;
        flex-direction:column;
        gap:7px;
    }
    .dc-page .dc-quote__proof span{
        white-space:normal;
    }
}
