/* =====================================================
   MFnxt About Us
   Page-only styles. Uses existing global CSS variables.
===================================================== */

.about-page {
    position: relative;
    overflow-x: clip;
    background: var(--c-white);
    color: var(--c-ink);
    font-family: var(--third-font);
}

.about-page *,
.about-page *::before,
.about-page *::after {
    box-sizing: border-box;
}

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

.about-container {
    width: var(--container);
    max-width: 100%;
    margin-inline: auto;
}


/* =====================================================
   LABELS
===================================================== */

.about-eyebrow,
.about-small-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-family: var(--third-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.about-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    flex: 0 0 auto;
    border-radius: var(--radius-pill);
    background: var(--secondary-color);
}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.about-section-number {
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.about-section-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 40px;
}

.about-section-heading h2,
.trust-intro h2,
.about-cta h2 {
    max-width: 36rem;
    margin: 12px 0 0;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.about-section-heading h2 span,
.trust-intro h2 span,
.about-cta h2 span {
    color: var(--secondary-color);
}


/* =====================================================
   HERO
===================================================== */

.about-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(72px, 8vw, 110px) 0 clamp(64px, 7vw, 96px);
    background: var(--c-white);
}

.about-hero::before,
.about-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.about-hero::before {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -140px;
    background: rgba(0, 92, 200, 0.06);
}

.about-hero::after {
    width: 320px;
    height: 320px;
    left: -160px;
    bottom: -180px;
    background: rgba(227, 6, 19, 0.04);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.about-hero-content {
    max-width: 38rem;
}

.about-hero h1 {
    margin: 18px 0 0;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.about-hero h1 strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-hero-description {
    max-width: 34rem;
    margin: 20px 0 0;
    color: var(--c-slate);
    font-family: var(--third-font);
    font-size: clamp(15px, 1vw, 17px);
    font-weight: 400;
    line-height: 1.75;
}

.about-hero-image {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-cream);
    box-shadow: var(--shadow-sm);
}

.about-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1334 / 1179;
    object-fit: cover;
    object-position: center;
}


/* =====================================================
   COMPANY
===================================================== */

.about-company {
    padding: clamp(64px, 7vw, 96px) 0;
    border-top: 1px solid var(--c-line);
    background: var(--c-white);
}

.company-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: clamp(36px, 5vw, 72px);
    padding-left: 64px;
}

.company-main {
    max-width: 42rem;
}

.company-main p {
    margin: 0 0 18px;
    color: var(--c-slate);
    font-family: var(--third-font);
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.75;
}

.company-main .company-lead {
    margin-bottom: 22px;
    color: var(--c-ink);
    font-size: clamp(17px, 1.2vw, 20px);
    font-weight: 500;
    line-height: 1.6;
}

.company-side {
    border-top: 1px solid var(--c-line);
}

.company-stat {
    padding: 18px 0;
    border-bottom: 1px solid var(--c-line);
}

.company-stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-family: var(--third-font);
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 700;
    line-height: 1.2;
}

.company-stat span {
    display: block;
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: 13px;
    line-height: 1.45;
}


/* =====================================================
   MISSION & VISION
===================================================== */

.about-mission {
    padding: clamp(64px, 7vw, 96px) 0;
    background: var(--c-cream);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-left: 64px;
}

.mission-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 28px 28px 32px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    background: var(--c-white);
}

.mission-featured {
    border-color: rgba(0, 92, 200, 0.18);
    background: var(--primary-color-soft);
}

.mission-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mission-top span {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mission-card h3 {
    max-width: 22rem;
    margin: 0 0 14px;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.mission-card p {
    max-width: 28rem;
    margin: 0;
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.7;
}


/* =====================================================
   JOURNEY
===================================================== */

.about-journey {
    padding: clamp(64px, 7vw, 96px) 0;
    background: var(--c-white);
}

.journey-list {
    margin-left: 64px;
    border-left: 1px solid var(--c-line);
}

.journey-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 20px;
    padding: 0 0 28px 28px;
    position: relative;
}

.journey-item:last-child {
    padding-bottom: 0;
}

.journey-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--c-white);
    box-shadow: 0 0 0 1px var(--c-line);
}

