/* =====================================================================
   Sections added Nov 2026: before/after hero, quote popup, completed
   projects, layered floor model, quality, safety, Instagram reels,
   about page additions, footer certifications.
   Uses the colour tokens from style.css (--dark, --gold, --gold2, --light, --muted).
   ===================================================================== */

:root {
    --line-light: #e7e2d7;
    --line-dark: rgba(255, 255, 255, .12);
    --ink: #111317;
}

.btn-dark-ink {
    background: var(--ink);
    color: #fff !important;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 800
}

.btn-dark-ink:hover {
    color: var(--gold2) !important
}

/* ---------- Hero: before / after ---------- */
.hero.hero-ba {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 150px 0 120px;
    background: var(--dark);
    -webkit-user-select: none;
    user-select: none
}

.ba {
    --pos: 50%;
    position: absolute;
    inset: 0;
    z-index: -1;
    cursor: ew-resize;
    touch-action: pan-y
}

.ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    pointer-events: none;
    -webkit-user-drag: none
}

.ba-after {
    clip-path: inset(0 0 0 var(--pos))
}

.ba::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11, 13, 16, .9) 0%, rgba(11, 13, 16, .74) 30%, rgba(11, 13, 16, .3) 60%, rgba(11, 13, 16, 0) 80%),
        linear-gradient(0deg, rgba(11, 13, 16, .7) 0%, rgba(11, 13, 16, 0) 26%),
        linear-gradient(180deg, rgba(11, 13, 16, .6) 0%, rgba(11, 13, 16, 0) 22%)
}

.ba-line {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: var(--gold2);
    box-shadow: 0 0 18px rgba(244, 213, 141, .55);
    pointer-events: none
}

.ba-knob {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: 54px;
    height: 54px;
    margin-left: -27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    transition: transform .2s
}

.ba.is-dragging .ba-knob {
    transform: scale(1.08)
}

.ba:focus-within .ba-knob {
    outline: 3px solid #fff;
    outline-offset: 3px
}

.ba-tag {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    pointer-events: none
}

.ba-tag-before {
    left: 24px;
    color: #fff;
    background: rgba(11, 13, 16, .78);
    border: 1px solid rgba(255, 255, 255, .22)
}

.ba-tag-after {
    right: 24px;
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--gold2))
}

/* The range input is the keyboard / screen-reader control; pointer dragging is handled in JS. */
.ba-range {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.hero-ba .hero-content {
    position: relative;
    z-index: 3;
    pointer-events: none
}

.hero-ba .hero-content a,
.hero-ba .hero-content button {
    pointer-events: auto
}

.hero-ba h1,
.hero-ba .hero-text {
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45)
}

.hero-ba .hero-badge {
    background: rgba(11, 13, 16, .45);
    backdrop-filter: blur(6px)
}

/* Tablets and phones: text sits at the top, so darken only the top and leave the floor below visible */
@media (max-width: 991px) {
    .hero.hero-ba {
        padding: 130px 0 120px
    }

    .ba::after {
        background:
            linear-gradient(180deg, rgba(11, 13, 16, .9) 0%, rgba(11, 13, 16, .74) 45%, rgba(11, 13, 16, .12) 72%, rgba(11, 13, 16, .3) 100%)
    }
}

.hero-eyebrow,
.hero-scroll {
    display: none
}

/* Phones: the photo fills the screen (only the photo sits behind the floating quote/call buttons),
   lighter shading so the floor reads clearly, compact centred text, and the slider handle + labels
   just above the floating buttons. */
