/* ============================================================
   BuilderNow section variants
   ------------------------------------------------------------
   Layout for the alternate section compositions in
   builder/template/variants/. Loaded only when a site has a
   template, after the base stylesheet and after the skin, so
   whichever skin is active still supplies the corners, shadows,
   type and surfaces -- this file only arranges things.

   ONE FILE FOR BOTH MODES. Everything here is expressed in the
   base tokens (--surface, --text, --border, --radius, --space-*),
   so light and dark both work without a second copy. The one
   exception is the overlay hero's scrim, which is dark in both
   modes because it sits over a photograph either way.
   ============================================================ */

/* ============================================================
   HERO: OVERLAY   (template: Field)
   ============================================================ */
.bnt-hero--overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(86vh, 820px);
    padding: 0;
    overflow: hidden;
}
.bnt-hero--overlay .bnt-hero-bg {
    position: absolute;
    inset: 0;
    background-color: #1d2735;
    background-size: cover;
    background-position: center;
}
/* Fixed dark scrim rather than a token: this sits over a customer
   photograph we have never seen, and the headline has to stay legible
   over a snowfield as well as over asphalt. */
.bnt-hero--overlay .bnt-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,12,20,0.58) 0%, rgba(8,12,20,0.46) 45%, rgba(8,12,20,0.86) 100%);
}
.bnt-hero-overlay-inner {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--nav-height) + var(--space-20));
    padding-bottom: var(--space-16);
}
.bnt-hero--overlay .bnt-hero-copy { max-width: 760px; }
.bnt-hero--overlay h1,
.bnt-hero--overlay .lead,
.bnt-hero--overlay .eyebrow { color: #fff; }
.bnt-hero--overlay .lead { color: rgba(255,255,255,0.86); }
.bnt-hero--overlay .eyebrow { color: rgba(255,255,255,0.78); }
.bnt-hero--overlay h1 { font-size: clamp(2.8rem, 6vw, 5rem); }

/* The secondary button is an outline or ghost in every skin, which
   means its text is the page's dark --text color. Over the scrim that
   renders as an unreadable slab, and on the Soft and Bold skins -- where
   the button also has no border -- it vanishes outright. Forced light
   here rather than left to the skin, because the scrim is dark in both
   modes and no skin can know it is being rendered over a photograph. */
.bnt-hero--overlay .bnt-btn-outline,
.bnt-hero--overlay .bnt-btn-ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.10);
    box-shadow: none;
}
.bnt-hero--overlay .bnt-btn-outline:hover,
.bnt-hero--overlay .bnt-btn-ghost:hover {
    background: rgba(255,255,255,0.20);
    border-color: #fff;
    color: #fff;
    transform: none;
}
.bnt-hero--overlay .bnt-btn-outline span,
.bnt-hero--overlay .bnt-btn-ghost span { color: inherit; }

