/* Group-only warmth, editorial rhythm and progressive interactions. */
.site-group { --pale: #f5f3ef; --line: #dfded9; }
.site-group [hidden] { display: none !important; }
.site-group .header { transition: box-shadow .25s; }
.site-group .header.has-scrolled { box-shadow: 0 4px 24px #101e2b0b; }
.reading-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.group-hero { min-height: 750px; }
.group-hero .hero-shade { background: linear-gradient(90deg,#0c1c2bef 0%,#0c1c2bd1 40%,#0c1c2b55 72%,#0c1c2b19),linear-gradient(0deg,#0c1c2b75,transparent 30%); }
.group-hero h1 { font-size: clamp(3.4rem,5.5vw,5.65rem); max-width: 980px; line-height: 1.05; }
.group-hero .hero-content { padding-top: 64px; padding-bottom: 108px; }
.group-hero .hero-content>p { max-width: 530px; }
.group-hero .hero-photo img { object-position: 66% center; }
.hero-scroll { display: flex; align-items: center; gap: 22px; min-height: 44px; }
.hero-scroll>span { display: grid; place-items: center; border: 1px solid #ffffff55; width: 34px; height: 34px; border-radius: 50%; transition: transform .25s; }
.hero-scroll:hover>span { transform: translateY(3px); }
.group-signature { background: #f5f3ef; border-bottom: 1px solid var(--line); }
.group-signature .wrap { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 24px 0; color: #48545d; font-size: .85rem; }
.group-signature em { font-size: 1.1rem; color: var(--accent-dark); }
.family-section { background: #fcfbf8; }
.family-section h2 { font-size: clamp(2.4rem,3.25vw,3.5rem); line-height: 1.14; }
.family-section h2 em,.service-finder h2 em,.group-specialists h2 em,.project-spotlight h2 em { color: var(--accent-dark); }
.family-intro { margin: 28px 0 20px; font-size: 1.08rem; }
.family-values { margin-top: 28px; }
.family-values details { padding: 23px 0; border-color: #d5d1c9; }
.family-values summary { display: flex; gap: 22px; align-items: flex-start; font-size: 1.03rem; line-height: 1.5; }
.family-values summary::after { top: 0; }
.value-number { color: var(--accent-dark); font-size: .75rem; padding-top: 4px; }
.family-values summary small { display: block; color: #58616a; font-size: .88rem; font-weight: 400; margin-top: 6px; }
.family-values details p { margin: 18px 32px 0 39px; font-size: .95rem; }
.service-finder { background: #fff; scroll-margin-top: 20px; }
.finder-controls { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); }
.finder-controls button { display: flex; align-items: center; text-align: left; gap: 14px; color: var(--ink); background: #faf9f6; border: 0; border-right: 1px solid var(--line); border-bottom: 3px solid transparent; padding: 23px 20px; font-size: .9rem; min-height: 102px; line-height: 1.45; transition: background .2s,border-color .2s; }
.finder-controls button:last-child { border-right: 0; }
.finder-controls button>span:first-child { color: var(--accent-dark); font-size: .7rem; align-self: flex-start; margin-top: 4px; }
.finder-controls button>span:nth-child(2) { flex: 1; }
.finder-controls button svg { width: 18px; }
.finder-controls button[aria-selected=true] { background: var(--ink); color: #fff; border-bottom-color: var(--accent); }
.finder-controls button[aria-selected=true]>span:first-child { color: var(--light); }
.finder-controls button:hover:not([aria-selected=true]) { background: #eee9e1; }
.finder-controls button:focus-visible { outline-offset: -5px; position: relative; z-index: 1; }
.finder-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-top: 0; background: var(--pale); min-height: 410px; }
.finder-panel+.finder-panel { margin-top: 24px; }
.finder-controls:not([hidden])+.finder-panels .finder-panel { margin-top: 0; }
.finder-photo { position: relative; min-height: 410px; overflow: hidden; }
.finder-photo img { height: 100%; position: absolute; inset: 0; object-fit: cover; }
.finder-photo>span { position: absolute; bottom: 22px; left: 25px; right: 25px; width: fit-content; background: #101e2bf2; color: #fff; padding: 10px 15px; font-size: .8rem; }
.finder-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.finder-copy .eyebrow { font-size: .68rem; margin-bottom: 16px; }
.finder-copy h3 { font-size: clamp(1.7rem,2.4vw,2.35rem); max-width: 400px; line-height: 1.15; }
.finder-copy p { margin: 22px 0; }
.finder-links { display: flex; flex-direction: column; align-items: flex-start; }
.finder-links .text-link { font-size: .86rem; justify-content: space-between; gap: 25px; }
.finder-note { margin: 24px 0 0; font-size: .88rem; color: #58616a; }
.finder-note a { text-decoration: underline; text-underline-offset: 4px; color: var(--accent-dark); }
.group-specialists { background: var(--pale); }
.group-specialists .division-card { border-top-width: 2px; background: #fffdfa; }
.project-spotlight { background: #fffdfa; }
.spotlight-slide { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--pale); }
.spotlight-slide+.spotlight-slide { margin-top: 25px; }
.spotlight-slides:has(+.spotlight-controls:not([hidden])) .spotlight-slide { margin-top: 0; }
.spotlight-photo { min-height: 430px; position: relative; overflow: hidden; }
.spotlight-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .6s; }
.spotlight-photo:hover img { transform: scale(1.025); }
.spotlight-photo>span { position: absolute; bottom: 20px; left: 20px; color: white; background: #101e2bf2; padding: 8px 14px; font-size: .8rem; }
.spotlight-copy { display: flex; flex-direction: column; justify-content: center; padding: 45px; }
.spotlight-copy .eyebrow { font-size: .68rem; letter-spacing: .1em; }
.spotlight-copy h3 { font-size: clamp(1.9rem,2.6vw,2.7rem); line-height: 1.15; margin-bottom: 22px; }
.spotlight-team { color: #58616a; font-size: .8rem; border-top: 1px solid #d0cdc7; padding-top: 22px; margin-top: 6px; }
.spotlight-copy .text-link { margin-top: 12px; font-size: .85rem; }
.spotlight-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.spotlight-controls>div { display: flex; gap: 8px; }
.spotlight-controls button { border: 1px solid #c5c7c7; background: transparent; color: var(--ink); height: 48px; width: 52px; display: grid; place-items: center; transition: background .2s,color .2s; }
.spotlight-controls button:hover { background: var(--ink); color: #fff; }
.spotlight-controls button:first-child svg { transform: rotate(180deg); }
.spotlight-position { margin: 0; font-size: .83rem; }
.site-group .approach { position: relative; overflow: hidden; }
.site-group .approach .wrap { position: relative; }
.site-group .approach::before { content: ''; position: absolute; inset: auto auto -260px -220px; width: 600px; height: 600px; border: 1px solid #ffffff0e; transform: rotate(35deg); pointer-events: none; }
.site-group .cta { background: #90532e; }
.site-group .cta h2 { font-size: clamp(2.4rem,4vw,4.1rem); }
.project-filters { margin-bottom: 38px; border-bottom: 1px solid var(--line); padding-bottom: 24px; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.filter-fields { display: flex; gap: 20px; flex: 1; }
.filter-fields label { margin: 0; flex: 1; min-width: 0; font-size: .8rem; }
.filter-fields select { font-size: .88rem; min-height: 50px; }
#project-count { margin: 0 0 12px; font-size: .85rem; }
.filter-reset { border: 0; border-bottom: 1px solid var(--accent-dark); background: transparent; color: var(--accent-dark); min-height: 44px; padding: 8px 0; font-size: .88rem; }
.project-empty { padding: 35px; background: var(--pale); margin-bottom: 30px; }
.project-empty h2 { font-size: 1.8rem; margin-bottom: 20px; }
@media (prefers-reduced-motion:no-preference) {
  .group-hero .hero-photo img { animation: group-photo-enter 1.6s ease-out both; }
  .group-hero .hero-content { animation: group-enter .8s ease-out both; }
  .in-view { animation: group-enter .65s ease-out both; }
  .finder-controls:not([hidden])+.finder-panels .finder-panel:not([hidden]),.spotlight-slides:has(+.spotlight-controls:not([hidden])) .spotlight-slide:not([hidden]) { animation: group-panel-enter .32s ease-out; }
}
@keyframes group-photo-enter { from { transform: scale(1.025); } to { transform: scale(1); } }
@keyframes group-enter { from { opacity: .5; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes group-panel-enter { from { opacity: .5; } to { opacity: 1; } }
@media(max-width:1050px) {
  .finder-controls button { padding: 20px 14px; gap: 9px; }
  .finder-controls button svg { display: none; }
  .finder-copy,.spotlight-copy { padding: 32px; }
  .filter-fields { flex-basis: 100%; }
  #project-count { margin-right: auto; }
}
@media(max-width:850px) {
  .group-hero { min-height: 720px; }
  .group-hero h1 { font-size: clamp(3.1rem,7vw,4.5rem); }
  .group-signature .wrap { display: flex; }
  .group-signature .wrap>span { display: inline; }
  .group-signature .wrap>span+span { margin-top: 0; }
  .finder-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finder-controls button { min-height: 85px; border-bottom-width: 2px; }
  .finder-controls button:nth-child(2) { border-right: 0; }
  .spotlight-slide { grid-template-columns: 1fr 1fr; }
  .spotlight-photo { min-height: 460px; }
  .family-section .two-col { grid-template-columns: 1fr; }
  .family-section .two-col>div:first-child { max-width: 580px; }
}
@media(max-width:600px) {
  .group-hero { min-height: 0; }
  .group-hero .hero-content { padding-top: 55px; padding-bottom: 32px; }
  .group-hero h1 { font-size: clamp(2.5rem,9.8vw,3.7rem); }
  .group-hero .hero-content>p { font-size: 1rem; }
  .group-hero .hero-shade { background: linear-gradient(90deg,#0c1c2bf2,#0c1c2baa); }
  .group-hero .hero-caption { padding-top: 12px; }
  .hero-scroll { font-size: .8rem; justify-content: space-between; width: 100%; }
  .group-signature .wrap { padding: 20px 0; font-size: .8rem; }
  .group-signature em { font-size: 1rem; }
  .family-section h2 { font-size: 2.45rem; }
  .family-values summary { gap: 16px; }
  .family-values details p { margin-left: 33px; margin-right: 0; }
  .finder-controls button { font-size: .82rem; min-height: 100px; padding: 18px 12px; }
  .finder-panel,.spotlight-slide { grid-template-columns: minmax(0,1fr); }
  .finder-photo { min-height: 230px; }
  .finder-copy { padding: 28px 24px; min-height: 340px; }
  .finder-copy h3 { font-size: 1.85rem; }
  .finder-photo>span { left: 16px; bottom: 16px; }
  .finder-note { line-height: 1.8; }
  .spotlight-photo { min-height: 270px; }
  .spotlight-copy { padding: 30px 24px; min-height: 380px; }
  .spotlight-copy h3 { font-size: 2rem; }
  .spotlight-position { font-size: .77rem; }
  .spotlight-controls>div { flex-shrink: 0; }
  .spotlight-controls button { width: 44px; }
  .filter-fields { display: block; }
  .filter-fields label+label { margin-top: 20px; }
  .project-empty { padding: 25px; }
  .site-group .cta h2 { font-size: 2.75rem; }
}
@media print {
  .reading-progress,.finder-controls,.spotlight-controls,.project-filters,.finder-note,.hero-scroll { display: none!important; }
  .site-group .finder-panel[hidden],.site-group .spotlight-slide[hidden],.site-group .project-card[hidden] { display: grid!important; }
  .finder-panel,.spotlight-slide { break-inside: avoid; margin-bottom: 20px; }
  .finder-photo,.spotlight-photo { min-height: 250px; }
  .in-view { animation: none; }
}

/* Trading-name pages share the Group shell and keep every journey on one site. */
.business-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 32px; }
.business-breadcrumb { display: flex; flex-wrap: wrap; gap: 16px; }
.business-head { border-bottom: 3px solid var(--accent); }
.business-head.business-roofing { border-bottom-color: #416fec; }
.business-head.business-spv { border-bottom-color: #0a938f; }
.business-head h1 { max-width: 1100px; }
.business-directory-link { margin-top: 28px; }
.business-project-link { text-decoration: underline; text-underline-offset: 4px; }
#business-projects { scroll-margin-top: 110px; }
.site-group .division-number { line-height: 1.65; letter-spacing: .1em; }
@media (min-width: 851px) and (max-width: 1150px) {
  .site-group #navigation { gap: 17px; font-size: .82rem; }
  .site-group .nav-cta { padding: 10px 14px; gap: 12px; }
  .site-group .nav-wrap { gap: 16px; }
}
@media (max-width: 600px) {
  .business-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .business-actions .button { width: 100%; }
  .business-breadcrumb { gap: 12px; }
}

/* Full trading-name artwork leads each business page within the Group identity. */
.business-head .business-heading { margin: 30px 0 12px; line-height: 1; }
.business-logo { display: block; width: 39rem; max-width: 100%; height: auto; }
.business-spv .business-logo { width: 33rem; }
@media (max-width: 600px) {
  .business-head .business-heading { margin-top: 24px; }
}