@media (max-width: 575px) {
    .hero.hero-ba {
        min-height: 100svh;
        align-items: center;
        padding: 96px 0 176px
    }

    .ba::after {
        background: linear-gradient(180deg, rgba(11, 13, 16, .66) 0%, rgba(11, 13, 16, .44) 28%, rgba(11, 13, 16, .36) 62%, rgba(11, 13, 16, .55) 100%)
    }

    .hero-eyebrow {
        display: block;
        margin: 0 0 12px;
        color: var(--gold2);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
        text-shadow: 0 1px 12px rgba(0, 0, 0, .5)
    }

    .hero-ba h1 {
        margin-bottom: 14px;
        font-size: 2.15rem;
        font-weight: 800;
        letter-spacing: -1px;
        line-height: 1.06
    }

    .hero-ba .hero-text {
        margin-bottom: 0;
        color: rgba(255, 255, 255, .9);
        font-size: .95rem;
        line-height: 1.6
    }

    .hero-scroll {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 22px;
        color: rgba(255, 255, 255, .88);
        font-size: .92rem;
        font-weight: 600;
        text-shadow: 0 1px 12px rgba(0, 0, 0, .5)
    }

    .ba-knob {
        bottom: 132px;
        width: 46px;
        height: 46px;
        margin-left: -23px
    }

    .ba-tag {
        bottom: 94px;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: .68rem;
        letter-spacing: .1em;
        text-transform: uppercase
    }

    .ba-tag-before {
        left: 14px
    }

    .ba-tag-after {
        right: 14px
    }
}

/* ---------- Menu bar ---------- */
.navbar .navbar-toggler {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 12px
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(244, 213, 141, .45)
}

/* Homepage: see-through over the hero photo until the visitor scrolls or opens the menu */
.navbar.navbar-over-hero {
    transition: background-color .3s ease, border-color .3s ease
}

.navbar.navbar-over-hero:not(.is-scrolled):not(.is-open) {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none
}

@media (max-width: 575px) {
    .navbar-brand img {
        height: 56px
    }
}

/* ---------- Sticky quote tab ---------- */
.quote-tab {
    position: fixed;
    z-index: 1030;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    padding: 18px 11px;
    border: 0;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, var(--gold2), var(--gold));
    color: #111;
    font-size: .92rem;
    font-weight: 900;
    box-shadow: -10px 14px 34px rgba(0, 0, 0, .28);
    transition: padding .2s ease
}

.quote-tab span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap
}

.quote-tab i {
    font-size: 1.1rem
}

.quote-tab:hover {
    padding-right: 16px
}

.quote-tab:focus-visible {
    outline: 3px solid #111;
    outline-offset: -6px
}

/* Phones: a side tab would cover text, so it becomes a pill at the bottom next to the call button. */
@media (max-width: 575px) {
    .quote-tab {
        top: auto;
        bottom: 18px;
        left: 16px;
        right: 90px;
        transform: none;
        flex-direction: row;
        justify-content: center;
        height: 58px;
        padding: 0 18px;
        border-radius: 999px;
        font-size: .95rem;
        box-shadow: 0 14px 35px rgba(0, 0, 0, .28)
    }

    .quote-tab span {
        writing-mode: horizontal-tb;
        transform: none
    }

    .quote-tab:hover {
        padding-right: 18px
    }

    /* leave room so the pill never hides the end of the page */
    footer {
        padding-bottom: 100px
    }
}

/* ---------- Quote popup ---------- */
.quote-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    box-shadow: var(--shadow)
}

.quote-modal .btn-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px
}

.quote-modal-aside {
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 34px 30px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(11, 13, 16, .35) 0%, rgba(11, 13, 16, .92) 70%),
        url('../img/hero-after.jpg') 70% center / cover
}

.quote-modal-aside .mini {
    align-self: flex-start;
    font-size: .8rem;
    font-weight: 800;
    color: #111;
    background: var(--gold2);
    padding: 6px 12px;
    border-radius: 999px
}

.quote-modal-aside h3 {
    margin: 10px 0 0;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.1
}

.quote-modal-aside ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 18px
}

.quote-modal-aside li {
    display: flex;
    gap: 10px;
    margin-bottom: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9)
}

.quote-modal-aside li i {
    color: var(--gold2)
}

.quote-modal-call {
    color: #fff;
    font-weight: 800
}

