/* =====================================================================
   BlueStone site restyle (inner pages) — added 2026-12-04
   Loaded after Flatsome + custom.css on every page except the homepage.
   1. Tokens   2. Header/footer chrome vs Flatsome   3. Page content
   ===================================================================== */

/* ---------- 1. Tokens (same as the homepage design) ---------- */
body.bs-site{
  --navy:#0F2A4F;--deep:#0B1E38;--ink:#14202E;--blue:#00467F;--green:#78A22F;--green-d:#4F7417;--green-l:#A8C66C;
  --paper:#FAF7F1;--stone:#EFE9DE;--line:#DDD5C7;--slate:#5C6670;--mist:#B9C3CF;
  --f-display:'Fraunces',Georgia,serif;--f-body:'Lato',system-ui,-apple-system,'Segoe UI',sans-serif;--ease:cubic-bezier(.2,.7,.2,1);
  background:var(--paper);color:var(--ink);font-family:var(--f-body);-webkit-font-smoothing:antialiased;
}
body.bs-site #wrapper,body.bs-site #main{background:var(--paper)}

/* ---------- 2. Chrome: neutralise Flatsome base styles inside the design header/footer ---------- */
.bs-chrome--hdr{display:contents}            /* lets the sticky header stick to the whole page */
.bs-chrome{font-family:var(--f-body);font-size:17px;line-height:1.65;color:var(--ink);text-align:left}
.bs-chrome button{margin:0;min-height:0;line-height:normal;text-transform:none;letter-spacing:normal;max-width:none;font-weight:inherit;text-shadow:none;box-shadow:none}
.bs-chrome li{margin:0}
.bs-chrome ul,.bs-chrome dl,.bs-chrome dd{margin:0;padding:0}
.bs-chrome a:hover{text-decoration:none}
.bs-chrome img{max-width:none}
.bs-chrome h2,.bs-chrome h3{text-rendering:optimizeLegibility}
.bs-chrome .ftr p{margin-bottom:0}
.bs-chrome .mm summary{list-style:none}
/* old theme pieces that the new chrome replaces */
body.bs-site .back-to-top,body.bs-site #header,body.bs-site .absolute-footer{display:none !important}

/* ---------- 3. Page content ---------- */
body.bs-site:not(.bs-custom) #content{font-family:var(--f-body);color:var(--ink);font-size:17px;line-height:1.7}
body.bs-site:not(.bs-custom) #content p{color:#3A4552}
body.bs-site:not(.bs-custom) #content :is(h1,h2,h3){font-family:var(--f-display);font-weight:600;color:var(--navy);text-transform:none;letter-spacing:-.01em;line-height:1.12}
body.bs-site:not(.bs-custom) #content h1{font-size:clamp(36px,4.6vw,62px)}
body.bs-site:not(.bs-custom) #content h2{font-size:clamp(28px,3vw,42px);margin-bottom:.55em}
body.bs-site:not(.bs-custom) #content h3{font-size:clamp(22px,2.1vw,30px);margin-bottom:.5em}
body.bs-site:not(.bs-custom) #content :is(h4,h5,h6){font:900 13px/1.3 var(--f-body);letter-spacing:.14em;text-transform:uppercase;color:var(--green-d)}
body.bs-site:not(.bs-custom) #content :is(h1,h2,h3) [data-text-color]{color:inherit !important}
body.bs-site:not(.bs-custom) #content :is(h1,h2,h3) em{font-style:italic;color:var(--green-d)}
body.bs-site:not(.bs-custom) #content a:not(.button):not([class*="btn"]){color:var(--blue);text-decoration:underline;text-decoration-color:rgba(0,70,127,.3);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
body.bs-site:not(.bs-custom) #content a:not(.button):not([class*="btn"]):hover{color:var(--green-d);text-decoration-color:currentColor}
body.bs-site:not(.bs-custom) #content ul li::marker{color:var(--green)}
body.bs-site:not(.bs-custom) #content strong,body.bs-site:not(.bs-custom) #content b{color:var(--ink)}