.bnt-hero-bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.18);
    background: rgba(8,12,20,0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.bnt-hero-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6);
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}
.bnt-hero-bar .bnt-hero-meta { margin: 0; color: rgba(255,255,255,0.88); }
.bnt-hero-bar .bnt-hero-meta .item { color: inherit; }
.bnt-hero-bar-stat { display: flex; align-items: baseline; gap: 10px; color: #fff; white-space: nowrap; }
/* color is set explicitly, not inherited from .bnt-hero-bar-stat: the
   base stylesheet puts `color: var(--text)` directly on this element,
   and a declared color on the child beats a color inherited from the
   parent no matter how dark the bar behind it is. */
.bnt-hero-bar-stat .bnt-hero-stat-value { font-size: var(--text-3xl); font-weight: 800; line-height: 1; color: #fff; }
.bnt-hero-bar-stat .bnt-hero-stat-label { font-size: var(--text-sm); color: rgba(255,255,255,0.72); }

/* ============================================================
   HERO: EDITORIAL   (template: Studio)
   ============================================================
   One composition, not a text block with a photo under it. The
   photo bleeds off the right edge for the full height of the
   section; the copy holds the left column; the stat block bridges
   the seam between them.

   THE TEXT NEVER CROSSES ONTO THE PHOTO. It is the customer's
   photograph and we have never seen it -- a headline laid over it
   would read on a dark roof and vanish on a snowfield. Everything
   that sits on the image carries its own background. */
.bnt-hero--editorial {
    position: relative;
    overflow: hidden;
    padding-bottom: var(--space-16);
}
.bnt-hero-ed-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    background-color: var(--surface-mute);
    background-size: cover;
    background-position: center;
}
.bnt-hero-ed-copy {
    position: relative;
    z-index: 2;
    max-width: none;
    padding-top: var(--space-12);
}
@media (min-width: 880px) {
    /* Leaves a gutter between the last word and the photo's edge, so
       the two read as neighbours rather than a collision. */
    .bnt-hero-ed-copy { max-width: 54%; padding-right: var(--space-8); }
}
.bnt-hero--editorial h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    margin-bottom: var(--space-10);
}
.bnt-hero-ed-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: start;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}
.bnt-hero--editorial .lead { font-size: var(--text-lg); max-width: 54ch; margin: 0; }
.bnt-hero--editorial .bnt-hero-ctas { margin: 0; }
.bnt-hero-meta--ruled {
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

/* The one thing that sits on the photo, and the thing that stitches
   the two halves together: anchored to the image's bottom-left and
   pulled left across the seam onto the copy column. */
.bnt-hero-ed-stat {
    position: absolute;
    left: 0;
    bottom: var(--space-12);
    transform: translateX(-40%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-5) var(--space-6);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}
.bnt-hero-ed-stat .bnt-hero-stat-value { font-size: var(--text-3xl); font-weight: 800; line-height: 1; color: var(--text); }
.bnt-hero-ed-stat .bnt-hero-stat-label { font-size: var(--text-sm); color: var(--text-muted); }

/* NARROW SCREENS: there is no room for two columns, so the photo
   returns to being a band -- but inside the hero, below the copy,
   rather than a separate stacked section. */
@media (max-width: 879px) {
    /* ORDER, not source order. The photo is written FIRST in the markup
       so it can be absolutely placed on desktop without the copy having
       to clear it -- which means that the moment it stops being
       absolute it jumps to the top of the section, above the headline.
       Flex ordering puts it back underneath without moving it in the
       HTML, where its position is load-bearing for the desktop layout. */
    .bnt-hero--editorial { display: flex; flex-direction: column; padding-bottom: 0; }
    .bnt-hero--editorial > .bnt-container { order: 1; }
    .bnt-hero-ed-photo {
        order: 2;
        /* relative, NOT static: the stat inside it is absolute, and with
           a static parent it resolves against the section instead and
           lands on top of the buttons. */
        position: relative;
        width: auto;
        height: clamp(240px, 52vw, 360px);
        margin-top: var(--space-12);
    }
    .bnt-hero-ed-copy { max-width: none; padding-right: 0; }
    .bnt-hero-ed-stat {
        left: var(--space-5);
        bottom: var(--space-5);
        transform: none;
    }
}

/* ============================================================
   HERO: COLLAGE   (template: Showcase)
   ============================================================ */
.bnt-hero--collage { padding-bottom: var(--space-16); }
.bnt-hero-collage-copy {
    max-width: 760px;
    margin: 0 auto var(--space-12);
    text-align: center;
    padding-top: var(--space-10);
}
.bnt-hero-collage-copy .bnt-hero-ctas { justify-content: center; }
.bnt-hero--collage h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }

/* Three panels instead of one photo: the picture leads, the stat and
   the trust items stack beside it. */
.bnt-hero-collage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
@media (min-width: 880px) {
    .bnt-hero-collage-grid {
        grid-template-columns: 1.9fr 1fr;
        grid-template-rows: auto auto;
        gap: var(--space-5);
    }
    .bnt-hero-tile--photo { grid-row: span 2; }
}
.bnt-hero-tile {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.bnt-hero-tile--photo {
    position: relative;
    min-height: clamp(260px, 36vw, 460px);
    /* A tone under the photo so the tile reads as a panel while the
       image is still loading, rather than as a hole in the collage. */
    background-color: var(--surface-mute);
    background-size: cover;
    background-position: center;
}
.bnt-hero-tile--stat,
.bnt-hero-tile--meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-8);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.bnt-hero-tile--stat .bnt-hero-stat-value {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-1);
}
.bnt-hero-tile--stat .bnt-hero-stat-label { font-size: var(--text-base); color: var(--text-muted); }
.bnt-hero-meta--stacked { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }

/* ============================================================
   SERVICES: NUMBERED   (template: Field)
   ============================================================ */
