/*
Theme Name: Sierra Homes (Kadence child)
Template: kadence
Description: Child theme for the Sierra Homes website: brand fonts, colours and the custom 404 page.
Author: Sierra Homes
Version: 1.7.13
Text Domain: sierra-homes-kadence
*/

/* ---------- Brand fonts (self-hosted) ----------
   Inter: SIL Open Font License 1.1 (fonts/inter/OFL.txt), WOFF2 from @fontsource/inter 5.3.0, Latin subset.
   Sansation Bold: freeware by Bernd Montag (fonts/sansation/Sansation_1.31_ReadMe.txt). Its licence forbids
   distributing modified or renamed files, so the original TTF is served unchanged, with the ReadMe alongside. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter/inter-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter/inter-latin-700-normal.woff2") format("woff2")}
/* Dancing Script 700: SIL OFL 1.1 (fonts/dancing-script/OFL.txt), WOFF2 from @fontsource/dancing-script 5.3.0, Latin subset. Tagline only. */
@font-face{font-family:"Dancing Script";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/dancing-script/dancing-script-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Sansation";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/sansation/Sansation_Bold.ttf") format("truetype")}

html:root{
  --sh-green:#93D500;      /* Pantone 375 C - accent */
  --sh-forest:#2A5340;     /* feature panels – lightened Nov 2026 (was #1E3B2C) */
  --sh-grey:#6F7271;       /* Pantone 424 C - non-text only (borders, icons) */
  --sh-charcoal:#54575A;   /* Pantone 425 C - body text */
  --sh-offwhite:#F3F1EA;   /* section backgrounds */
  --sh-talk:#E9E5DC;        /* Talk to us band – slightly darker cream (was #F3F1EC) */
  --global-body-font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --global-heading-font-family:"Sansation","Inter",system-ui,sans-serif;
  --global-primary-nav-font-family:"Inter",system-ui,sans-serif;
  --global-button-font-family:"Inter",system-ui,sans-serif;
}
body{font-family:var(--global-body-font-family)}
h1,h2,h3,h4,h5,h6,.site-title,.entry-title,.page-title{font-family:var(--global-heading-font-family);font-weight:700;letter-spacing:.005em}

