/*
Theme Name: C&R Property Maintenance — Redesign v3.3
Theme URI: https://crpropertymaintenance.com/
Author: C&R Ltd
Description: Accessible, performance-conscious, Gutenberg-editable WordPress theme for C&R Ltd.
Version: 3.5.0
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: cr-property-next
*/
:root{--navy:#173441;--deep:#0e2734;--ink:#112f42;--slate:#435969;--gold:#be9c68;--gold-dark:#866237;--cream:#f8f6f2;--pale:#eff3f2;--line:#dfe6e7;--white:#fff;--shadow:0 14px 42px rgba(15,40,53,.08)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font:16px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}body,button,input,textarea{font-synthesis:none}h1,h2,h3,h4{line-height:1.16;letter-spacing:-.028em}p{margin-top:0}a{color:var(--navy);text-underline-offset:3px}a:hover{color:var(--gold-dark)}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}
.wrap,.cr-container,.is-layout-constrained>.cr-container{width:min(100% - 48px,1160px);max-width:1160px;margin-inline:auto!important}.content-area{min-height:45vh}.skip-link{position:absolute;left:12px;top:-100px;z-index:999;background:#fff;padding:10px 15px;border-radius:4px}.skip-link:focus{top:12px}
.topbar{background:var(--deep);color:#eaf1f2;font-size:12px;letter-spacing:.015em}.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:8px}.topbar a{color:#f8f8f8;text-decoration:none}.topbar a:hover{text-decoration:underline}
.site-header{background:#fff;position:relative;z-index:30;border-bottom:1px solid #eef0f0}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:86px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}.brand img{height:64px;width:64px;object-fit:contain}.brand-title{display:block;color:var(--navy);font-size:21px;font-weight:800;line-height:1.1;letter-spacing:-.04em}.brand-sub{display:block;color:var(--slate);font-size:9px;line-height:1.25;letter-spacing:.12em;font-weight:700;margin-top:4px;max-width:210px}.nav{display:flex;align-items:center;gap:22px}.nav a{text-decoration:none;font-size:13px;font-weight:650;white-space:nowrap;color:var(--ink)}.nav a:hover,.nav a[aria-current='page']{color:var(--gold-dark)}.nav .nav-cta,.mobile-menu a.nav-cta{background:var(--gold);color:#112733;padding:12px 16px;border-radius:4px;font-weight:750}.nav .nav-cta:hover{background:#d0ad7c;color:#102d3a}.mobile-menu{display:none}
/* Homepage introductory image is illustrative and NOT a completed C&R project */
.cr-photo-hero{position:relative;isolation:isolate;min-height:525px;overflow:hidden;background:var(--deep);display:flex;align-items:center;color:white;padding:84px max(24px,calc((100% - 1160px)/2))!important}.cr-photo-hero>.cr-hero-backdrop{position:absolute!important;inset:0!important;z-index:-2;margin:0!important;width:100%!important;height:100%!important;max-width:none!important}.cr-photo-hero>.cr-hero-backdrop img{width:100%!important;height:100%!important;display:block;object-fit:cover;object-position:center 52%;border:0;border-radius:0!important}.cr-photo-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,28,40,.97) 0%,rgba(8,28,40,.91) 29%,rgba(8,28,40,.45) 62%,rgba(8,28,40,.08) 100%);z-index:-1}.cr-hero-content{width:min(100%,1160px);margin-inline:auto!important;color:#fff}.cr-hero-content>*{max-width:620px}.cr-hero-content h1{font-size:clamp(40px,5.2vw,69px);line-height:1.03;letter-spacing:-.046em;color:#fff;margin:0 0 24px;max-width:610px}.cr-hero-content p:not(.eyebrow):not(.cr-hero-trust){font-size:clamp(16px,1.65vw,18px);line-height:1.65;color:#f4f7f7;max-width:545px;margin-bottom:22px}.cr-hero-content .eyebrow{font-size:12px;font-weight:800;letter-spacing:.15em;color:#e9c28d;margin-bottom:23px}.cr-hero-trust{color:#edf1f2;font-size:13px;margin:26px 0 0;letter-spacing:.015em}
/* Native Gutenberg blocks remain editable in the WordPress editor */
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px}.wp-block-button__link,.cr-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:var(--gold)!important;color:#102c39!important;border:1px solid var(--gold)!important;text-decoration:none!important;font-size:14px!important;font-weight:750!important;padding:12px 22px!important;border-radius:4px!important;transition:background .15s ease,transform .15s ease}.wp-block-button__link:hover,.cr-button:hover{background:#d2b281!important;transform:translateY(-1px)}.wp-block-button.is-style-outline .wp-block-button__link{border:1px solid rgba(255,255,255,.8)!important;background:rgba(12,30,43,.16)!important;color:#fff!important}.cr-section .wp-block-button.is-style-outline .wp-block-button__link{color:var(--navy)!important;border-color:var(--navy)!important}
.cr-section{padding:78px 24px}.cr-section>.cr-container{width:min(100%,1160px);margin-inline:auto}.cr-section h2{font-size:clamp(29px,3.5vw,43px);margin:0 0 16px;color:var(--ink)}.cr-section .section-kicker,.section-kicker{font-size:12px;letter-spacing:.15em;color:#956d3c;text-transform:uppercase;font-weight:800;margin:0 0 12px}.section-lead{font-size:16.5px;color:var(--slate);max-width:740px;line-height:1.8;margin:0 0 32px}.cr-soft{background:var(--cream)}
.cr-services .cr-container>h2{max-width:880px}.cr-services .section-lead{max-width:840px}.cr-services-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;align-items:stretch}.cr-service-card{background:#fff;box-shadow:0 1px 1px rgba(15,40,53,.025);border:1px solid #e5e7e6;border-radius:8px;padding:23px!important;min-width:0;display:flex;flex-direction:column;gap:7px;position:relative;transition:border-color .2s,box-shadow .2s}.cr-service-card:hover{border-color:#d4b993;box-shadow:var(--shadow)}.cr-service-card .cr-icon-mark{color:#b38c56;line-height:1;margin-bottom:10px;height:34px;display:flex;align-items:center}.cr-icon-mark svg{height:34px;width:34px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.cr-service-card h3{font-size:18px!important;line-height:1.3!important;letter-spacing:-.024em;color:var(--ink);margin:0 0 3px!important}.cr-service-card h3 a{text-decoration:none;color:inherit}.cr-service-card h3 a::after{content:'';position:absolute;inset:0}.cr-service-card h3 a:focus-visible{outline-offset:4px}.cr-service-card p{color:var(--slate);font-size:14px;margin:0!important;line-height:1.65}.cr-services .wp-block-buttons{margin-top:28px;justify-content:center}
.cr-trust{background:#f3f5f4;padding:28px 24px}.cr-trust-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important}.cr-trust-item{text-align:center;padding:14px 8px}.cr-trust-item h3{font-size:16px;color:var(--ink);margin:6px 0}.cr-trust-item p{font-size:13px;color:var(--slate);margin:0}.cr-trust-item .cr-icon-mark{color:#a9824f;display:inline-flex;align-items:center}.cr-trust-item .cr-icon-mark svg{width:30px;height:30px;stroke-width:1.7;fill:none;stroke:currentColor}
.cr-feature-copy>h2{margin-bottom:20px}.cr-feature-copy p{color:var(--slate)}.cr-feature-copy .wp-block-buttons{margin-top:22px}.cr-feature-photo{margin:0}.cr-feature-photo img{width:100%;max-height:460px;object-fit:cover;border-radius:8px}.cr-feature-photo a{display:block}.cr-section>.cr-container>.wp-block-columns{gap:24px}.cr-section>.cr-container>.wp-block-columns:has(.cr-feature-copy){align-items:center;gap:54px}.cr-tick-lines p{padding-left:20px;position:relative;margin-bottom:9px}.cr-tick-lines p::before{content:'✓';position:absolute;left:0;color:#a27c49;font-weight:800}
.cr-project-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px!important}.cr-project-card{min-width:0}.cr-project-card figure{margin:0!important}.cr-project-card figure a{display:block;overflow:hidden;border-radius:7px}.cr-project-card figure img{width:100%;height:188px;object-fit:cover;display:block;border-radius:7px;transition:transform .25s}.cr-project-card:hover img{transform:scale(1.035)}.cr-project-card h3{font-size:16px!important;margin:13px 0 3px;color:var(--ink)}.cr-project-card h3 a{text-decoration:none}.cr-project-card p{font-size:13px;margin:0;color:var(--slate)}.cr-projects .wp-block-buttons{margin-top:31px;justify-content:center}
.cr-strip{background:var(--navy);padding:52px 24px;color:#fff}.cr-strip>.cr-container{display:flex!important;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap}.cr-strip h2{font-size:clamp(24px,3vw,33px);color:#fff;margin:0 0 7px}.cr-strip p{color:#dfebed;margin:0}.cr-strip .wp-block-buttons{margin:0}
/* Existing editorial pages and project archives (kept in native Gutenberg) */
.cr-page-head{padding:70px 24px 59px;background:var(--cream);border-bottom:1px solid var(--line)}.cr-page-head>.cr-container{width:min(100%,1160px);margin:auto}.cr-page-head h1{font-size:clamp(36px,4vw,55px);margin:0 0 15px}.cr-page-head p{font-size:16px;max-width:800px;color:var(--slate);margin:0 0 12px}.cr-page-head .section-kicker{color:#956d3c;font-size:12px}.cr-page-head .section-lead{margin:0}.cr-section .cr-card{height:100%;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}.cr-section .cr-card>.wp-block-image{margin:0!important;width:100%}.cr-section .cr-card>.wp-block-image a{display:block;width:100%}.cr-section .cr-card img{display:block;width:100%;max-width:100%;height:208px;object-fit:cover;border-radius:0}.cr-section .cr-card-body{padding:24px}.cr-section .cr-card-body h3{font-size:20px;color:var(--ink);margin:0 0 12px}.cr-section .cr-card-body p,.cr-section .cr-card-body li{font-size:14px;color:var(--slate);line-height:1.7}.cr-section .cr-card-body ul{padding-left:19px}.cr-section .cr-card-body p{margin:0 0 12px}.cr-section .cr-card-body li{margin-bottom:5px}.cr-section .cr-card-body p:last-child{margin:0}.cr-section .wp-block-columns{gap:20px;align-items:stretch}.cr-section .wp-block-column{min-width:0}.cr-section>.cr-container>.wp-block-columns>.wp-block-column>.wp-block-image{margin:0}.cr-section>.cr-container>.wp-block-columns>.wp-block-column>.wp-block-image img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;max-height:280px;border-radius:7px}.cr-section figcaption{font-size:14px;color:var(--slate);line-height:1.45;margin:12px 0 0}.cr-section figcaption strong{color:var(--ink);font-size:15px}.cr-section>.cr-container>.wp-block-columns{margin-bottom:25px}
/* Contact form and general content */
.cr-contact-card{background:var(--cream);border-radius:8px;padding:30px;height:100%}.cr-contact-card h2,.cr-form-note h2{font-size:25px;margin:0 0 14px}.cr-form-note{border:1px solid var(--line);border-radius:8px;padding:30px;background:#fff;height:100%}.cr-contact-card a,.cr-form-note a{overflow-wrap:anywhere}.wpforms-container{max-width:900px;margin:22px auto!important;padding-inline:24px}.wpforms-container input:not([type=checkbox]):not([type=radio]),.wpforms-container textarea,.wpforms-container select{border:1px solid #b8c5c9!important;border-radius:5px!important;padding:12px!important;min-height:45px!important;max-width:100%!important}.wpforms-container button[type=submit]{background:var(--gold)!important;color:var(--deep)!important;border:0!important;padding:12px 24px!important;min-height:48px!important;border-radius:4px!important;font-weight:700!important}.wpforms-container .wpforms-required-label{color:#9d3434}.cr-text-content{padding:70px 24px}.cr-text-content>.cr-container{max-width:820px}.cr-text-content h2{color:var(--ink)}.cr-text-content p,.cr-text-content li{color:var(--slate)}.wp-block-gallery{margin-block:20px!important}.wp-block-gallery .wp-block-image img{object-fit:cover}.wp-block-gallery figure{border-radius:7px;overflow:hidden}.wp-block-gallery .wp-block-image{max-width:100%}.wp-block-gallery .wp-block-image img{border-radius:6px}main>.wp-block-group{margin-block:0}.content-area>article{margin:0}.entry-content>.wp-block-group{margin:0}
.site-footer{background:var(--deep);color:#d8e6e9;padding:56px 0 24px}.footer-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:45px}.site-footer h3{font-size:17px;color:#fff;margin:0 0 13px}.site-footer p{font-size:14px;line-height:1.8;margin:0 0 11px}.site-footer a{color:#e5edef;text-decoration:none}.site-footer a:hover{text-decoration:underline}.footer-bottom{border-top:1px solid #35515d;margin-top:32px;padding-top:20px;font-size:12px;color:#b5c8cc}.footer-bottom a{color:#e6eef0}.footer-contact a{overflow-wrap:anywhere}.cr-compact-cta{margin-top:23px}
@media(max-width:1000px){.nav{gap:12px}.nav a{font-size:12px}.brand-title{font-size:18px}.brand-sub{font-size:8px}.cr-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-project-card figure img{height:205px}}
@media(max-width:780px){.desktop-nav{display:none}.mobile-menu{display:block;position:relative}.mobile-menu summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;border:1px solid #d7e1e2;border-radius:6px;color:var(--navy);cursor:pointer}.mobile-menu summary::-webkit-details-marker{display:none}.mobile-menu summary svg{height:23px;width:23px;stroke:currentColor;fill:none;stroke-width:2}.mobile-menu[open] nav{position:absolute;right:0;top:calc(100% + 12px);min-width:min(88vw,320px);background:#fff;border:1px solid var(--line);box-shadow:0 14px 35px #0b253b29;border-radius:8px;padding:12px;z-index:40;display:flex;flex-direction:column}.mobile-menu nav a{padding:11px 12px;color:var(--ink);font-size:15px;text-decoration:none;font-weight:650}.mobile-menu nav a.nav-cta{margin-top:5px;text-align:center;background:var(--gold)}.cr-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-section>.cr-container>.wp-block-columns{flex-wrap:wrap!important}.cr-section>.cr-container>.wp-block-columns>.wp-block-column{flex-basis:calc(50% - 14px)!important}.cr-section>.cr-container>.wp-block-columns:has(.cr-card)>.wp-block-column{flex-basis:calc(50% - 14px)!important}.cr-section>.cr-container>.wp-block-columns:has(.cr-feature-copy)>.wp-block-column{flex-basis:100%!important}.footer-grid{gap:30px;grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:span 2}.cr-photo-hero{min-height:515px}}
@media(max-width:600px){.wrap,.cr-container,.is-layout-constrained>.cr-container{width:min(100% - 36px,1160px)}.topbar .wrap{justify-content:center;text-align:center;padding-block:7px}.topbar .hide-mobile{display:none}.header-inner{min-height:76px}.brand img{height:53px;width:53px}.brand-title{font-size:18px}.brand-sub{font-size:7.6px;letter-spacing:.1em}.cr-photo-hero{min-height:540px;padding:62px 18px 56px!important;align-items:end}.cr-photo-hero>.cr-hero-backdrop img{object-position:64% center}.cr-photo-hero::before{background:linear-gradient(0deg,rgba(7,27,40,.98) 0%,rgba(7,27,40,.86) 48%,rgba(7,27,40,.40) 100%)}.cr-hero-content h1{font-size:clamp(36px,11vw,47px);max-width:480px;letter-spacing:-.04em;margin-bottom:16px}.cr-hero-content .eyebrow{font-size:10px;margin-bottom:16px}.cr-hero-content p:not(.eyebrow):not(.cr-hero-trust){font-size:15.5px;line-height:1.6}.cr-hero-trust{font-size:11.5px;line-height:1.6}.cr-hero-content .wp-block-buttons{gap:9px}.cr-hero-content .wp-block-button{flex:1 1 auto}.cr-hero-content .wp-block-button__link{padding:11px 15px!important;font-size:13px!important;width:100%}.cr-section{padding:54px 18px}.cr-section h2{font-size:clamp(28px,7vw,35px);line-height:1.2}.section-lead{font-size:15.5px;margin-bottom:24px}.cr-services-grid{grid-template-columns:1fr;gap:10px!important}.cr-service-card{padding:18px!important;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:0 13px}.cr-service-card .cr-icon-mark{grid-column:1;grid-row:1 / 3;margin:3px 0 0}.cr-service-card h3{grid-column:2;margin:0 0 5px!important;font-size:16px!important}.cr-service-card p{grid-column:2;font-size:13px}.cr-services .wp-block-buttons{margin-top:22px}.cr-services .wp-block-button,.cr-services .wp-block-button__link{width:100%}.cr-project-grid{grid-template-columns:1fr;gap:24px!important}.cr-project-card figure img{height:auto;aspect-ratio:1.8;object-fit:cover}.cr-project-card h3{margin-top:11px}.cr-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px!important}.cr-trust-item{padding:14px 5px}.cr-trust-item h3{font-size:14px}.cr-trust-item p{font-size:12px}.cr-page-head{padding:49px 18px 43px}.cr-page-head h1{font-size:37px}.cr-page-head p{font-size:15px}.cr-section>.cr-container>.wp-block-columns>.wp-block-column,.cr-section>.cr-container>.wp-block-columns:has(.cr-card)>.wp-block-column{flex-basis:100%!important}.cr-section .cr-card img{height:210px}.cr-strip{padding:37px 18px}.cr-strip>.cr-container{align-items:flex-start;flex-direction:column;gap:17px}.cr-strip .wp-block-button__link{width:100%}.cr-contact-card,.cr-form-note{padding:22px}.wpforms-container{padding-inline:18px}.footer-grid{display:grid;grid-template-columns:1fr;gap:24px}.footer-grid>div:first-child{grid-column:auto}.site-footer{padding:42px 0 22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Version 2.1 — original C&R branding and direct customer contact. */
.topbar-contact{display:flex;align-items:center;gap:13px;flex-shrink:0}.topbar-contact span{opacity:.4}.topbar-contact a{font-weight:650}.topbar-contact a:last-child{text-decoration:underline;text-decoration-color:#c8a473;text-underline-offset:4px}
.header-inner{min-height:105px}.brand{gap:15px}.brand img{width:84px;height:96px;object-fit:contain;flex-shrink:0}.brand-wordmark{min-width:0}.brand-title{font-size:22px}.brand-sub{font-size:9px;letter-spacing:.085em;max-width:210px}
.mobile-contact-shortcuts{display:none}.footer-brand{display:flex;align-items:center;gap:14px;margin-bottom:17px}.footer-brand img{height:82px;width:70px;object-fit:contain;background:#fff;border-radius:4px;flex-shrink:0}.footer-brand h3{margin:0;line-height:1.35}.footer-contact strong{color:#fff}.footer-quote-link{display:inline-block;background:var(--gold);color:#132a35!important;font-weight:750;padding:8px 12px;border-radius:4px;margin-top:4px;text-decoration:none!important}.footer-quote-link:hover{background:#d0ad7c}
.cr-hero-contact{color:#ecf0f0;font-size:14px;margin:12px 0 0}.cr-hero-contact a{color:#f8d59e;text-decoration:underline;text-underline-offset:4px;font-weight:700}.cr-hero-contact a:hover{color:#fff}
@media(max-width:1000px){.brand img{height:82px;width:72px}.header-inner{min-height:95px}.brand{gap:9px}.nav{gap:12px}}
@media(max-width:780px){.mobile-contact-shortcuts{display:block;background:#f8f6f2;border-bottom:1px solid var(--line)}.mobile-contact-shortcuts .wrap{display:flex;gap:8px;padding:8px 0}.mobile-contact-shortcuts a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #b7c6ca;border-radius:5px;background:#fff;color:var(--ink);text-decoration:none;font-weight:700;font-size:13px;min-height:40px}.mobile-contact-shortcuts .shortcut-whatsapp{border-color:#b38c56;background:#f5ebdc}.mobile-contact-shortcuts svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.mobile-menu nav a.mobile-nav-contact{border-top:1px solid var(--line);font-weight:700}}
@media(max-width:600px){.header-inner{min-height:87px}.brand img{width:68px;height:77px}.brand-title{font-size:17px}.brand-sub{font-size:7px;letter-spacing:.045em;line-height:1.3}.brand{gap:8px}.mobile-contact-shortcuts .wrap{padding:7px 0}.mobile-contact-shortcuts a{min-height:38px;font-size:12.5px}.footer-brand img{width:64px;height:75px}}
@media(max-width:355px){.brand img{width:55px;height:65px}.brand-title{font-size:15px}.brand-sub{font-size:6.6px}.mobile-contact-shortcuts a{font-size:11.5px;gap:5px}}

/* v3: resilient page templates; keep the six text-only service cards tidy on all screen sizes. */
.cr-services-grid,.cr-project-grid {width:100%;max-width:100%;}
.cr-services-grid>* ,.cr-project-grid>* {min-width:0;}

/* v3.1 — Two-column services and project highlights, including narrow Android screens.
   IMPORTANT: Gutenberg's constrained group rules sometimes limit the grid children;
   override those limits so the cards use the complete section width. */
.cr-services .cr-container > .cr-services-grid,
.cr-projects .cr-container > .cr-project-grid,
.cr-services-grid.wp-block-group,
.cr-project-grid.wp-block-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: stretch !important;
    align-items: stretch !important;
}
.cr-services-grid.wp-block-group { gap: 16px !important; }
.cr-project-grid.wp-block-group { gap: 22px !important; }
.cr-services-grid.wp-block-group > .cr-service-card,
.cr-project-grid.wp-block-group > .cr-project-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
}
.cr-project-card .wp-block-image,
.cr-project-card .wp-block-image a,
.cr-project-card .wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}
.cr-project-card .wp-block-image img { height: 245px; object-fit: cover; }
.cr-service-card.wp-block-group > .cr-icon-mark { margin-left: 0 !important; margin-right: 0 !important; align-self: flex-start !important; }
.cr-service-card.wp-block-group > h3, .cr-service-card.wp-block-group > p { margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 780px) {
    .cr-services-grid.wp-block-group,
    .cr-project-grid.wp-block-group { grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
    .cr-project-card .wp-block-image img { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
    .cr-services-grid.wp-block-group { gap: 12px !important; }
    .cr-project-grid.wp-block-group { gap: 14px !important; }
    .cr-service-card.wp-block-group {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px !important;
        padding: 14px !important;
    }
    .cr-service-card.wp-block-group .cr-icon-mark {
        display: flex; width: 30px; height: 30px; margin: 0 0 4px;
        grid-column: auto; grid-row: auto;
    }
    .cr-service-card .cr-icon-mark svg { width: 29px; height: 29px; }
    .cr-service-card.wp-block-group h3 {
        display: block; grid-column: auto; grid-row: auto;
        width: 100%; font-size: 14px !important;
        line-height: 1.3 !important; margin: 0 0 3px !important;
        overflow-wrap: anywhere;
    }
    .cr-service-card.wp-block-group p {
        display: block; grid-column: auto; grid-row: auto;
        width: 100%; font-size: 12.5px; line-height: 1.5;
        overflow-wrap: anywhere;
    }
    .cr-project-card h3 { font-size: 14px !important; line-height: 1.35; }
    .cr-project-card p { font-size: 12.5px; line-height: 1.5; }
    .cr-project-card .wp-block-image img { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 350px) {
    .cr-services-grid.wp-block-group { gap: 9px !important; }
    .cr-project-grid.wp-block-group { gap: 10px !important; }
    .cr-service-card.wp-block-group { padding: 11px !important; }
    .cr-service-card.wp-block-group h3 { font-size: 13px !important; }
    .cr-service-card.wp-block-group p { font-size: 12px; }
    .cr-project-card h3 { font-size: 13px !important; }
    .cr-project-card p { font-size: 12px; }
}

/* v3.2 stable layout: retain columns even when Gutenberg content width is constrained. */
body .entry-content .cr-services .cr-services-grid,
body .entry-content .cr-projects .cr-project-grid {
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:clamp(12px,2vw,22px)!important;
 max-width:none!important;
 width:100%!important;
 align-items:stretch!important;
}
body .entry-content .cr-services .cr-services-grid > .cr-service-card,
body .entry-content .cr-projects .cr-project-grid > .cr-project-card {
 min-width:0!important; width:100%!important; max-width:none!important;
 margin:0!important;
}
@media(max-width:600px){
 body .entry-content .cr-services .cr-services-grid,
 body .entry-content .cr-projects .cr-project-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}


/* v3.3 — FIX CONFIRMED WORDPRESS BLOCK-WRAPPER FAILURE.
 * WordPress can insert a wp-block-group__inner-container between each
 * Gutenberg Group and its contents. Older themes used direct-child rules,
 * so those rules laid out ONE wrapper instead of the six/four actual cards.
 * Target the element that ACTUALLY has the cards as its direct children.
 */
.entry-content .cr-services-grid,
.entry-content .cr-project-grid,
.entry-content .cr-services-grid .wp-block-group__inner-container,
.entry-content .cr-project-grid .wp-block-group__inner-container {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
}
/* If the outer grid has a Gutenberg wrapper child, the wrapper — not the
   outer block — is the grid. Prevent a grid-within-a-single-grid-column. */
.entry-content .cr-services-grid:has(> .wp-block-group__inner-container),
.entry-content .cr-project-grid:has(> .wp-block-group__inner-container) {
    display:block !important;
}
/* Actual direct parent of the cards, with or without one or several wrappers. */
.entry-content .cr-services-grid:has(> .cr-service-card),
.entry-content .cr-services-grid div:has(> .cr-service-card),
.entry-content .cr-project-grid:has(> .cr-project-card),
.entry-content .cr-project-grid div:has(> .cr-project-card) {
    display:grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-auto-flow: row !important;
    align-items:stretch !important;
    justify-items:stretch !important;
    gap:clamp(12px,1.5vw,22px) !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
}
.entry-content .cr-services-grid .cr-service-card,
.entry-content .cr-project-grid .cr-project-card {
    min-width:0 !important;
    max-width:100% !important;
    width:100% !important;
}
/* Remove restrictive WordPress content widths on nested Group inner containers.
   Preserve the site-wide 1160px maximum content width. */
.entry-content .cr-section .cr-container,
.entry-content .cr-section .cr-container > .wp-block-group__inner-container {
    width:100% !important;
    max-width:1160px !important;
    min-width:0 !important;
}
/* The hero already has its image as a theme-owned background image.
   Hide only its redundant Gutenberg figure in frontend output; this also
   prevents an extra Group wrapper from pushing the photograph above the text. */
.entry-content .cr-photo-hero .cr-hero-backdrop {display:none !important;}
.entry-content .cr-photo-hero > .wp-block-group__inner-container {
    display:block !important;
    width:100% !important;
    max-width:1160px !important;
    margin-inline:auto !important;
}
.entry-content .cr-photo-hero .cr-hero-content {
    position:relative;
    z-index:1;
    width:100% !important;
    max-width:1160px !important;
}
@media(max-width:600px) {
    .entry-content .cr-services-grid:has(> .cr-service-card),
    .entry-content .cr-services-grid div:has(> .cr-service-card),
    .entry-content .cr-project-grid:has(> .cr-project-card),
    .entry-content .cr-project-grid div:has(> .cr-project-card) {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:12px !important;
    }
    .entry-content .cr-services-grid .cr-service-card {padding:14px !important;}
    .entry-content .cr-project-grid .cr-project-card img {width:100% !important;max-width:100% !important;}
}
@media(max-width:350px) {
    .entry-content .cr-services-grid div:has(> .cr-service-card),
    .entry-content .cr-project-grid div:has(> .cr-project-card),
    .entry-content .cr-services-grid:has(> .cr-service-card),
    .entry-content .cr-project-grid:has(> .cr-project-card) {gap:9px !important;}
}


/* Gutenberg's outer constrained Group also creates a 650px-wide intermediary.
   Ensure section and card grids expand to the full theme container width. */
.entry-content .cr-section > .wp-block-group__inner-container,
.entry-content .cr-trust > .wp-block-group__inner-container,
.entry-content .cr-strip > .wp-block-group__inner-container {
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;
}
.entry-content .cr-section .cr-container,
.entry-content .cr-trust .cr-container,
.entry-content .cr-strip .cr-container {
    width:min(100%,1160px)!important;max-width:1160px!important;min-width:0!important;margin-inline:auto!important;
}
.entry-content .cr-section .cr-container > .wp-block-group__inner-container,
.entry-content .cr-trust .cr-container > .wp-block-group__inner-container,
.entry-content .cr-strip .cr-container > .wp-block-group__inner-container {
    width:100%!important;max-width:100%!important;min-width:0!important;
}
.entry-content .cr-section .cr-services-grid:has(> .wp-block-group__inner-container),
.entry-content .cr-section .cr-project-grid:has(> .wp-block-group__inner-container),
.entry-content .cr-trust .cr-trust-grid:has(> .wp-block-group__inner-container) {
    display:block!important;width:100%!important;max-width:100%!important;
}
.entry-content .cr-services-grid > .wp-block-group__inner-container,
.entry-content .cr-project-grid > .wp-block-group__inner-container,
.entry-content .cr-trust-grid > .wp-block-group__inner-container {
    width:100%!important;max-width:100%!important;min-width:0!important;
}
.entry-content .cr-trust-grid:has(> .cr-trust-item),
.entry-content .cr-trust-grid div:has(> .cr-trust-item) {
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;
    width:100%!important;max-width:100%!important;margin-inline:auto!important;
}
@media(max-width:780px) {
 .entry-content .cr-trust-grid:has(> .cr-trust-item),
 .entry-content .cr-trust-grid div:has(> .cr-trust-item) {
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media(max-width:600px) {
 .entry-content .cr-section .cr-container,
 .entry-content .cr-trust .cr-container,
 .entry-content .cr-strip .cr-container {
    width:100%!important;
 }
}


/* v3.4 - higher-resolution hero asset: no CSS blurring/stretching.
 * Wide photo can crop harmlessly as its container changes aspect ratio. */
.entry-content .cr-photo-hero {
 background-repeat:no-repeat!important;
 background-size:cover!important;
 background-position:center 52%!important;
}
@media(max-width:600px) {
 .entry-content .cr-photo-hero {background-position:64% center!important;}
}
