/* Hero slider options. Loaded after site.css and interact.css; every rule is driven by classes the Hero slider row sets. */
.hero{--ov:10,25,40;--hh:78vh;--hhm:auto;--hb:28px;--hx:0px}
.hero:has(+ .strip-overlap){--hx:3.4rem}
.hero:has(+ .hero-form-toggle){--hx:0px}
.hero .hero-slide{min-height:var(--hh)!important}
.hero-slide.va-top{align-items:flex-start}.hero-slide.va-bottom{align-items:flex-end}

/* overlay */
.hero.ho-side .hero-overlay{background:linear-gradient(90deg,rgba(var(--ov),calc(var(--o) * 1.5)) 0%,rgba(var(--ov),calc(var(--o) * 1.05)) 42%,rgba(var(--ov),calc(var(--o) * .15)) 80%),linear-gradient(0deg,rgba(var(--ov),calc(var(--o) * .6)) 0%,rgba(var(--ov),0) 38%)}
.hero.ho-even .hero-overlay{background:rgba(var(--ov),var(--o))}
.hero.ho-bottom .hero-overlay{background:linear-gradient(0deg,rgba(var(--ov),calc(var(--o) * 1.6)) 0%,rgba(var(--ov),calc(var(--o) * .5)) 45%,rgba(var(--ov),0) 80%)}
.hero.ho-none .hero-overlay{background:none}
.hero.hc-dark{--ov:255,255,255}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* text size and width */
.hero.hw-s .hero-content{max-width:32rem}.hero.hw-m .hero-content{max-width:41rem}.hero.hw-l .hero-content{max-width:52rem}.hero.hw-xl .hero-content{max-width:66rem}
.hero.hw-l .hero-text,.hero.hw-xl .hero-text{max-width:44rem}
.hero.ht-s .hero-title{font-size:clamp(1.8rem,3.2vw,2.8rem)!important;max-width:22ch}
.hero.ht-m .hero-title{max-width:16ch}
.hero.ht-l .hero-title{font-size:clamp(2.8rem,5.8vw,5.2rem)!important;max-width:18ch}
.hero.ht-xl .hero-title{font-size:clamp(3.2rem,7.4vw,7rem)!important;max-width:20ch;line-height:1!important}
.hero.hw-xl .hero-title{max-width:28ch}
.hero.hero .hero-slide.align-center .hero-title{margin-inline:auto}
.hero-eyebrow{display:flex;align-items:center;gap:.8rem;margin:0 0 1.1rem;font-size:.78rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--c-accent)}
.hero-eyebrow::before{content:"";width:2.2rem;height:1px;background:currentColor}
.hero-slide.align-center .hero-eyebrow{justify-content:center}
.hero-slide.align-right .hero-content{margin-left:auto;text-align:right}
.hero-slide.align-right .hero-buttons,.hero-slide.align-right .hero-eyebrow{justify-content:flex-end}
.hero-slide.align-right .hero-title,.hero-slide.align-right .hero-text{margin-left:auto}

