/* =========================================================
   FOUNDAM FRAMEWORK v0.1
   COMPONENT STYLES
   ========================================================= */

/* =========================================================
   EYEBROW
   ========================================================= */

.fm-eyebrow {
    margin: 0 0 var(--fm-space-5);

    color: var(--fm-color-muted);

    font-size: var(--fm-text-xs);
    font-weight: var(--fm-weight-bold);

    line-height: 1;
    letter-spacing: var(--fm-tracking-label);

    text-transform: uppercase;
}

.fm-eyebrow--light {
    color: var(--fm-color-on-dark-muted);
}


/* =========================================================
   BUTTON
   ========================================================= */

.fm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: var(--fm-space-3);

    min-height: 52px;

    padding-inline: var(--fm-space-5);

    border: 0;
    border-radius: var(--fm-radius-xs);

    font-size: var(--fm-text-sm);
    font-weight: var(--fm-weight-semibold);

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.fm-button--dark {
    background: var(--fm-color-ink);
    color: #fff;
}

.fm-button--dark:hover,
.fm-button--dark:focus-visible {
    background: #333;
    color: #fff;

    transform: translateY(-2px);
}

.fm-button--light {
    background: var(--fm-color-surface);
    color: var(--fm-color-ink);
}

.fm-button--light:hover,
.fm-button--light:focus-visible {
    background: #fff;
    color: var(--fm-color-ink);

    transform: translateY(-2px);
}

.fm-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.fm-section-heading {
    max-width: 820px;
}


.fm-section-heading--narrow {
    max-width: 680px;
}


.fm-section-heading--wide {
    max-width: var(--fm-container-content);
}


.fm-section-heading--center {
    margin-inline: auto;

    text-align: center;
}


.fm-section-heading .fm-heading {
    margin: 0;

    font-family:
        var(--fm-font-sans);

    font-size:
        var(--fm-text-h2);

    font-weight:
        var(--fm-weight-medium);

    line-height:
        var(--fm-leading-heading);

    letter-spacing:
        var(--fm-tracking-heading);
}


.fm-section-heading--small .fm-heading {
    font-size:
        var(--fm-text-h3);
}


.fm-section-heading--large .fm-heading {
    font-size:
        var(--fm-text-h1);
}


.fm-section-heading__copy {
    max-width: 690px;

    margin-top:
        var(--fm-space-6);

    color:
        var(--fm-color-muted);

    font-size:
        var(--fm-text-lg);

    line-height:
        var(--fm-leading-body);
}


.fm-section-heading--center .fm-section-heading__copy {
    margin-inline:
        auto;
}


.fm-section-heading--light .fm-heading {
    color:
        var(--fm-color-on-dark);
}


.fm-section-heading--light .fm-section-heading__copy {
    color:
        var(--fm-color-on-dark-muted);
}




@media (max-width: 767px) {

    .fm-section-heading__copy {
        font-size:
            var(--fm-text-base);
    }

}

/* =========================================================
   SERVICE ITEM 01
   ========================================================= */

.fm-service-card {
    position: relative;

    min-height: 430px;

    padding:
        42px
        38px
        70px
        0;

    border-right:
        var(--fm-border-default);
}


.fm-service-card + .fm-service-card {
    padding-left: 38px;
}


.fm-service-card:last-child {
    border-right: 0;
}


.fm-number {
    margin-bottom:
        var(--fm-space-8);

    color:
        var(--fm-color-muted);

    font-size:
        var(--fm-text-xs);

    font-weight:
        var(--fm-weight-bold);
}


.fm-service-card h3 {
    margin: 0;

    font-size:
        var(--fm-text-h3);

    line-height: 1.04;

    letter-spacing:
        var(--fm-tracking-heading);

    font-weight:
        var(--fm-weight-medium);
}


.fm-service-card p {
    margin:
        var(--fm-space-5)
        0
        var(--fm-space-6);

    color:
        var(--fm-color-muted);

    line-height:
        var(--fm-leading-body);

    font-size:
        var(--fm-text-base);
}


.fm-service-card > .fm-text-link {
    position: absolute;

    left: 0;
    bottom: 16px;
}


.fm-service-card + .fm-service-card > .fm-text-link {
    left: 38px;
}


/* =========================================================
   PROJECT FEATURE 01
   ========================================================= */