.journey-count {
    color: var(--primary-color);
    font-family: var(--third-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.journey-tag {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary-color);
    font-family: var(--third-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.journey-content h3 {
    margin: 0 0 8px;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(18px, 1.4vw, 21px);
    font-weight: 600;
    line-height: 1.3;
}

.journey-content p {
    max-width: 40rem;
    margin: 0;
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.7;
}


/* =====================================================
   PHILOSOPHY
===================================================== */

.about-philosophy {
    padding: clamp(64px, 7vw, 96px) 0;
    background: var(--c-white);
    border-top: 1px solid var(--c-line);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.philosophy-card {
    min-height: 0;
    padding: 22px 20px 24px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    background: var(--c-white);
    transition: border-color 0.25s var(--ease);
}

.philosophy-card:hover {
    border-color: rgba(0, 92, 200, 0.28);
}

.philosophy-number {
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.philosophy-card > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 20px 0 18px;
    border: 1px solid rgba(0, 92, 200, 0.14);
    border-radius: var(--radius-sm);
    background: var(--primary-color-soft);
    color: var(--primary-color);
    font-size: 16px;
}

.philosophy-card h3 {
    margin: 0 0 8px;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 600;
    line-height: 1.3;
}

.philosophy-card p {
    margin: 0;
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: 14px;
    line-height: 1.65;
}


/* =====================================================
   TEAM
===================================================== */

.about-team {
    padding: clamp(64px, 7vw, 96px) 0;
    background: var(--c-cream);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.team-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    background: var(--c-white);
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease);
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 92, 200, 0.22);
    box-shadow: var(--shadow-sm);
}

.team-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef2f6;
}

.team-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    color: transparent;
    font-size: 0;
    transition: transform 0.35s var(--ease);
}

.team-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color-soft);
}

.team-card:hover .team-image img {
    transform: translateY(-2px);
}

.team-details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex: 1 0 auto;
    min-height: 92px;
    padding: 16px;
}

.team-details > div {
    min-width: 0;
}

.team-details span,
.team-support > span {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-family: var(--third-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.35;
}

.team-details h3,
.team-support h3 {
    margin: 0;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 600;
    line-height: 1.3;
}

.team-details a {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    color: var(--c-muted);
    text-decoration: none;
    transition:
        background 0.2s var(--ease),
        color 0.2s var(--ease),
        border-color 0.2s var(--ease);
}

.team-details a:hover,
.team-details a:focus-visible,
.team-card:hover .team-details a {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--c-white);
}

.team-support-logo {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 92, 200, 0.16);
    border-radius: var(--radius-sm);
    background: var(--c-white);
    color: var(--primary-color);
    font-family: var(--third-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.team-details p {
    margin: 8px 0 0;
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: 13px;
    line-height: 1.55;
}


/* =====================================================
   WHY MFNXT
===================================================== */

.about-why {
    padding: clamp(64px, 7vw, 96px) 0;
    background: var(--c-white);
    border-top: 1px solid var(--c-line);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--c-line);
}

.why-card {
    min-height: 0;
    padding: 24px 22px 8px 0;
    padding-right: 22px;
    border-right: 1px solid var(--c-line);
}

.why-card:first-child {
    padding-left: 0;
}

.why-card:last-child {
    border-right: 0;
    padding-right: 0;
}

.why-card > div {
    margin-bottom: 28px;
    color: var(--primary-color);
    font-family: var(--third-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.why-card h3 {
    margin: 0 0 8px;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 600;
    line-height: 1.35;
}

.why-card p {
    margin: 0;
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: 14px;
    line-height: 1.65;
}


/* =====================================================
   TRUST
===================================================== */

.about-trust {
    padding: clamp(64px, 7vw, 96px) 0;
    background: var(--c-cream);
}

.trust-intro {
    max-width: 40rem;
    margin-bottom: 40px;
}

.trust-intro h2 {
    margin: 14px 0 16px;
}

.trust-intro p {
    max-width: 36rem;
    margin: 0;
    color: var(--c-slate);
    font-family: var(--third-font);
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.75;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--c-line);
    border-left: 1px solid var(--c-line);
    background: var(--c-white);
}

.trust-item {
    min-height: 0;
    padding: 22px;
    border-right: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}

.trust-item i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 92, 200, 0.14);
    border-radius: var(--radius-sm);
    background: var(--primary-color-soft);
    color: var(--primary-color);
    font-size: 16px;
}

