/* ==========================================================================
   LoanBolt — site stylesheet
   Replaces bbp.css. Loaded after bootstrap.min.css.

   Fonts (Poppins + Inter) are loaded via <link> in core/includes/meta-header.php.

   NOTE ON CLASS NAMES
   Legacy class names from the BestBusinessPrices build (.btn-blue, .text-green,
   .hero-title, .md-copy-size, .webo-*, .estimate-*) are deliberately kept and
   re-skinned rather than renamed. The step-form JS, the progress tracker and the
   calculator all select by these names — renaming them breaks behaviour.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
    --ink:         #0B0F1A;
    --ink-soft:    #525B6E;   /* 6.82:1 on white — safe at any text size */
    /* --ink-faint is 3.18:1 on white. That clears AA for LARGE text only
       (>=24px, or >=18.7px bold). Never use it for body/small copy — use
       --ink-soft there. Kept as a token for borders, icons and big numerals. */
    --ink-faint:   #8A90A3;
    --paper:       #FFFFFF;
    --surface:     #F7F7FC;
    --line:        #E8E7F2;

    --bolt-start:  #FF1FE0;
    --bolt-mid:    #B625CD;
    --bolt-end:    #00369F;
    --grad-bolt:   linear-gradient(120deg, var(--bolt-start), var(--bolt-mid) 55%, var(--bolt-end));

    --spark-start: #FDC70C;
    --spark-mid:   #F3903F;
    --spark-end:   #E93E3A;
    --grad-spark:  linear-gradient(120deg, var(--spark-start), var(--spark-mid) 55%, var(--spark-end));

    --success:     #16A34A;
    --danger:      #DC2626;

    --radius-lg:   22px;
    --radius-md:   14px;
    --radius-sm:   12px;

    --shadow-card: 0 20px 45px -25px rgba(11, 15, 26, 0.25);
    --shadow-lift: 0 14px 30px -12px rgba(182, 37, 205, 0.55);

    /* Bolt glyph — used for eyebrow marks, progress head and the CTA watermark */
    --bolt-clip:   polygon(58% 0%, 8% 58%, 44% 58%, 38% 100%, 92% 40%, 54% 40%);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: var(--paper);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.img,
.img img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--bolt-mid);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover { color: var(--bolt-start); }

/* Visible focus on every interactive element — never remove without replacing */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--bolt-mid);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

p { color: var(--ink-soft); }

p strong, strong { color: var(--ink); font-weight: 600; }

.text-bold {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
}

.hero-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2.1rem;
    line-height: 1.06;
    font-weight: 600;
}

.md-hero-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 600;
}

.sml-hero-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.md-copy-size { font-size: 1.02rem; }

.lede {
    font-size: 1.08rem;
    color: var(--ink-soft);
}

.logo-lockup svg { height: 30px; width: auto; }

/* ── Gradient text ────────────────────────────────────────────────────────
   ACCESSIBILITY: gradient text is restricted to display sizes only.
   The gradients start at #FF1FE0 (3.4:1 on white) and #FDC70C (1.6:1 on white),
   which clear WCAG AA for large text (>=24px, or >=18.7px bold) but fail at body
   size. Do not apply these classes to paragraph copy — use .text-bolt instead.
   .text-grad-spark is dark-background only.                                  */
.text-grad-bolt,
.text-grad-spark {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback for browsers without background-clip:text */
    -webkit-text-fill-color: transparent;
}

.text-grad-bolt  { background-image: var(--grad-bolt); }
.text-grad-spark { background-image: var(--grad-spark); }

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .text-grad-bolt  { color: var(--bolt-mid);  -webkit-text-fill-color: currentColor; }
    .text-grad-spark { color: var(--spark-mid); -webkit-text-fill-color: currentColor; }
}

/* Solid brand colour — safe at body size (5.9:1 on white) */
.text-bolt { color: var(--bolt-mid); }