.quote-modal-call:hover {
    color: var(--gold2)
}

.quote-modal-body {
    padding: 38px 34px 30px
}

.quote-modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -.5px;
    margin: 0 40px 6px 0
}

.form-status {
    margin: 12px 0 0;
    font-size: .92rem;
    font-weight: 700
}

.form-status.is-ok {
    color: #1f7a3f
}

.form-status.is-error {
    color: #b42318
}

@media (max-width: 767px) {
    .quote-modal-body {
        padding: 30px 22px 24px
    }
}

/* ---------- Completed projects ---------- */
.projects-sec {
    background: var(--light);
    overflow: hidden
}

.projects-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px
}

.pc-nav {
    display: flex;
    align-items: center;
    gap: 12px
}

.pc-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    background: #fff;
    color: #111;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    transition: background .2s, color .2s
}

.pc-btn:hover,
.pc-btn:focus-visible {
    background: #111;
    color: var(--gold2)
}

.pc-count {
    min-width: 64px;
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums
}

.pc {
    --pc-w: clamp(240px, 26vw, 360px);
    --pc-h: calc(var(--pc-w) * 4 / 3);
    --step: calc(var(--pc-w) * .76);
    position: relative;
    height: var(--pc-h);
    touch-action: pan-y;
    outline: none
}

.pc:focus-visible .pc-slide.is-active {
    box-shadow: 0 0 0 4px var(--gold), 0 24px 50px rgba(0, 0, 0, .2)
}

.pc-slide {
    --d: 0;
    --ad: 0;
    position: absolute;
    left: 50%;
    top: 0;
    width: var(--pc-w);
    height: var(--pc-h);
    margin: 0 0 0 calc(var(--pc-w) / -2);
    border-radius: 24px;
    overflow: hidden;
    background: #d9d5cc;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .2);
    transform: translateX(calc(var(--d) * var(--step))) scale(calc(1 - var(--ad) * .1));
    z-index: calc(10 - var(--ad));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .45s, filter .45s
}

.pc-slide:not(.is-active) {
    cursor: pointer;
    filter: brightness(.6) saturate(.85)
}

.pc-slide.is-far {
    opacity: 0;
    pointer-events: none
}

.pc-slide a {
    display: block;
    width: 100%;
    height: 100%
}

.pc-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none
}

.pc-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 22px 20px;
    color: #fff;
    background: linear-gradient(180deg, rgba(11, 13, 16, 0), rgba(11, 13, 16, .9));
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none
}

.pc-slide.is-active figcaption {
    opacity: 1
}

.pc-kind {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    color: #111;
    background: var(--gold2)
}

.pc-slide figcaption b {
    display: block;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.25
}

.pc-slide figcaption small {
    color: rgba(255, 255, 255, .72);
    font-weight: 600
}

.pc-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(11, 13, 16, .6);
    opacity: 0;
    transition: opacity .3s
}

.pc-slide.is-active .pc-zoom {
    opacity: 1
}

.pc-log {
    margin-top: 60px;
    padding-top: 28px;
    border-top: 1px solid var(--line-light)
}

.pc-log-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 20px;
    margin-bottom: 10px
}

.pc-log-head h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 900
}

.pc-log-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 600
}

.pc-log ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3 280px;
    column-gap: 44px
}

.pc-log li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-light);
    break-inside: avoid
}

.pc-log li b {
    font-weight: 800
}

.pc-log li span {
    grid-column: 1;
    color: var(--muted);
    font-size: .9rem
}