/* Section rhythm: generous spacing, alternating paper / stone */
body.bs-site:not(.bs-custom) #content > .section,body.bs-site:not(.bs-custom) #content .section{padding-top:clamp(56px,7vw,100px) !important;padding-bottom:clamp(56px,7vw,100px) !important}
body.bs-site:not(.bs-custom) #content .section .section-bg{background-color:var(--paper) !important;background-image:none}
body.bs-site:not(.bs-custom) #content .section:nth-of-type(even):not(.dark) .section-bg{background-color:var(--stone) !important}
body.bs-site:not(.bs-custom) #content .section-bg-overlay{background:none !important}
body.bs-site:not(.bs-custom) #content > .row{padding-top:clamp(48px,6vw,88px);padding-bottom:clamp(24px,3vw,40px)}

/* Page hero: the banner at the top of each page becomes a navy band with contour lines */
body.bs-site:not(.bs-custom) #content > .section:first-child:has(.banner),body.bs-site:not(.bs-custom) #content > .banner:first-child,
body.bs-site:not(.bs-custom) #content > .section:first-child:has(.banner) .section-bg{background:var(--deep) !important;padding:0 !important}
body.bs-site:not(.bs-custom) #content .banner{background:var(--deep);overflow:hidden}
body.bs-site:not(.bs-custom) #content .banner .banner-bg .bg{opacity:.38 !important;filter:saturate(.85)}
body.bs-site:not(.bs-custom) #content .banner .overlay{background:linear-gradient(100deg,rgba(11,30,56,.92) 0%,rgba(11,30,56,.7) 55%,rgba(11,30,56,.45) 100%) !important}
body.bs-site:not(.bs-custom) #content .banner::after{content:"";position:absolute;inset:-20% -10% -20% 30%;background:url("../assets/contours.svg") center/cover no-repeat;opacity:.16;pointer-events:none;z-index:1}
body.bs-site:not(.bs-custom) #content .banner .banner-layers{z-index:2}
body.bs-site:not(.bs-custom) #content .banner .text-box{width:min(920px,92%) !important}
body.bs-site:not(.bs-custom) #content .banner :is(h1,h2){color:#fff;font-size:clamp(38px,5vw,68px);line-height:1.04;text-transform:none;margin-bottom:.35em}
body.bs-site:not(.bs-custom) #content .banner :is(h1,h2)::before{content:"BlueStone Landscape";display:block;font:700 12px/1.2 var(--f-body);letter-spacing:.2em;text-transform:uppercase;color:var(--green-l);margin:0 0 22px}
body.bs-site:not(.bs-custom) #content .banner p{color:#D6DEE8;font-size:clamp(16px,1.3vw,19px);max-width:62ch;margin-left:auto;margin-right:auto}
body.bs-site:not(.bs-custom) #content .banner .text-left p{margin-left:0}
body.bs-site:not(.bs-custom) #content > .section:first-child .banner{padding-top:clamp(150px,18vw,240px) !important}

/* Dark sections & message boxes: navy panels with contour texture */
body.bs-site:not(.bs-custom) #content .section.dark .section-bg,body.bs-site:not(.bs-custom) #content .message-box{background-color:var(--navy) !important}
body.bs-site:not(.bs-custom) #content .message-box{position:relative;overflow:hidden;border-radius:28px 0 28px 0;padding:clamp(36px,5vw,72px) clamp(24px,5vw,72px) !important}
body.bs-site:not(.bs-custom) #content .message-box .message-box-bg-image,body.bs-site:not(.bs-custom) #content .message-box .message-box-bg-overlay{opacity:.12 !important}
body.bs-site:not(.bs-custom) #content .message-box::after{content:"";position:absolute;inset:-30% -20% -30% 40%;background:url("../assets/contours.svg") center/cover no-repeat;opacity:.18;pointer-events:none}
body.bs-site:not(.bs-custom) #content :is(.dark,.message-box) :is(h1,h2,h3){color:#fff}
body.bs-site:not(.bs-custom) #content :is(.dark,.message-box) p{color:#C9D3DF}
body.bs-site:not(.bs-custom) #content :is(.dark,.message-box) a:not(.button){color:var(--green-l)}