/* Legacy aliases retained so existing markup keeps working */
.text-green { color: var(--bolt-mid); }
.text-green svg, .text-green path { fill: var(--bolt-mid); }

.text-blue { color: var(--bolt-end); }
.text-blue svg, .text-blue path { fill: var(--bolt-end); }

.text-dark { color: var(--ink); }

.text-red { color: var(--danger); }
.text-red svg, .text-red path { fill: var(--danger); }

.text-white, .text-white p, .text-white strong { color: #fff; }
.text-white svg, .text-white path { fill: #fff; }

.text-muted-soft { color: var(--ink-faint); }

/* ── Eyebrow label ────────────────────────────────────────────────────── */
.eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.eyebrow::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: var(--grad-bolt);
    clip-path: var(--bolt-clip);
}

.eyebrow-center { justify-content: center; }

.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: #fff; }

/* ── Section heads ────────────────────────────────────────────────────── */
.section-head {
    max-width: 680px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.section-head h2 {
    font-size: 1.85rem;
    margin-bottom: .5rem;
}

.section-head p { margin-bottom: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

/* Primary — legacy name .btn-blue is used throughout the step form */
.btn-blue,
.btn-cta-primary {
    background: var(--grad-bolt);
    color: #fff;
    box-shadow: var(--shadow-lift);
}

.btn-blue:hover,
.btn-cta-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(182, 37, 205, .65);
}

.btn-blue:focus,
.btn-blue.focus { box-shadow: 0 0 0 .2rem rgba(182, 37, 205, .45); }

.btn:disabled,
.btn-blue:disabled,
fieldset:disabled .btn {
    pointer-events: none;
    opacity: .45;
    transform: none;
    box-shadow: none;
    background: var(--grad-bolt);
    color: #fff;
}

/* Secondary / escape actions — "I can't see my business", "Not my business".
   Formerly .btn-red; red is not a LoanBolt brand colour, so these become
   quiet neutral buttons which also reads better as a non-destructive choice. */
.btn-red,
.btn-quiet {
    background: var(--paper);
    color: var(--ink-soft);
    border: 2px solid var(--line);
    box-shadow: none;
    font-weight: 600;
}

.btn-red:hover,
.btn-quiet:hover {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--ink-faint);
}

/* On-gradient button — white pill used inside the CTA banner */
.btn-on-brand {
    background: #fff;
    color: var(--bolt-mid);
    box-shadow: none;
}

.btn-on-brand:hover {
    background: #fff;
    color: var(--bolt-start);
    transform: translateY(-2px);
}

/* Legacy aliases kept alive */
.btn-white { background: #fff; color: var(--bolt-mid); font-weight: 700; }
.btn-white:hover { background: var(--surface); color: var(--bolt-start); }

.btn-green { background: var(--grad-bolt); color: #fff; font-weight: 700; }
.btn-green:hover { color: #fff; transform: translateY(-2px); }

.btn-cta { background: #fff; color: var(--ink); font-weight: 600; }
.btn-cta:hover { background: var(--surface); color: var(--ink); }

.btn-block, .btn.w-100 { width: 100%; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 30px; width: auto; display: block; }

.powered-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.powered-chip img { height: 16px; width: auto; display: block; }

@media (max-width: 575px) {
    .site-logo img { height: 24px; }
    .powered-chip { font-size: .7rem; }
    .powered-chip img { height: 13px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 2.5rem;
}

.hero-glow {
    position: absolute;
    top: -180px;
    right: -220px;
    width: 640px;
    height: 640px;
    background: var(--grad-bolt);
    filter: blur(120px);
    opacity: .18;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-intro {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-intro .hero-title { margin: .5rem 0 .35rem; }

.hero-sub {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ink);
}

.hero-lede {
    font-size: 1.05rem;
    max-width: 46ch;
    margin: 0 auto;
    color: var(--ink-soft);
}

.form-wrap-centered {
    max-width: 640px;
    margin: 2.25rem auto 0;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
    background-color: var(--surface);
    background-clip: border-box;
    border: none;
    border-radius: var(--radius-md);
}

.border-radius-25 { border-radius: var(--radius-md); }

/* Legacy border utilities — neutralised, the new cards use hairlines */
.border-blue,
.border-green { border: 1px solid var(--line) !important; }

.border-red { border: 1px solid var(--danger) !important; }

/* ── Form card (the 5-step application card) ──────────────────────────── */
#webo-form-card {
    background: var(--paper);
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

#webo-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--grad-bolt);
    z-index: 2;
}

#webo-form-card .card-body { padding: 1.25rem 1.5rem 1.75rem; }

/* ── Step progress ────────────────────────────────────────────────────── */
.webo-progress-wrap {
    padding: 1.75rem 1.5rem .25rem;
    border-bottom: none;
    background: transparent;
    border-radius: 0;
}

.webo-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .65rem;
}

.webo-progress-step-label {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-transform: none;
    letter-spacing: normal;
}

.webo-progress-fraction {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.webo-progress-track {
    position: relative;
    height: 8px;
    background: var(--surface);
    border-radius: 99px;
    overflow: visible;
    margin-bottom: .9rem;
}

.webo-progress-fill {
    position: relative;
    height: 100%;
    background: var(--grad-bolt);
    border-radius: 99px;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

/* Spark bolt riding the leading edge of the fill */
.webo-progress-fill::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--grad-spark);
    clip-path: var(--bolt-clip);
}

.webo-progress-dots {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
}

.webo-progress-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.webo-progress-dot-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-soft);
    transition: background .35s ease, border-color .35s ease, color .35s ease;
    flex-shrink: 0;
}

.webo-progress-dot-circle.is-active {
    background: var(--grad-bolt);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(182, 37, 205, .14);
}

.webo-progress-dot-circle.is-done {
    background: var(--success);
    border-color: transparent;
    color: #fff;
}

.webo-progress-dot-name {
    font-size: .62rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.25;
    transition: color .35s ease;
    display: none; /* revealed at >=480px */
}

.webo-progress-dot.is-active .webo-progress-dot-name { color: var(--ink); }
.webo-progress-dot.is-done   .webo-progress-dot-name { color: var(--ink-soft); }

@media (min-width: 480px) {
    .webo-progress-dot-name { display: block; }
}

@media (max-width: 479px) {
    .webo-progress-dot-circle { width: 22px; height: 22px; font-size: .65rem; }
}

/* ── Forms ────────────────────────────────────────────────────────────── */
.banner-form .form-control,
.banner-form .form-select,
.banner-form .input-group-text {
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 15px 18px;
    font-size: 1.02rem;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background-color: var(--paper);
}

.banner-form .form-control::placeholder { color: var(--ink-faint); }

.banner-form .form-control:focus,
.banner-form .form-select:focus {
    border-color: var(--bolt-mid);
    box-shadow: 0 0 0 4px rgba(182, 37, 205, .12);
    outline: none;
}

/* Input group — affix + field read as one control */
.banner-form .input-group { border-radius: var(--radius-sm); }

.banner-form .input-group-text {
    background: var(--surface);
    color: var(--bolt-mid);
    font-weight: 700;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Fill the <svg> ONLY — never its <path>/<rect> children.
   Two reasons, both load-bearing:
   1. These Material icons ship a transparent 24x24 backing plate
      (<path d="M0 0h24v24H0z" fill="none">). A CSS rule on `path` overrides
      that presentation attribute and paints the plate solid, hiding the glyph.
   2. The .webo-*-success / .webo-*-error states set fill on the svg and rely on
      inheritance reaching the glyph. Declaring fill directly on `path` beats an
      inherited value no matter what, so the state colours would never show. */
.banner-form .input-group-text svg { fill: var(--bolt-mid); }

.banner-form .input-group > .form-control,
.banner-form .input-group > .form-select {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.banner-form .input-group:focus-within .input-group-text { border-color: var(--bolt-mid); }

/* Validation icon states */
.webo-email-error svg,
.webo-phone-error svg { fill: var(--danger) !important; }

.webo-email-success svg,
.webo-phone-success svg { fill: var(--success) !important; }

/* Field-level notice text */
.text-danger { color: var(--danger) !important; font-size: .85rem; }

.form-hint {
    font-size: .8rem;
    color: var(--ink-soft);
    text-align: center;
}

.field-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    text-align: center;
}

.legal-fine {
    font-size: .76rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.legal-fine a { color: var(--ink-soft); text-decoration: underline; }

/* Trust row inside the form card */
.trust-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--ink-soft);
}

.trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.trust-row strong { color: var(--ink); }

/* Trust strip beneath the form card */
.trust-strip {
    margin-top: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.trust-summary {
    font-size: .92rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-summary .stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.trust-summary .stars img { width: 14px; height: 14px; display: block; }
.trust-summary strong { color: var(--ink); }

.trust-partners-mini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-partners-mini .partner-chip {
    flex: none;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-partners-mini .partner-chip img {
    max-height: 22px;
    max-width: 84px;
    width: auto;
    object-fit: contain;
}

/* ── Process (3-step explainer) ───────────────────────────────────────── */
/* NB: these sections carry .container too, so only ever set block padding —
   a `padding: x 0` shorthand would zero out Bootstrap's container gutters and
   push the grid's negative row margins off-screen. */
.process-section { padding-top: 3.5rem; padding-bottom: .5rem; }

.process-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    text-align: left;
    height: 100%;
}

.process-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--grad-spark);
    color: #fff;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 8px 18px -8px rgba(233, 62, 58, .55);
    margin-bottom: 1rem;
}

.process-card p {
    margin: 0;
    color: var(--ink);
    font-size: .98rem;
}

.body-copy { margin-top: 3rem; }
.body-copy h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.body-copy p  { font-size: .98rem; }

/* ── Reviews ──────────────────────────────────────────────────────────── */
.reviews-section { padding-top: 3rem; padding-bottom: 1rem; }

.review-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    height: 100%;
    border: none;
}

.card-review-holder { min-height: 0; }

.review-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: .15rem;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin: .25rem 0 .55rem;
}

.review-stars img { width: 15px; height: 15px; display: block; }

.review-text {
    font-size: .9rem;
    margin: 0;
    color: var(--ink-soft);
}

.review-text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-text.is-clamped.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.review-read-more {
    background: none;
    border: none;
    padding: 0;
    margin-top: .5rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--bolt-mid);
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
}