/* ---------- Buttons: dark text on Sierra Green; white on forest when hovered ---------- */
.wp-block-button__link,.button,.header-button,.mobile-header-button{font-weight:600}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--sh-forest);border:2px solid var(--sh-forest)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--sh-forest);color:#fff}
.fluentform .ff-btn-submit{background-color:var(--sh-green)!important;color:var(--sh-forest)!important;border:0;font-weight:600}
.fluentform .ff-btn-submit:hover{background-color:var(--sh-forest)!important;color:#fff!important}

/* ---------- Forest-green feature panels ---------- */
.has-theme-palette2-background-color{color:#fff}
.has-theme-palette2-background-color :where(h1,h2,h3,h4,h5,h6){color:#fff}
.has-theme-palette2-background-color a:not(.wp-block-button__link){color:var(--sh-green)}
.has-theme-palette2-background-color .wp-block-button.is-style-outline .wp-block-button__link{color:#fff;border-color:#fff}
.has-theme-palette2-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--sh-forest)}
.has-theme-palette2-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{background:#fff;color:var(--sh-forest)}
.sh-hero h1{color:#fff;font-size:clamp(2.1rem,5vw,3.4rem);line-height:1.1;margin-top:0}
.sh-hero .hero-slogan{color:var(--sh-green);font-family:var(--global-heading-font-family);font-weight:700;font-size:1.5rem}
.sh-hero img{border-radius:4px}
.sh-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:.78rem;font-weight:600;color:var(--sh-green)}

/* ---------- Footer: forest green with dark-background logo ---------- */
.site-footer,.site-footer .site-footer-wrap,.site-footer .site-middle-footer-wrap,.site-footer .site-bottom-footer-wrap,.site-footer .site-footer-row-container-inner{background:var(--sh-forest)!important;color:#E8ECE9}
.site-footer a{color:var(--sh-green)}
.site-footer .footer-navigation a{color:#fff}
.site-footer .footer-navigation a:hover{color:var(--sh-green)}
.site-footer .sh-footer-logo{display:block;width:180px;height:auto;margin:0 auto .75rem}
.site-footer .sh-footer-tagline{font-family:var(--global-heading-font-family);font-weight:700;color:var(--sh-green);font-size:1.15rem}

/* ---------- Mobile drawer ---------- */
#mobile-drawer .drawer-inner{background:var(--sh-forest)}
#mobile-drawer .mobile-html a,#mobile-drawer .current-menu-item>a{color:var(--sh-green)}

/* ---------- Editor placeholders (staging) ---------- */
mark.needs-peter{background:#fff3bf;color:#5c3c00;padding:0 .25em;border-radius:3px;font-weight:600}

/* ---------- Tagline "Our Heart is in your home" (reusable) ---------- */
.sierra-tagline,.sierra-tagline strong,.sierra-tagline b{font-family:"Dancing Script",cursive;font-weight:700;letter-spacing:0;font-style:normal}
.sierra-tagline{font-size:1.4rem;line-height:1.3}
.sh-hero .hero-slogan.sierra-tagline{font-family:"Dancing Script",cursive;font-size:clamp(1.75rem,3.2vw,2.1rem);line-height:1.25}
.site-footer .sh-footer-tagline.sierra-tagline{font-family:"Dancing Script",cursive;font-size:1.55rem;line-height:1.4}
/* Tagline colour (Peter, 19 Oct 2026). Note: #777 on forest #2A5340 is ~1.95:1 - below WCAG AA. */
.sierra-tagline,.sierra-tagline strong,.sh-hero .hero-slogan.sierra-tagline,.site-footer .sh-footer-tagline.sierra-tagline{color:#777}

/* ---------- Contact page layout (v1.2.2, 19 Oct 2026) ----------
   Contact uses the same narrow content width as the other inner pages (Kadence page layout).
   One spacing system: equal column gap, top-aligned columns, even details list, matched field/label rhythm. */
.sh-contact.wp-block-columns{column-gap:3rem;row-gap:2.5rem;align-items:flex-start;margin-top:1.5rem;margin-bottom:0}
.sh-contact>.wp-block-column>h2:first-child{margin-top:0;margin-bottom:1rem}
.sh-contact .sh-detail{margin:0 0 .85rem;line-height:1.6}
.sh-contact .sh-detail:last-child{margin-bottom:0}
.sh-contact .fluentform .ff-el-group{margin-bottom:1.25rem}
.sh-contact .fluentform .ff-el-input--label{margin-bottom:.4rem;padding:0}
.sh-contact .fluentform .ff-el-input--label label{margin:0;line-height:1.6;font-weight:600}
.sh-contact .fluentform input.ff-el-form-control,.sh-contact .fluentform select.ff-el-form-control{height:46px;min-height:46px;box-sizing:border-box}
.sh-contact .fluentform .ff-el-form-control{border-radius:3px;padding:10px 14px;margin:0}
.sh-contact .fluentform .ff_tc_label{line-height:1.6}
.sh-contact .fluentform .ff_tc_checkbox{padding-right:.65rem;vertical-align:top}
.sh-contact .fluentform .ff-el-form-check-input{width:18px;height:18px;margin:.2em 0 0;accent-color:#2A5340}
.sh-contact .fluentform .ff_submit_btn_wrapper{text-align:left;margin-bottom:0;padding:0}
.sh-contact .fluentform .ff-btn-submit{border-radius:3px;padding:.4em 1em;font-size:18px;line-height:1.6;margin:0}

/* ---------- Closing "Talk to us" band meets the footer (v1.2.3) ----------
   Only when the page's last block is the full-width .sh-panel band; pages without it keep their bottom spacing. */
.content-area:has(.entry-content > .wp-block-group.alignfull.sh-panel:last-child){margin-bottom:0}

/* ---------- Footer divider (v1.2.4, Peter 19 Oct 2026): separates the footer from the green "Talk to us" band, site-wide ---------- */
#colophon.site-footer{border-top:3px solid #93D500}
/* Slightly darker footer (#234836) under light Talk band. Contrast on #234836: white 14.5:1, #E8ECE9 12.1:1, #93D500 8.1:1, tagline #777 3.2:1 (AA large). */
.site-footer,.site-footer .site-footer-wrap,.site-footer .site-middle-footer-wrap,.site-footer .site-bottom-footer-wrap,.site-footer .site-footer-row-container-inner{background:#234836!important}

/* ---------- Desktop header fit, 1025-1279px (v1.2.5) ----------
   Keeps the desktop menu on one line: tighter items and button at 1100-1279px, hamburger header below 1100px. */
@media (min-width:1100px) and (max-width:1279px){
  #main-header .header-html,#main-header .header-button{white-space:nowrap}
  #main-header .header-navigation .menu > li > a{font-size:16px;padding-left:7px;padding-right:7px}
  #main-header .header-html{font-size:16px}
  #main-header .header-button{padding:6px 14px;font-size:16px}
  #main-header .site-branding a.brand img{max-width:150px}
}
@media (min-width:1100px) and (max-width:1199px){
  #main-header .header-navigation .menu > li > a{font-size:15px;padding-left:5px;padding-right:5px}
  #main-header .header-html{font-size:15px}
  #main-header .header-button{padding:6px 12px;font-size:15px}
  #main-header .site-branding a.brand img{max-width:140px}
}
@media (min-width:1025px) and (max-width:1099px){
  #masthead #main-header{display:none}
  #masthead #mobile-header{display:block}
}

/* ======================================================================
   Home page redesign (v1.3.0, 20 Oct 2026)
   Photo hero, stats strip, featured cards, process row, brands strip,
   angled dividers and scroll fade-ins (prefers-reduced-motion respected).
   ====================================================================== */
.sh-kicker-dark{color:var(--sh-forest)}
.sh-kicker-dark::before{content:"";display:inline-block;width:28px;height:3px;background:var(--sh-green);vertical-align:middle;margin-right:.6em;border-radius:2px}
.sh-kicker-dark.has-text-align-center::after{content:"";display:inline-block;width:28px;height:3px;background:var(--sh-green);vertical-align:middle;margin-left:.6em;border-radius:2px}

/* ---------- Hero: Stenhouse render behind a forest overlay ---------- */
.wp-block-cover.sh-hero-cover{position:relative;overflow:hidden;min-height:min(78vh,680px)!important;padding:clamp(4.5rem,9vw,7.5rem) var(--wp--preset--spacing--30,1.5rem) calc(clamp(4.5rem,9vw,7rem) + 3.5vw);align-items:center}
.sh-hero-cover img.wp-block-cover__image-background{border-radius:0;object-fit:cover;object-position:50% 55%}
.sh-hero-cover .wp-block-cover__background{background:linear-gradient(90deg,rgba(30,59,44,.9) 0%,rgba(30,59,44,.78) 45%,rgba(30,59,44,.5) 100%)!important;opacity:1!important}
.sh-hero-cover .wp-block-cover__inner-container{width:100%;max-width:var(--global-content-width,1290px);margin:0 auto;color:#fff}
.sh-hero-cover .wp-block-cover__inner-container>*{max-width:640px;margin-left:auto!important;margin-right:auto!important}
@media (min-width:782px){
  .sh-hero-cover .wp-block-cover__inner-container{text-align:center}
  .sh-hero-cover .wp-block-cover__inner-container> :not(.sh-hero-caption){text-align:center}
  .sh-hero-cover .wp-block-buttons{justify-content:center!important}
  /* Even overlay so centred copy stays readable over the photo */
  .sh-hero-cover .wp-block-cover__background{
    background:linear-gradient(180deg,rgba(30,59,44,.78) 0%,rgba(30,59,44,.72) 55%,rgba(30,59,44,.8) 100%)!important;
  }
  .sh-hero-cover .hero-slogan.sierra-tagline{color:#fff!important;text-shadow:0 1px 10px rgba(0,0,0,.35)}
}
@media (max-width:781px){
  .sh-hero-cover .wp-block-cover__inner-container{text-align:center}
  .sh-hero-cover .wp-block-cover__inner-container> :not(.sh-hero-caption){text-align:center;margin-left:auto!important;margin-right:auto!important}
  .sh-hero-cover .wp-block-buttons{justify-content:center!important}
  .sh-hero-cover .hero-slogan.sierra-tagline{color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.35)}
}
.sh-hero-cover h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.25)}
.sh-hero-cover .sh-hero-lead{font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.6;color:#fff}
.sh-hero-cover .wp-block-buttons{margin-top:1.75rem}
.sh-hero-cover p.sh-hero-caption{position:absolute;right:clamp(1rem,3vw,2.5rem);bottom:calc(3.5vw + .9rem);margin:0!important;max-width:none;font-size:.78rem;letter-spacing:.02em;color:rgba(255,255,255,.88);text-shadow:0 1px 4px rgba(0,0,0,.6);z-index:3}
/* angled off-white edge with a thin Sierra Green line */
.sh-hero-cover::before,.sh-hero-cover::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3.5vw;min-height:22px;pointer-events:none;z-index:2}
.sh-hero-cover::before{background:var(--sh-green);clip-path:polygon(0 calc(100% - 5px),100% 0,100% 100%,0 100%)}
.sh-hero-cover::after{background:var(--sh-offwhite);clip-path:polygon(0 100%,100% 5px,100% 100%)}
@media (max-width:781px){
  .wp-block-cover.sh-hero-cover{min-height:0!important;padding-top:3.5rem;padding-bottom:calc(4.5rem + 22px)}
  .sh-hero-cover .wp-block-cover__background{background:rgba(30,59,44,.8)!important}
  .sh-hero-cover p.sh-hero-caption{left:1.5rem;right:auto;bottom:calc(22px + .6rem);font-size:.72rem}
}

/* ---------- Stats strip ---------- */
.sh-stats-band{padding-top:clamp(2rem,4vw,3rem)!important;padding-bottom:clamp(2rem,4vw,3rem)!important}
ul.sh-stats{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;max-width:1100px}
.sh-stats li{text-align:center;padding:.5rem 1rem;position:relative}
.sh-stats li+li::before{content:"";position:absolute;left:-.75rem;top:15%;bottom:15%;width:1px;background:rgba(30,59,44,.18)}
.sh-stat-num{display:block;font-family:var(--global-heading-font-family);font-weight:700;color:var(--sh-forest);font-size:clamp(2.4rem,4.5vw,3.4rem);line-height:1.05;font-variant-numeric:tabular-nums}
.sh-stat-num.sh-stat-word{font-size:clamp(1.9rem,3.6vw,2.7rem);line-height:1.3}
.sh-stat-num::after{content:"";display:block;width:36px;height:3px;background:var(--sh-green);margin:.6rem auto .55rem;border-radius:2px}
.sh-stat-label{display:block;color:var(--sh-charcoal);font-size:1rem;line-height:1.45}
p.sh-cred{margin:1.75rem auto 0;max-width:1000px;font-size:.92rem;color:var(--sh-charcoal);line-height:1.6}
@media (max-width:781px){
  ul.sh-stats{grid-template-columns:1fr;gap:.25rem}
  .sh-stats li+li::before{left:20%;right:20%;top:0;bottom:auto;width:auto;height:1px}
  .sh-stats li{padding:1rem .5rem}
}

/* ---------- Featured project and design cards ---------- */
.sh-featured h2{margin-top:.25rem}
.sh-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;margin:2rem 0 2.25rem}
a.sh-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e3e1d8;border-radius:6px;overflow:hidden;color:var(--sh-charcoal);text-decoration:none;box-shadow:0 1px 2px rgba(30,59,44,.06);transition:box-shadow .3s ease,transform .3s ease}
a.sh-card:hover,a.sh-card:focus-visible{box-shadow:0 14px 34px rgba(30,59,44,.16);transform:translateY(-3px)}
a.sh-card:focus-visible{outline:3px solid var(--sh-forest);outline-offset:3px}
.sh-card-media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--sh-forest)}
.sh-card-media img{width:100%;height:100%;object-fit:cover;display:block;border-radius:0;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
a.sh-card:hover .sh-card-media img,a.sh-card:focus-visible .sh-card-media img,a.sh-card:hover .sh-card-pattern,a.sh-card:focus-visible .sh-card-pattern{transform:scale(1.06)}
.sh-card-badge{position:absolute;left:.75rem;bottom:.75rem;background:rgba(30,59,44,.88);color:#fff;font-size:.72rem;padding:.25rem .55rem;border-radius:3px;letter-spacing:.02em}
/* Non-photo card art for designs without approved imagery (brand colours, no stock/invented images) */
.sh-card-pattern{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;text-align:center;color:#fff;transition:transform .6s cubic-bezier(.2,.7,.2,1);
  background:
    linear-gradient(135deg,rgba(147,213,0,.0) 0 62%,rgba(147,213,0,.9) 62% 63.2%,rgba(147,213,0,0) 63.2%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 2px,transparent 2px 22px),
    linear-gradient(160deg,#356B52 0%,#2A5340 55%,#234836 100%)}
.sh-card-pattern-name{font-family:var(--global-heading-font-family);font-weight:700;font-size:clamp(1.8rem,2.6vw,2.3rem);line-height:1.1}
.sh-card-pattern-facts{font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;color:#d9e6dc}
.sh-card-body{padding:1.25rem 1.35rem 1.4rem;display:flex;flex-direction:column;flex:1}
.sh-card-kicker{margin:0 0 .35rem;font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--sh-forest)}
.sh-card-title{margin:0 0 .5rem;font-size:1.5rem;color:var(--sh-forest)}
.sh-card-text{margin:0 0 1rem;line-height:1.6}
.sh-card-link{margin-top:auto;font-weight:600;color:var(--sh-forest)}
.sh-card-link span{display:inline-block;transition:transform .3s ease}
a.sh-card:hover .sh-card-link span{transform:translateX(4px)}
@media (max-width:1024px){.sh-cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:781px){.sh-cards{grid-template-columns:1fr;gap:1.25rem}}

/* ---------- Angled divider into the forest "Why" panel ---------- */
.wp-block-group.sh-slant{position:relative;padding-top:calc(var(--wp--preset--spacing--50,3rem) + 3.5vw)!important}
.wp-block-group.sh-slant::before,.wp-block-group.sh-slant::after{content:"";position:absolute;left:0;right:0;top:0;height:3.5vw;min-height:22px;pointer-events:none}
.wp-block-group.sh-slant::after{background:#fff;clip-path:polygon(0 0,100% 0,0 calc(100% - 5px))}
.wp-block-group.sh-slant::before{background:var(--sh-green);clip-path:polygon(0 calc(100% - 5px),100% 0,100% 5px,0 100%)}
.sh-slant .wp-block-image img{border-radius:4px}

/* ---------- How we build: process row ---------- */
ol.sh-steps{list-style:none;margin:2.25rem auto 2rem;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;counter-reset:none;max-width:1200px}
.sh-step{background:#fff;border-radius:6px;padding:1.6rem 1.35rem 1.4rem;border-top:4px solid var(--sh-green);box-shadow:0 1px 2px rgba(30,59,44,.06);position:relative}
.sh-step-badge{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--sh-forest);color:var(--sh-green);margin-bottom:.9rem}
.sh-step-icon{width:30px;height:30px}
.sh-step-no{display:block;font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--sh-charcoal)}
.sh-step-title{font-size:1.2rem;margin:.25rem 0 .5rem;color:var(--sh-forest)}
.sh-step p{margin:0;font-size:.97rem;line-height:1.6}
@media (max-width:1024px){ol.sh-steps{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){ol.sh-steps{grid-template-columns:1fr}}

/* ---------- Brands strip (greyscale, colour on hover) ---------- */
ul.sh-brands{list-style:none;margin:2rem auto 1rem;padding:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem 1.25rem;max-width:1100px}
.sh-brand{flex:0 1 180px;height:92px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;padding:1rem 1.25rem;box-shadow:0 1px 2px rgba(30,59,44,.06)}
.sh-brand img{max-width:100%;max-height:46px;width:auto;height:auto;filter:grayscale(1);opacity:.72;transition:filter .3s ease,opacity .3s ease}
.sh-brand:hover img{filter:none;opacity:1}
.sh-brand-word span{font-family:var(--global-heading-font-family);font-weight:700;font-size:1.05rem;letter-spacing:.14em;text-transform:uppercase;color:var(--sh-charcoal);text-align:center;line-height:1.25;transition:color .3s ease}
.sh-brand-word:hover span{color:var(--sh-forest)}
@media (max-width:600px){ul.sh-brands{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.sh-brand{height:80px;padding:.75rem}.sh-brand img{max-height:38px}.sh-brand-word span{font-size:.9rem}}

/* ---------- Scroll fade-ins (only when JS is running and motion is allowed) ---------- */
@media (prefers-reduced-motion:no-preference){
  html.sh-js .sh-reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
  html.sh-js .sh-reveal.is-in{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  a.sh-card,.sh-card-media img,.sh-card-pattern,.sh-brand img{transition:none}
  a.sh-card:hover,a.sh-card:focus-visible{transform:none}
  a.sh-card:hover .sh-card-media img,a.sh-card:hover .sh-card-pattern{transform:none}
}

/* v1.3.0 fixes: sections butt together on Home; hero outline button and caption; card title spacing */
.home .entry-content>.wp-block-group.alignfull,.home .entry-content>.wp-block-cover.alignfull{margin-top:0!important;margin-bottom:0!important}
.sh-hero-cover .wp-block-cover__inner-container{position:static}
.sh-hero-cover .wp-block-cover__inner-container>*{position:relative;z-index:1}
.sh-hero-cover .wp-block-cover__inner-container>p.sh-hero-caption{position:absolute;z-index:3}
.sh-hero-cover .wp-block-button.is-style-outline .wp-block-button__link{color:#fff;border-color:#fff}
.sh-hero-cover .wp-block-button.is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--sh-forest)}
.sh-hero-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{background:#fff;color:var(--sh-forest)}
.sh-cards .sh-card-title{margin:0 0 .5rem!important}
.sh-cards .sh-card-kicker{margin:0 0 .35rem!important}
.sh-cards .sh-card-text{margin:0 0 1rem!important}
.sh-steps .sh-step-title{margin:.25rem 0 .5rem!important}
.sh-card-pattern{background:
    linear-gradient(135deg,rgba(147,213,0,0) 0 80%,rgba(147,213,0,.9) 80% 81.2%,rgba(147,213,0,0) 81.2%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 2px,transparent 2px 22px),
    linear-gradient(160deg,#356B52 0%,#2A5340 55%,#234836 100%)}
.entry-content .sh-hero-cover .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color){color:#fff!important;border-color:#fff}
.entry-content .sh-hero-cover .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover,.entry-content .sh-hero-cover .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus{background:#fff;color:#2A5340!important}
.entry-content>.wp-block-group.alignfull.sh-slant{padding-top:calc(clamp(2.25rem,5vw,4rem) + 3.5vw)!important}
@media (max-width:600px){.sh-brand:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - .375rem)}}
@media (max-width:781px){.sh-hero-cover img.wp-block-cover__image-background{object-position:22% 55%!important}.sh-hero-cover .wp-block-cover__inner-container>p.sh-hero-caption{left:2.2rem}}

/* ---------- Plan finder (v1.4.0, 22 Oct 2026) – Home, under the hero ---------- */
.sh-plan-finder{border-bottom:1px solid rgba(30,59,44,.1)}
.sh-pf-form{display:grid;grid-template-columns:auto auto 1fr 1fr auto;gap:1rem 1.5rem;align-items:end;background:#fff;border-radius:8px;padding:1.25rem 1.5rem;box-shadow:0 1px 2px rgba(30,59,44,.06);margin:1.5rem 0 1rem}
.sh-pf-group{border:0;margin:0;padding:0;min-width:0}
.sh-pf-group legend,.sh-pf-group>label{display:block;font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--sh-forest);margin:0 0 .45rem;padding:0}
.sh-pf-toggles{display:flex;flex-wrap:wrap;gap:.4rem}
.sh-pf-toggle{position:relative;cursor:pointer}
.sh-pf-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.sh-pf-toggle span{display:inline-block;min-width:2.75rem;text-align:center;padding:.55rem .9rem;border:2px solid var(--sh-forest);border-radius:4px;color:var(--sh-forest);font-weight:600;font-size:.95rem;line-height:1.2;transition:background .2s,color .2s}
.sh-pf-toggle input:checked+span{background:var(--sh-forest);color:#fff}
.sh-pf-toggle input:focus-visible+span{outline:3px solid var(--sh-green);outline-offset:2px}
.sh-pf-toggle:hover span{background:rgba(30,59,44,.08)}
.sh-pf-toggle:hover input:checked+span{background:var(--sh-forest)}
.sh-pf select{width:100%;min-height:44px;padding:.5rem .75rem;border:2px solid var(--sh-forest);border-radius:4px;background:#fff;color:var(--sh-forest);font-size:1rem}
.sh-pf select:focus-visible{outline:3px solid var(--sh-green);outline-offset:2px}
.sh-pf-reset{min-height:44px;background:none;border:0;color:var(--sh-forest);text-decoration:underline;font-weight:600;cursor:pointer;padding:.5rem 0}
.sh-pf-reset:focus-visible{outline:3px solid var(--sh-green);outline-offset:2px}
.sh-pf-count{font-weight:600;color:var(--sh-forest);margin:0 0 1rem}
ul.sh-pf-results{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem}
ul.sh-pf-results .sh-pf-card{margin:0}
ul.sh-pf-results .sh-pf-card[hidden]{display:none}
.sh-pf-results .sh-card{height:100%}
.sh-pf-results .sh-card-title{margin:0 0 .5rem!important}
.sh-pf-results .sh-card-kicker{margin:0 0 .35rem!important}
.sh-pf-results .sh-card-link{margin-top:auto}
.sh-pf-empty{background:#fff;border-left:4px solid var(--sh-green);border-radius:6px;padding:1rem 1.25rem;margin-top:.5rem}
.sh-pf-empty p{margin:0}
@media (max-width:1024px){.sh-pf-form{grid-template-columns:1fr 1fr}.sh-pf-actions{grid-column:1/-1}}
@media (max-width:600px){.sh-pf-form{grid-template-columns:1fr;padding:1rem}}

/* ---------- Coming Soon (v1.4.1, 22 Oct 2026) ---------- */
.header-navigation .sh-menu-coming-soon>a{flex-direction:column;align-items:center;line-height:1.15}
.header-navigation .sh-menu-coming-soon>a::after{content:"Investors welcome";display:block;margin-top:3px;padding:1px 6px;border-radius:3px;background:var(--sh-green);color:var(--sh-forest);font-size:.56rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;line-height:1.4;white-space:nowrap}
#mobile-drawer .sh-menu-coming-soon>a::after,.mobile-navigation .sh-menu-coming-soon>a::after{content:"Investors welcome";display:inline-block;margin-left:.5em;padding:1px 6px;border-radius:3px;background:var(--sh-green);color:var(--sh-forest);font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;vertical-align:middle}
.sh-cs-hero{text-align:center}
.sh-cs-hero .wp-block-buttons{justify-content:center}
.sh-cs-hero h1{color:#fff;margin-bottom:.25rem}
.sh-cs-hero p.sh-cs-sub{display:inline-block;margin:0 0 1rem;padding:.2rem .7rem;border-radius:4px;background:var(--sh-green);color:var(--sh-forest);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.85rem}
.sh-cards.sh-cards-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:700px){.sh-cards.sh-cards-2{grid-template-columns:1fr}}
.sh-card-static{display:flex;flex-direction:column;background:#fff;border:1px solid #e3e1d8;border-radius:6px;overflow:hidden;color:var(--sh-charcoal);box-shadow:0 1px 2px rgba(30,59,44,.06)}
.sh-card-static .sh-card-link{text-decoration:underline}

/* ---------- Featured projects page (v1.6.4, 6 Nov 2026) ---------- */
/* Text left, image right on every project row (v1.7.9) */
body.sh-featured-page .sh-feat{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:0;background:#fff}
body.sh-featured-page .sh-feat-body{order:1}
/* Square hero images, same size both listings (v1.7.10) */
body.sh-featured-page .sh-feat-hero{
  order:2;position:relative;align-self:start;
  width:100%;aspect-ratio:1/1;min-height:0;height:auto;
  overflow:hidden;
}
body.sh-featured-page .sh-feat-alt{background:var(--sh-offwhite)}
body.sh-featured-page .sh-feat-hero img{
  position:absolute;inset:0;width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;
  object-fit:cover;border-radius:0;object-position:50% 42%;
}
/* Keep facade framed: Stenhouse full-facade slightly higher; Bleazby mid-facade */
body.sh-featured-page #stenhouse .sh-feat-hero img{object-position:50% 38%}
body.sh-featured-page #bleazby .sh-feat-hero img{object-position:50% 45%}
body.sh-featured-page .sh-feat-chip{position:absolute;left:1rem;bottom:1rem;z-index:1;background:rgba(23,46,34,.85);color:#fff;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;padding:.45rem .7rem;border-radius:3px}
body.sh-featured-page .sh-feat-body{padding:clamp(2rem,5vw,3.5rem) clamp(1.25rem,4vw,3rem);align-self:center}
body.sh-featured-page .sh-feat-body h2{margin:.2rem 0 1rem;font-size:clamp(1.8rem,3vw,2.4rem)}
body.sh-featured-page .sh-feat-meta{font-size:.95rem;color:var(--sh-charcoal);margin:0 0 1rem}
body.sh-featured-page .sh-feat-note{font-size:.88rem;color:var(--sh-charcoal);background:rgba(147,213,0,.12);padding:.75rem 1rem;border-left:3px solid var(--sh-green)}
body.sh-featured-page .sh-feat-aside,body.sh-featured-page .sh-feat-video{margin:1.5rem 0}
body.sh-featured-page .sh-feat-aside img,body.sh-featured-page .sh-feat-video img{width:100%;height:auto;border-radius:4px;display:block}
body.sh-featured-page .sh-feat-aside figcaption,body.sh-featured-page .sh-feat-video figcaption{font-size:.8rem;color:var(--sh-charcoal);margin-top:.4rem}
body.sh-featured-page .sh-feat-body .wp-block-button__link{display:inline-block;margin-top:.5rem;padding:.85rem 1.25rem;background:var(--sh-green);color:var(--sh-forest);font-weight:600;text-decoration:none;border-radius:3px}
body.sh-featured-page .sh-feat-body a.is-style-outline{background:transparent;border:2px solid var(--sh-forest);color:var(--sh-forest)}
@media (max-width:900px){
 body.sh-featured-page .sh-feat{grid-template-columns:1fr}
 /* Image above text; square hero matches desktop */
 body.sh-featured-page .sh-feat-hero{order:0;aspect-ratio:1/1;width:100%;height:auto;min-height:0}
 body.sh-featured-page .sh-feat-body{order:1}
}

/* Bleazby card placeholder on Featured projects (6 Nov 2026) */
body.sh-featured-page .sh-feat-placeholder{background:var(--sh-forest);display:flex;align-items:flex-end;min-height:420px}
body.sh-featured-page .sh-feat-placeholder .sh-feat-ph-inner{padding:1.5rem 1.75rem;color:#fff;width:100%;background:repeating-linear-gradient(135deg,rgba(147,213,0,.12) 0 2px,transparent 2px 22px)}
body.sh-featured-page .sh-feat-ph-name{display:block;font-family:var(--global-heading-font-family);font-size:1.75rem;font-weight:700;margin-bottom:.25rem}
body.sh-featured-page .sh-feat-ph-sub{display:block;font-size:.9rem;opacity:.9;margin-bottom:.5rem}
body.sh-featured-page .sh-feat-ph-note{display:block;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--sh-green)}
@media (max-width:900px){body.sh-featured-page .sh-feat-placeholder{min-height:260px;height:260px}}

body.sh-featured-page .sh-feat-gallery{margin:1.25rem 0 1.5rem}
body.sh-featured-page .sh-feat-gal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
body.sh-featured-page .sh-feat-gal-grid img{width:100%;height:150px;object-fit:cover;border-radius:4px;display:block}
body.sh-featured-page .sh-feat-gallery figcaption{font-size:.8rem;color:var(--sh-charcoal);margin-top:.45rem}
@media (max-width:600px){body.sh-featured-page .sh-feat-gal-grid{grid-template-columns:1fr 1fr}}

/* ---------- Talk to us band – light cream (v1.6.8, 6 Nov 2026) ---------- */
.entry-content > .wp-block-group.alignfull.sh-panel.has-theme-palette2-background-color:last-child{
  background-color:var(--sh-talk)!important;
  color:var(--sh-charcoal)!important;
}
.entry-content > .wp-block-group.alignfull.sh-panel.has-theme-palette2-background-color:last-child :where(h1,h2,h3,h4,h5,h6){color:var(--sh-forest)!important}
.entry-content > .wp-block-group.alignfull.sh-panel.has-theme-palette2-background-color:last-child a:not(.wp-block-button__link){color:var(--sh-forest)}
.entry-content > .wp-block-group.alignfull.sh-panel.has-theme-palette2-background-color:last-child .wp-block-button:not(.is-style-outline) .wp-block-button__link{
  background:var(--sh-forest)!important;color:#fff!important;border-color:var(--sh-forest)!important
}
.entry-content > .wp-block-group.alignfull.sh-panel.has-theme-palette2-background-color:last-child .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{
  background:#234836!important;color:#fff!important
}
.entry-content > .wp-block-group.alignfull.sh-panel.has-theme-palette2-background-color:last-child .wp-block-button.is-style-outline .wp-block-button__link{
  background:transparent!important;color:var(--sh-forest)!important;border:2px solid var(--sh-forest)!important
}
.entry-content > .wp-block-group.alignfull.sh-panel.has-theme-palette2-background-color:last-child .wp-block-button.is-style-outline .wp-block-button__link:hover{
  background:var(--sh-forest)!important;color:#fff!important
}
/* Footer stays dark forest; green divider keeps separation from cream band */
#colophon.site-footer{border-top:3px solid #93D500}
/* Hide [NEEDS PETER] / editor notes from public visitors (Featured projects Phase 1) */
body:not(.logged-in) .sh-feat-note{display:none!important}

/* Home "Some of our completed work" gallery – smaller tiles (v1.7.1) */
.entry-content .wp-block-gallery.has-nested-images.columns-4{
  --wp--style--unstable-gallery-gap: .65rem;
  gap: .65rem!important;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content .wp-block-gallery.has-nested-images.columns-4 > .wp-block-image{
  width: calc(25% - .5rem)!important;
}
.entry-content .wp-block-gallery.has-nested-images.columns-4 figcaption{
  font-size: .8rem;
  line-height: 1.35;
}
@media (max-width: 781px){
  .entry-content .wp-block-gallery.has-nested-images.columns-4 > .wp-block-image{
    width: calc(50% - .4rem)!important;
  }
}
/* Concept page completed-work gallery shares the same block classes */
.sh-concept .shc-gallery .wp-block-gallery.has-nested-images.columns-4,
.sh-concept .wp-block-gallery.has-nested-images.columns-4{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Home "Why Sierra Homes" panel – narrower content on desktop (v1.7.2) */
@media (min-width: 782px){
  .entry-content > .wp-block-group.alignfull.sh-panel.sh-slant > .wp-block-group__inner-container,
  .entry-content > .wp-block-group.alignfull.sh-panel.sh-slant .wp-block-group__inner-container{
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
  }
  .entry-content > .wp-block-group.alignfull.sh-panel.sh-slant .wp-block-columns{
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
    width:100%;
  }
}

/* Home completed-work heading align with gallery (v1.7.3) */
@media (min-width: 782px){
  .entry-content > .wp-block-group.alignfull:has(.wp-block-gallery.columns-4) > .wp-block-group__inner-container,
  .entry-content > .wp-block-group.alignfull.sh-reveal:has(.wp-block-gallery) > .wp-block-group__inner-container{
    max-width:1100px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    width:100%;
  }
}


/* Home SOL sister company band (v1.7.6) – light blue tint from SOL navy #2C4464; lightness matched to prior #F3F1EA */
.entry-content > .wp-block-group.alignfull.sh-sol-band{
  background-color:#EDEEF0 !important;
}

/* Home SOL sister company band logo */
.sh-sol-band .sh-sol-logo{
  display:block;width:200px;max-width:100%;height:auto;margin:0 auto;
}
.sh-sol-band .sh-sol-logo-wrap{text-align:center}
@media (min-width: 782px){
  .entry-content > .wp-block-group.alignfull.sh-sol-band > .wp-block-group__inner-container,
  .entry-content > .wp-block-group.alignfull.sh-sol-band .wp-block-group__inner-container{
    max-width:1100px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    width:100%;
  }
  .entry-content > .wp-block-group.alignfull.sh-sol-band .wp-block-columns{
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
    width:100%;
  }
  .entry-content > .wp-block-group.alignfull.sh-sol-band .wp-block-column.sh-sol-logo-col{
    flex-basis:28% !important;
  }
}

/* Featured Projects page – narrower content (v1.7.8, match Home 1100px) */
@media (min-width: 782px){
  body.sh-featured-page .entry-content > .sh-feat.alignfull{
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
    width:100%;
  }
  body.sh-featured-page .entry-content > .wp-block-group.alignfull.sh-panel > .wp-block-group__inner-container,
  body.sh-featured-page .entry-content > .wp-block-group.alignfull.sh-panel .wp-block-group__inner-container{
    max-width:1100px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    width:100%;
  }
  body.sh-featured-page .entry-content img{
    height:auto;
    max-width:100%;
  }
  body.sh-featured-page .entry-content video{
    height:auto;
    max-width:100%;
  }
  /* Override: main listing heroes stay square-filled (blanket height:auto was winning) */
  body.sh-featured-page .entry-content .sh-feat-hero > img{
    width:100%!important;height:100%!important;
    max-width:none!important;max-height:none!important;
    object-fit:cover;
  }
}

/* Home hero dual-image slow crossfade (v1.7.12) – Ballarat + Bleazby */
.sh-hero-cover.sh-hero-crossfade .sh-hero-slides{
  position:absolute;inset:0;z-index:0;overflow:hidden;
}
.sh-hero-cover.sh-hero-crossfade .sh-hero-slide{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;margin:0;padding:0;border:0;
  opacity:0;
  animation:sh-hero-xfade 16s ease-in-out infinite;
}
.sh-hero-cover.sh-hero-crossfade .sh-hero-slide-a{
  object-position:50% 42%;
  animation-delay:0s;
}
.sh-hero-cover.sh-hero-crossfade .sh-hero-slide-b{
  object-position:50% 40%;
  animation-delay:8s;
}
@keyframes sh-hero-xfade{
  0%{opacity:0}
  6%{opacity:1}
  44%{opacity:1}
  50%{opacity:0}
  100%{opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .sh-hero-cover.sh-hero-crossfade .sh-hero-slide{animation:none;opacity:0}
  .sh-hero-cover.sh-hero-crossfade .sh-hero-slide-a{opacity:1}
}
/* Keep cover chrome above slides */
.sh-hero-cover.sh-hero-crossfade .wp-block-cover__background{z-index:1}
.sh-hero-cover.sh-hero-crossfade .wp-block-cover__inner-container{z-index:2;position:relative}
.sh-hero-cover.sh-hero-crossfade .wp-block-cover__image-background{display:none!important}
@media (max-width:781px){
  .sh-hero-cover.sh-hero-crossfade .sh-hero-slide-a{object-position:42% 45%}
  .sh-hero-cover.sh-hero-crossfade .sh-hero-slide-b{object-position:45% 40%}
}

