/* JunkCarCash — Variant B: Bold Automotive */

/* ===========================
   1. PALETTE OVERRIDE
   =========================== */
:root {
    --b-primary: #1E293B;
    --b-secondary: #334155;
    --b-cta: #DC2626;
    --b-cta-hover: #B91C1C;
    --b-bg: #F8FAFC;
    --b-text: #0F172A;
    --b-accent: #F59E0B;
    --b-muted: #64748B;
    --b-surface: #F1F5F9;
}

/* ===========================
   2. TYPOGRAPHY — Outfit + Rubik
   =========================== */
.page-b body,
.page-b {
    font-family: 'Rubik', 'Inter', sans-serif;
    color: var(--b-text);
    background: var(--b-bg);
}
.page-b h1, .page-b h2, .page-b h3, .page-b h4 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--b-primary);
}

/* ===========================
   3. HERO — Bold, oversized
   =========================== */
.hero-b {
    background: var(--b-primary);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero-b::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220,38,38,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-b h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero-b h1 .text-red {
    color: var(--b-cta);
}
.hero-b .lead-b {
    color: #94A3B8;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
}
.hero-b .trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.hero-b .trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CBD5E1;
    font-size: 0.9rem;
}
.hero-b .trust-badge svg {
    color: var(--b-accent);
    flex-shrink: 0;
}

/* ===========================
   4. STATS BAR
   =========================== */
.stats-bar-b {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 1.5rem 0;
}
.stats-bar-b .stat-item {
    text-align: center;
}
.stats-bar-b .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--b-primary);
    line-height: 1;
}
.stats-bar-b .stat-label {
    font-size: 0.8rem;
    color: var(--b-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ===========================
   5. QUOTE FORM — B variant
   =========================== */
.quote-b {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid #E2E8F0;
}
.quote-b h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--b-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.quote-b .form-control {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    background: var(--b-surface);
    color: var(--b-text);
}
.quote-b .form-control:focus {
    border-color: var(--b-cta);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
    background: #fff;
}
.quote-b .form-control::placeholder {
    color: #94A3B8;
}
.quote-b .btn-cta {
    background: var(--b-cta);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}
.quote-b .btn-cta:hover {
    background: var(--b-cta-hover);
}
.quote-b .btn-cta:active {
    transform: scale(0.98);
}

/* ===========================
   6. STEPS — Color-coded funnel
   =========================== */
.steps-b {
    padding: 4rem 0;
    background: #fff;
}
.step-b {
    text-align: center;
    position: relative;
}
.step-b .step-num {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
}
.step-b:nth-child(1) .step-num { background: var(--b-cta); }
.step-b:nth-child(2) .step-num { background: var(--b-accent); color: var(--b-primary); }
.step-b:nth-child(3) .step-num { background: #16A34A; }
.step-b h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.step-b p {
    color: var(--b-muted);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ===========================
   7. SECTION STYLING
   =========================== */
.section-b {
    padding: 3.5rem 0;
}
.section-b-alt {
    padding: 3.5rem 0;
    background: var(--b-surface);
}
.section-b > .container > h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* ===========================
   8. CARDS — B variant
   =========================== */
.card-b {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--b-text);
    display: block;
    height: 100%;
}
.card-b:hover {
    box-shadow: 0 8px 30px rgba(30, 41, 59, 0.1);
    border-color: var(--b-cta);
    color: var(--b-text);
}
.card-b:focus-within {
    outline: 2px solid var(--b-cta);
    outline-offset: 2px;
}
.card-b .card-body {
    padding: 1rem;
    text-align: center;
}
.card-b .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}
.card-b .brand-count {
    color: var(--b-muted);
    font-size: 0.8rem;
}

/* ===========================
   9. TABLE — B variant
   =========================== */
.table-b th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--b-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--b-primary);
}
.table-b .price-b {
    font-weight: 700;
    color: #16A34A;
}

/* ===========================
   10. FAQ — B variant
   =========================== */
.faq-b .accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--b-primary);
}
.faq-b .accordion-button:not(.collapsed) {
    background: var(--b-surface);
    color: var(--b-cta);
}
.faq-b .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ===========================
   11. PAGE HEADER (inner pages)
   =========================== */
.page-header {
    background: var(--b-primary);
    padding: 1.75rem 0;
}
.page-header h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}
.page-header .lead {
    color: #94A3B8;
    font-size: 1rem;
}

/* ===========================
   12. BREADCRUMBS (inner pages)
   =========================== */
.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 0.85rem;
}
.page-header .breadcrumb-item a {
    color: var(--b-accent);
    text-decoration: none;
}
.page-header .breadcrumb-item a:hover {
    color: #FBBF24;
    text-decoration: underline;
}
.page-header .breadcrumb-item.active {
    color: #CBD5E1;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #94A3B8;
}

/* ===========================
   13. BOOTSTRAP OVERRIDES
   =========================== */
.page-b .text-primary {
    color: var(--b-primary) !important;
}
.page-b .bg-primary {
    background-color: var(--b-primary) !important;
}
.page-b .btn-primary {
    background-color: var(--b-cta);
    border-color: var(--b-cta);
}
.page-b .btn-primary:hover,
.page-b .btn-primary:focus {
    background-color: var(--b-cta-hover);
    border-color: var(--b-cta-hover);
}
.page-b .btn-warning {
    background-color: var(--b-cta);
    border-color: var(--b-cta);
    color: #fff;
}
.page-b .btn-warning:hover,
.page-b .btn-warning:focus {
    background-color: var(--b-cta-hover);
    border-color: var(--b-cta-hover);
    color: #fff;
}
.page-b .btn-outline-primary {
    color: var(--b-cta);
    border-color: var(--b-cta);
}
.page-b .btn-outline-primary:hover {
    background-color: var(--b-cta);
    border-color: var(--b-cta);
    color: #fff;
}