.fm-feature-project {
    display: grid;

    grid-template-columns:
        1.35fr
        0.65fr;

    gap:
        var(--fm-space-grid);

    align-items: center;

    margin-bottom:
        var(--fm-space-11);
}


.fm-feature-project:last-child {
    margin-bottom: 0;
}


.fm-project-reverse {
    grid-template-columns:
        0.65fr
        1.35fr;
}


.fm-project-reverse .fm-work-visual {
    order: 2;
}


.fm-project-reverse .fm-project-copy {
    order: 1;
}


.fm-work-visual {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 620px;

    overflow: hidden;
}


.fm-work-visual-one,
.fm-work-visual--document {
    background:
        #272927;
}


.fm-work-visual-two,
.fm-work-visual--browser {
    background:
        #cfc4b4;
}


/* -------------------------
   Document artwork
   ------------------------- */

.fm-document-mockup {
    width: 56%;

    min-height: 470px;

    padding: 38px;

    background:
        var(--fm-color-lime);

    box-shadow:
        30px
        30px
        0
        rgba(0, 0, 0, 0.18);

    transform:
        rotate(-3deg);
}


.fm-document-top {
    font-size: 9px;

    letter-spacing:
        var(--fm-tracking-label);

    font-weight:
        var(--fm-weight-bold);
}


.fm-document-title {
    margin-top: 110px;

    font-size:
        clamp(
            2.125rem,
            4vw,
            3.625rem
        );

    line-height:
        var(--fm-leading-tight);

    letter-spacing:
        var(--fm-tracking-display);

    font-weight:
        var(--fm-weight-semibold);
}


.fm-document-line {
    width: 44px;

    margin-top:
        var(--fm-space-7);

    border-top:
        2px solid
        var(--fm-color-ink);
}


.fm-document-small {
    margin-top:
        var(--fm-space-5);

    font-size: 9px;

    letter-spacing:
        0.09em;
}


/* -------------------------
   Project copy
   ------------------------- */

.fm-project-meta {
    margin-bottom:
        var(--fm-space-5);

    color:
        var(--fm-color-muted);

    font-size:
        var(--fm-text-xs);

    text-transform:
        uppercase;

    letter-spacing:
        var(--fm-tracking-label);
}


.fm-project-copy h3 {
    margin: 0;

    font-size:
        clamp(
            2rem,
            3vw,
            3rem
        );

    line-height: 1.06;

    letter-spacing:
        var(--fm-tracking-heading);

    font-weight:
        var(--fm-weight-medium);
}


.fm-project-copy p {
    margin:
        var(--fm-space-5)
        0;

    color:
        var(--fm-color-muted);

    line-height:
        var(--fm-leading-body);

    font-size:
        var(--fm-text-base);
}


/* -------------------------
   Browser artwork
   ------------------------- */

.fm-browser-mockup {
    width: 78%;

    background:
        var(--fm-color-surface);

    box-shadow:
        30px
        35px
        0
        rgba(0, 0, 0, 0.12);
}


.fm-browser-bar {
    display: flex;
    align-items: center;

    gap: 7px;

    height: 36px;

    padding:
        0
        14px;

    border-bottom:
        1px solid
        #ddd;
}


.fm-browser-bar span {
    width: 7px;
    height: 7px;

    background:
        #777;

    border-radius:
        var(--fm-radius-full);
}


.fm-browser-body {
    min-height: 390px;

    padding: 50px;
}


.fm-browser-body small {
    display: block;

    margin-bottom: 70px;

    font-size: 9px;

    letter-spacing:
        var(--fm-tracking-label);
}


.fm-browser-body strong {
    display: block;

    font-size:
        clamp(
            2.5rem,
            5vw,
            4.375rem
        );

    line-height:
        var(--fm-leading-tight);

    letter-spacing:
        var(--fm-tracking-display);
}


.fm-browser-button {
    display: inline-block;

    margin-top:
        var(--fm-space-7);

    padding:
        12px
        20px;

    background:
        var(--fm-color-dark);

    color:
        #fff;

    font-size:
        var(--fm-text-xs);
}


/* =========================================================
   PROCESS STEP 01
   ========================================================= */

.fm-process-step {
    min-height: 340px;

    padding:
        38px
        40px
        0
        0;

    border-right:
        var(--fm-border-dark);
}


.fm-process-step + .fm-process-step {
    padding-left: 40px;
}