.pc-log li em {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-style: normal;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

@media (max-width: 575px) {
    .pc {
        --pc-w: 68vw;
        --step: calc(var(--pc-w) * .84)
    }

    .pc-nav {
        width: 100%;
        justify-content: space-between
    }
}

/* ---------- Every floor is built in layers ---------- */
.layers-sec {
    color: #fff;
    overflow: hidden;
    background: radial-gradient(120% 90% at 78% 30%, #262a31 0%, #14171c 55%, #0b0d10 100%)
}

.layers-sec .section-subtitle {
    color: rgba(255, 255, 255, .72)
}

.layer-steps {
    position: relative;
    list-style: none;
    margin: 30px 0 0;
    padding: 0
}

.layer-steps::before {
    content: "";
    position: absolute;
    left: 37px;
    top: 30px;
    bottom: 30px;
    width: 1px;
    background: rgba(255, 255, 255, .18)
}

.layer-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    outline: none;
    transition: background .2s
}

.layer-steps li:hover,
.layer-steps li:focus-visible {
    background: rgba(255, 255, 255, .06)
}

.layer-steps li:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(244, 213, 141, .6)
}

.layer-steps .n {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--gold2);
    background: #1b1f25;
    border: 1px solid rgba(255, 255, 255, .2)
}

.layer-steps li:hover .n,
.layer-steps li:focus-visible .n {
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border-color: transparent
}

.layer-steps b {
    display: block;
    font-size: 1.05rem
}

.layer-steps .d {
    color: rgba(255, 255, 255, .66)
}

.lay-stage {
    position: relative;
    height: 480px;
    border-radius: 28px;
    outline: none;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    background: radial-gradient(55% 55% at 38% 58%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 72%)
}

.lay-stage.is-dragging {
    cursor: grabbing
}

.lay-stage:focus-visible {
    box-shadow: 0 0 0 3px rgba(244, 213, 141, .7)
}

.lay-scene {
    position: absolute;
    inset: 0;
    perspective: 1600px;
    perspective-origin: 38% 35%
}

.lay-stack {
    position: absolute;
    left: 38%;
    top: 54%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--pitch, 58deg)) rotateZ(var(--yaw, -40deg))
}

.lay-layer {
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    transform: translateZ(var(--z, 0px));
    transition: transform .75s cubic-bezier(.2, .8, .2, 1), opacity .3s
}

.lay-stage.no-anim .lay-layer {
    transition: none
}

.lay-face {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden
}

.lay-top {
    width: var(--s);
    height: var(--s);
    transform: translate3d(calc(var(--s) / -2), calc(var(--s) / -2), var(--t));
    background: var(--top);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16)
}

.lay-side {
    width: var(--s);
    height: var(--t);
    transform: rotateZ(calc(var(--k) * 90deg)) translate3d(calc(var(--s) / -2), calc(var(--s) / 2), var(--t)) rotateX(-90deg);
    background: var(--side)
}

.lay-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--shade, .35))
}

.lay-anchor {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 2px;
    visibility: hidden;
    transform: rotateZ(calc(var(--k) * 90deg)) translate3d(calc(var(--s) / 2), calc(var(--s) / 2), calc(var(--t) / 2))
}

.lay-shadow {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--s);
    height: var(--s);
    transform: translate3d(calc(var(--s) / -2), calc(var(--s) / -2), var(--z));
    background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    pointer-events: none;
    transition: transform .75s cubic-bezier(.2, .8, .2, 1)
}

.lay-stage.no-anim .lay-shadow {
    transition: none
}

.lay-layer.is-dim {
    opacity: .28
}

.lay-layer.is-lit .lay-top {
    box-shadow: inset 0 0 0 2px var(--gold2), 0 0 24px rgba(244, 213, 141, .35)
}

