/* ═══ Building Services — premium construction & restoration ═══ */

@keyframes bsFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bs-animate > * {
    animation: bsFadeUp .85s cubic-bezier(.22, 1, .36, 1) both;
}

.bs-animate > *:nth-child(1) { animation-delay: .08s; }
.bs-animate > *:nth-child(2) { animation-delay: .16s; }
.bs-animate > *:nth-child(3) { animation-delay: .24s; }
.bs-animate > *:nth-child(4) { animation-delay: .32s; }
.bs-animate > *:nth-child(5) { animation-delay: .4s; }
.bs-animate > *:nth-child(6) { animation-delay: .48s; }

.bs-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
}

.bs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bs-pattern {
    position: relative;
    isolation: isolate;
}

.bs-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .04;
    background-image:
        linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 48px 48px;
}

.bs-pattern > * {
    position: relative;
    z-index: 1;
}

/* ── Shared typography ── */
.bs-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.bs-section-head--light {
    margin-bottom: 2.25rem;
}

.bs-section-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--heading);
}

.bs-section-title--light {
    color: var(--heading-on-dark);
}

.bs-section-intro {
    margin: .875rem auto 0;
    max-width: 36rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Services grid ── */
.bs-services {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--white);
}

.bs-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bs-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(7, 27, 59, .07);
    box-shadow: 0 10px 32px rgba(7, 27, 59, .06);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.bs-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(7, 27, 59, .11);
    border-color: rgba(7, 27, 59, .1);
}

.bs-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #071B3B 0%, #0e2d5e 100%);
    box-shadow: 0 8px 20px rgba(7, 27, 59, .18);
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1;
}

.bs-service-card__icon--newbuild::before { content: '⌂'; }
.bs-service-card__icon--loft::before { content: '▲'; font-size: 1rem; }
.bs-service-card__icon--extension::before { content: '⊞'; }
.bs-service-card__icon--bathroom::before { content: '◉'; font-size: .875rem; }
.bs-service-card__icon--kitchen::before { content: '◫'; }
.bs-service-card__icon--plumbing::before { content: '◎'; font-size: 1rem; }
.bs-service-card__icon--roofing::before { content: '⌂'; transform: scaleX(1.1); }
.bs-service-card__icon--plastering::before { content: '▭'; }
.bs-service-card__icon--electrical::before { content: '⚡'; font-size: 1.125rem; }
.bs-service-card__icon--masonry::before { content: '▦'; }
.bs-service-card__icon--management::before { content: '☰'; font-size: 1rem; }
.bs-service-card__icon--structural::before { content: '═'; letter-spacing: -.1em; }

.bs-service-card__title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading);
}

.bs-service-card__desc {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.65;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Restoration ── */
.bs-restoration {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--warm);
}

.bs-restoration__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

.bs-restoration__media {
    border-radius: 20px;
    overflow: hidden;
    background: #071B3B;
    box-shadow: 0 20px 52px rgba(7, 27, 59, .14);
    transition: box-shadow .4s ease;
}

.bs-restoration__media:hover {
    box-shadow: 0 28px 60px rgba(7, 27, 59, .18);
}

.bs-restoration__media img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center;
    transition: transform .65s cubic-bezier(.25, .46, .45, .94);
}

.bs-restoration__media:hover img {
    transform: scale(1.04);
}

.bs-restoration__copy {
    max-width: 34rem;
}

.bs-restoration__divider {
    width: 3rem;
    height: 2px;
    background: var(--brand-red);
    margin: 1.25rem 0 1.75rem;
}

.bs-restoration__intro {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 400;
    color: var(--text);
}

.bs-restoration__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .875rem;
}

.bs-restoration__list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--heading);
}

.bs-restoration__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: .1em;
    color: var(--brand-red);
    font-weight: 700;
    font-size: .875rem;
}

/* ── Roof raise ── */
.bs-roof {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--white);
}

.bs-roof__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

.bs-roof__copy {
    max-width: 36rem;
}

.bs-roof__lead {
    margin: 1.25rem 0 1rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 500;
    color: var(--heading);
}

.bs-roof__body {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 400;
    color: var(--text);
}

.bs-roof__benefits {
    list-style: none;
    margin: 0 0 2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--warm-mid);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .875rem 1.5rem;
}