.trust-item h3 {
    margin: 0 0 8px;
    color: var(--c-ink);
    font-family: var(--third-font);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 600;
    line-height: 1.35;
}

.trust-item p {
    margin: 0;
    color: var(--c-muted);
    font-family: var(--third-font);
    font-size: 14px;
    line-height: 1.65;
}


/* =====================================================
   CTA
===================================================== */

.about-cta {
    padding: clamp(64px, 7vw, 88px) 0;
    background: var(--c-white);
    border-top: 1px solid var(--c-line);
}

.about-cta-inner {
    max-width: 40rem;
}

.about-cta h2 {
    margin: 14px 0 16px;
}

.about-cta h2 span {
    display: inline;
}

.about-cta p {
    max-width: 34rem;
    margin: 0 0 24px;
    color: var(--c-slate);
    font-family: var(--third-font);
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.75;
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-pill);
    background: var(--primary-color);
    color: var(--c-white);
    font-family: var(--third-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s var(--ease),
        border-color 0.2s var(--ease);
}

.about-cta-button:hover,
.about-cta-button:focus-visible {
    background: var(--primary-color-deep);
    border-color: var(--primary-color-deep);
    color: var(--c-white);
}

.about-cta-button i {
    font-size: 12px;
}


/* =====================================================
   1280 / TABLET LANDSCAPE
===================================================== */

@media (max-width: 1280px) {
    .company-content,
    .mission-grid,
    .journey-list {
        padding-left: 64px;
        margin-left: 0;
    }

    .journey-list {
        margin-left: 64px;
        padding-left: 0;
    }
}

@media (max-width: 1100px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-hero-image {
        width: min(560px, 100%);
    }

    .company-content,
    .mission-grid {
        padding-left: 64px;
    }

    .philosophy-grid,
    .team-grid,
    .why-grid,
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-card:nth-child(2) {
        border-right: 0;
        padding-right: 0;
    }

    .why-card:nth-child(3),
    .why-card:nth-child(4) {
        padding-top: 28px;
    }
}


/* =====================================================
   1024 / 768
===================================================== */

@media (max-width: 991px) {
    .about-container {
        width: calc(100% - 40px);
    }

    .about-section-heading {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .company-content,
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-left: 52px;
    }

    .journey-list {
        margin-left: 52px;
    }

    .mission-grid {
        padding-left: 52px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
    .about-container {
        width: calc(100% - 32px);
    }

    .about-section-heading {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 32px;
    }

    .about-section-heading h2 {
        margin-top: 8px;
    }

    .company-content,
    .mission-grid {
        padding-left: 0;
    }

    .journey-list {
        margin-left: 8px;
    }

    .journey-item {
        grid-template-columns: 48px minmax(0, 1fr);
        padding-left: 22px;
    }

    .philosophy-grid,
    .team-grid,
    .why-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .why-card,
    .why-card:nth-child(2),
    .why-card:last-child {
        border-right: 0;
        padding: 22px 0;
    }

    .why-card:first-child {
        padding-top: 22px;
    }

    .why-card:nth-child(3),
    .why-card:nth-child(4) {
        padding-top: 22px;
    }

    .about-cta-button {
        width: 100%;
    }

    .team-details a {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }
}


/* =====================================================
   390 / 360
===================================================== */

@media (max-width: 400px) {
    .about-container {
        width: calc(100% - 28px);
    }

    .about-hero h1,
    .about-section-heading h2,
    .trust-intro h2,
    .about-cta h2 {
        letter-spacing: -0.03em;
    }

    .mission-card,
    .philosophy-card,
    .trust-item {
        padding: 20px;
    }
}