.bnt-svc-rows { display: flex; flex-direction: column; }
.bnt-svc-row {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--space-5);
    /* Horizontal padding matters more here than in most variants: skins
       that give .bnt-service a visible border (Sharp's 2px, Bold's 3px)
       draw it right against the index number and the icon without it.
       Use space-8 here, not a 7 -- the spacing scale has no step 7.
       An undefined custom property makes the whole declaration invalid,
       so the first attempt at this silently computed to zero padding. */
    padding: var(--space-8);
    border-top: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.bnt-svc-rows .bnt-svc-row:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 880px) {
    .bnt-svc-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-10); align-items: center; }
}
.bnt-svc-num {
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--color-1) 42%, transparent);
    font-variant-numeric: tabular-nums;
}
.bnt-svc-row-body h3 { margin: 0 0 6px; }
.bnt-svc-row-body p { margin: 0; color: var(--text-muted); max-width: 70ch; }
.bnt-svc-row .bnt-service-icon { margin: 0; }
.bnt-svc-row:hover { transform: none; box-shadow: none; }

/* ============================================================
   SERVICES: INDEX   (template: Studio)
   ============================================================ */
.bnt-svc-index {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10) var(--space-12);
}
@media (min-width: 760px) { .bnt-svc-index { grid-template-columns: 1fr 1fr; } }
.bnt-svc-entry {
    position: relative;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    padding: var(--space-6) 0 0;
}
.bnt-svc-entry:hover { transform: none; box-shadow: none; }
.bnt-svc-idx {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-1);
    margin-bottom: var(--space-4);
    font-variant-numeric: tabular-nums;
}
.bnt-svc-entry h3 { margin: 0 0 8px; }
.bnt-svc-entry p { margin: 0; color: var(--text-muted); }

/* ============================================================
   SERVICES: ROWS   (template: Showcase)
   ============================================================ */
.bnt-svc-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
@media (min-width: 880px) { .bnt-svc-tiles { grid-template-columns: 1fr 1fr; } }
.bnt-svc-tile {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-5);
    /* --space-8, because the scale has no 7. An undefined custom
       property invalidates the whole declaration, so the earlier value
       here computed to no padding at all and left the icon and the copy
       flush against the tile's edge. */
    padding: var(--space-8);
}
.bnt-svc-tile .bnt-service-icon { margin: 0; flex-shrink: 0; }
.bnt-svc-tile-body h3 { margin: 0 0 6px; }
.bnt-svc-tile-body p { margin: 0; color: var(--text-muted); }

/* ============================================================
   TESTIMONIALS: SPOTLIGHT   (template: Field)
   ============================================================ */
.bnt-tst-spotlight { display: flex; flex-direction: column; gap: var(--space-10); }
.bnt-tst-big {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-8) 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
}
.bnt-tst-big:hover { transform: none; box-shadow: none; }
.bnt-tst-mark {
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.8;
    color: color-mix(in srgb, var(--color-1) 38%, transparent);
    font-family: Georgia, 'Times New Roman', serif;
}
.bnt-tst-quote {
    margin: 0 0 var(--space-5);
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
    line-height: 1.45;
    color: var(--text);
    font-weight: 500;
}
.bnt-tst-by { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.bnt-tst-name { font-weight: 700; color: var(--text); }
.bnt-tst-role { color: var(--text-muted); font-size: var(--text-sm); }
.bnt-tst-by .bnt-stars { margin-left: auto; }

/* ============================================================
   TESTIMONIALS: COLUMNS   (template: Studio)
   ============================================================ */
.bnt-tst-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8) var(--space-10);
}
@media (min-width: 760px) { .bnt-tst-cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.bnt-tst-col {
    position: relative;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    padding: var(--space-6) 0 0;
}
.bnt-tst-col:hover { transform: none; box-shadow: none; }
.bnt-tst-col .bnt-stars { margin-bottom: var(--space-4); }
.bnt-tst-col .bnt-tst-quote { font-size: var(--text-base); line-height: 1.65; font-weight: 400; color: var(--text-soft); }
.bnt-tst-col .bnt-tst-by { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

/* ============================================================
   ABOUT: STACKED
   ============================================================ */
.bnt-about--stacked { padding-bottom: 0; }
.bnt-about-measure {
    max-width: 68ch;
    margin: 0 auto var(--space-10);
    text-align: center;
}
/* LEFT-ALIGNING SKINS OVERRIDE THE CENTERING, FROM HERE.
   Sharp, Editorial and Minimal all pull .bnt-section-head flush left,
   and a centered paragraph under a flush-left headline reads as two
   pages stacked together. Those skins say so in their own stylesheets
   too -- but this file loads AFTER them, so on equal specificity the
   centering above would win and theirs would never apply. Naming the
   skins here, one level more specific, is the only place the override
   can live and still take effect. */
html.bnt-skin-sharp .bnt-about-measure,
html.bnt-skin-editorial .bnt-about-measure,
html.bnt-skin-minimal .bnt-about-measure {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}
html.bnt-skin-sharp .bnt-stats--row,
html.bnt-skin-editorial .bnt-stats--row,
html.bnt-skin-minimal .bnt-stats--row {
    text-align: left;
}
.bnt-about-measure p { margin: 0; font-size: var(--text-lg); line-height: 1.7; color: var(--text-soft); }
.bnt-stats--row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
    text-align: center;
    padding-bottom: var(--space-16);
}
.bnt-about-band {
    position: relative;
    height: clamp(260px, 38vw, 480px);
    background-color: var(--surface-mute);
    background-size: cover;
    background-position: center;
}
/* A SQUARE STRADDLING THE BAND'S BOTTOM EDGE, not a bar across it.
   `right: auto` is doing real work here: the base rule sets both left
   and right, and an absolutely positioned element given both stretches
   to fill the gap -- which is how this rendered as a full-width banner
   with centered text instead of a badge. Setting left alone was not
   enough; the inherited right had to be cleared. */
.bnt-about-band .bnt-about-badge {
    position: absolute;
    left: var(--space-10);
    right: auto;
    top: auto;
    /* Overhangs into the section below by about a third of its height,
       which is what makes it read as one object crossing a seam rather
       than two things that happen to touch. */
    bottom: -52px;
    width: 164px;
    height: 164px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: var(--space-6);
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 3;
}
/* The section needs to paint above the one that follows, or the next
   section's own background covers the overhanging third. */
.bnt-about--stacked { position: relative; z-index: 2; }
@media (max-width: 639px) {
    .bnt-about-band .bnt-about-badge {
        left: var(--space-5);
        bottom: -40px;
        width: 132px;
        height: 132px;
        padding: var(--space-5);
    }
}
.bnt-about-band .bnt-about-badge .bnt-stat-value { font-size: var(--text-2xl); font-weight: 800; color: var(--text); line-height: 1; }
.bnt-about-band .bnt-about-badge .bnt-stat-label { font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   ABOUT: SPLIT
   ============================================================ */
.bnt-about-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}
@media (min-width: 880px) {
    .bnt-about-split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-16); }
}
.bnt-about--split .bnt-about-photo {
    min-height: clamp(300px, 40vw, 520px);
    background-color: var(--surface-mute);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
}
.bnt-about-split-copy p { color: var(--text-soft); line-height: 1.75; }
/* Stats as a ruled vertical list, where the default runs them across.
   Value and label sit on one line so the rule reads as a table edge. */
