/* WordPress block rendering does not preserve arbitrary data attributes on core/group.
 * Target the front-page-scoped hero class; CSS is enqueued on the homepage only.
 * Concept B homepage photography: full-width fixed-copy hero and supporting sections.
 * Approved illustrative assets are not records of actual Conifer projects/staff. No placeholder photography is permitted.
 */
.conifer-hero-section{
 position:relative;isolation:isolate;overflow:hidden;
 min-height:clamp(510px,55vw,690px);display:flex;align-items:center;
 padding-block:clamp(74px,9vw,126px)!important;background:#003d2a!important;
}
.conifer-hero-section .conifer-hero-stage{
 position:absolute;z-index:-2;inset:0;overflow:hidden;pointer-events:none;
}
.conifer-hero-section .conifer-hero-slide{
 position:absolute;inset:0;opacity:0;transition:opacity 1100ms ease;
}
.conifer-hero-section .conifer-hero-slide.is-active{opacity:1}
.conifer-hero-section .conifer-hero-slide img{
 display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
 object-position:center center;filter:saturate(.91);
}
.conifer-hero-section::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(90deg,rgba(0,35,24,.94) 0%,rgba(0,40,28,.85) 26%,rgba(0,43,29,.58) 51%,rgba(0,38,25,.06) 85%),
 linear-gradient(0deg,rgba(0,25,18,.27),transparent 47%);
}
.conifer-hero-section::after{
 content:none!important;display:none!important;
}
.conifer-hero-section>.wp-block-columns{
 width:min(1180px,calc(100% - 48px));margin-inline:auto;z-index:2;
 align-items:center!important;position:relative;
}
.conifer-hero-section>.wp-block-columns>.wp-block-column:first-child{
 position:relative;z-index:2;padding:clamp(12px,2vw,30px) 0;
}
.conifer-hero-section>.wp-block-columns>.wp-block-column:first-child::before{
 content:"";position:absolute;inset:-18px -36px -18px -26px;z-index:-1;
 background:rgba(0,48,32,.08);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
 border-radius:22px;mask-image:linear-gradient(90deg,#000 0%,#000 65%,transparent 100%);
 pointer-events:none;
}
.conifer-hero-section .conifer-hero-placeholder{
 display:none!important;
}
.conifer-hero-section .conifer-section-label,
.conifer-hero-section h1,
.conifer-hero-section h1 em,
.conifer-hero-section .has-large-font-size{
 color:#fff!important;text-shadow:0 2px 15px rgba(0,18,12,.32);
}
.conifer-hero-section h1{
 font-size:clamp(2.4rem,5.1vw,5.2rem)!important;line-height:1.06!important;
 margin-block:13px 20px!important;letter-spacing:-.028em;
}
.conifer-hero-section h1 em{color:#f4d582!important}
.conifer-hero-section .conifer-section-label{
 font-size:clamp(.69rem,1vw,.9rem)!important;letter-spacing:.13em;
}
.conifer-hero-section .has-large-font-size{
 font-size:clamp(1rem,1.35vw,1.25rem)!important;line-height:1.65!important;
 max-width:565px;
}
.conifer-hero-section .wp-block-buttons{
 display:flex!important;flex-wrap:wrap;gap:12px;
}
.conifer-hero-section .wp-block-button__link{
 min-height:46px;display:inline-flex;align-items:center;justify-content:center;
 text-decoration:none!important;border-radius:8px!important;font-weight:700!important;
 box-shadow:0 5px 16px rgba(0,15,10,.18);
}
.conifer-hero-section .conifer-hero-controls{
 position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
 z-index:5;display:flex;align-items:center;gap:11px;
 border:1px solid rgba(255,255,255,.2);border-radius:999px;
 padding:7px 11px;background:rgba(0,34,24,.7);
}
.conifer-hero-section .conifer-hero-controls button{
 appearance:none;border:0;cursor:pointer;color:#fff;background:transparent;
 width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
 padding:0;font:700 16px/1 system-ui;
}
.conifer-hero-section .conifer-hero-controls .conifer-hero-dot{
 width:10px;height:10px;border-radius:50%;
 background:rgba(255,255,255,.5);transition:background .2s,transform .2s;
}
.conifer-hero-section .conifer-hero-dot[aria-current="true"]{
 background:#e9c56a;transform:scale(1.25);
}
.conifer-hero-section .conifer-hero-controls button:focus-visible{
 outline:3px solid #f2ce6b;outline-offset:3px;
}
.conifer-hero-section .conifer-hero-controls button:hover{
 background:rgba(255,255,255,.18);
}
.conifer-hero-section .conifer-hero-controls .conifer-hero-dot:hover{
 background:#fff;
}
/* Photo cards: archive photos always resolve; generated scene takes over once loaded. */
.conifer-projects-section .wp-block-column:nth-child(1) .conifer-project-image-placeholder{
 background-image:linear-gradient(rgba(0,39,25,.09),rgba(0,39,25,.12)),
 var(--conifer-visual, none)!important;
}
.conifer-projects-section .wp-block-column:nth-child(2) .conifer-project-image-placeholder{
 background-image:linear-gradient(rgba(0,39,25,.09),rgba(0,39,25,.12)),
 var(--conifer-visual, none)!important;
}
.conifer-projects-section .wp-block-column:nth-child(3) .conifer-project-image-placeholder{
 background-image:linear-gradient(rgba(0,39,25,.09),rgba(0,39,25,.12)),
 var(--conifer-visual, none)!important;
}
.conifer-advantages-section .conifer-image-placeholder{
 background-image:linear-gradient(170deg,rgba(0,39,25,.08),rgba(0,39,25,.19)),
 var(--conifer-visual, none)!important;
 background-position:center!important;background-size:cover!important;
 min-height:340px;
}
.conifer-advantages-section .conifer-image-placeholder p{display:none!important}
.conifer-services-grid .conifer-service-card::before{
 background-image:linear-gradient(rgba(0,39,25,.05),rgba(0,39,25,.07)),
 var(--conifer-visual, none)!important;
}
.conifer-cta-section{
 background-image:linear-gradient(100deg,rgba(0,38,28,.94),rgba(0,73,48,.76)),
 var(--conifer-visual, none)!important;
 background-position:center!important;background-size:cover!important;
}
@media(max-width:781px){
 .conifer-hero-section{
  min-height:570px;padding-block:80px 95px!important;
 }
 .conifer-hero-section>.wp-block-columns{
  width:min(100% - 32px,620px);margin-inline:auto;
 }
 .conifer-hero-section>.wp-block-columns>.wp-block-column:nth-child(2){display:none!important}
 .conifer-hero-section::before{
  background:linear-gradient(90deg,rgba(0,35,24,.89),rgba(0,40,28,.7)),
             linear-gradient(0deg,rgba(0,30,21,.52),transparent);
 }
 .conifer-hero-section h1{font-size:clamp(2.25rem,8vw,3.5rem)!important}
 .conifer-hero-section .conifer-hero-slide img{object-position:65% center}
 .conifer-hero-section .conifer-hero-controls{bottom:16px}
 .conifer-hero-section>.wp-block-columns>.wp-block-column:first-child::before{
  inset:-12px -12px -12px -12px;backdrop-filter:blur(5px);
 }
}
@media(prefers-reduced-motion:reduce){
 .conifer-hero-section .conifer-hero-slide{
  transition:none!important;animation:none!important;
 }
 .conifer-hero-section .conifer-hero-dot{
  transition:none!important;
 }
}

/* Highest-specificity isolation: legacy homepage decorative ::before rules
 * must not replace the green legibility gradient or sit above slide imagery. */
.wp-site-blocks main .conifer-hero-section{
 position:relative!important;isolation:isolate!important;
 min-height:clamp(510px,55vw,690px)!important;
 background:#003d2a!important;overflow:hidden!important;
 padding-block:clamp(74px,9vw,126px)!important;
}
.wp-site-blocks main .conifer-hero-section .conifer-hero-stage{
 z-index:0!important;
}
.wp-site-blocks main .conifer-hero-section::before{
 content:""!important;display:block!important;
 position:absolute!important;inset:0!important;
 left:0!important;right:0!important;top:0!important;bottom:0!important;
 width:100%!important;height:100%!important;
 z-index:1!important;opacity:1!important;
 background:linear-gradient(90deg,rgba(0,35,24,.94) 0%,rgba(0,40,28,.85) 26%,rgba(0,43,29,.58) 51%,rgba(0,38,25,.06) 85%),
 linear-gradient(0deg,rgba(0,25,18,.27),transparent 47%)!important;
 background-size:cover!important;
 pointer-events:none!important;
}
.wp-site-blocks main .conifer-hero-section::after{
 content:none!important;display:none!important;
}
.wp-site-blocks main .conifer-hero-section>.wp-block-columns{
 position:relative!important;z-index:3!important;
}
.wp-site-blocks main .conifer-hero-section .conifer-hero-controls{
 z-index:5!important;
}
@media(max-width:781px){
 .wp-site-blocks main .conifer-hero-section{
  min-height:570px!important;padding-block:80px 95px!important;
 }
 .wp-site-blocks main .conifer-hero-section::before{
  background:linear-gradient(90deg,rgba(0,35,24,.90),rgba(0,40,28,.72)),
  linear-gradient(0deg,rgba(0,30,21,.50),transparent)!important;
 }
}

/* The old Concept B core stylesheet applies a more-specific !important
 * background shorthand to the CTA. Explicitly outrank it so the newly
 * approved handover image appears. */
.wp-site-blocks main .conifer-cta-section {
  background: linear-gradient(100deg,rgba(0,38,28,.94),rgba(0,73,48,.76)),
              var(--conifer-visual, none) center / cover no-repeat !important;
  background-position:center!important;
  background-size:cover!important;
}

/* Concept B's historic company-strengths :not() specificity also had !important.
 * Ensure the approved new management image replaces that diagram in the
 * homepage advantages section. */
.wp-site-blocks main .conifer-advantages-section
.conifer-image-placeholder:not(.conifer-hero-placeholder):not(.conifer-project-image-placeholder) {
  background-image:
    linear-gradient(170deg,rgba(0,39,25,.08),rgba(0,39,25,.19)),
    var(--conifer-visual, none) !important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}

/* CWR-HERO-EDGE: The core Gutenberg constrained layout caps the raw HTML
 * .conifer-hero-stage at content width (~800px). Its five photo layers must
 * occupy the full-width hero, not a centered content-sized strip.
 * Only copy remains inside the 1180px readable content container. */
.wp-site-blocks main .conifer-hero-section > .conifer-hero-stage {
  position:absolute!important;
  inset:0!important;
  top:0!important;right:0!important;bottom:0!important;left:0!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  height:100%!important;max-height:none!important;
  margin:0!important;padding:0!important;
  transform:none!important;
  overflow:hidden!important;
  z-index:0!important;
}
.wp-site-blocks main .conifer-hero-section > .conifer-hero-stage > .conifer-hero-slide {
  position:absolute!important;inset:0!important;
  width:100%!important;max-width:none!important;
  height:100%!important;margin:0!important;padding:0!important;
}
.wp-site-blocks main .conifer-hero-section > .conifer-hero-stage > .conifer-hero-slide > img {
  position:absolute!important;inset:0!important;
  display:block!important;
  width:100%!important;max-width:none!important;
  height:100%!important;
  object-fit:cover!important;
}

/* CWR-FOUR-APPROVED-SECTION-PHOTOS
 * Featured Projects 1 and 2 are documentary Conifer archive photographs,
 * NOT the artificial hero/planning/management images used before.
 * Archive IDs: residential #1692, ANAN construction #7575.
 * Keep the third portfolio card unchanged (#7578). */
.wp-site-blocks main .conifer-projects-section[data-conifer-project-visible="true"]
.wp-block-column:nth-child(1) .conifer-project-image-placeholder {
 background-image:linear-gradient(rgba(0,39,25,.09),rgba(0,39,25,.12)),
   url("/wp-content/uploads/2019/06/IMG_20161212_144407-1-scaled.jpg") !important;
 background-position:center!important;
 background-size:cover!important;
}
.wp-site-blocks main .conifer-projects-section[data-conifer-project-visible="true"]
.wp-block-column:nth-child(2) .conifer-project-image-placeholder {
 background-image:linear-gradient(rgba(0,39,25,.09),rgba(0,39,25,.12)),
   url("/wp-content/uploads/2026/10/conifer-anan-research-centre/20221216_095540.jpg") !important;
 background-position:center!important;
 background-size:cover!important;
}
/* Prevent clipping the design + raft halves more than needed for service card.
 * Use an aspect-ratio-specific visual position; work remains inside native card. */
.wp-site-blocks main .conifer-services-grid
.conifer-service-card:nth-child(4)::before {
 background-position:center center!important;
 background-repeat:no-repeat!important;
}

/* Authentic project photography is requested only when the section enters view. No temporary picture is displayed while waiting. */
.wp-site-blocks main .conifer-projects-section:not([data-conifer-project-visible="true"])
.conifer-project-image-placeholder {
 background-image:linear-gradient(rgba(0,39,25,.09),rgba(0,39,25,.12)),
  none !important;
 background-size:cover!important;
 background-position:center!important;
}
@media (scripting:none) {
 .wp-site-blocks main .conifer-projects-section .wp-block-column:nth-child(1) .conifer-project-image-placeholder {
  background-image:url("/wp-content/uploads/2019/06/IMG_20161212_144407-1-scaled.jpg")!important;
 }
 .wp-site-blocks main .conifer-projects-section .wp-block-column:nth-child(2) .conifer-project-image-placeholder {
  background-image:url("/wp-content/uploads/2026/10/conifer-anan-research-centre/20221216_095540.jpg")!important;
 }
 .wp-site-blocks main .conifer-projects-section .wp-block-column:nth-child(3) .conifer-project-image-placeholder {
  background-image:url("/wp-content/uploads/2026/10/conifer-anan-research-centre/20230425_085121.jpg")!important;
 }
}

/* All three featured project cards retain genuine site photographs after
 * the lazy project section activates. The third is the completed ANAN centre. */
.wp-site-blocks main .conifer-projects-section[data-conifer-project-visible="true"]
.wp-block-column:nth-child(3) .conifer-project-image-placeholder {
 background-image:linear-gradient(rgba(0,39,25,.09),rgba(0,39,25,.12)),
  url("/wp-content/uploads/2026/10/conifer-anan-research-centre/20230425_085121.jpg") !important;
 background-position:center!important;
 background-size:cover!important;
}