/* dark text */
.hero.hc-dark .hero-title,.hero.hc-dark .hero-text,.hero.hc-dark .hero-trust{color:var(--c-primary-dark)}
.hero.hc-dark .hero-trust{border-color:rgba(0,0,0,.18)}
.hero.hc-dark .btn-outline-light{color:var(--c-primary-dark);border-color:var(--c-primary-dark)}
.hero.hc-dark .btn-outline-light:hover{background:var(--c-primary-dark);color:#fff}
.hero.hc-dark .carousel-indicators button{--ic:rgba(0,0,0,.28)}
.hero.hc-dark .hero-count,.hero.hc-dark .carousel-indicators button span{color:var(--c-primary-dark)}

/* buttons */
.hero.hb-pill .hero-buttons .btn{border-radius:999px;padding-inline:1.9rem}
.hero.hb-square .hero-buttons .btn{border-radius:0}
.hero.hb-link .hero-buttons{gap:2rem}
.hero.hb-link .hero-buttons .btn{background:none!important;border:0!important;border-bottom:2px solid var(--c-accent)!important;border-radius:0;padding:.3rem 0;color:inherit!important;box-shadow:none}
.hero.hb-link .hero-buttons .btn::after{content:" \2192";transition:margin .2s}
.hero.hb-link .hero-buttons .btn:hover::after{margin-left:.4rem}
.hero.hb-link:not(.hc-dark) .hero-buttons .btn{color:#fff!important}

/* indicators: centred by default */
.hero{--ic:rgba(255,255,255,.45)}
.hero .carousel-indicators{left:0;right:0;bottom:calc(var(--hb) + var(--hx));margin:0;padding:0 var(--container-pad,1rem);justify-content:center;gap:.5rem;display:flex}
.hero .carousel-indicators [data-bs-target]{flex:0 0 auto;box-sizing:border-box;margin:0;text-indent:0;border:0;opacity:1;width:34px;height:4px;border-radius:2px;background:var(--ic);transition:width .3s,background .3s}
.hero .carousel-indicators .active{background:var(--c-accent);width:52px}
.hero.hp-left .carousel-indicators,.hero.hp-right .carousel-indicators{padding-inline:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)))}
.hero.hp-left .carousel-indicators{justify-content:flex-start}.hero.hp-right .carousel-indicators{justify-content:flex-end}
.hero.hp-side .carousel-indicators{left:auto;right:1.6rem;top:50%;bottom:auto;transform:translateY(-50%);flex-direction:column;width:auto;padding:0;align-items:center}
.hero.hp-side .carousel-indicators [data-bs-target]{width:4px;height:34px}
.hero.hp-side .carousel-indicators .active{width:4px;height:52px}
/* dots */
.hero.hd-dots .carousel-indicators [data-bs-target],.hero.hd-dots .carousel-indicators .active{width:10px;height:10px;border-radius:50%}
.hero.hd-dots .carousel-indicators .active{transform:scale(1.35)}
/* progress bars */
.hero.hd-progress .carousel-indicators [data-bs-target]{position:relative;overflow:hidden;width:56px}
.hero.hd-progress .carousel-indicators .active{width:56px;background:var(--ic)}
.hero.hd-progress .carousel-indicators .active::after{content:"";position:absolute;inset:0;background:var(--c-accent);transform-origin:left;animation:hprog var(--iv) linear forwards}
.hero.hd-progress.hero-ph:hover .carousel-indicators .active::after{animation-play-state:paused}
.hero.hp-side.hd-progress .carousel-indicators [data-bs-target],.hero.hp-side.hd-progress .carousel-indicators .active{width:4px;height:44px}
.hero.hp-side.hd-progress .carousel-indicators .active::after{transform-origin:top;animation-name:hprogv}
@keyframes hprog{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hprogv{from{transform:scaleY(0)}to{transform:scaleY(1)}}
/* numbers and headings */
.hero.hd-numbers .carousel-indicators [data-bs-target],.hero.hd-titles .carousel-indicators [data-bs-target]{width:auto;height:auto;border-radius:0;background:none;color:#fff;opacity:.55;padding:.7rem 0 0;position:relative}
.hero.hd-numbers .carousel-indicators [data-bs-target]{padding:.6rem .35rem 0;font-size:.85rem;letter-spacing:.16em;font-weight:600}
.hero.hd-titles .carousel-indicators [data-bs-target]{max-width:15rem;text-align:left;font-size:.85rem;line-height:1.35;padding-inline:0 1rem;flex:1 1 0}
.hero.hd-titles .carousel-indicators{gap:.5rem 1.2rem}
.hero.hd-numbers .carousel-indicators .active,.hero.hd-titles .carousel-indicators .active{width:auto;background:none;opacity:1}
.hero.hd-numbers .carousel-indicators [data-bs-target]::before,.hero.hd-titles .carousel-indicators [data-bs-target]::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--ic)}
.hero.hd-numbers .carousel-indicators .active::before,.hero.hd-titles .carousel-indicators .active::before{background:var(--c-accent)}
.hero.hd-numbers .carousel-indicators span,.hero.hd-titles .carousel-indicators span{color:#fff;text-indent:0;display:block}
.hero.hd-titles.hp-center .carousel-indicators{justify-content:center}
.hero.hp-side.hd-numbers .carousel-indicators [data-bs-target]::before,.hero.hp-side.hd-titles .carousel-indicators [data-bs-target]::before{display:none}
/* counter */
.hero-count{position:absolute;z-index:5;bottom:calc(var(--hb) + var(--hx) + 2px);right:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)));display:flex;align-items:center;gap:.7rem;color:#fff;font-size:.9rem;letter-spacing:.14em;font-variant-numeric:tabular-nums}
.hero-count i{width:2.4rem;height:1px;background:currentColor;opacity:.6}
.hero-count span{opacity:.6}
.hero.hp-right .hero-count{right:auto;left:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)))}