.bnt-stats--list { display: flex; flex-direction: column; margin-top: var(--space-8); }
.bnt-stats--list .bnt-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border);
}
.bnt-stats--list .bnt-stat:last-child { border-bottom: 1px solid var(--border); }
.bnt-stats--list .bnt-stat-value { font-size: var(--text-xl); font-weight: 800; color: var(--color-1); line-height: 1; }
.bnt-stats--list .bnt-stat-label { font-size: var(--text-sm); color: var(--text-muted); text-align: right; }
.bnt-about--split .bnt-about-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: var(--space-6);
    padding: 8px 14px;
    background: color-mix(in srgb, var(--color-1) 10%, transparent);
    border-radius: var(--radius-full);
}
.bnt-about--split .bnt-about-badge .bnt-stat-value { font-weight: 800; color: var(--color-1); }
.bnt-about--split .bnt-about-badge .bnt-stat-label { font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   FAQ: NUMBERED
   ============================================================ */
.bnt-faq-list--numbered { gap: 0; }
.bnt-faq--numbered .bnt-faq-item {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
}
.bnt-faq-list--numbered .bnt-faq-item-wrap:last-child .bnt-faq-item { border-bottom: 1px solid var(--border); }
.bnt-faq--numbered .bnt-faq-q { padding-left: 0; padding-right: 0; gap: var(--space-4); }
.bnt-faq-n {
    flex-shrink: 0;
    min-width: 2.2em;
    font-weight: 800;
    color: color-mix(in srgb, var(--color-1) 55%, transparent);
    font-variant-numeric: tabular-nums;
}
.bnt-faq--numbered .bnt-faq-a { padding-left: calc(2.2em + var(--space-4)); padding-right: 0; }
.bnt-faq--numbered.bnt-faq--editable .bnt-faq-q { padding-right: 86px; }

/* ============================================================
   FAQ: TWO COLUMN
   ============================================================
   A grid, not CSS columns: a column break can split an open
   <details> across the gutter, which reads as a rendering fault
   rather than a layout. */
.bnt-faq-list--twocol {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    align-items: start;
}
@media (min-width: 820px) {
    .bnt-faq-list--twocol { grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); }
}
.bnt-faq--twocol .bnt-faq-list { max-width: none; }
