/* ==============================================================================
   landing.css
   TWOFOUR DIMEWELL LIMITED — DimeWell Loan Processing Platform
   Public Marketing Pages — Shared Styles

   Used by: about.html, contact.html, faq.html, products.html
   (terms.html and privacy.html are self-contained and do not need this file)

   Loaded via {% block extra_css %} on top of main.css / navbar.css /
   dashboard.css / forms.css / tables.css / responsive.css (all loaded
   globally in base.html). Uses the same CSS variables defined in main.css's
   :root block — falls back to literal values if a variable is unavailable.
   ============================================================================== */


/* ── Section Header (badge + title + subtitle) ──────────────────────────────
   Used at the top of most content sections across about/products/faq pages.
   ============================================================================== */

.section-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary, #1a5276);
    background: var(--brand-accent-light, #eff6ff);
    border: 1px solid var(--neutral-200, #e2e8f0);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
    color: var(--brand-primary-dark, #0e3550);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--neutral-500, #64748b);
    font-size: 1.05rem;
    margin-bottom: 0;
}


/* ── About Page — Story Section ────────────────────────────────────────────── */

.about-story-section {
    padding-top: 1rem;
}

.about-image-wrapper {
    min-height: 320px;
}

.about-main-card {
    position: relative;
    z-index: 2;
    border: 1px solid var(--neutral-200, #e2e8f0);
}

.about-accent-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.about-accent-circle:nth-of-type(1) {
    top: -40px;
    right: -40px;
}

.about-accent-circle:nth-of-type(2) {
    bottom: -50px;
    left: -50px;
}


/* ── About Page — Mission / Values / Why / How sections ───────────────────── */

.mission-section,
.why-section,
.how-section,
.values-section,
.company-details-section,
.compliance-section {
    scroll-margin-top: 90px;
}

.mission-icon,
.why-icon,
.value-icon,
.step-circle {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

.value-icon {
    font-size: 1.75rem;
    width: auto;
    height: auto;
}

.step-circle {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
    font-weight: 700;
}


/* ── Call To Action Section (about, products, faq, contact) ───────────────── */

.cta-section {
    background: linear-gradient(135deg, var(--brand-primary, #1a5276) 0%, var(--brand-primary-dark, #0e3550) 100%);
}

.cta-section .btn-light:hover {
    background-color: var(--neutral-100, #f1f5f9);
}


/* ── Contact Page ───────────────────────────────────────────────────────────── */

.contact-main-section {
    scroll-margin-top: 90px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.map-section {
    scroll-margin-top: 90px;
}

.map-placeholder {
    border-radius: 1rem;
    border: 1px dashed var(--neutral-300, #cbd5e1);
}

.alternative-contact .list-group-item {
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.alternative-contact .list-group-item:hover {
    border-left-color: var(--brand-accent, #3b82f6);
    background-color: var(--neutral-50, #f8fafc);
}


/* ── FAQ Page ───────────────────────────────────────────────────────────────── */

.faq-header-section {
    text-align: center;
}

.faq-search {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search .form-control {
    border-radius: 999px 0 0 999px;
}

.faq-search .input-group-text,
.faq-search .btn {
    border-radius: 0 999px 999px 0;
}

.faq-categories {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-category-btn {
    border-radius: 999px;
    white-space: nowrap;
}

.faq-content-section {
    scroll-margin-top: 90px;
}

.faq-group {
    scroll-margin-top: 90px;
}

.faq-group .accordion-button {
    font-weight: 600;
    color: var(--brand-primary-dark, #0e3550);
}

.faq-group .accordion-button:not(.collapsed) {
    color: var(--brand-primary, #1a5276);
    background-color: var(--brand-accent-light, #eff6ff);
}

.faq-group .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.faq-no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--neutral-500, #64748b);
}

.faq-no-results.show {
    display: block;
}

.faq-cta-section {
    scroll-margin-top: 90px;
}


/* ── Products Page ─────────────────────────────────────────────────────────── */

.products-intro {
    text-align: center;
}

.products-detail-section {
    scroll-margin-top: 90px;
}

.product-detail-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-detail-card:hover {
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.product-detail-icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
}

.eligibility-summary,
.comparison-table,
.notes-section {
    scroll-margin-top: 90px;
}

.comparison-table .table thead th {
    background-color: var(--neutral-50, #f8fafc);
    color: var(--brand-primary-dark, #0e3550);
    font-weight: 700;
    white-space: nowrap;
}

.comparison-table .table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--neutral-200, #e2e8f0);
}


/* ── Shared Utility — gap fallback for older Bootstrap utility coverage ──────
   gap-2 / gap-3 are standard in Bootstrap 5.3, included here only as a
   defensive fallback in case a cached/older bootstrap.min.css is served.
   ============================================================================== */

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }


/* ── Responsive adjustments ───────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.5rem;
    }

    .about-accent-circle {
        width: 100px;
        height: 100px;
    }

    .faq-categories {
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 0.5rem;
    }

    .faq-category-btn {
        flex-shrink: 0;
    }
}