/* ===========================
   14. INNER PAGE SECTIONS
   =========================== */
.page-b .section-light {
    background: var(--b-surface);
}
.page-b section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.section-b h2,
.section-b-alt h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.section-b > .container > h2,
.section-b-alt > .container > h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===========================
   15. TABLES (inner pages)
   =========================== */
.page-b .table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--b-primary);
    white-space: nowrap;
    border-bottom-width: 2px;
}
.page-b .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--b-surface);
}
.page-b .price-cell {
    font-weight: 700;
    color: #16A34A;
}

/* ===========================
   16. STAT CARDS (inner pages)
   =========================== */
.page-b .card.text-center .h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--b-primary);
}
.page-b .card {
    border-color: #E2E8F0;
    border-radius: 12px;
}

/* ===========================
   17. CARD HOVER (inner pages)
   =========================== */
.page-b .card-hover {
    transition: box-shadow 0.2s, border-color 0.2s;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
}
.page-b .card-hover:hover {
    box-shadow: 0 8px 30px rgba(30, 41, 59, 0.1);
    border-color: var(--b-cta);
}
.page-b .card-hover:focus-within {
    outline: 2px solid var(--b-cta);
    outline-offset: 2px;
}

/* ===========================
   18. QUOTE FORM WRAPPER (inner pages)
   =========================== */
.page-b .quote-form-wrapper {
    background: var(--b-primary) !important;
    border-radius: 16px !important;
    border: 1px solid #334155;
}
.page-b .quote-form-wrapper h3 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}
.page-b .quote-form .form-control {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    background: #fff;
}
.page-b .quote-form .form-control:focus {
    border-color: var(--b-cta);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.page-b .quote-form .form-control::placeholder {
    color: #94A3B8;
}
.page-b .quote-form .btn-warning {
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===========================
   19. CONTENT AREA (service/blog)
   =========================== */
.page-b .content-area h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    padding-left: 0;
    border-left: none;
}
.page-b .content-area h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.page-b .content-area ul,
.page-b .content-area ol {
    margin-bottom: 1rem;
}
.page-b .content-area li {
    margin-bottom: 0.3rem;
}
.page-b .content-area p {
    max-width: 72ch;
}
.page-b .col-lg-8 > .mb-4 > p {
    max-width: 72ch;
}

/* ===========================
   20. ACCORDION (inner pages)
   =========================== */
.page-b .accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--b-primary);
}
.page-b .accordion-button:not(.collapsed) {
    background: var(--b-surface);
    color: var(--b-cta);
}
.page-b .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ===========================
   21. LIST GROUP (service sidebar)
   =========================== */
.page-b .list-group-item a {
    color: var(--b-text);
    text-decoration: none;
    font-weight: 500;
}
.page-b .list-group-item a:hover {
    color: var(--b-cta);
}

/* ===========================
   22. CTA BLOCKS (service/blog)
   =========================== */
.page-b .bg-light {
    background: var(--b-surface) !important;
}
.page-b .bg-light .btn-primary,
.page-b .bg-primary .btn-warning {
    background: var(--b-cta);
    border-color: var(--b-cta);
    color: #fff;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* ===========================
   23. MOBILE STICKY CTA
   =========================== */
.mobile-sticky-cta {
    display: none;
}
@media (max-width: 991.98px) {
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: var(--b-primary);
        padding: 0.75rem 1rem;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
        text-align: center;
    }
    body.page-b {
        padding-bottom: 70px;
    }
}

/* ===========================
   24. TOUCH TARGETS & LINKS
   =========================== */
a.d-block,
a.text-decoration-none,
.table a,
.list-group-item a,
.dropdown-item {
    cursor: pointer;
}
a.d-block.p-2 {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* ===========================
   25. FOOTER LINKS
   =========================== */
footer a {
    text-decoration: none;
    transition: color 0.15s;
}
footer a:hover {
    color: var(--b-accent) !important;
}

/* ===========================
   26. RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero-b {
        padding: 2.5rem 0 2rem;
    }
    .hero-b h1 {
        font-size: 2rem;
    }
    .quote-b {
        margin-top: 2rem;
    }
    .stats-bar-b .stat-number {
        font-size: 1.4rem;
    }
    .page-header h1 {
        font-size: 1.4rem;
    }
    .page-b .card.text-center .h4 {
        font-size: 1.2rem;
    }
    .page-b .quote-form-wrapper {
        margin-top: 1.5rem;
    }
}

/* ===========================
   27. GLOBAL .btn-cta
   =========================== */
.btn-cta {
    background: var(--b-cta);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}
.btn-cta:hover {
    background: var(--b-cta-hover);
    color: #fff;
}
.btn-cta:active {
    transform: scale(0.98);
}

/* ===========================
   28. REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .btn-cta,
    .card-b,
    .card-hover,
    footer a,
    .accordion-button {
        transition: none !important;
    }
    .mobile-sticky-cta {
        box-shadow: none;
    }
    html {
        scroll-behavior: auto !important;
    }
}
