/* The Sign Post - WordPress additions. The design itself lives in style.css (unchanged). */

/* Images never stretch: height follows the width. */
img{height:auto;max-width:100%}
.abs-img img{width:100%;height:auto}
svg{max-width:100%}

/* No horizontal scroll on any screen. */
html,body{max-width:100%}
body{overflow-x:hidden}
main,header,footer,section{max-width:100%}

/* Page loader overlay (kept from the original pages). */
.absdv{width:100%;float:left;height:100vh;position:fixed;background:rgba(255,255,255,.5);top:0;opacity:1;z-index:100000;display:none}
.loader-main{border:6px solid #231F20;border-top:6px solid #d1d1d1;border-radius:100%;width:40px;height:40px;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;position:absolute;left:50%;top:50%;z-index:999999999;margin-left:-20px;margin-top:-20px}
@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

/* Contact Form 7: keep the hand-built look. */
.wpcf7 form{margin:0;padding:0;width:100%;float:left}
.wpcf7 .wpcf7-form-control-wrap{all:unset;display:block;width:100%}
.wpcf7 .screen-reader-response{position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);height:1px;width:1px;margin:0;padding:0;border:0}
.wpcf7 .wpcf7-not-valid-tip{display:none}
.wpcf7 .wpcf7-spinner{display:none}
.wpcf7 .hidden-fields-container{display:none}
.wpcf7 .wpcf7-response-output{margin:25px 0 0;padding:0;border:0;float:left;width:100%;font-family:'Roboto',sans-serif;font-size:16px;line-height:22px;color:#33416a}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output,.wpcf7 form.spam .wpcf7-response-output,.wpcf7 form.unaccepted .wpcf7-response-output{color:#d0021b}
.wpcf7 input.wpcf7-not-valid,.wpcf7 textarea.wpcf7-not-valid,.wpcf7 select.wpcf7-not-valid{border:#d0021b solid 1px !important}
.wpcf7 input[type=submit]:disabled,.wpcf7 input[type=submit].inactive{opacity:.5;pointer-events:none;cursor:default}
.sp-file{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;overflow:hidden}
.attach-file .output ul{margin:0;padding:0}

/* Newsletter strip: CF7 wraps the field in a span, undo the generic ".gq-main span" rule for it. */
.gq-main .wpcf7-form-control-wrap{margin:0;float:none;width:100%;opacity:1;font-size:inherit;letter-spacing:normal;line-height:normal;text-align:left;color:inherit}
.gq-main .wpcf7 form .form-nws{float:none}

/* Page text blocks written in the editor. */
.contact-form .con-txt p:last-child{color:#33416A;margin-top:-60px}
.sp-ask > p:last-child,.sp-quote > p{color:#33416A}
.sp-ask p{margin:0 0 20px}

/* Accessibility helper. */
.screen-reader-text{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Card grids: images differ by 1px in height, which made the floated tiles snag on each other and leave gaps.
   Flex-wrap lays them out in clean rows (item widths and the responsive widths from style.css still apply). */
.service-listing ul,.os-main ul,.inner-gallery-main ul,.news-listing ul{display:flex;flex-wrap:wrap;align-items:flex-start}

/* Ask a question: textarea height matches the original */
.qt-txtbx textarea{height:78px}

/* Call-to-action line on service pages (original: blue bold text) */
.page-template-tpl-services .service-main p>strong:only-child:has(a),.page-template-tpl-services .service-main p>strong:only-child:has(a) a{color:#0000CD}
.sp-ask p:last-child{color:#33416A}

/* White header logo: same box as the original (191x87) */
.white-header .logo img{width:191px;height:87px;object-fit:contain}
.wpcf7 .wpcf7-response-output:empty{display:none}

/* Gallery thumbnails: equal size boxes as on the original (334x206) */
.inner-gallery-main ul li img{aspect-ratio:334/206;object-fit:cover;height:auto}

/* Service card photos: same 407px-wide photo, cropped by the 400px card, as on the original */
.service-listing .lsting-img img,.os-main .lsting-img img{aspect-ratio:407/260;object-fit:cover}
@media (min-width:856px){.service-listing .lsting-img img,.os-main .lsting-img img{width:407px;max-width:none;height:auto}}
.desc-txt p>u:only-child{font-size:16px}
.attach-left img{width:20px;height:20px}
.how-prnt > ul > li:first-child .prnt-pnt > p:first-child{margin-left:-10px}
.inner-gallery-main ul.gallery,.inner-gallery-main ul{justify-content:center}.inner-gallery-main ul li{margin-bottom:14px}
@media (max-width:855px){.service-listing ul,.os-main ul{justify-content:center}}

/* Skip link, form status message, tap targets, focus */
.skip-link{position:absolute;left:-9999px;top:0;z-index:100000;background:#1D78E2;color:#fff;padding:12px 18px;font-family:'Roboto',sans-serif;font-size:16px}
.skip-link:focus{left:10px;top:10px}
.sp-status{clear:both;width:100%;margin:18px 0 0;padding:12px 16px;box-sizing:border-box;font-family:'Roboto',sans-serif;font-size:16px;line-height:24px;border-radius:4px}
.sp-status:empty{display:none}
.sp-status.sp-ok{background:#e6f4ea;color:#14532d;border:1px solid #86c99b}
.sp-status.sp-bad{background:#fdecea;color:#7f1d1d;border:1px solid #e5a3a3}
.get-quote .sp-status,.form-nws .sp-status{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.4)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=button]:focus-visible{outline:3px solid #4A90E2;outline-offset:2px}
.quote-row label.lbl{display:block}
@media (max-width:855px){
.terms a,.siteby a,.cpy a,.footer-left a{display:inline-block;min-height:44px;line-height:44px;padding-left:4px;padding-right:4px}
.social ul li a,.social-w ul li a{display:inline-block;min-width:44px;min-height:44px;line-height:44px;text-align:center;margin-right:4px}
#nav-icon1{min-width:44px;min-height:44px}
.abt-menu-clk a,.breadcrumb ul li a,.back-srv a{display:inline-block;min-height:44px;line-height:44px}
}
/* FAQ answers: style raw ACF output (text, lists, line breaks) not only <p> */
.beefup-body{font-family:"Roboto",sans-serif;font-size:18px;line-height:28px;color:#4A4A4A;font-weight:400}
.beefup-body ul,.beefup-body ol,.beefup-body li,.beefup-body div,.beefup-body span,.beefup-body pre{font-family:"Roboto",sans-serif;font-size:18px;line-height:28px;color:#4A4A4A;white-space:normal}
.beefup-body ul,.beefup-body ol{float:left;width:100%;margin:0;padding:0 0 0 20px;box-sizing:border-box}
.beefup-body ul{list-style:disc}.beefup-body ol{list-style:decimal}.beefup-body li{list-style:inherit;float:none}
/* In-content links: site blue instead of browser default blue/underline */
.service-main a,.about-page-content a,.prnt-pnt a,.art-cnt a,.desc-txt a,.beefup-body a{color:#1D78E2;text-decoration:none;font-family:inherit}
.service-main a:hover,.about-page-content a:hover,.prnt-pnt a:hover,.art-cnt a:hover,.desc-txt a:hover,.beefup-body a:hover{color:#4990E2;text-decoration:underline}
.service-main ul li a{color:#4A4A4A}.service-main ul li a:hover{color:#1D78E2}
.page-template-tpl-services .service-main p>strong:only-child:has(a),.page-template-tpl-services .service-main p>strong:only-child:has(a) a{color:#1D78E2}
/* News search box: no focus border/outline */
.srch-txtbx input[type="text"],.srch-txtbx input[type="text"]:focus,.srch-txtbx input[type="text"]:focus-visible,.srch-txtbx input[type="search"]:focus,.srch-txtbx input[type="search"]:focus-visible{outline:none !important;box-shadow:none !important;border:none !important}

/* Submit looks faded until required fields are filled, but stays clickable so validation messages can show */
.wpcf7 input[type=submit].sp-faded{opacity:1;cursor:pointer}

/* No summary bar on validation errors (per-field messages only) */
.wpcf7 form.invalid .wpcf7-response-output,.sp-status:empty{display:none !important}
/* News category dropdown: no focus border/outline */
.category select,.category select:focus,.category select:focus-visible,.category select:active{outline:none !important;box-shadow:none !important;border:none !important}
/* Home "latest work" grid: every tile the same size, image cropped to fill (aligned rows) */
.latest-gallery .cbp-item .cbp-caption-defaultWrap{line-height:0;overflow:hidden}
.latest-gallery .cbp-item .cbp-caption-defaultWrap img{display:block;width:100%;height:auto;aspect-ratio:582/588;object-fit:cover}

/* Submit buttons never get the red error border */
input[type=submit].error-field,input[type=submit].wpcf7-not-valid,button.error-field{border:none !important;box-shadow:none !important}
/* No focus outline/border on any form field (all forms) */
input:not([type=submit]):not([type=button]):focus,input:not([type=submit]):not([type=button]):focus-visible,select:focus,select:focus-visible,textarea:focus,textarea:focus-visible{outline:none !important;box-shadow:none !important}

/* Form response message: plain text, no CF7 plugin box (plugin rule is more specific, so match it). */
.wpcf7 form .wpcf7-response-output{margin:20px 0 0;padding:0;border:0 !important;float:none;clear:both;width:100%;text-align:center;font-family:'Roboto',sans-serif;font-size:16px;font-weight:500;line-height:24px;color:#33416a}
.wpcf7 form.sent .wpcf7-response-output{color:#2e8b57}
.wpcf7 form.failed .wpcf7-response-output,.wpcf7 form.aborted .wpcf7-response-output,.wpcf7 form.spam .wpcf7-response-output{color:#d0021b}
.get-quote .wpcf7 form .wpcf7-response-output{color:#fff}
.get-quote .wpcf7 form.sent .wpcf7-response-output{color:#7ee0a5}
.get-quote .wpcf7 form.failed .wpcf7-response-output,.get-quote .wpcf7 form.aborted .wpcf7-response-output,.get-quote .wpcf7 form.spam .wpcf7-response-output{color:#ffb3bb}

/* Contact, ask-a-question and quote forms redirect to a thank-you page, so no inline "sent" message. Newsletter (.get-quote) keeps it. */
.wpcf7 form.sent .wpcf7-response-output{display:none !important}
.get-quote .wpcf7 form.sent .wpcf7-response-output{display:block !important}

/* Newsletter success: plain white text, left-aligned with the email field (same 1020px column as .form-nws). */
.get-quote .sp-status{width:100%;max-width:1020px;margin:14px auto 0;padding:0;border:0;border-radius:0;background:none;color:#fff;text-align:left;float:none;display:block;font-size:16px;line-height:24px}
.get-quote .sp-status.sp-bad{color:#ffb3bb;background:none;border:0}
.get-quote .wpcf7 form .wpcf7-response-output{max-width:1020px;margin:14px auto 0;text-align:left;color:#fff}
/* Redirecting forms (contact, ask a question, quote): no inline success box. */
.wpcf7 .sp-status.sp-ok{display:none !important}
.get-quote .wpcf7 .sp-status.sp-ok{display:block !important}

/* Tap targets of at least 24x24 CSS px without moving anything (padding is cancelled by the negative margin). */
.footer-right .terms a{padding-top:5px;padding-bottom:5px;margin-top:-5px;margin-bottom:-5px}
.footer-right .siteby a{display:inline-block;padding-top:5px;padding-bottom:5px;margin-top:-5px;margin-bottom:-5px;vertical-align:baseline}
.news-listing .news-heading a{display:block;padding-top:4px;padding-bottom:4px;margin-top:-4px;margin-bottom:-4px}
.srch-cat .category select{min-height:24px}
/* "Sending..." state while a form is being submitted. */
.sp-status.sp-busy{background:none;border:0;padding:0;color:#33416a;font-weight:500}
.get-quote .sp-status.sp-busy,.form-nws .sp-status.sp-busy{color:#fff}
.wpcf7 form.submitting .sp-status.sp-busy{display:block}
.footer-left li a{display:inline-block;padding-top:2px;padding-bottom:2px;margin-top:-2px;margin-bottom:-2px}

/* Mobile menu: social icons sit together on one row, left-aligned with the menu links (opening hours are not shown here). */
.mo-navigation .social ul{display:flex;align-items:center;gap:22px;width:auto}
.mo-navigation .social ul li{float:none;width:auto;height:auto;margin:0}
.mo-navigation .social ul li a{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-width:24px;min-height:24px;margin:0;padding:0;float:none}

/* Breadcrumb: centre the links and the current page on one line so the dividers and text line up. */
.breadcrumb ul{display:flex;flex-wrap:wrap;align-items:center}
.breadcrumb ul li{display:flex;align-items:center;float:none;min-height:44px}
.breadcrumb ul li a{float:none;display:inline-flex;align-items:center}
/* Breadcrumb dividers: short lines (text height) while the links keep a 44px tap area. */
.breadcrumb ul li,.breadcrumb ul li:last-child{border-right:0}
.breadcrumb ul li:not(:last-child)::after{content:"";display:block;width:1px;height:18px;background:#ADB4C3}
/* Mobile menu spacing: icons closer together, menu list closer to the icons. */
.mo-navigation .social ul{gap:12px}
.mo-navigation .social ul li,.mo-navigation .social ul li a{margin-right:0}
.mo-navigation nav.open-menu{padding-top:78px}

/* Utility classes (replace inline styles, which the security policy blocks). */
.sp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-center{text-align:center}
/* Article share buttons: icon only, white, centred (as designed). */
.art-social li a{display:block;color:#fff;line-height:22px;text-align:center}
.art-social li a i{border:0;padding:0;margin:0;color:#fff;font-size:18px;line-height:22px;display:inline-block;transform:none}
.art-social li a span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* WordPress adds the class "category" to <body> on category pages, which picked up the news dropdown's .category styles (white strip at the top). */
body.category{float:none;margin:0;min-width:0}