/* arrows */
.hero .hero-arrows{display:contents}
.hero .carousel-control-prev,.hero .carousel-control-next{display:none}
@media (min-width:768px){.hero .carousel-control-prev,.hero .carousel-control-next{display:flex}}
.hero.ha-mob .carousel-control-prev,.hero.ha-mob .carousel-control-next{display:flex}
.hero.ha-square .hero-arrow{border-radius:0;background:rgba(0,0,0,.35)}
.hero.ha-minimal .hero-arrow{background:none;backdrop-filter:none;width:auto;height:auto}
.hero.ha-minimal .carousel-control-prev:hover .hero-arrow,.hero.ha-minimal .carousel-control-next:hover .hero-arrow{background:none;color:var(--c-accent)}
.hero.hap-bottom .hero-arrows{display:flex;gap:.5rem;position:absolute;z-index:5;bottom:calc(var(--hb) + var(--hx) - 6px);right:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)))}
.hero.hap-bottom .carousel-control-prev,.hero.hap-bottom .carousel-control-next{position:static;width:auto}
.hero.hap-bottom .hero-arrow{width:46px;height:46px}
.hero.hap-bottom.hp-right .hero-arrows,.hero.hap-bottom.hf-on .hero-arrows{right:auto;left:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)))}
.hero.hap-bottom.hp-right.hf-on .hero-arrows{left:auto;right:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)))}

