/* ==========================================================
   MSJ Mortgage | About Us
   01. Page foundation (scoped to About only)
   ========================================================== */

.msj-about-page {
    --red: #b81920;
    --ink: #202123;
    --muted: #55585b;
    --paper: #f4f3f0;
}

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

.msj-about-page {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font: 400 16px/1.65 Lato, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.msj-about-page button,
.msj-about-page a {
    -webkit-tap-highlight-color: transparent;
}

.msj-about-page a:focus-visible,
.msj-about-page button:focus-visible {
    outline: 2px solid #d42a32;
    outline-offset: 5px;
}

.msj-about-page .skip {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 100;
    background: #fff;
    padding: 12px;
}

.msj-about-page .skip:focus {
    top: 10px;
}

.msj-about .about-wrap {
    width: min(1360px, calc(100% - 112px));
    margin-inline: auto;
}

/* 02. Photographic hero */

.msj-about .about-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(440px, 64vh, 650px);
    display: grid;
    align-items: center;
    background: #292d31;
    color: #fff;
    padding: 112px 0 65px;
}

.msj-about .about-hero-photo,
.msj-about .about-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.msj-about .about-hero-photo {
    object-fit: cover;
    object-position: center 54%;
}

.msj-about .about-hero::after {
    content: "";
    background: linear-gradient(90deg, rgba(17,20,23,.85), rgba(17,20,23,.48) 62%, rgba(17,20,23,.24));
}

.msj-about-page .about-hero .msj-header-spacer {
    display: none;
}

.msj-about-page .msj-header--hero:not(.is-docked) {
    position: absolute;
    top: 0;
}

.msj-about-page .msj-header [aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: #d52b32;
}

.msj-about .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.075em;
    color: var(--red);
    margin: 0 0 17px;
}

.msj-about .eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.msj-about .about-hero .eyebrow {
    color: #fff;
}

.msj-about .about-hero .eyebrow::before {
    background: #e04449;
}

.msj-about h1,
.msj-about h2,
.msj-about h3,
.msj-about p {
    margin-top: 0;
}

.msj-about .about-hero h1 {
    font-size: clamp(38px, 4.2vw, 64px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: normal;
    max-width: 820px;
    margin-bottom: 24px;
}

.msj-about .about-hero p {
    max-width: 630px;
    color: #eee;
    font-size: clamp(17px, 1.3vw, 20px);
    margin-bottom: 28px;
}

.msj-about .hero-link {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #ffffff80;
    padding-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
}

.msj-about .hero-link:hover {
    border-color: #fff;
}

/* 03. Company facts */

.msj-about .about-facts {
    border-bottom: 1px solid #e3e1de;
}

.msj-about .fact-grid {
    display: grid;
    grid-template-columns: .75fr 1fr 1.35fr;
    padding: 30px 0;
}

.msj-about .fact-grid > div {
    padding: 4px 32px;
    border-left: 1px solid #ddd;
}

.msj-about .fact-grid > div:first-child {
    padding-left: 0;
    border: 0;
}

.msj-about .fact-grid strong {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.msj-about .fact-grid span {
    color: var(--muted);
    font-size: 14px;
}

/* 04. Company story and typography */

.msj-about .about-section {
    padding: clamp(60px, 6vw, 100px) 0;
}

.msj-about .about-section h2,
.msj-about .contact-band h2 {
    font-size: clamp(29px, 3vw, 43px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: normal;
    margin-bottom: 23px;
}

.msj-about .about-section p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 18px;
}

.msj-about .story-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(45px, 7vw, 110px);
    align-items: center;
}

.msj-about .company-photo {
    margin: 0;
}

.msj-about .company-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
}

.msj-about .company-photo figcaption {
    color: #696b6d;
    font-size: 13px;
    margin-top: 12px;
}

.msj-about .text-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.msj-about .text-link:hover {
    text-decoration: underline;
}

/* 05. Mission, vision and goals */

.msj-about .principles-section {
    background: var(--paper);
}

.msj-about .principles-layout {
    display: grid;
    grid-template-columns: .85fr 1.5fr;
    gap: clamp(45px, 7vw, 110px);
}

.msj-about .principle {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    border-top: 1px solid #d6d3cf;
    padding: 25px 0 21px;
}

.msj-about .principle:last-child {
    border-bottom: 1px solid #d6d3cf;
}

.msj-about .principle span {
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    padding-top: 4px;
}

.msj-about .principle h3 {
    font-size: 23px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.msj-about .principle p {
    margin: 0 !important;
}

/* 06. Brokerage difference */

.msj-about .broker-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
}

.msj-about .broker-photo {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
    background: #e6e4e0;
}

.msj-about .broker-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.msj-about .broker-list li {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.msj-about .broker-list li::before {
    content: "✓";
    color: var(--red);
    font-weight: 700;
}

/* 07. Awards and recognition */

.msj-about .awards-section {
    background: var(--paper);
}

.msj-about .awards-layout {
    display: grid;
    grid-template-columns: .9fr 2fr;
    gap: 56px;
    align-items: center;
}

.msj-about .award-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.msj-about .award-grid figure {
    margin: 0;
    text-align: center;
    min-width: 0;
}

.msj-about .award-grid img {
    width: 100%;
    max-width: 140px;
    height: 142px;
    object-fit: contain;
}

.msj-about .award-grid figcaption {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
}

.msj-about .award-grid figcaption span {
    display: block;
    color: var(--muted);
}

/* 08. Contact section */

.msj-about .contact-band {
    background: #94141a;
    color: #fff;
    padding: 42px 0;
}

.msj-about .contact-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.msj-about .contact-band h2 {
    font-size: clamp(25px, 2.6vw, 36px);
    margin-bottom: 8px;
}

.msj-about .contact-band p {
    margin: 0;
    color: #f5d9db;
}

.msj-about .contact-actions {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.msj-about .contact-actions a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.msj-about .contact-actions .contact-button {
    background: #fff;
    color: #94141a;
    padding: 13px 22px;
    border-radius: 3px;
}

.msj-about .contact-actions a:hover {
    text-decoration: underline;
}

@media (max-width: 950px) {
    .msj-about .about-wrap {
        width: calc(100% - 64px);
    }

    .msj-about .story-grid,
    .msj-about .principles-layout,
    .msj-about .broker-layout {
        gap: 38px;
    }

    .msj-about .awards-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .msj-about .contact-layout {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }
}

@media (max-width: 700px) {
    .msj-about .about-wrap {
        width: calc(100% - 40px);
    }

    .msj-about .about-hero {
        min-height: 520px;
        padding-top: 115px;
    }

    .msj-about .story-grid,
    .msj-about .principles-layout,
    .msj-about .broker-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .msj-about .company-photo {
        order: 2;
    }

    .msj-about .fact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 0;
        padding: 24px 0;
    }

    .msj-about .fact-grid > div {
        padding: 0 16px;
    }

    .msj-about .fact-grid > div:last-child {
        grid-column: 1 / -1;
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid #ddd;
    }

    .msj-about .award-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .msj-about .award-grid img {
        height: 110px;
    }

    .msj-about .principle {
        grid-template-columns: 32px 1fr;
    }
}

/* Homepage About photograph: preserve the existing clean layout. */


.msj-about-preview-photo {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.msj-about-preview-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
}

/* Keep the linked awards heading below the floating header. */
.msj-about #awards-title { scroll-margin-top: 130px; }
