/*
Theme Name: CSRWC
Theme URI: https://csrwc.synf.co.uk
Description: Central Scotland Roughcast & Wall Coating — bespoke block child theme (built by SYNF). Navy/blue brand, conversion-focused for homeowners.
Author: SYNF
Template: twentytwentyfive
Version: 1.0.0
*/

@font-face{ font-family:'Hill House'; src:url('fonts/hillhouse.woff2') format('woff2'), url('fonts/hillhouse.woff') format('woff'), url('fonts/hillhouse.ttf') format('truetype'); font-weight:400 500; font-style:normal; font-display:swap; }
:root{
  --csrwc-shadow: 0 14px 40px -18px rgba(17,32,56,.30);
  --csrwc-shadow-sm: 0 6px 18px -10px rgba(17,32,56,.28);
  --csrwc-radius: 16px;
}
html{ scroll-behavior:smooth; }
body{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.92); backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--wp--preset--color--line);
  padding-block:.55rem !important;
}
.site-header .wp-block-site-logo img,
.site-header img.custom-logo{ height:54px; width:auto; }
.site-header .wp-block-navigation{ font-family:var(--wp--preset--font-family--heading); font-weight:600; gap:.25rem 1.6rem; }
.site-header .wp-block-navigation a{ color:var(--wp--preset--color--ink); }
.site-header .wp-block-navigation a:hover{ color:var(--wp--preset--color--blue); }
.csrwc-headcta a{ background:var(--wp--preset--color--accent); color:var(--wp--preset--color--navy) !important; border-radius:10px; padding:.7rem 1.2rem !important; font-weight:700; }
.csrwc-headcta a:hover{ background:var(--wp--preset--color--accent-2); }
.csrwc-headphone a{ color:var(--wp--preset--color--navy) !important; font-weight:700; font-family:var(--wp--preset--font-family--heading); }