/* Layer materials: --top is the upper surface, --side the edge */
.k-slab {
    --top: url('../img/layers/slab.jpg');
    --side:
        radial-gradient(circle at 20% 30%, #b5b0a4 0 3px, transparent 4px),
        radial-gradient(circle at 70% 60%, #6e6a62 0 4px, transparent 5px),
        radial-gradient(circle at 45% 80%, #c4bdae 0 2px, transparent 3px),
        #8b8982;
}

.k-slab .lay-side {
    background-size: 26px 22px, 34px 30px, 18px 20px, auto
}

.k-repair {
    --top: repeating-radial-gradient(circle at 30% 40%, #cfc9ba 0 14px, #c3bdad 15px 16px, #cfc9ba 17px 30px);
    --side: #b7b09f
}

.k-primer {
    --top: repeating-linear-gradient(100deg, #b99b62 0 6px, #b1925a 7px 9px, #bfa26a 10px 14px);
    --side: #94763f
}

.k-base {
    --top: linear-gradient(135deg, #52575d, #43474c);
    --side: #383c41
}

.k-tinted {
    --top: linear-gradient(135deg, #222327, #141518);
    --side: #101114
}

.k-flake {
    --top: url('../img/layers/flake.jpg');
    --side: linear-gradient(90deg, #44474b, #5c6065 50%, #44474b)
}

.k-metallic {
    --top: url('../img/layers/metallic.jpg');
    --side: linear-gradient(90deg, #0c2c25, #17473b 40%, #0c2c25)
}

.k-solid {
    --top: linear-gradient(125deg, #747c84 0%, #8a929a 38%, #6c747c 55%, #7c848c 100%);
    --side: #5c636a
}

.k-clear {
    --top: linear-gradient(130deg, rgba(225, 248, 252, .5), rgba(150, 210, 220, .22) 45%, rgba(255, 255, 255, .55) 60%, rgba(150, 210, 220, .2));
    --side: rgba(185, 232, 238, .42)
}

.k-clear .lay-top {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55)
}

.lay-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity .35s
}

.lay-stage.is-collapsed .lay-overlay {
    opacity: 0
}

.lay-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible
}

.lay-lines line {
    stroke: rgba(255, 255, 255, .5);
    stroke-width: 1
}

.lay-lines circle {
    fill: var(--gold2)
}

.lay-label {
    position: absolute;
    right: 14px;
    max-width: 30%;
    transform: translateY(-50%);
    color: #f5f7f8;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
    transition: color .2s
}

.lay-label.is-lit {
    color: var(--gold2)
}

.lay-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px
}

.lay-switch button {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-weight: 800;
    transition: background .2s, color .2s
}

.lay-switch button:hover {
    background: rgba(255, 255, 255, .12)
}

.lay-switch button[aria-pressed="true"] {
    color: #111;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), var(--gold2))
}

.lay-switch button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px
}

.lay-hint {
    margin: 12px 0 0;
    text-align: center;
    font-size: .88rem;
    color: rgba(255, 255, 255, .55)
}

@media (max-width: 575px) {
    .lay-stage {
        height: 360px
    }

    .lay-label {
        right: 6px;
        max-width: 38%;
        font-size: .74rem
    }
}

/* ---------- Quality you can measure ---------- */
.quality-sec {
    background: #fff
}

.quality-photo {
    height: 100%;
    min-height: 440px;
    border-radius: 32px;
    background: url('../img/quality-inspection.jpg') 30% center / cover;
    box-shadow: var(--shadow)
}

.q-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px
}

.q-tile {
    position: relative;
    min-height: 116px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line-light);
    background: #fbfaf7;
    outline: none
}

.q-tile.is-wide {
    grid-column: 1 / -1
}

.q-tile:focus-visible {
    box-shadow: 0 0 0 3px var(--gold)
}

.q-front {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px
}

.q-front>i {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--gold2);
    background: var(--ink)
}

.q-front h3 {
    margin: 2px 0 8px;
    font-size: 1.04rem;
    font-weight: 800
}

.q-std {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.q-std span {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line-light);
    background: #fff;
    color: #4b5260;
    font-size: .74rem;
    font-weight: 700
}

.q-desc {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--ink);
    font-size: .92rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s
}

.q-tile:hover .q-desc,
.q-tile:focus .q-desc,
.q-tile.is-open .q-desc {
    opacity: 1;
    transform: none
}

/* Touch screens can't hover, so show what each test tells us under its name. */
@media (hover: none) {
    .q-desc {
        position: static;
        padding: 0 18px 18px 76px;
        color: var(--muted);
        background: none;
        opacity: 1;
        transform: none
    }
}

.q-certs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 30px;
    margin-top: 26px
}

