/* ========================================
   About Page Styles
   ======================================== */

/* --- Quick Answers / Q&A Section --- */
.about-qa-section {
    border-top: 1px solid var(--color-border, #e5e7eb);
    padding: 56px 16px;
    background-color: var(--color-background);
}

.about-qa-section .content {
    max-width: var(--content-width, 1100px);
    margin: 0 auto;
}

.about-qa-section h2 {
    font-size: var(--text-heading2, 1.5rem);
    font-weight: bold;
    color: var(--color-heading);
    margin-bottom: 28px;
}

.about-qa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.about-qa-item {
    background-color: var(--color-forground);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--card-radius, 12px);
    padding: 20px 22px;
    box-shadow: var(--shadow-card, 0 1px 4px rgba(0,0,0,0.06));
}

.about-qa-item h3 {
    font-size: var(--text-body, 1rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.about-qa-item p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 640px) {
    .about-qa-grid {
        grid-template-columns: 1fr;
    }
}

:root {
    --about-hero-overlay-bg: linear-gradient(135deg, rgba(11, 20, 70, 0.65) 0%, rgba(29, 78, 216, 0.55) 100%);
    --about-badge-bg: #FEF9C3;
    --about-badge-color: #854D0E;
}

:root[data-theme="dark"] {
    --about-hero-overlay-bg: linear-gradient(135deg, rgba(5, 10, 40, 0.8) 0%, rgba(15, 40, 120, 0.75) 100%);
    --about-badge-bg: #422006;
    --about-badge-color: #FDE68A;
}

/* ── Reset main layout (matches buyer.css pattern) ─────────────────── */
main {
    padding: 0 !important;

    section {
        margin-bottom: 0 !important;

        .content {
            padding: 0 var(--padding-main);
        }
    }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.about-hero-section {
    max-width: unset !important;
    width: 100%;
    height: 560px;
    background-color: #0f1428;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 35%;
        opacity: 0.55;
    }

    .about-hero-overlay {
        position: absolute;
        inset: 0;
        background: var(--about-hero-overlay-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: var(--padding-main);
        text-align: center;
        color: white;

        .about-hero-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.75);
        }

        h1 {
            font-size: var(--text-heading1);
            font-weight: bold;
            color: white;
        }

        p {
            font-size: var(--text-body);
            color: rgba(255, 255, 255, 0.85);
            max-width: 600px;
        }
    }
}

/* ── Shared label tag ────────────────────────────────────────────── */
.about-label-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ── Shared desc text ────────────────────────────────────────────── */
.about-desc {
    color: var(--color-text);
    line-height: 1.75;
    max-width: 720px;
    text-align: center;
}

/* ── Mission + Stats ─────────────────────────────────────────────── */
.about-mission-section {
    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-top: 48px;
        padding-bottom: 48px;

        h2 {
            font-size: var(--text-heading2);
            font-weight: bold;
            max-width: 680px;
        }
    }
}

.about-stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    width: 100%;
}

.about-stat-card {
    min-width: 160px;
    flex: 1;
    max-width: 220px;
    background-color: var(--color-forground);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
    border-radius: var(--card-radius);
    padding: var(--padding-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    .stat-val {
        font-size: var(--text-heading2);
        font-weight: bold;
        line-height: 1;
    }

    .stat-lbl {
        font-size: 0.85rem;
        color: var(--color-text);
        text-align: center;
    }
}

/* ── Split layout (Story & Partner) ─────────────────────────────── */
.about-split {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 56px;

    &.about-split-reverse {
        flex-direction: row-reverse;
    }

    .about-split-image {
        flex: 1;
        min-width: 0;

        img {
            width: 100%;
            border-radius: var(--card-radius);
            object-fit: cover;
            aspect-ratio: 4 / 3;
            box-shadow: var(--shadow-card);
        }
    }

    .about-split-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;

        h2 {
            font-size: var(--text-heading2);
            font-weight: bold;
        }

        p {
            color: var(--color-text);
            line-height: 1.75;
        }
    }
}

/* ── Story section background ────────────────────────────────────── */
.about-story-section {
    background-color: var(--color-background) !important;
}

/* ── Partner section ─────────────────────────────────────────────── */
.about-partner-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.about-partner-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    background-color: var(--about-badge-bg);
    color: var(--about-badge-color);
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
}

/* ── How We Work ─────────────────────────────────────────────────── */
.about-how-section {
    background-color: var(--color-background) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-top: 48px;
        padding-bottom: 48px;

        h2 {
            font-size: var(--text-heading2);
            font-weight: bold;
            max-width: 700px;
        }
    }
}

.about-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 8px;
    text-align: left;
}

.about-step-card {
    background-color: var(--color-forground);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
    border-radius: var(--card-radius);
    padding: var(--padding-card);
    display: flex;
    flex-direction: column;
    gap: 10px;

    .step-num {
        font-size: 2rem;
        font-weight: bold;
        color: var(--color-primary);
        opacity: 0.25;
        line-height: 1;
    }

    b {
        font-size: var(--text-body);
        font-weight: 600;
    }

    p {
        font-size: 0.9rem;
        color: var(--color-text);
        line-height: 1.65;
        margin: 0;
    }
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.about-cta-section {
    max-width: unset !important;
    background-color: var(--color-dealflow) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-top: 64px;
        padding-bottom: 64px;

        h2 {
            font-size: var(--text-heading2);
            font-weight: bold;
            color: #fff;
        }

        p {
            font-size: var(--text-body);
            color: rgba(255, 255, 255, 0.85);
            max-width: 520px;
        }
    }
}

.about-cta-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;

    .btn-primary {
        padding: 12px 28px;
        border-radius: var(--box-radius);
        font-weight: 600;
        font-size: var(--text-body);
        cursor: pointer;
        border: 2px solid #fff;
        background-color: #fff;
        color: var(--color-dealflow);
        box-shadow: var(--shadow-card);
        transition: background-color 0.2s, color 0.2s;

        &:hover {
            background-color: rgba(255, 255, 255, 0.9);
        }
    }

    .btn-outline {
        padding: 12px 28px;
        border-radius: var(--box-radius);
        font-weight: 600;
        font-size: var(--text-body);
        cursor: pointer;
        border: 2px solid rgba(255, 255, 255, 0.6);
        background-color: transparent;
        color: #fff;
        transition: border-color 0.2s, background-color 0.2s;

        &:hover {
            border-color: #fff;
            background-color: rgba(255, 255, 255, 0.1);
        }
    }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .about-hero-section {
        height: 420px;
    }

    .about-split,
    .about-split.about-split-reverse {
        flex-direction: column;
        gap: 24px;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .about-split-text {
        align-items: center;
        text-align: center;
    }

    .about-partner-badge {
        align-self: center;
    }

    .about-steps-grid {
        grid-template-columns: 1fr;
    }

    .about-desc {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .about-stat-card {
        min-width: 140px;
    }
}