/* ---------- Buttons ---------- */
.wp-block-button__link{ box-shadow:var(--csrwc-shadow-sm); transition:transform .15s ease, background .15s ease; }
.wp-block-button__link:hover{ background:var(--wp--preset--color--accent-2); transform:translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link{ background:transparent; box-shadow:none; border:2px solid rgba(255,255,255,.85); color:#fff; }
.wp-block-button.is-style-outline .wp-block-button__link:hover{ background:rgba(255,255,255,.14); transform:translateY(-2px); }
/* On the clear (overlay-free) photo/video heroes the outline button needs a faint dark fill to stay readable */
.csrwc-hero .is-style-outline .wp-block-button__link{ background:rgba(8,15,28,.42); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }
.csrwc-hero .is-style-outline .wp-block-button__link:hover{ background:rgba(8,15,28,.58); }
.csrwc-btn-ghost .wp-block-button__link{ background:transparent; color:var(--wp--preset--color--navy); border:2px solid var(--wp--preset--color--line); box-shadow:none; }
.csrwc-btn-ghost .wp-block-button__link:hover{ background:var(--wp--preset--color--mist); }

/* ---------- Eyebrow / section rhythm ---------- */
.csrwc-eyebrow{ font-family:var(--wp--preset--font-family--heading); text-transform:uppercase; letter-spacing:.14em; font-weight:700; font-size:.8rem; color:var(--wp--preset--color--blue); margin-bottom:.4rem !important; }
.csrwc-section{ padding-block:2.85rem; }
.csrwc-section--mist{ background:var(--wp--preset--color--mist); }
.csrwc-section--soft{ background:var(--wp--preset--color--blue-soft); }
.csrwc-section--navy{ background:var(--wp--preset--color--navy); }
.csrwc-section--navy, .csrwc-section--navy :where(h1,h2,h3,p,li){ color:#fff !important; }
.csrwc-lede{ font-size:var(--wp--preset--font-size--large); color:var(--wp--preset--color--slate); }
.csrwc-section--navy .csrwc-lede{ color:rgba(255,255,255,.82); }

/* ---------- Hero ---------- */
.csrwc-hero{ min-height:clamp(460px,72vh,680px); align-items:center; }
.csrwc-hero .wp-block-cover__inner-container{ max-width:1240px; width:100%; margin-inline:auto; padding-inline:1.25rem; }
.csrwc-hero h1{ color:#fff; max-width:18ch; }
.csrwc-hero p{ color:rgba(255,255,255,.92); font-size:var(--wp--preset--font-size--large); max-width:46ch; }
.csrwc-hero .wp-block-buttons{ margin-top:1.6rem; }
.csrwc-herostrip{ background:var(--wp--preset--color--navy); }
.csrwc-herostrip :where(p,li){ color:#fff; }

/* ---------- Trust bar ---------- */
.csrwc-trust{ display:flex; flex-wrap:wrap; gap:1rem 2.4rem; align-items:center; justify-content:center; }
.csrwc-trust p{ margin:0; font-weight:600; font-family:var(--wp--preset--font-family--heading); color:var(--wp--preset--color--navy); display:flex; align-items:center; gap:.55rem; }
.csrwc-trust .csrwc-tick{ color:var(--wp--preset--color--success); font-weight:800; }
.csrwc-logos img{ max-height:46px; width:auto; opacity:.9; filter:grayscale(.1); }

/* ---------- Cards (services / features) ---------- */
.csrwc-cards{ gap:1.5rem !important; }
.csrwc-card{ background:#fff; border:1px solid var(--wp--preset--color--line); border-radius:var(--csrwc-radius); overflow:hidden; box-shadow:var(--csrwc-shadow-sm); transition:transform .18s ease, box-shadow .18s ease; display:flex; flex-direction:column; }
.csrwc-card:hover{ transform:translateY(-4px); box-shadow:var(--csrwc-shadow); }
.csrwc-card figure, .csrwc-card .wp-block-image{ margin:0; }
.csrwc-card img{ width:100%; height:210px; object-fit:cover; display:block; }
.csrwc-card .csrwc-cardbody{ padding:1.35rem 1.4rem 1.5rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.csrwc-card h3{ font-size:1.3rem; margin:0; }
.csrwc-card p{ color:var(--wp--preset--color--slate); margin:0; }
.csrwc-card .csrwc-cardlink{ margin-top:auto; font-weight:700; font-family:var(--wp--preset--font-family--heading); color:var(--wp--preset--color--blue); }
.csrwc-card .csrwc-cardlink::after{ content:" \2192"; }

/* ---------- Stats ---------- */
.csrwc-stats{ gap:1.5rem !important; }
.csrwc-stat{ text-align:center; }
.csrwc-stat .csrwc-statnum{ font-family:var(--wp--preset--font-family--heading); font-weight:800; font-size:clamp(2.2rem,4vw,3rem); color:var(--wp--preset--color--blue); line-height:1; }
.csrwc-section--navy .csrwc-stat .csrwc-statnum{ color:var(--wp--preset--color--accent-2); }
.csrwc-stat p:last-child{ color:var(--wp--preset--color--slate); margin-top:.3rem; }

/* ---------- Process steps ---------- */
.csrwc-steps{ counter-reset:step; gap:1.5rem !important; }
.csrwc-step{ position:relative; padding-top:.5rem; }
.csrwc-step::before{ counter-increment:step; content:counter(step); display:flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:50%; background:var(--wp--preset--color--blue); color:#fff; font-family:var(--wp--preset--font-family--heading); font-weight:700; margin-bottom:.8rem; }
.csrwc-step h3{ font-size:1.2rem; margin:.2rem 0 .3rem; }
.csrwc-step p{ color:var(--wp--preset--color--slate); margin:0; }

/* ---------- Before / After ---------- */
.csrwc-ba img{ border-radius:var(--csrwc-radius); width:100%; box-shadow:var(--csrwc-shadow-sm); }
.csrwc-ba figcaption{ text-align:center; color:var(--wp--preset--color--slate); font-size:.95rem; }

/* ---------- Reviews ---------- */
.csrwc-reviews{ gap:1.5rem !important; }
.csrwc-review{ background:#fff; border:1px solid var(--wp--preset--color--line); border-radius:var(--csrwc-radius); padding:1.5rem; box-shadow:var(--csrwc-shadow-sm); }
.csrwc-review .csrwc-stars{ color:#F5A623; letter-spacing:2px; font-size:1.1rem; }
.csrwc-review blockquote, .csrwc-review p{ margin:.5rem 0 0; }
.csrwc-review cite{ display:block; margin-top:.8rem; font-style:normal; font-weight:700; color:var(--wp--preset--color--navy); font-family:var(--wp--preset--font-family--heading); }

/* ---------- Area list ---------- */
.csrwc-arealist a{ display:block; padding:.95rem 1.15rem; background:#fff; border:1px solid var(--wp--preset--color--line); border-radius:12px; font-weight:600; font-family:var(--wp--preset--font-family--heading); color:var(--wp--preset--color--navy); box-shadow:var(--csrwc-shadow-sm); }
.csrwc-arealist a:hover{ border-color:var(--wp--preset--color--blue); color:var(--wp--preset--color--blue); transform:translateY(-2px); transition:.15s; }

/* ---------- CTA band ---------- */
.csrwc-cta{ background:var(--wp--preset--color--navy-2); border-radius:22px; padding:clamp(2rem,5vw,3.4rem) !important; text-align:center; background-image:radial-gradient(120% 140% at 80% -10%, rgba(44,111,179,.55), transparent 60%); }
.csrwc-cta :where(h2,p){ color:#fff !important; }
.csrwc-cta h2{ max-width:22ch; margin-inline:auto; }

/* ---------- FAQ (core/details) ---------- */
.csrwc-faq details{ background:#fff; border:1px solid var(--wp--preset--color--line); border-radius:12px; padding:.4rem 1.2rem; margin-bottom:.8rem; box-shadow:var(--csrwc-shadow-sm); }
.csrwc-faq summary{ cursor:pointer; font-family:var(--wp--preset--font-family--heading); font-weight:600; color:var(--wp--preset--color--navy); padding:.9rem 0; font-size:1.08rem; }
.csrwc-faq details[open] summary{ color:var(--wp--preset--color--blue); }

/* ---------- Content (service/geo body) niceties ---------- */
.csrwc-prose :where(h2){ margin-top:2.2rem; }
.csrwc-prose :where(ul) li{ margin-block:.35rem; }
.csrwc-related a{ font-weight:600; color:var(--wp--preset--color--blue); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--wp--preset--color--navy); color:rgba(255,255,255,.78); padding-block:var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); }
.site-footer :where(h2,h3,strong,.wp-block-site-title){ color:#fff; font-family:var(--wp--preset--font-family--heading); }
.site-footer a{ color:rgba(255,255,255,.78); }
.site-footer a:hover{ color:#fff; }
.site-footer img{ height:60px; width:auto; }
.csrwc-footbar{ border-top:1px solid rgba(255,255,255,.14); margin-top:2rem; padding-top:1.2rem; font-size:.9rem; color:rgba(255,255,255,.6); }
.csrwc-synfcredit{ text-align:center; margin-top:1.1rem !important; color:rgba(255,255,255,.5); font-size:.82rem; }
.csrwc-synfcredit a{ color:rgba(255,255,255,.7); text-decoration:underline; }

/* ---------- Responsive ---------- */
/* ============ v2 component additions ============ */
.csrwc-hero .wp-block-cover__inner-container{ max-width:900px; text-align:center; margin-inline:auto; }
.csrwc-hero h1, .csrwc-hero p{ margin-inline:auto; }
.csrwc-hero .wp-block-buttons{ justify-content:center; }
.csrwc-hero .csrwc-eyebrow{ color:#A9CBEC; margin-bottom:.5rem !important; }
.csrwc-head{ max-width:780px; margin-inline:auto !important; text-align:center; margin-bottom:1.7rem !important; }
.csrwc-head .wp-block-buttons{ justify-content:center; }
.csrwc-head img{ margin-inline:auto; max-height:64px; width:auto; margin-bottom:1rem; }
.csrwc-arealist{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:.8rem; }
.csrwc-arealist p{ margin:0; }
.csrwc-card--plain{ padding:1.7rem 1.6rem; background:#fff; height:100%; }
.csrwc-card--plain h3{ font-size:1.2rem; margin:0 0 .4rem; }
.csrwc-card--plain:hover{ transform:none; box-shadow:var(--csrwc-shadow-sm); }
.csrwc-split{ align-items:center; gap:2.6rem !important; }
.csrwc-feature img{ border-radius:var(--csrwc-radius); box-shadow:var(--csrwc-shadow); width:100%; height:auto; }
.csrwc-gallery img{ border-radius:12px; }
.csrwc-contact{ gap:2.6rem !important; align-items:flex-start; }
.csrwc-contactinfo{ background:var(--wp--preset--color--mist); border-radius:var(--csrwc-radius); padding:1.8rem; }
.csrwc-related-wrap .csrwc-related{ line-height:2; }
.csrwc-related-wrap .csrwc-related a{ color:var(--wp--preset--color--blue); font-weight:600; }
.csrwc-prose{ max-width:820px; margin-inline:auto; }
.csrwc-prose h2{ margin-top:2rem; }
.csrwc-prose ul{ padding-left:1.1rem; }
#breadcrumbs{ font-size:.9rem; color:var(--wp--preset--color--slate); margin-bottom:1.1rem; }
#breadcrumbs a{ color:var(--wp--preset--color--blue); }
.csrwc-crumbs{ margin-bottom:1.1rem !important; }
.csrwc-crumbs #breadcrumbs{ margin:0; }
.csrwc-introlede{ font-size:var(--wp--preset--font-size--large); line-height:1.6; color:var(--wp--preset--color--slate); }
.csrwc-hero h1{ text-shadow:0 2px 22px rgba(8,15,28,.45); }
.csrwc-hero h1 strong{ color:var(--wp--preset--color--accent-2); font-weight:inherit; }
.csrwc-guarantee{ align-items:flex-end !important; gap:2.4rem !important; }
.csrwc-gbadge{ margin:0; }
.csrwc-gbadge img{ max-width:340px; width:100%; margin-inline:auto; display:block; }
@media (max-width:781px){ .csrwc-guarantee{ align-items:center !important; } .csrwc-gbadge img{ max-width:240px; } }
.csrwc-guarantee .wp-block-button__link{ background:var(--wp--preset--color--accent); }
.csrwc-trustbox{ min-height:150px; margin-inline:auto; max-width:540px; }
.csrwc-hero p{ text-shadow:0 1px 12px rgba(8,15,28,.5); }
/* Clear heroes (video = no overlay, image = light tint) — no dark box, legibility comes purely
   from bold weight + a layered shadow: a tight local halo per letter plus broader diffuse layers */
.csrwc-hero--video h1, .csrwc-hero--img h1{ font-weight:800; text-shadow:0 1px 2px rgba(0,0,0,.55), 0 3px 8px rgba(0,0,0,.6), 0 10px 34px rgba(0,0,0,.5); }
.csrwc-hero--video p, .csrwc-hero--video .csrwc-lede, .csrwc-hero--img p, .csrwc-hero--img .csrwc-lede{ color:#fff; font-weight:600; text-shadow:0 1px 3px rgba(0,0,0,.72), 0 2px 10px rgba(0,0,0,.6), 0 6px 22px rgba(0,0,0,.5); }
.csrwc-hero--video .csrwc-eyebrow, .csrwc-hero--img .csrwc-eyebrow{ color:#fff; font-weight:700; text-shadow:0 1px 4px rgba(0,0,0,.7), 0 2px 10px rgba(0,0,0,.6); }
.csrwc-logos{ gap:2.8rem !important; align-items:center; margin-top:1.1rem; }
.csrwc-logos img{ max-height:56px; width:auto; opacity:.9; }
.csrwc-card--plain{ border-top:3px solid var(--wp--preset--color--blue); }

/* ---- feedback round 1 ---- */
.csrwc-tokens{ background:var(--wp--preset--color--navy); gap:.4rem 1.8rem !important; padding:.5rem 1.25rem !important; }
.csrwc-tokens p{ margin:0; color:rgba(255,255,255,.92); font-size:.86rem; font-weight:600; font-family:var(--wp--preset--font-family--heading); }
.csrwc-tokens a{ color:#fff; text-decoration:none; }
.csrwc-token-tp a{ color:#FFCB5B; }
.csrwc-tokens .csrwc-token-gold{ color:#FFCB5B; }
.csrwc-headwa{ display:inline-flex; align-items:center; line-height:0; }
.csrwc-headwa svg{ width:30px; height:30px; fill:#25D366; transition:transform .15s ease, fill .15s ease; }
.csrwc-headwa:hover svg{ transform:scale(1.08); fill:#1da851; }
.csrwc-btnwa{ width:1.05em; height:1.05em; fill:currentColor; vertical-align:-0.16em; margin-right:.5em; display:inline-block; }
.csrwc-footcontact{ overflow-wrap:break-word; }
.csrwc-footcontact a{ overflow-wrap:break-word; word-break:normal; }
.csrwc-review .csrwc-stars{ color:#F5A623; letter-spacing:2px; font-size:1.15rem; margin:0 0 .2rem; }
.csrwc-review .csrwc-cite{ margin-top:1rem !important; font-weight:700; color:var(--wp--preset--color--navy); font-family:var(--wp--preset--font-family--heading); }
.csrwc-review p{ color:var(--wp--preset--color--ink); }
.csrwc-hero video.wp-block-cover__video-background{ object-fit:cover; width:100%; height:100%; }
/* Real hero poster image (the LCP element): paints instantly, high priority. Video fades in over it on desktop; on phones the video never loads so the poster is the hero. */
.csrwc-hero--video{ background-color:var(--wp--preset--color--navy); }
.csrwc-hero__poster{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; margin:0; }
.csrwc-hero--video video.wp-block-cover__video-background{ z-index:1; opacity:0; transition:opacity .55s ease; }
.csrwc-hero--video video.is-live{ opacity:1; }

/* ---- service video feature ---- */
.csrwc-videofeature{ position:relative; max-width:980px; margin:0 auto; border-radius:18px; overflow:hidden; aspect-ratio:16/9; background:#0a1b30; box-shadow:0 36px 70px -28px rgba(0,0,0,.6); }
.csrwc-videofeature .csrwc-video{ width:100%; height:100%; display:block; object-fit:cover; background:#0a1b30; }
.csrwc-video__btn{ position:absolute; inset:0; margin:auto; width:86px; height:86px; border-radius:50%; border:0; cursor:pointer; background:var(--wp--preset--color--accent); display:grid; place-items:center; box-shadow:0 12px 30px rgba(0,0,0,.4); transition:transform .15s ease, background .15s ease; }
.csrwc-video__btn svg{ width:34px; height:34px; fill:#fff; margin-left:5px; }
.csrwc-video__btn:hover{ transform:scale(1.07); background:var(--wp--preset--color--accent-2); }
.csrwc-videofeature.is-playing .csrwc-video__btn{ display:none; }
.csrwc-section--navy .csrwc-eyebrow{ color:#A9CBEC !important; }

/* ---- Scotland coverage map ---- */
.csrwc-mapwrap{ max-width:1000px; margin:0 auto; }
.csrwc-scotmap{ width:100%; height:auto; display:block; overflow:visible; max-width:760px; margin:0 auto; }
.csrwc-scotmap .csrwc-scotland{ fill:#173B7A; }
.csrwc-scotmap .csrwc-lead{ stroke:var(--wp--preset--color--navy); stroke-width:1.6; opacity:.3; }
.csrwc-scotmap .csrwc-dot{ fill:var(--wp--preset--color--accent); stroke:#fff; stroke-width:2.5; transition:r .15s ease, stroke-width .15s ease, fill .15s ease; }
.csrwc-scotmap .csrwc-lbl{ font-family:'Hill House','Marcellus SC',Georgia,serif; font-size:35px; font-weight:500; fill:var(--wp--preset--color--navy); letter-spacing:0; }
.csrwc-scotmap .csrwc-scotarea{ cursor:pointer; }
.csrwc-scotmap .csrwc-scotarea:hover .csrwc-lbl{ fill:var(--wp--preset--color--accent-2); }
.csrwc-scotmap .csrwc-scotarea:hover .csrwc-dot{ r:10; stroke-width:3.5; fill:var(--wp--preset--color--accent-2); }
.csrwc-scotmap .csrwc-scotarea:hover .csrwc-lead{ opacity:.6; }
.csrwc-scotmap .csrwc-scotarea:focus-visible .csrwc-lbl{ fill:var(--wp--preset--color--accent-2); text-decoration:underline; }
.csrwc-scotlist{ display:none; }
@media (max-width:781px){
  .csrwc-scotmap{ display:none; }
  .csrwc-scotlist{ display:grid; grid-template-columns:1fr 1fr; gap:.6rem 1.4rem; list-style:none; max-width:430px; margin:0 auto; padding:0; }
  .csrwc-scotlist li{ margin:0; }
  .csrwc-scotlist a{ font-family:'Hill House','Marcellus SC',Georgia,serif; font-weight:500; color:var(--wp--preset--color--navy); font-size:1.35rem; letter-spacing:0; text-decoration:none; display:inline-flex; align-items:center; gap:.5rem; }
  .csrwc-scotlist a::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--wp--preset--color--accent); flex:0 0 auto; }
  .csrwc-scotlist a:hover{ color:var(--wp--preset--color--accent-2); }
}
@media (max-width:781px){
  .csrwc-tokens{ flex-wrap:wrap; justify-content:center; gap:.25rem .9rem !important; padding:.45rem .8rem !important; }
  .csrwc-tokens p{ white-space:nowrap; font-size:.76rem; }
  .csrwc-tokens p:nth-child(2), .csrwc-tokens p:nth-child(5){ display:none; }
  .csrwc-headwa{ display:none; }
}

/* ---- round 2: gap fix + social + mobile ---- */
.wp-site-blocks > main{ margin-block-start:0 !important; }
main.wp-block-group{ margin-top:0 !important; padding-top:0 !important; }
.wp-block-post-content > *:first-child{ margin-top:0 !important; }
.csrwc-social{ margin-top:.4rem; }
.csrwc-social a{ color:rgba(255,255,255,.78); font-weight:600; }
.csrwc-social a:hover{ color:#fff; }
@media (max-width:781px){
  .csrwc-section{ padding-block:2.5rem !important; }
  .csrwc-head{ margin-bottom:1.6rem !important; }
  .csrwc-hero{ min-height:78vh; }
  .csrwc-hero h1{ font-size:2.15rem !important; line-height:1.12; }
  .csrwc-hero p, .csrwc-hero .csrwc-lede{ font-size:1.05rem !important; }
  .csrwc-hero .wp-block-buttons, .csrwc-cta .wp-block-buttons{ flex-direction:column; align-items:stretch; width:100%; }
  .csrwc-hero .wp-block-button, .csrwc-cta .wp-block-button{ width:100%; }
  .csrwc-hero .wp-block-button__link, .csrwc-cta .wp-block-button__link{ display:block; text-align:center; }
  .csrwc-stats{ display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:1.4rem .6rem !important; width:100% !important; max-width:340px !important; margin:0 auto !important; }
  .csrwc-stats .wp-block-column{ flex-basis:auto !important; min-width:0 !important; width:auto !important; padding:0 !important; margin:0 !important; }
  .csrwc-cta{ padding:1.7rem !important; }
  .site-header .wp-block-site-logo img, .site-header img.custom-logo{ height:40px; }
  .site-header{ padding-block:.45rem !important; }
  .csrwc-introlede{ font-size:1.05rem !important; }
  h1,h2{ overflow-wrap:break-word; }
  .csrwc-stat p:last-child{ font-size:.8rem; line-height:1.25; }
  .csrwc-stat .csrwc-statnum{ font-size:1.95rem; }
  .csrwc-video__btn{ width:62px; height:62px; }
  .csrwc-video__btn svg{ width:26px; height:26px; }
}
html, body{ overflow-x:hidden; max-width:100%; }

@media (max-width:781px){
  .csrwc-card img{ height:200px; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open{ background:var(--wp--preset--color--navy); }
  .csrwc-hero{ min-height:520px; }
  .csrwc-split{ gap:1.5rem !important; }
  .csrwc-section{ padding-block:var(--wp--preset--spacing--50); }
}

/* ---- Premium systems: single row ---- */
.csrwc-logos{ flex-wrap:nowrap !important; gap:2.6rem !important; max-width:1160px !important; width:100%; margin-inline:auto; }
.csrwc-logos img{ max-height:72px; flex-shrink:0; }
@media (max-width:960px){ .csrwc-logos img{ flex-shrink:1; } }
@media (max-width:781px){ .csrwc-logos{ flex-wrap:wrap !important; gap:1.4rem 2rem !important; max-width:none !important; } .csrwc-logos img{ max-height:52px; } }

/* ---- Google reviews widget ---- */
.csrwc-googrow{ margin-top:1.5rem; }
/* EWI process stages — 2-up labelled panels (before / insulation / render / after) */
.csrwc-stagegal{ gap:1rem !important; }
.csrwc-stagegal .wp-block-image{ margin:0; }
.csrwc-stagegal .wp-block-image img{ border-radius:14px; width:100%; aspect-ratio:16/6; object-fit:cover; display:block; box-shadow:var(--csrwc-shadow-sm); }
@media (max-width:600px){ .csrwc-stagegal.columns-2 .wp-block-image{ width:100% !important; } }
/* EWI numbered vertical steps (one per row) */
.csrwc-stagesteps{ display:flex; flex-direction:column; gap:1.5rem; max-width:880px; margin-inline:auto; }
.csrwc-stagestep{ position:relative; margin:0; border-radius:16px; overflow:hidden; box-shadow:var(--csrwc-shadow-sm); }
.csrwc-stagestep img{ width:100%; display:block; aspect-ratio:16/7; object-fit:cover; }
.csrwc-stagenum{ position:absolute; top:14px; left:14px; z-index:2; width:48px; height:48px; border-radius:50%; background:var(--wp--preset--color--navy); color:#fff; font-family:var(--wp--preset--font-family--heading); font-weight:800; font-size:1.3rem; display:grid; place-items:center; box-shadow:0 6px 16px rgba(8,15,28,.4); border:2px solid rgba(255,255,255,.9); }
@media (max-width:600px){ .csrwc-stagestep img{ aspect-ratio:16/9; } .csrwc-stagenum{ width:40px; height:40px; font-size:1.1rem; } }
/* Contact: quote-form CTA card (replaces the embedded form) */
.csrwc-formcta{ border-top:3px solid var(--wp--preset--color--accent); padding:1.9rem 1.7rem; }
/* small ProPERLA test/BBA graphic under the CTA (kept small so it stays sharp) */
.csrwc-propdiagram{ margin-top:1.3rem; }
.csrwc-propdiagram img{ max-width:190px; height:auto; border-radius:8px; }
/* home before/after — side by side (the two photos are different angles, so no wipe) */
.csrwc-bafeature{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; max-width:1040px; margin:0 auto; }
.csrwc-bafpane{ position:relative; margin:0; border-radius:16px; overflow:hidden; box-shadow:var(--csrwc-shadow-sm); }
.csrwc-bafpane img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
@media (max-width:600px){ .csrwc-bafeature{ grid-template-columns:1fr; } }
.csrwc-formcta h2{ margin-top:0; font-size:1.35rem; }
.csrwc-formcta .wp-block-buttons{ margin-top:1.15rem; }
/* Case Studies page (Ian-editable, seeded outside the generator) */
.csrwc-cs-hero{ text-align:center; }
/* full-width constrained group: content centres to the site's 820px column, matching the intro/header above */
.csrwc-cs-list h2{ margin-top:.5rem; }
.csrwc-cs-ba{ gap:1.4rem !important; margin-block:1.2rem; }
.csrwc-cs-shot{ margin:0; }
.csrwc-cs-shot img{ border-radius:14px; width:100%; aspect-ratio:4/3; object-fit:cover; box-shadow:var(--csrwc-shadow-sm); display:block; }
.csrwc-cs-shot figcaption{ text-align:center; font-weight:700; color:var(--wp--preset--color--navy); font-family:var(--wp--preset--font-family--heading); margin-top:.55rem; }
.csrwc-cs-sep{ margin:2.6rem 0 2.2rem; border:0; border-top:1px solid var(--wp--preset--color--line); }
.csrwc-cs-list .wp-block-buttons{ margin-top:1rem; }
/* outline button defaults to white (for dark heroes); make it navy so it is visible on the light case-studies page */
.csrwc-cs-list .wp-block-button.is-style-outline .wp-block-button__link{ color:var(--wp--preset--color--navy); border-color:var(--wp--preset--color--navy); }
.csrwc-cs-list .wp-block-button.is-style-outline .wp-block-button__link:hover{ background:var(--wp--preset--color--navy); color:#fff; }
.csrwc-google{ display:flex; justify-content:center; }
.csrwc-google__card{ display:inline-flex; align-items:center; gap:.9rem; background:#fff; border:1px solid var(--wp--preset--color--line); border-radius:14px; padding:.75rem 1.4rem; box-shadow:var(--csrwc-shadow-sm); text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
.csrwc-google__card:hover{ transform:translateY(-2px); box-shadow:var(--csrwc-shadow); }
.csrwc-gicon{ width:34px; height:34px; flex:0 0 auto; }
.csrwc-google__txt{ display:flex; flex-direction:column; line-height:1.25; }
.csrwc-google__stars{ color:#FBBC05; letter-spacing:2px; font-size:1rem; }
.csrwc-google__txt strong{ color:var(--wp--preset--color--navy); font-family:var(--wp--preset--font-family--heading); font-size:.98rem; }
.csrwc-google__read{ color:var(--wp--preset--color--slate); font-size:.84rem; }

/* ---- Reassurance band ---- */
.csrwc-reassures{ gap:1.2rem !important; }
.csrwc-reassure{ background:#fff; border:1px solid var(--wp--preset--color--line); border-top:3px solid var(--wp--preset--color--accent); border-radius:var(--csrwc-radius); padding:1.2rem 1.3rem; }
.csrwc-reassure h3{ font-size:1.08rem; margin:0 0 .3rem; }
.csrwc-reassure p{ color:var(--wp--preset--color--slate); margin:0; font-size:.94rem; }
.csrwc-reassure--todo{ background:#FFF7E6; border-top-color:#E0A800; border-style:dashed; }
.csrwc-reassure--todo p{ color:#8a6d1a; font-style:italic; }

/* ---- Floating WhatsApp popup ---- */
.csrwc-wafloat{ position:fixed; right:18px; bottom:18px; z-index:200; }
.csrwc-wafloat__btn{ width:60px; height:60px; border-radius:50%; border:0; background:#25D366; cursor:pointer; box-shadow:0 10px 26px rgba(0,0,0,.28); display:grid; place-items:center; transition:transform .15s ease; }
.csrwc-wafloat__btn:hover{ transform:scale(1.06); }
.csrwc-wafloat__btn svg{ width:34px; height:34px; fill:#fff; }
.csrwc-wafloat__panel{ position:absolute; right:0; bottom:74px; width:300px; max-width:78vw; background:#fff; border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,.28); overflow:hidden; }
.csrwc-wafloat__head{ background:#075E54; color:#fff; padding:.85rem 1rem; display:flex; flex-direction:column; }
.csrwc-wafloat__head strong{ font-size:.92rem; }
.csrwc-wafloat__head span{ font-size:.74rem; opacity:.85; }
.csrwc-wafloat__body{ padding:1rem; }
.csrwc-wafloat__body p{ margin:0 0 .9rem; color:var(--wp--preset--color--ink); font-size:.9rem; }
.csrwc-wafloat__start{ display:block; text-align:center; background:#25D366; color:#fff !important; font-weight:700; font-family:var(--wp--preset--font-family--heading); padding:.7rem; border-radius:10px; text-decoration:none; }
.csrwc-wafloat__start:hover{ background:#1da851; }
@media (max-width:781px){ .csrwc-wafloat{ right:14px; bottom:14px; } .csrwc-wafloat__btn{ width:54px; height:54px; } }

/* ---- Before / After slider ---- */
.csrwc-baslider{ margin:0 auto 1.2rem; max-width:560px; }
.csrwc-baslider__wrap{ position:relative; border-radius:var(--csrwc-radius); overflow:hidden; box-shadow:var(--csrwc-shadow); line-height:0; }
.csrwc-baslider__after{ display:block; width:100%; height:auto; }
.csrwc-baslider__before{ position:absolute; top:0; left:0; height:100%; width:50%; overflow:hidden; }
.csrwc-baslider__before img{ position:absolute; top:0; left:0; height:100%; width:auto; max-width:none; }
.csrwc-baslider__handle{ position:absolute; top:0; bottom:0; left:50%; width:3px; margin-left:-1.5px; background:#fff; box-shadow:0 0 0 1px rgba(0,0,0,.15); pointer-events:none; }
.csrwc-baslider__handle::after{ content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:42px; height:42px; border-radius:50%; background:var(--wp--preset--color--accent); border:3px solid #fff; box-shadow:0 4px 12px rgba(0,0,0,.3); }
.csrwc-baslider__range{ position:absolute; top:0; left:0; width:100%; height:100%; margin:0; opacity:0; cursor:ew-resize; }
.csrwc-baslider__tag{ position:absolute; bottom:12px; color:#fff; background:rgba(8,19,38,.72); font-family:var(--wp--preset--font-family--heading); font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; padding:.3rem .6rem; border-radius:6px; pointer-events:none; }
.csrwc-baslider__tag--b{ left:12px; }
.csrwc-baslider__tag--a{ right:12px; }

/* ---- Before / after gallery (per service: before on top, after below) ---- */
.csrwc-bagrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.1rem; max-width:1040px; margin:0 auto; } /* max 3 per row, drops to 2/1 on narrow */
.csrwc-bacard{ margin:0; border-radius:14px; overflow:hidden; box-shadow:var(--csrwc-shadow-sm); background:#fff; }
.csrwc-bapane{ position:relative; display:block; line-height:0; }
.csrwc-bapane img{ width:100%; height:175px; object-fit:cover; display:block; }
.csrwc-bapane + .csrwc-bapane{ border-top:3px solid var(--wp--preset--color--accent); }
.csrwc-batag{ position:absolute; top:8px; left:8px; background:rgba(8,19,38,.78); color:#fff; font-family:var(--wp--preset--font-family--heading); font-style:normal; font-weight:700; font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; padding:.25rem .55rem; border-radius:5px; }
.csrwc-batag--a{ background:var(--wp--preset--color--accent); color:var(--wp--preset--color--navy); }
@media (max-width:600px){ .csrwc-bagrid{ grid-template-columns:repeat(2,1fr); gap:.7rem; } .csrwc-bapane img{ height:132px; } }
/* before/after sets: one property per row, elevation-annotated */
.csrwc-basets{ display:flex; flex-direction:column; gap:1.3rem; max-width:1040px; margin:0 auto; }
.csrwc-baset{ display:flex; flex-wrap:wrap; gap:1.1rem; background:#fff; border-radius:16px; padding:1rem; box-shadow:var(--csrwc-shadow-sm); }
.csrwc-bapair{ flex:1 1 300px; min-width:0; }
.csrwc-bapair__ang{ display:block; font-family:var(--wp--preset--font-family--heading); font-weight:700; font-size:.78rem; letter-spacing:.07em; text-transform:uppercase; color:var(--wp--preset--color--navy); margin:0 0 .55rem; }
.csrwc-bapair__duo{ display:grid; grid-template-columns:1fr 1fr; gap:.5rem; }
.csrwc-baset .csrwc-bapane{ border-radius:10px; overflow:hidden; }
.csrwc-baset .csrwc-bapane img{ height:auto; aspect-ratio:4/3; }
@media (max-width:600px){ .csrwc-baset{ padding:.7rem; gap:.85rem; } .csrwc-bapair__duo{ gap:.4rem; } }
/* photo lightbox (service + geo work photos) */
.csrwc-bapane img,.csrwc-gallery .wp-block-image img,.csrwc-stagestep img,.csrwc-bafeature img,.csrwc-cs-shot img{ cursor:zoom-in; }
.csrwc-batag,.csrwc-stagenum,.csrwc-stagecap{ pointer-events:none; }
.csrwc-lb{ position:fixed; inset:0; z-index:100000; background:rgba(8,19,38,.94); display:flex; align-items:center; justify-content:center; padding:3vh 4vw; }
.csrwc-lb[hidden]{ display:none; }
.csrwc-lb__fig{ margin:0; max-width:100%; max-height:100%; display:flex; flex-direction:column; align-items:center; gap:.75rem; }
.csrwc-lb__img{ max-width:100%; max-height:84vh; width:auto; height:auto; object-fit:contain; border-radius:10px; box-shadow:0 30px 80px -18px rgba(0,0,0,.75); background:#0a1b30; }
.csrwc-lb__cap{ color:#fff; font-family:var(--wp--preset--font-family--heading); font-weight:700; letter-spacing:.06em; text-transform:uppercase; font-size:.82rem; opacity:.9; text-align:center; }
.csrwc-lb__x,.csrwc-lb__nav{ position:absolute; border:0; cursor:pointer; color:#fff; background:rgba(255,255,255,.14); border-radius:50%; display:flex; align-items:center; justify-content:center; line-height:1; transition:background .15s ease; }
.csrwc-lb__x:hover,.csrwc-lb__nav:hover{ background:rgba(255,255,255,.28); }
.csrwc-lb__x{ top:16px; right:18px; width:46px; height:46px; font-size:1.9rem; }
.csrwc-lb__nav{ top:50%; transform:translateY(-50%); width:54px; height:54px; font-size:2.2rem; padding-bottom:4px; }
.csrwc-lb__prev{ left:18px; } .csrwc-lb__next{ right:18px; }
.csrwc-lb.is-single .csrwc-lb__nav{ display:none; }
@media (max-width:600px){ .csrwc-lb__nav{ width:44px; height:44px; font-size:1.8rem; } .csrwc-lb__prev{ left:8px; } .csrwc-lb__next{ right:8px; } .csrwc-lb__img{ max-height:80vh; } }

/* ---- Mobile header + overlay menu ---- */
@media (max-width:781px){
  /* backdrop-filter on the header traps the fixed overlay menu inside the header height; drop it on mobile */
  .site-header{ backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
  /* declutter the top bar: drop the phone text, keep Free Quote + hamburger (hamburger far right) */
  .csrwc-headphone{ display:none; }
  .site-header .csrwc-headcta{ order:5; margin-right:.2rem; }
  .site-header .wp-block-navigation{ order:9; }
  .csrwc-headcta a{ padding:.5rem .85rem !important; font-size:.95rem; }
  /* hamburger button */
  .wp-block-navigation__responsive-container-open{ color:var(--wp--preset--color--navy) !important; padding:.2rem; }
  .wp-block-navigation__responsive-container-open svg{ width:30px; height:30px; fill:currentColor; }
  /* open overlay: readable white-on-navy */
  .wp-block-navigation__responsive-container.is-menu-open{ background:var(--wp--preset--color--navy) !important; padding:1.4rem 1.2rem; }
  /* even spacing, everything centred (padding-based so top-level and submenu items match) */
  .is-menu-open .wp-block-navigation__container{ gap:0 !important; align-items:center !important; text-align:center; width:100%; }
  .is-menu-open .wp-block-navigation__responsive-container-content{ margin:0 auto; width:100%; }
  .is-menu-open .wp-block-navigation-item{ text-align:center; width:100%; justify-content:center !important; }
  /* WP's items-justified-right puts margin-left:auto on the links (right-aligns them on desktop).
     In the overlay, force each link to fill its item as a centred block so nothing leans right. */
  .is-menu-open .wp-block-navigation-item__content{ display:block !important; flex:1 1 100% !important; width:100% !important; text-align:center !important; margin:0 !important; padding:.62rem 0 !important; }
  .is-menu-open .wp-block-navigation-submenu{ flex-direction:column !important; align-items:center !important; justify-content:center !important; width:100% !important; }
  .is-menu-open .wp-block-navigation__submenu-container{ position:static !important; width:100% !important; min-width:0 !important; align-items:center !important; background:transparent !important; border:0 !important; padding:0 !important; margin:0 auto !important; }
  .is-menu-open .wp-block-navigation-submenu > *{ margin-inline:auto !important; }
  .is-menu-open a,
  .is-menu-open .wp-block-navigation-item__content,
  .is-menu-open .wp-block-navigation-item__label{ color:#fff !important; font-family:var(--wp--preset--font-family--heading); font-weight:600; font-size:1.2rem; text-align:center; }
  .is-menu-open .wp-block-navigation__submenu-container a{ color:rgba(255,255,255,.82) !important; font-size:1rem; font-weight:500; }
  .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{ padding:.42rem 0 !important; }
  .is-menu-open .wp-block-navigation-submenu__toggle{ color:#fff !important; }
  .is-menu-open .wp-block-navigation-submenu__toggle svg,
  .is-menu-open .wp-block-navigation__responsive-container-close svg{ fill:#fff; }
  .is-menu-open .wp-block-navigation__responsive-container-close{ color:#fff !important; }
  /* Areas: show just the parent link on mobile, not the 10 towns */
  .csrwc-m-collapse .wp-block-navigation__submenu-container{ display:none !important; }
  .csrwc-m-collapse .wp-block-navigation-submenu__toggle{ display:none !important; }
  /* drop the duplicate "Roughcasting" link and the "Services" header; list the services flat */
  .is-menu-open .csrwc-m-hide{ display:none !important; }
  .csrwc-m-flatten > .wp-block-navigation-item__content,
  .csrwc-m-flatten > .wp-block-navigation__submenu-icon,
  .csrwc-m-flatten > .wp-block-navigation-submenu__toggle{ display:none !important; }
  .csrwc-m-flatten > .wp-block-navigation__submenu-container{ display:flex !important; }
  .csrwc-m-flatten > .wp-block-navigation__submenu-container a{ font-size:1.2rem !important; color:#fff !important; font-weight:600 !important; }
}

/* Hero Google rating line, shown beside the main CTA button */
.csrwc-hero-cta{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.9rem 1.2rem; }
.csrwc-hero-rating{ margin:0; }
.csrwc-hero-rating a{ display:inline-flex; align-items:center; gap:.4rem; color:#fff; font-weight:700; font-size:.95rem; text-decoration:none; text-shadow:0 1px 3px rgba(0,0,0,.72), 0 2px 10px rgba(0,0,0,.6); }
.csrwc-hero-rating a:hover{ text-decoration:underline; }
.csrwc-hero-rating__stars{ color:#FFC94A; letter-spacing:.05em; }