.fm-process-step:last-child {
    border-right: 0;
}


.fm-process-number {
    margin-bottom: 90px;

    color:
        #828682;

    font-size:
        var(--fm-text-xs);
}


.fm-process-step h3 {
    margin:
        0
        0
        var(--fm-space-4);

    font-size: 30px;

    font-weight:
        var(--fm-weight-medium);
}


.fm-process-step p {
    margin: 0;

    color:
        var(--fm-color-on-dark-muted);

    line-height:
        var(--fm-leading-body);
}


/* =========================================================
   COMPONENT RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .fm-feature-project,
    .fm-project-reverse {
        grid-template-columns:
            1fr
            1fr;

        gap:
            var(--fm-space-7);
    }


    .fm-work-visual {
        min-height: 500px;
    }

}


@media (max-width: 767px) {

    /* Service Item */

    .fm-service-card,
    .fm-service-card + .fm-service-card {
        min-height: auto;

        padding:
            var(--fm-space-6)
            0
            var(--fm-space-9);

        border-right: 0;

        border-bottom:
            var(--fm-border-default);
    }


    .fm-number {
        margin-bottom:
            var(--fm-space-6);
    }


    .fm-service-card > .fm-text-link,
    .fm-service-card + .fm-service-card > .fm-text-link {
        left: 0;
        bottom: var(--fm-space-6);
    }


    /* Project Feature */

    .fm-feature-project,
    .fm-project-reverse {
        display: flex;
        flex-direction: column;

        gap:
            var(--fm-space-6);

        margin-bottom:
            var(--fm-space-9);
    }


    .fm-project-reverse .fm-work-visual,
    .fm-project-reverse .fm-project-copy {
        order: initial;
    }


    .fm-work-visual {
        width: 100%;

        min-height: 420px;
    }


    .fm-document-mockup {
        width: 68%;

        min-height: 330px;

        padding: 25px;
    }


    .fm-document-title {
        margin-top: 75px;
    }


    .fm-browser-mockup {
        width: 88%;
    }


    .fm-browser-body {
        min-height: 300px;

        padding: 32px;
    }


    .fm-browser-body small {
        margin-bottom: 48px;
    }


    /* Process step */

    .fm-process-step,
    .fm-process-step + .fm-process-step {
        min-height: auto;

        padding:
            var(--fm-space-6)
            0
            var(--fm-space-8);

        border-right: 0;

        border-bottom:
            var(--fm-border-dark);
    }


    .fm-process-number {
        margin-bottom:
            var(--fm-space-7);
    }

}

/* =========================================================
   CAPABILITY ITEM 01
   ========================================================= */

.fm-capability-item {
    border-bottom:
        var(--fm-border-default);
}


.fm-capability-item__inner,
.fm-capability-item__link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap:
        var(--fm-space-5);

    min-height:
        64px;

    color:
        var(--fm-color-ink);

    text-decoration:
        none;

    font-size:
        var(--fm-text-base);

    font-weight:
        var(--fm-weight-medium);
}


.fm-capability-item__link {
    transition:
        padding-left 0.2s ease;
}


.fm-capability-item__link:hover {
    padding-left:
        var(--fm-space-2);
}


.fm-capability-item__index {
    color:
        var(--fm-color-subtle);

    font-size:
        var(--fm-text-xs);

    font-weight:
        var(--fm-weight-bold);

    letter-spacing:
        var(--fm-tracking-label);
}


/* =========================================================
   PROJECT FEATURE 01 — REAL IMAGE
   ========================================================= */

.fm-work-visual--image {
    position: relative;

    background:
        var(--fm-color-bg-alt);
}


.fm-project-image {
    width: 100%;
    height: 100%;

    min-height: inherit;

    margin: 0;

    overflow: hidden;
}


.fm-project-image__img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: inherit;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.6s ease;
}


.fm-project-image--contain .fm-project-image__img {
    object-fit: contain;
}


.fm-project-image--position-top .fm-project-image__img {
    object-position: center top;
}


.fm-project-image--position-bottom .fm-project-image__img {
    object-position: center bottom;
}


.fm-project-image--position-left .fm-project-image__img {
    object-position: left center;
}


.fm-project-image--position-right .fm-project-image__img {
    object-position: right center;
}


.fm-project-feature-01:hover .fm-project-image__img {
    transform:
        scale(1.015);
}