/* =========================================================
   BLUE MARK SERVICE
   INTERNAL PAGES CSS
   ---------------------------------------------------------
   Uses variables already defined in custom.css
   No duplicate :root
   ========================================================= */


/* =========================================================
   COMMON INNER PAGE HEADER
   ========================================================= */

.bms-page-header {
    position: relative;
    isolation: isolate;

    min-height: 390px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--st-dark);
    color: var(--st-white);
}


/* Background image */

.bms-page-header-bg {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(
            90deg,
            rgba(23, 22, 65, 0.96) 0%,
            rgba(31, 29, 89, 0.90) 48%,
            rgba(31, 29, 89, 0.70) 100%
        ),
        url("../img/page-header.webp");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* Decorative green glow */

.bms-page-header::after {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -120px;
    bottom: -190px;

    background: rgba(72, 183, 73, 0.18);

    border-radius: 50%;

    filter: blur(5px);

    pointer-events: none;

    z-index: -1;
}


/* Header content */

.bms-page-header .container {
    position: relative;
    z-index: 2;
}

.bms-page-header-content {
    max-width: 850px;
    padding: 85px 0;
}


/* =========================================================
   PAGE HEADER EYEBROW
   ========================================================= */

.bms-page-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: var(--st-secondary);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;

    text-transform: uppercase;
}

.bms-page-header-eyebrow > span {
    display: inline-block;

    width: 30px;
    height: 2px;

    background: var(--st-secondary);

    border-radius: 10px;
}


/* =========================================================
   PAGE HEADER TITLE
   ========================================================= */

.bms-page-header h1 {
    margin: 0 0 18px;

    color: var(--st-white);

    font-size: clamp(42px, 5vw, 68px);
    font-weight: 600;

    line-height: 1.08;
    letter-spacing: -1.5px;
}

.bms-page-header h1 strong {
    color: var(--st-secondary);
    font-weight: 700;
}


/* =========================================================
   PAGE HEADER DESCRIPTION
   ========================================================= */

.bms-page-header p {
    max-width: 720px;

    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 17px;
    font-weight: 400;

    line-height: 1.75;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.bms-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin: 0;
    padding: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;
    font-weight: 500;
}

.bms-breadcrumb a {
    color: var(--st-white);

    text-decoration: none;

    transition:
        color var(--st-transition),
        opacity var(--st-transition);
}

.bms-breadcrumb a:hover {
    color: var(--st-secondary);
}

.bms-breadcrumb i {
    color: var(--st-secondary);
    font-size: 12px;
}

.bms-breadcrumb span {
    color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */

.bms-about-page-section {
    position: relative;

    padding: 110px 0;

    background: var(--st-white);
}

.bms-about-page-section .container {
    max-width: var(--st-container);
}


/* =========================================================
   ABOUT IMAGE
   ========================================================= */

.bms-about-page-image {
    position: relative;

    padding-right: 25px;
}

.bms-about-page-image img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: var(--st-radius);
}


/* Decorative image corner */

.bms-about-page-image::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: 0;
    bottom: -25px;

    border: 10px solid var(--st-secondary);
    border-left: 0;
    border-top: 0;

    border-radius: 0 0 12px 0;

    opacity: 0.9;

    pointer-events: none;
}


/* =========================================================
   ABOUT CONTENT
   ========================================================= */

.bms-about-page-content {
    padding-left: 35px;
}

.bms-about-page-content .eyebrow {
    margin-bottom: 14px;
}

.bms-about-page-content h2 {
    margin-bottom: 22px;

    color: var(--st-dark);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;

    line-height: 1.15;
    letter-spacing: -1px;
}

.bms-about-page-content h2 strong {
    color: var(--st-primary);
    font-weight: 700;
}

.bms-about-page-content .lead {
    margin-bottom: 18px;

    color: var(--st-text);

    font-size: 19px;
    font-weight: 500;

    line-height: 1.7;
}