.bs-roof__benefits li {
    position: relative;
    padding-left: 1.5rem;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--heading);
}

.bs-roof__benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-red);
    font-weight: 700;
    font-size: .8125rem;
}

.bs-roof__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bs-roof__media {
    border-radius: 20px;
    overflow: hidden;
    background: #071B3B;
    box-shadow: 0 20px 52px rgba(7, 27, 59, .14);
    transition: box-shadow .4s ease;
}

.bs-roof__media:hover {
    box-shadow: 0 28px 60px rgba(7, 27, 59, .18);
}

.bs-roof__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.25, .46, .45, .94);
}

.bs-roof__media:hover img {
    transform: scale(1.04);
}

/* ── Process timeline ── */
.bs-process {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--warm);
}

.bs-process__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    max-width: 980px;
    margin-inline: auto;
}

.bs-process__line {
    position: absolute;
    top: 2rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
    pointer-events: none;
}

.bs-process__step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 .75rem;
    transition: transform .3s ease;
}

.bs-process__step:hover {
    transform: translateY(-4px);
}

.bs-process__marker {
    margin: 0 auto 1.25rem;
}

.bs-process__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-inline: auto;
    border-radius: 50%;
    background: #071B3B;
    border: 2px solid var(--brand-red);
    box-shadow: 0 0 0 5px var(--warm), 0 12px 28px rgba(7, 27, 59, .14);
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--white);
    transition: box-shadow .3s ease, transform .3s ease;
}

.bs-process__step:hover .bs-process__num {
    transform: scale(1.06);
    box-shadow: 0 0 0 5px var(--warm), 0 16px 36px rgba(7, 27, 59, .18);
}

.bs-process__step h3 {
    margin: 0 0 .625rem;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
}

.bs-process__step p {
    margin: 0 auto;
    max-width: 14rem;
    font-size: .9375rem;
    line-height: 1.65;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Project showcase ── */
.bs-showcase {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: #071B3B;
    color: var(--text-on-dark);
}

.bs-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bs-showcase__tile {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, .25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .35s ease, transform .35s ease;
}

.bs-showcase__tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .32);
}

.bs-showcase__tile img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.25, .46, .45, .94);
}

.bs-showcase__tile:hover img {
    transform: scale(1.06);
}

.bs-showcase__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 27, 59, .88) 0%, rgba(7, 27, 59, .2) 55%, transparent 100%);
    pointer-events: none;
}

.bs-showcase__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.5rem;
    z-index: 1;
}

.bs-showcase__label strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .25rem;
}

.bs-showcase__label span {
    font-size: .8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .72);
    letter-spacing: .02em;
}

/* ── CTA ── */
.bs-cta {
    padding: clamp(4rem, 7vw, 5.5rem) 0;
    background: #071B3B;
    color: var(--text-on-dark);
}

.bs-cta__inner {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.bs-cta__title {
    margin: 0 0 1rem;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--heading-on-dark);
}

.bs-cta__lead {
    margin: 0 0 2rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, .82);
}

.bs-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ── Footer ── */
body:has(.building-services-page) .site-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

body:has(.building-services-page) .site-footer__main {
    padding: clamp(3rem, 5vw, 4rem) min(32px, 4vw) clamp(2.5rem, 4vw, 3.25rem);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bs-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bs-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bs-process__track {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .bs-process__line {
        display: none;
    }
}

@media (max-width: 900px) {
    .bs-restoration__layout,
    .bs-roof__layout {
        grid-template-columns: 1fr;
    }

    .bs-restoration__media {
        order: -1;
    }

    .bs-roof__media {
        order: -1;
    }
}

@media (max-width: 768px) {
    .bs-roof__actions,
    .bs-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bs-roof__actions .btn,
    .bs-cta__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .bs-services__grid,
    .bs-showcase__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }

    .bs-process__track {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .bs-roof__benefits {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bs-animate > *,
    .bs-reveal {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bs-hero__photo,
    .bs-service-card:hover,
    .bs-restoration__media:hover img,
    .bs-roof__media:hover img,
    .bs-showcase__tile:hover,
    .bs-showcase__tile:hover img {
        transform: none !important;
    }
}