/* enquiry form */
.hero:not(.hf-on) .hero-form-wrap,.hero:not(.hf-on) .hero-form-toggle{display:none}
.hero-form-toggle{display:none}
.hero.hf-left .hero-form-wrap .container{justify-content:flex-start}
.hero.hfw-s .hero-form-pos{width:min(340px,100%)}.hero.hfw-m .hero-form-pos{width:min(400px,100%)}.hero.hfw-l .hero-form-pos{width:min(480px,100%)}
.hero.hf-left .hero-content{margin-left:auto}
.hero.hf-left .hero-slide.align-left .hero-content{margin-left:auto}
.qf-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.5rem}
.qf-name,.qf-service{grid-column:1/-1}
.qf-grid:not(:has(.qf-phone)) .qf-email{grid-column:1/-1}
.qf-cap{margin-bottom:1rem}.qf-cap:empty{display:none}
.hero.hfs-glass .quick-card{background:rgba(255,255,255,.12);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border:1px solid rgba(255,255,255,.28);border-top:3px solid var(--c-accent);color:#fff}
.hero.hfs-dark .quick-card{background:var(--c-primary-dark);color:#e8eef5;border:1px solid rgba(255,255,255,.1);border-top:3px solid var(--c-accent)}
.hero.hfs-glass .quick-title,.hero.hfs-dark .quick-title,.hero.hfs-glass .quick-text,.hero.hfs-dark .quick-text,.hero.hfs-glass .quick-phone,.hero.hfs-dark .quick-phone{color:#fff}
.hero.hfs-glass .quick-phone a,.hero.hfs-dark .quick-phone a{color:var(--c-accent)}
.hero.hfs-glass .quick-card .form-control,.hero.hfs-glass .quick-card .form-select,.hero.hfs-dark .quick-card .form-control,.hero.hfs-dark .quick-card .form-select{background-color:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25);color:#fff}
.hero.hfs-glass .quick-card .form-control::placeholder,.hero.hfs-dark .quick-card .form-control::placeholder{color:rgba(255,255,255,.7)}
.hero.hfs-glass .quick-card .form-select option,.hero.hfs-dark .quick-card .form-select option{color:#111}

/* form overlapping the bottom edge: a wide bar */
.hero.hf-below{overflow:visible}
.hero.hf-below .hero-form-wrap{position:relative;inset:auto;display:block;pointer-events:auto;background:none;padding:0;margin-top:-4.2rem;z-index:7}
.hero.hf-below .hero-form-wrap .container{display:block}
.hero.hf-below .hero-form-pos{width:100%;margin:0}
.hero.hf-below .quick-card{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 2rem;padding:1.4rem 2rem}
.hero.hf-below .quick-title{margin:0;flex:0 0 auto}
.hero.hf-below .quick-text{display:none}
.hero.hf-below .quick-form{flex:1 1 30rem;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.hero.hf-below .qf-grid{flex:1 1 20rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));margin:0}
.hero.hf-below .qf-name,.hero.hf-below .qf-service{grid-column:auto}
.hero.hf-below .qf-btn{width:auto!important;flex:0 0 auto}
.hero.hf-below .qf-cap{margin:0}
.hero.hf-below .quick-phone{margin:0;flex:0 0 100%;text-align:left}
.hero.hf-below .form-status{flex:0 0 100%}
.hero.hf-below.hero .hero-slide{padding-bottom:8rem}
.hero.hf-below + *{position:relative}

/* split layout */
.hero-split .hero-slide{background-image:none!important;background:var(--c-primary-dark)}
.hero-split .hero-slide::after{content:"";position:absolute;top:0;bottom:0;right:0;width:46%;background:var(--bg) center/cover no-repeat}
.hero-split .hero-slide.align-right::after{right:auto;left:0}
.hero-split .hero-overlay{display:none}
.hero-split .hero-content{max-width:min(36rem,50%)}
.hero-split .hero-video{left:auto;right:0;width:46%}
.hero-split.hf-on .hero-slide::after{width:42%}
@media (max-width:991.98px){
  .hero-split .hero-slide{display:block;padding:0}
  .hero-split .hero-slide::after{position:static;display:block;width:100%;height:42vw;min-height:200px;order:-1}
  .hero-split .hero-slide .container{padding-block:2.5rem 4.5rem}
  .hero-split .hero-content{max-width:none}
  .hero-split .hero-video{display:none}
}

/* parallax photo (desktop; needs the Fade layout) */
@media (min-width:992px){.hero.hero-par.hero-fade .hero-slide{background-attachment:fixed}}

/* phone: own photo, no video, height, form handling */
@media (max-width:767.98px){
  .hero-slide[style*="--bgm"]{background-image:var(--bgm)!important}
  .hero-kb .hero-slide[style*="--bgm"]::before{background-image:var(--bgm)}
  .hero-video{display:none}
  .hero.ho-side .hero-overlay{background:linear-gradient(180deg,rgba(var(--ov),calc(var(--o) * 1.3)),rgba(var(--ov),calc(var(--o) * 1.1)))}
  .hero.ho-none .hero-overlay{background:none}
  .hero.hero .hero-slide{min-height:var(--hhm)!important}
  .hero.hp-side .carousel-indicators{right:.8rem}
  .hero.hd-titles .carousel-indicators [data-bs-target]{display:none}
  .hero.hd-titles .carousel-indicators .active{display:block}
}
@media (max-width:1199.98px){
  .hero .hero-slide{min-height:var(--hhm)!important}
  .hero .carousel-indicators{display:flex}
  .hero.hf-on.hfm-hide .hero-form-wrap{display:none}
  .hero.hf-on.hfm-button .hero-form-wrap{display:none}
  .hero.hf-on.hfm-button.is-form-open .hero-form-wrap{display:block}
  .hero.hf-on.hfm-button .hero-form-toggle{display:block;background:var(--c-primary-dark);padding:0 0 1.2rem}
  .hero.hf-below .hero-form-wrap{margin-top:-2.5rem;background:var(--c-primary-dark);padding-bottom:2rem}
  .hero.hf-below .quick-card{display:block;padding:1.6rem}
  .hero.hf-below .quick-text{display:block}
  .hero.hf-below .quick-form{display:block}
  .hero.hf-below .qf-grid{grid-template-columns:1fr 1fr;margin-bottom:.5rem}
  .hero.hf-below .qf-name,.hero.hf-below .qf-service{grid-column:1/-1}
  .hero.hf-below .qf-btn{width:100%!important}
  .hero.hf-below .hero-slide{padding-bottom:5.5rem}
}
.hero.hf-on.hf-below{overflow:visible}
@media (max-width:1199.98px){.hero.hf-below{overflow:hidden}}
@media (prefers-reduced-motion:reduce){.hero-video{display:none}.hero.hd-progress .carousel-indicators .active::after{animation:none;transform:none}}
/* keep the counter clear of bottom arrows */
.hero.hap-bottom .hero-count{right:auto;left:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)))}
.hero.hap-bottom.hp-right .hero-count{margin-left:8rem}
.hero.hap-bottom.hp-left .hero-count{left:auto;right:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)));margin-right:8rem}
.hero.hap-bottom.hp-left .hero-arrows{right:max(var(--container-pad,1rem),calc((100% - var(--container-max,1200px)) / 2 + var(--container-pad,1rem)))}
.hero.hf-below{--hx:4.8rem}
.hero.hf-below + .strip-overlap{margin-top:2.5rem}
.hero.hf-below .quick-phone{display:none}
@media (max-width:1199.98px){.hero.hf-below{--hx:0px}.hero.hf-below + .strip-overlap{margin-top:-3.2rem}.hero.hf-below .quick-phone{display:block}}
.hero.hd-titles .hero-slide,.hero.hd-numbers .hero-slide{padding-bottom:9.5rem}