.review-read-more:hover { color: var(--bolt-start); }

/* ── Carousels (Bootstrap) ────────────────────────────────────────────── */
.carousel-indicators {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
    margin: 1.25rem 0 0;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0 4px;
    text-indent: -999px;
    cursor: pointer;
    background-color: var(--line);
    background-clip: padding-box;
    border: 0;
    border-top: 0;
    border-bottom: 0;
    border-radius: 99px;
    opacity: 1;
    transition: width .3s ease, background-color .3s ease;
}

.carousel-indicators .active {
    opacity: 1 !important;
    width: 22px;
    background: var(--grad-bolt) !important;
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 6px 16px -8px rgba(11, 15, 26, .3);
    opacity: 1;
    transition: border-color .2s ease, transform .2s ease;
}

.carousel-control-prev { left: -8px; }
.carousel-control-next { right: -8px; }

.carousel-control-next:hover,
.carousel-control-prev:hover {
    border-color: var(--bolt-mid);
    transform: translateY(-50%) scale(1.06);
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
    filter: none;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B0F1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='10,2 4,8 10,14'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B0F1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,2 12,8 6,14'/%3E%3C/svg%3E");
}

/* Carousel needs breathing room for the edge controls.
   The padding goes on .carousel-inner, not the outer .carousel: Bootstrap's
   .row applies negative side margins for its gutters, and .carousel-inner has
   overflow:hidden. Padding here gives those negative margins room inside the
   padding box, otherwise the outermost cards get clipped at the right edge. */