.bms-about-page-content p {
    margin-bottom: 18px;

    color: var(--st-muted);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   ABOUT HIGHLIGHTS
   ========================================================= */

.bms-about-highlights {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-top: 30px;
}

.bms-about-highlight {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 18px;

    background: var(--st-primary-soft);

    border: 1px solid rgba(41, 38, 111, 0.08);
    border-radius: var(--st-radius-sm);

    transition:
        transform var(--st-transition),
        box-shadow var(--st-transition);
}

.bms-about-highlight:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 24px rgba(23, 22, 65, 0.07);
}


/* Highlight icon */

.bms-about-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    color: var(--st-white);
    background: var(--st-primary);

    border-radius: 50%;

    font-size: 17px;
}


/* Highlight content */

.bms-about-highlight-content h3 {
    margin: 2px 0 4px;

    color: var(--st-dark);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}

.bms-about-highlight-content p {
    margin: 0;

    color: var(--st-muted);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   ABOUT APPROACH SECTION
   ========================================================= */

.bms-about-approach-section {
    padding: 105px 0;

    background: #f8f8fc;
}

.bms-about-approach-section .section-heading {
    max-width: 760px;

    margin-right: auto;
    margin-left: auto;
}

.bms-about-approach-section .feature-card {
    height: 100%;
}


/* =========================================================
   ABOUT APPROACH ICON
   ========================================================= */

.bms-about-approach-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 22px;

    color: var(--st-primary);
    background: var(--st-primary-soft);

    border-radius: 50%;

    font-size: 24px;

    transition:
        color var(--st-transition),
        background-color var(--st-transition),
        transform var(--st-transition);
}

.feature-card:hover .bms-about-approach-icon {
    color: var(--st-white);
    background: var(--st-primary);

    transform: translateY(-3px);
}


/* =========================================================
   COMMON INTERNAL SECTION
   ========================================================= */

.bms-inner-section {
    padding: 105px 0;

    background: var(--st-white);
}

.bms-inner-section-light {
    background: #f8f8fc;
}

.bms-inner-section-dark {
    background: var(--st-dark);

    color: var(--st-white);
}


/* =========================================================
   INTERNAL PAGE CONTENT
   ========================================================= */

.bms-content-wrapper {
    max-width: 920px;

    margin: 0 auto;
}

.bms-content-wrapper h2 {
    margin-bottom: 18px;

    color: var(--st-dark);

    font-size: 32px;
    font-weight: 600;

    line-height: 1.25;
}

.bms-content-wrapper h3 {
    margin-top: 30px;
    margin-bottom: 12px;

    color: var(--st-primary);

    font-size: 23px;
    font-weight: 600;
}

.bms-content-wrapper p {
    margin-bottom: 18px;

    color: var(--st-muted);

    font-size: 15px;
    line-height: 1.8;
}

.bms-content-wrapper ul {
    margin: 0 0 25px;
    padding-left: 20px;
}

.bms-content-wrapper li {
    margin-bottom: 10px;

    color: var(--st-muted);

    font-size: 15px;
    line-height: 1.7;
}

.bms-content-wrapper li::marker {
    color: var(--st-secondary);
}


/* =========================================================
   SERVICE / INFORMATION CARD
   ========================================================= */

.bms-info-card {
    height: 100%;

    padding: 30px;

    background: var(--st-white);

    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);

    transition:
        transform var(--st-transition),
        box-shadow var(--st-transition),
        border-color var(--st-transition);
}

.bms-info-card:hover {
    transform: translateY(-5px);

    border-color: rgba(41, 38, 111, 0.18);

    box-shadow:
        0 8px 26px rgba(23, 22, 65, 0.07);
}


/* Card icon */

.bms-info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 20px;

    color: var(--st-primary);
    background: var(--st-primary-soft);

    border-radius: 10px;

    font-size: 22px;
}