/* Buttons: the design's square, uppercase buttons */
body.bs-site #content .button,body.bs-site #content input[type=submit]{display:inline-flex !important;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:0 26px !important;border-radius:2px !important;font:900 14px/1 var(--f-body) !important;letter-spacing:.08em;text-transform:uppercase;background:var(--green) !important;color:var(--deep) !important;border:1.5px solid #5E8424 !important;box-shadow:none !important;transition:background .3s var(--ease),transform .3s var(--ease);margin:10px 12px 10px 0}
body.bs-site:not(.bs-custom) #content .button::after{content:"";width:16px;height:12px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h14M9 1l5 5-5 5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h14M9 1l5 5-5 5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .35s var(--ease)}
body.bs-site:not(.bs-custom) #content .button:hover{background:#8CB53E !important}
body.bs-site:not(.bs-custom) #content .button:hover::after{transform:translateX(5px)}
body.bs-site:not(.bs-custom) #content .button span{line-height:1.2}
body.bs-site:not(.bs-custom) #content .button.is-outline,body.bs-site:not(.bs-custom) #content .button.secondary,body.bs-site:not(.bs-custom) #content .button.white{background:transparent !important;color:var(--navy) !important;border-color:var(--navy) !important}
body.bs-site:not(.bs-custom) #content .button.is-outline:hover,body.bs-site:not(.bs-custom) #content .button.secondary:hover,body.bs-site:not(.bs-custom) #content .button.white:hover{background:var(--navy) !important;color:#fff !important}
body.bs-site:not(.bs-custom) #content :is(.dark,.message-box,.banner) .button.is-outline,body.bs-site:not(.bs-custom) #content :is(.dark,.message-box,.banner) .button.white{color:#fff !important;border-color:rgba(255,255,255,.55) !important}
body.bs-site:not(.bs-custom) #content :is(.dark,.message-box,.banner) .button.is-outline:hover{background:#fff !important;color:var(--deep) !important}

/* Images: the design's cut-corner frames */
body.bs-site:not(.bs-custom) #content .img .img-inner{border-radius:24px 0 24px 0;overflow:hidden;box-shadow:0 24px 48px rgba(11,30,56,.16) !important}
body.bs-site:not(.bs-custom) #content .img .img-inner img{transition:transform 1.2s var(--ease)}
body.bs-site:not(.bs-custom) #content .img:hover .img-inner img{transform:scale(1.04)}
body.bs-site:not(.bs-custom) #content .row-large > .col{padding-bottom:0}
body.bs-site:not(.bs-custom) #content .col-inner > h3:first-child,body.bs-site:not(.bs-custom) #content .col-inner > h2:first-child{margin-top:0}

/* Section titles from the [title] shortcode (gallery etc.) */
body.bs-site:not(.bs-custom) #content .section-title-container{margin-bottom:28px}
body.bs-site:not(.bs-custom) #content .section-title{border:0}
body.bs-site:not(.bs-custom) #content .section-title b{display:none}
body.bs-site:not(.bs-custom) #content .section-title-main{font:600 clamp(24px,2.4vw,34px)/1.15 var(--f-display);color:var(--navy);text-transform:none;letter-spacing:0;border:0;padding:0}

/* Banner grids / galleries */
body.bs-site:not(.bs-custom) #content .banner-grid-wrapper .banner,body.bs-site:not(.bs-custom) #content .gallery-col .col-inner{border-radius:20px 0 20px 0;overflow:hidden}

/* Default page template title */
body.bs-site .page-title,body.bs-site .entry-header{background:var(--deep)}
body.bs-site:not(.bs-custom) #content .entry-header h1,body.bs-site .page-title h1{color:#fff}
body.bs-site .page-wrapper{padding-top:clamp(48px,6vw,88px);padding-bottom:clamp(48px,6vw,88px)}
body.bs-site .page-inner,body.bs-site .entry-content{font-size:17px;line-height:1.7}

/* Map embeds */
body.bs-site:not(.bs-custom) #content iframe[src*="google.com/maps"]{width:100%;border-radius:24px 0 24px 0;box-shadow:0 24px 48px rgba(11,30,56,.14);filter:saturate(.9)}

/* Tables */
body.bs-site:not(.bs-custom) #content table{font-size:15px}