.q-certs img {
    height: 62px;
    width: auto
}

.q-note {
    margin: 0;
    color: var(--muted);
    font-weight: 600
}

.q-note a {
    color: #7a5b17;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px
}

@media (max-width: 991px) {
    .quality-photo {
        min-height: 300px
    }
}

@media (max-width: 575px) {
    .q-tiles {
        grid-template-columns: minmax(0, 1fr)
    }

    .q-certs img {
        height: 52px
    }
}

/* ---------- Safety is our priority ---------- */
.safety-sec {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: #0d1014
}

.safety-bg {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52%;
    background: url('../img/Concrete.jpg') center 30% / cover
}

.safety-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0d1014 0%, rgba(13, 16, 20, .82) 24%, rgba(13, 16, 20, .3) 62%, rgba(13, 16, 20, .1) 100%)
}

.safety-content {
    max-width: 720px
}

.safety-sec .section-subtitle {
    color: rgba(255, 255, 255, .74)
}

.safety-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
    padding: 0
}

.safety-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-dark);
    backdrop-filter: blur(8px)
}

.safety-item>i {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--gold2))
}

.safety-item.is-progress>i {
    color: var(--gold2);
    background: transparent;
    border: 2px dashed var(--gold2)
}

.safety-item b {
    display: block;
    margin-bottom: 4px;
    line-height: 1.3
}

.safety-item span {
    color: rgba(255, 255, 255, .7);
    font-size: .92rem;
    line-height: 1.5
}

.safety-item .tag {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    color: var(--gold2);
    background: rgba(244, 213, 141, .14);
    vertical-align: 2px
}

@media (max-width: 991px) {
    .safety-bg {
        width: 100%;
        opacity: .35
    }

    .safety-bg::before {
        background: linear-gradient(180deg, rgba(13, 16, 20, .4), #0d1014 90%)
    }
}

@media (max-width: 575px) {
    .safety-list {
        grid-template-columns: minmax(0, 1fr)
    }
}

/* ---------- Instagram reels ---------- */
.reels-sec {
    background: var(--light)
}

.reels-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 36px
}

/* Self-hosted video tiles: just the video, all the same size */
.vid-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px
}

@media (max-width: 991px) {
    .vid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.vid-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 24px;
    background: var(--dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18)
}

.vid-tile.vid-tall {
    aspect-ratio: 9 / 16
}

.vid {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--dark)
}

/* The whole tile is the play button; the icon sits in the corner so it doesn't cover faces or text */
.vid-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: end start;
    padding: 20px;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(11, 13, 16, 0) 62%, rgba(11, 13, 16, .45))
}

.vid-play i {
    width: 60px;
    height: 60px;
    padding-left: 3px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    transition: transform .2s
}

.vid-play:hover i,
.vid-play:focus-visible i {
    transform: scale(1.08)
}

.vid-play:focus-visible {
    outline: 3px solid var(--gold2);
    outline-offset: -6px
}

.vid-tile.is-playing .vid-play {
    display: none
}

@media (max-width: 767px) {
    .vid-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -12px;
        padding: 0 12px 14px
    }

    .vid-grid .vid-tile {
        flex: 0 0 78%;
        scroll-snap-align: center
    }
}

/* ---------- Footer certifications ---------- */
.footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px
}

.footer-cert {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff
}

.footer-cert img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain
}

.footer-cert-note {
    margin: 10px 0 0;
    font-size: .86rem;
    color: rgba(255, 255, 255, .6)
}

/* ---------- About page ---------- */
.about-reel {
    max-width: 400px;
    margin: 0 auto
}

.about-reel-caption {
    margin: 14px 4px 0;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600
}