.bms-info-card h3 {
    margin: 0 0 12px;

    color: var(--st-dark);

    font-size: 20px;
    font-weight: 600;
}

.bms-info-card p {
    margin: 0;

    color: var(--st-muted);

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   INTERNAL PAGE CTA
   Existing .cta-section is handled by custom.css
   ========================================================= */

#about-cta {
    position: relative;
}


/* =========================================================
   RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .bms-page-header {
        min-height: 350px;
    }

    .bms-page-header-content {
        padding: 75px 0;
    }

    .bms-about-page-section,
    .bms-about-approach-section,
    .bms-inner-section {
        padding: 90px 0;
    }

    .bms-about-page-content {
        padding-left: 15px;
    }
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .bms-page-header {
        min-height: 330px;
    }

    .bms-page-header-content {
        padding: 65px 0;
    }

    .bms-page-header h1 {
        font-size: clamp(38px, 7vw, 54px);
    }

    .bms-page-header p {
        font-size: 16px;
    }


    /* About */

    .bms-about-page-image {
        padding-right: 15px;

        margin-bottom: 55px;
    }

    .bms-about-page-content {
        padding-left: 0;
    }

    .bms-about-page-section,
    .bms-about-approach-section,
    .bms-inner-section {
        padding: 80px 0;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .bms-page-header {
        min-height: 300px;
    }

    .bms-page-header-bg {
        background-position: center;
    }

    .bms-page-header-content {
        padding: 55px 0;
    }


    /* Eyebrow */

    .bms-page-header-eyebrow {
        margin-bottom: 13px;

        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .bms-page-header-eyebrow > span {
        width: 24px;
    }


    /* Title */

    .bms-page-header h1 {
        margin-bottom: 14px;

        font-size: 40px;

        letter-spacing: -0.8px;
    }


    /* Description */

    .bms-page-header p {
        margin-bottom: 22px;

        font-size: 15px;
        line-height: 1.65;
    }


    /* Breadcrumb */

    .bms-breadcrumb {
        font-size: 13px;
    }


    /* Sections */

    .bms-about-page-section,
    .bms-about-approach-section,
    .bms-inner-section {
        padding: 70px 0;
    }


    /* About image */

    .bms-about-page-image {
        padding-right: 8px;

        margin-bottom: 45px;
    }

    .bms-about-page-image::after {
        width: 75px;
        height: 75px;

        right: -2px;
        bottom: -18px;

        border-width: 8px;
    }


    /* About content */

    .bms-about-page-content h2 {
        font-size: 34px;
    }

    .bms-about-page-content .lead {
        font-size: 17px;
    }

    .bms-about-page-content p {
        font-size: 15px;
        line-height: 1.75;
    }


    /* Highlights */

    .bms-about-highlights {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 25px;
    }

    .bms-about-highlight {
        padding: 16px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .bms-page-header {
        min-height: 285px;
    }

    .bms-page-header-content {
        padding: 48px 0;
    }

    .bms-page-header h1 {
        font-size: 36px;
    }

    .bms-page-header p {
        font-size: 14px;
    }


    .bms-about-page-section,
    .bms-about-approach-section,
    .bms-inner-section {
        padding: 60px 0;
    }

    .bms-about-page-content h2 {
        font-size: 31px;
    }


    /* Highlights */

    .bms-about-highlight {
        align-items: center;
    }

    .bms-about-highlight-icon {
        flex-basis: 36px;

        width: 36px;
        height: 36px;

        font-size: 15px;
    }

    .bms-about-highlight-content h3 {
        font-size: 14px;
    }

    .bms-about-highlight-content p {
        font-size: 12px;
    }


    /* Content */

    .bms-content-wrapper h2 {
        font-size: 27px;
    }

    .bms-content-wrapper h3 {
        font-size: 21px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bms-about-highlight,
    .bms-about-approach-icon,
    .bms-info-card,
    .bms-breadcrumb a {
        transition: none;
    }
}