/* ---------- WPForms (Contact page uses form #940): same styling as the homepage card ---------- */
body.bs-site .wpforms-container{margin:0;padding:clamp(22px,3vw,36px);background:#fff;border:1px solid var(--line);border-radius:24px 0 24px 0;box-shadow:0 30px 60px rgba(11,30,56,.12);position:relative}
body.bs-site .wpforms-container::before{content:"";position:absolute;top:0;left:32px;right:32px;height:4px;background:linear-gradient(90deg,var(--blue) 0 50%,var(--green) 50% 100%)}
body.bs-site .wpforms-form fieldset{border:0;margin:0;padding:0;min-width:0}
body.bs-site .wpforms-form .wpforms-field{padding:0;margin:0 0 12px;position:relative}
body.bs-site .wpforms-form .wpforms-field-label.wpforms-label-hide,
body.bs-site .wpforms-form .wpforms-field-sublabel.wpforms-sublabel-hide,
body.bs-site .wpforms-form .wpforms-screen-reader-element{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
body.bs-site .wpforms-form .wpforms-field-label:not(.wpforms-label-hide){display:block;font:700 13px/1.3 var(--f-body);color:var(--navy);margin:0 0 6px}
body.bs-site .wpforms-form .wpforms-required-label{color:#B3261E}
body.bs-site .wpforms-form .wpforms-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.bs-site .wpforms-form .wpforms-field-row-block{min-width:0;padding:0;width:auto;float:none}
body.bs-site .wpforms-form .wpforms-field-container{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
body.bs-site .wpforms-form .wpforms-field-container > .wpforms-field{grid-column:1 / -1}
body.bs-site #wpforms-940-field_2-container,body.bs-site #wpforms-940-field_6-container{grid-column:auto}
body.bs-site .wpforms-form :is(input[type=text],input[type=email],input[type=tel],select,textarea){display:block;width:100%;max-width:none;min-height:48px;height:auto;margin:0;border:1.5px solid #CFC6B6;background-color:#fff;border-radius:2px;padding:11px 14px;font:400 16px/1.3 var(--f-body);color:var(--ink);transition:border-color .2s,box-shadow .2s;appearance:none;-webkit-appearance:none;box-shadow:none}
body.bs-site .wpforms-form :is(input,textarea)::placeholder{color:#6B7380;opacity:1}
body.bs-site .wpforms-form select{background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),linear-gradient(135deg,var(--navy) 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 14px) 21px;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px;cursor:pointer}
body.bs-site .wpforms-form select:has(option[value=""]:checked){color:#6B7380}
body.bs-site .wpforms-form select option{color:var(--ink)}
body.bs-site .wpforms-form textarea{min-height:120px;resize:vertical}
body.bs-site .wpforms-form :is(input,select,textarea):focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,70,127,.14)}
body.bs-site .wpforms-form :is(input,select,textarea).wpforms-error{border-color:#B3261E;box-shadow:0 0 0 4px rgba(179,38,30,.1)}
body.bs-site .wpforms-form :is(label,em).wpforms-error{display:block;font:700 13px/1.3 var(--f-body);font-style:normal;color:#B3261E;margin:6px 0 0;padding:0}
body.bs-site .wpforms-form .wpforms-field-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}
body.bs-site .wpforms-submit-container{display:flex;align-items:center;gap:12px;padding:0;margin:6px 0 0;position:relative}
body.bs-site .wpforms-form button.wpforms-submit{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;padding:0 26px;margin:0;border-radius:2px;font:900 14px/1 var(--f-body);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;background:var(--green);color:var(--deep);border:1.5px solid #5E8424;box-shadow:none;transition:background .3s var(--ease)}
body.bs-site .wpforms-form button.wpforms-submit:hover{background:#8CB53E}
body.bs-site .wpforms-form button.wpforms-submit:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
body.bs-site .wpforms-submit-spinner{position:absolute;right:14px;top:50%;margin-top:-13px;width:26px;height:26px}
body.bs-site .wpforms-confirmation-container-full{background:#fff;border:1.5px solid #CFC6B6;border-left:4px solid var(--green);border-radius:2px;padding:20px 22px;margin:0;color:var(--ink)}
body.bs-site .wpforms-confirmation-container-full p{margin:0}
body.bs-site .wpforms-error-container{font:700 14px/1.4 var(--f-body);color:#B3261E;background:#FBEAE8;border-left:3px solid #B3261E;padding:10px 14px;margin:0 0 14px}

@media (max-width:760px){
  body.bs-site .wpforms-form .wpforms-field-row{grid-template-columns:1fr;gap:12px}
  body.bs-site .wpforms-form .wpforms-field-container > .wpforms-field{grid-column:1 / -1 !important}
  body.bs-site:not(.bs-custom) #content .button{width:100%;margin-right:0}
  body.bs-site:not(.bs-custom) #content .banner :is(h1,h2)::before{margin-bottom:14px}
}

/* ---------- Fixes vs custom.css globals (.btn-primary forced blue, p 15.5px grey) ---------- */
body.bs-site .bs-chrome .btn-primary{background:var(--green) !important;color:var(--deep) !important;border-color:#5E8424 !important}
body.bs-site .bs-chrome .btn-primary:hover{background:#8CB53E !important;color:var(--deep) !important}
body.bs-site .bs-chrome p{font-size:inherit;line-height:inherit;color:inherit}
body.bs-site .bs-chrome .ftr .c1 p{font-size:15px;color:var(--mist)}
body.bs-site:not(.bs-custom) #content p{font-size:16.5px;line-height:1.75}
body.bs-site:not(.bs-custom) #content :is(h1,h2,h3,h4).uppercase{text-transform:none}
body.bs-site:not(.bs-custom) #content :is(h1,h2,h3,h4).uppercase::first-letter{text-transform:uppercase}
body.bs-site:not(.bs-custom) #content .message-box{border-radius:0}

/* ---------- Top-of-page banners: size to content (some have a fixed 200px height that clipped the text) ---------- */
body.bs-site:not(.bs-custom) #content > .section:first-child .banner,body.bs-site:not(.bs-custom) #content > .banner:first-child{height:auto !important;padding-top:0 !important;min-height:0}
body.bs-site:not(.bs-custom) #content > .section:first-child .banner .banner-inner,body.bs-site:not(.bs-custom) #content > .banner:first-child .banner-inner{position:relative !important;height:auto !important}
body.bs-site:not(.bs-custom) #content > .section:first-child .banner .banner-layers,body.bs-site:not(.bs-custom) #content > .banner:first-child .banner-layers{position:relative !important;height:auto !important;padding:clamp(72px,9vw,128px) 15px clamp(64px,8vw,112px) !important}
body.bs-site:not(.bs-custom) #content > .section:first-child .banner .text-box,body.bs-site:not(.bs-custom) #content > .banner:first-child .text-box{position:relative !important;top:auto !important;left:auto !important;right:auto !important;bottom:auto !important;transform:none !important;margin:0 auto !important;width:min(920px,100%) !important}
body.bs-site:not(.bs-custom) #content > .section:first-child .banner .text-box .text-inner,body.bs-site:not(.bs-custom) #content > .banner:first-child .text-box .text-inner{padding:0 !important}
body.bs-site:not(.bs-custom) #content > .section:first-child .banner p:last-child,body.bs-site:not(.bs-custom) #content > .banner:first-child p:last-child{margin-bottom:0}

/* ---------- Header: always solid on inner pages (on the homepage it fades in over the dark hero) ---------- */
body.bs-site .bs-chrome .hdr{animation:none !important;background:rgba(11,30,56,.97) !important}

/* ---------- Banner headings: beat inline colour spans ---------- */
body.bs-site:not(.bs-custom) #content .banner :is(h1,h2),body.bs-site:not(.bs-custom) #content .banner :is(h1,h2) *{color:#fff !important}
body.bs-site:not(.bs-custom) #content .banner p *{color:inherit !important}
body.bs-site:not(.bs-custom) #content h2{font-size:clamp(26px,2.6vw,36px)}

/* ---------- Custom-built guide pages (Retaining Walls + articles, styled by custom.css):
   keep their own layout and colours, just use the design typefaces ---------- */
body.bs-site.bs-custom #content :is(h1,h2,h3){font-family:var(--f-display);font-weight:600;letter-spacing:-.01em}
body.bs-site.bs-custom #content{font-family:var(--f-body)}
body.bs-site:not(.bs-custom) #content .section-title-main{display:inline-block}
body.bs-site:not(.bs-custom) #content .section-title-main::first-letter{text-transform:uppercase}
@media (max-width:760px){body.bs-site #content iframe[src*="google.com/maps"]{height:360px}}

/* Nav sits right next to the phone/quote buttons, as on the homepage (Flatsome's .nav{margin:0} cancelled the auto margin) */
body.bs-site .bs-chrome .hdr .nav{margin:0 0 0 auto !important;padding:0;width:auto !important;flex:0 0 auto}