.pull-quote {
    margin: 26px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--gold);
    border-radius: 0 20px 20px 0;
    background: #faf7f0;
    color: #22262d;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.55
}

.pull-quote p {
    margin: 0;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important
}

.pull-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted)
}

.about-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0 0 28px;
    padding: 0
}

.about-points li {
    display: flex;
    gap: 10px;
    font-weight: 700
}

.about-points i {
    color: var(--gold)
}

.about-principles {
    background: var(--light)
}

.principle {
    height: 100%;
    padding: 28px;
    border-radius: 26px;
    color: #fff;
    background: var(--dark2);
    border: 1px solid var(--line-dark)
}

.principle i {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    font-size: 1.3rem;
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--gold2))
}

.principle h3 {
    font-size: 1.15rem;
    font-weight: 800
}

.principle p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.65
}

.cert-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px
}

.cert-card {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line-light)
}

.cert-card img {
    height: 64px;
    width: auto;
    max-width: 120px;
    object-fit: contain
}

.cert-card b {
    display: block;
    line-height: 1.3
}

.cert-card span {
    color: var(--muted);
    font-size: .9rem
}

@media (max-width: 575px) {
    .about-points {
        grid-template-columns: minmax(0, 1fr)
    }
}

/* ---------- Flooring types comparison ---------- */
.ft-sec {
    background: var(--light)
}

.ft-swipe {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 700
}

.ft-wrap {
    overflow-x: auto;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line-light);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .07);
    outline: none
}

.ft-wrap:focus-visible {
    box-shadow: 0 0 0 3px var(--gold)
}

.ft-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0
}

.ft-table th,
.ft-table td {
    padding: 18px 16px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid var(--line-light)
}

.ft-table tbody tr:last-child th,
.ft-table tbody tr:last-child td {
    border-bottom: 0
}

.ft-table td {
    color: #3d434c;
    font-size: .95rem;
    line-height: 1.55
}

.ft-table tbody tr:nth-child(even) td {
    background: #fbfaf7
}

.ft-table thead th {
    vertical-align: top;
    min-width: 150px
}

.ft-table thead th.ft-corner {
    vertical-align: bottom
}

.ft-table thead img {
    display: block;
    width: 100%;
    height: 96px;
    margin-bottom: 12px;
    border-radius: 14px;
    object-fit: cover
}

.ft-name {
    display: inline-block;
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.25;
    color: #111
}

a.ft-name {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px
}

a.ft-name:hover {
    color: #7a5b17
}

.ft-pill {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    color: #111;
    background: var(--gold2)
}

/* First column stays put while the table scrolls sideways */
.ft-table tbody th,
.ft-corner {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    min-width: 130px;
    background: #fff;
    color: #111;
    font-weight: 800;
    box-shadow: 1px 0 0 var(--line-light)
}

.ft-table tbody tr:nth-child(even) th {
    background: #fbfaf7
}

.ft-corner {
    z-index: 2;
    color: var(--muted)
}

.ft-count {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600
}

.ft-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.ft-sw {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, .15)
}

.ft-notes {
    margin-top: 24px
}

.ft-mvb {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 12px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line-light);
    color: #3d434c
}

.ft-mvb i {
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 1.2
}

.ft-notes a {
    color: #7a5b17;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px
}

.ft-foot {
    margin: 0;
    color: var(--muted);
    font-size: .9rem
}

@media (max-width: 1199px) {
    .ft-swipe {
        display: flex
    }
}

@media (max-width: 575px) {
    .ft-table {
        min-width: 940px
    }

    .ft-table th,
    .ft-table td {
        padding: 14px 12px
    }

    .ft-table thead th {
        min-width: 138px
    }

    .ft-table tbody th,
    .ft-corner {
        width: 96px;
        min-width: 96px;
        font-size: .86rem
    }

    .ft-table thead img {
        height: 72px
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    .pc-slide,
    .lay-layer,
    .q-desc,
    .quote-tab {
        transition: none !important
    }
}