.carousel-framed .carousel-inner { padding: 0 12px; }

@media (max-width: 575px) {
    .carousel-control-prev { left: -4px; }
    .carousel-control-next { right: -4px; }
    .carousel-control-next,
    .carousel-control-prev { width: 34px; height: 34px; }
}

/* ── Partner logo tiles (inside the partners carousel) ────────────────── */
.partner-tile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.partner-tile img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* ── Calculator (dark card) ───────────────────────────────────────────── */
.calc-section {
    background: var(--ink);
    border-radius: 32px;
    padding: 3.5rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.calc-section::before {
    content: "";
    position: absolute;
    left: -140px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    background: var(--grad-spark);
    filter: blur(110px);
    opacity: .35;
    border-radius: 50%;
    pointer-events: none;
}

.calc-head {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.calc-head h2 { font-size: 1.9rem; color: #fff; margin-bottom: .5rem; }
.calc-head p  { color: rgba(255, 255, 255, .7); margin-bottom: 0; }

.calc-body {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.calc-label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: .6rem;
}

/* Form controls on the dark card */
.calc-body .form-control,
.calc-body .form-select,
.calc-body .input-group-text {
    background: rgba(255, 255, 255, .06);
    border: 2px solid rgba(255, 255, 255, .16);
    color: #fff;
}

.calc-body .form-control::placeholder { color: rgba(255, 255, 255, .45); }

.calc-body .input-group-text { color: #fff; background: rgba(255, 255, 255, .1); }

.calc-body .form-control:focus,
.calc-body .form-select:focus {
    background: rgba(255, 255, 255, .1);
    border-color: var(--spark-mid);
    box-shadow: 0 0 0 4px rgba(243, 144, 63, .18);
    color: #fff;
}

.calc-body .input-group:focus-within .input-group-text { border-color: var(--spark-mid); }

/* Native select needs an explicit dark option colour on some platforms */
.calc-body .form-select option { color: var(--ink); background: #fff; }

.calc-result {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.estimate-card { background: transparent; border-radius: var(--radius-md); }

.estimate-headline {
    text-align: center;
    margin-bottom: 1.5rem;
}

.estimate-amount {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    background-image: var(--grad-spark);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .estimate-amount { color: var(--spark-start); -webkit-text-fill-color: currentColor; }
}

.estimate-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .92rem;
}

.estimate-row:last-child { border-bottom: none; }

.estimate-row dt { font-weight: 500; color: rgba(255, 255, 255, .65); margin: 0; }
.estimate-row dd { font-weight: 700; color: #fff; margin: 0; text-align: right; }

.estimate-row-total { padding-top: .8rem; font-size: 1.02rem; }

.estimate-row-total dd,
.estimate-row-total dd.text-green {
    font-size: 1.1rem;
    background-image: var(--grad-spark);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .estimate-row-total dd,
    .estimate-row-total dd.text-green { color: var(--spark-start); -webkit-text-fill-color: currentColor; }
}

.calc-disclaimer {
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
    margin-top: 1rem;
    margin-bottom: 0;
}

.calc-powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .95);
    border-radius: 8px;
    padding: 7px 14px;
    margin-top: 1.25rem;
}

.calc-powered span { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.calc-powered img  { height: 12px; width: auto; display: block; }

/* ── FAQ accordion (Bootstrap collapse, re-skinned) ───────────────────── */
.accordion-item {
    color: var(--ink);
    background-color: var(--paper);
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-item:has(.accordion-collapse.show) { border-color: var(--bolt-mid) !important; }

.accordion-header { margin-bottom: 0; }

.accordion-button {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    background-color: var(--paper);
    padding: 18px 22px;
    border-radius: var(--radius-md) !important;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--ink);
    background-color: var(--paper);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Replace Bootstrap's chevron with a +/– mark */
.accordion-button::after {
    content: "+";
    background-image: none;
    width: auto;
    height: auto;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--bolt-mid);
    transform: none;
    transition: none;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-button:not(.collapsed)::after {
    content: "\2013"; /* en dash */
    background-image: none;
    transform: none;
}

.accordion-body {
    padding: 0 22px 20px;
    font-size: .94rem;
    color: var(--ink-soft);
}

.accordion-body p:last-child { margin-bottom: 0; }

/* ── CTA banner ───────────────────────────────────────────────────────── */
/* ACCESSIBILITY DEVIATION FROM MOCKUP — deliberate, please read before removing.
   The raw bolt gradient peaks at #FF1FE0, which is only 3.22:1 against white.
   That clears AA for the display-size h2 but fails the 4.5:1 body-text minimum
   for the paragraph, eyebrow and stat labels sitting on it. A 32% ink scrim over
   the gradient lifts the worst stop to 5.95:1 for white body copy (and 4.82:1
   for labels on the frosted stat cards) while keeping the gradient's character.
   Removing the scrim reintroduces a WCAG AA failure. */
.cta-banner {
    background-image: linear-gradient(rgba(11, 15, 26, .32), rgba(11, 15, 26, .32)), var(--grad-bolt);
    border-radius: 32px;
    padding: 3.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-watermark {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    opacity: .10;
    clip-path: var(--bolt-clip);
    background: #fff;
    z-index: 0;
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-banner h2 {
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: .5rem;
}

.cta-banner p {
    color: #fff;
    margin: 0 0 1.4rem;
    max-width: 38ch;
}

.cta-powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, .95);
    border-radius: 8px;
    padding: 7px 14px;
}

.cta-powered span { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.cta-powered img  { height: 12px; width: auto; display: block; }

.cta-stats { position: relative; z-index: 1; }

.cta-stat-card {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
}

@supports (backdrop-filter: blur(6px)) {
    .cta-stat-card { backdrop-filter: blur(6px); }
}

.cta-stat-card .stat-num {
    display: block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.1;
}

.cta-stat-card .stat-label {
    display: block;
    font-size: .72rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

/* ── Partners marquee ─────────────────────────────────────────────────── */
.partners-marquee-section {
    overflow: hidden;
    padding: 3rem 0;
    background: var(--surface);
}

.partners-marquee-section h2,
.partners-marquee-section h3 { color: var(--ink); }

.marquee-row {
    overflow: hidden;
    margin-bottom: .875rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: .875rem;
    width: max-content;
    will-change: transform;
}

/* Items are tripled in markup — animate exactly one third of the track */
.marquee-left  { animation: marquee-scroll-left  80s linear infinite; }
.marquee-right { animation: marquee-scroll-right 80s linear infinite; }

@keyframes marquee-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@keyframes marquee-scroll-right {
    0%   { transform: translateX(-33.333%); }
    100% { transform: translateX(0); }
}

.marquee-item {
    flex: 0 0 auto;
    width: 150px;
    height: 72px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partners-powered-by {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: .25rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .6);
    padding: 3.5rem 0 2rem;
    font-size: .86rem;
}

.site-footer p { color: rgba(255, 255, 255, .6); }
.site-footer p strong { color: rgba(255, 255, 255, .88); }

.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }

.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .footer-logo img { height: 28px; width: auto; display: block; }

.footer-heading {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: .75rem;
}

.footer-powered {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
}

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

.footer-powered-chip img { height: 14px; width: auto; display: block; }

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin: 2rem 0 1.5rem;
}

.footer-fine {
    color: rgba(255, 255, 255, .62);
    font-size: .76rem;
    line-height: 1.7;
}

.footer-fine a { color: rgba(255, 255, 255, .75); }

/* Legacy alias — old markup used .bg-footer on a light footer */
.bg-footer { background: var(--ink); }

/* ── Cookie consent ───────────────────────────────────────────────────── */
#bbp-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 26, .75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
}

.bbp-cookie-banner {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 9999;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 560px;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(11, 15, 26, .25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.bbp-cookie-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--grad-bolt);
}

.bbp-cookie-logo { margin-bottom: .5rem; }
.bbp-cookie-logo img { height: 26px; width: auto; }

.bbp-cookie-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.bbp-cookie-text {
    color: var(--ink-soft);
    font-size: .9rem;
    margin: 0;
    line-height: 1.6;
}

.bbp-cookie-text a { color: var(--bolt-mid); }

.bbp-cookie-actions {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
}

.bbp-cookie-btn {
    flex: 1;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}

.bbp-cookie-btn--primary {
    background: var(--grad-bolt);
    color: #fff;
    border: none;
}

.bbp-cookie-btn--primary:hover { opacity: .92; }

.bbp-cookie-btn--secondary {
    background: var(--paper);
    color: var(--ink-soft);
    border: 2px solid var(--line);
}

.bbp-cookie-btn--secondary:hover { background: var(--surface); color: var(--ink); }

@media (max-width: 480px) {
    .bbp-cookie-banner  { padding: 1.75rem; }
    .bbp-cookie-actions { flex-direction: column; }
}

/* ── Legal / content pages ────────────────────────────────────────────── */
.legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.legal-content h1:first-child { margin-top: 0; }
.legal-content ul, .legal-content ol { color: var(--ink-soft); }

hr.hr-light { border-top: 1px solid var(--line); opacity: 1; }
hr.hr-blue  { border-top: 1px solid var(--line); opacity: 1; }

/* ── Section rhythm ───────────────────────────────────────────────────── */
/* Block-only padding — these are applied to elements that may also be
   .container, whose horizontal gutters must survive. */
.section-pad    { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-pad-sm { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .hero-title    { font-size: 2.6rem; }
    .md-hero-title { font-size: 1.5rem; }
    .hero-sub      { font-size: 1.45rem; }
    .section-head h2 { font-size: 2rem; }
}

@media (min-width: 992px) {
    .hero { padding: 4.5rem 0 3.5rem; }
    .hero-title      { font-size: 3.4rem; }
    .md-hero-title   { font-size: 1.75rem; }
    .sml-hero-title  { font-size: 1.25rem; }
    .hero-sub        { font-size: 1.6rem; }
    .hero-lede       { font-size: 1.1rem; }
    .section-head h2 { font-size: 2.1rem; }
    .cta-banner h2   { font-size: 2.2rem; }
    .calc-head h2    { font-size: 2rem; }
}

@media (max-width: 991px) {
    .calc-section { padding: 2.5rem 1.4rem; border-radius: 24px; }
    .cta-banner   { padding: 2.5rem 1.6rem; border-radius: 24px; text-align: center; }
    .cta-banner p { margin-left: auto; margin-right: auto; }
    .cta-banner .eyebrow,
    .cta-banner .cta-eyebrow { justify-content: center; }
    .cta-watermark { display: none; }
    .hero-glow { width: 380px; height: 380px; top: -120px; right: -140px; }
}

@media (max-width: 575px) {
    .cta-banner      { padding: 2rem 1.25rem; }
    .cta-stat-card   { padding: 16px; }
    .cta-stat-card .stat-num { font-size: 1.35rem; }
    .calc-section    { padding: 2rem 1.1rem; }
    .calc-result     { padding: 1.1rem; }
    #webo-form-card .card-body { padding: 1rem 1.1rem 1.5rem; }
    .webo-progress-wrap { padding: 1.5rem 1.1rem .25rem; }
    .process-card    { padding: 22px 20px; }
    .estimate-amount { font-size: 2.1rem; }
    .estimate-row    { font-size: .88rem; }
    .trust-row       { gap: 10px; font-size: .74rem; }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .marquee-left,
    .marquee-right {
        animation: none;
        transform: translateX(0);
    }

    .marquee-row {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .webo-progress-fill { transition: none; }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
