﻿/* Manufacturing-specific components only. Shared layout and typography: site.css. */

#mf-page img {
    max-width: 100%;
}

.mf-sidebar-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--site-primary-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.page-header p,
.mf-heading p,
.mf-card p,
.mf-offering p,
.mf-step p,
.mf-cta-band p,
.page-sidebar p {
    color: var(--site-text);
    font-size: 16px;
    line-height: 1.8;
}

.page-header p {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: 17px;
    animation: manufacturingTextIn .7s .12s var(--site-ease) both;
}

.page-header .mf-intro-lead {
    color: #43575e;
    font-size: 17px;
}

.mf-button,
.mf-sidebar-button {
    position: relative;
    display: inline-flex;
    min-height: 50px;
    overflow: hidden;
    isolation: isolate;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 13px;
    padding: 0 21px;
    border: 1px solid var(--site-primary);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
    box-shadow: 0 8px 20px rgba(21, 159, 202, .16);
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .28s var(--site-ease), box-shadow .28s ease, background .28s ease, border-color .28s ease;
}

    .mf-button::before,
    .mf-sidebar-button::before {
        position: absolute;
        top: 0;
        left: -120%;
        width: 70%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
        content: "";
        pointer-events: none;
        transform: skewX(-18deg);
        transition: left .65s var(--site-ease);
    }

    .mf-button > *,
    .mf-sidebar-button > * {
        position: relative;
        z-index: 1;
    }

    .mf-button:hover::before,
    .mf-sidebar-button:hover::before {
        left: 135%;
    }

    .mf-button span,
    .mf-sidebar-button span {
        display: inline-block;
        transition: transform .3s var(--site-ease);
    }

    .mf-button:hover,
    .mf-sidebar-button:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
        box-shadow: 0 14px 28px rgba(21, 159, 202, .22);
        color: #fff;
    }

    .mf-button:active,
    .mf-sidebar-button:active {
        transform: translateY(-1px);
    }

.mf-button-light {
    border-color: #c9eaf0;
    background: #fff;
    box-shadow: 0 8px 18px rgba(21, 159, 202, .08);
    color: var(--site-primary-dark);
}

    .mf-button-light:hover {
        transform: translateY(-3px);
        border-color: #9fd9e4;
        background: #f5fbfc;
        box-shadow: 0 12px 28px rgba(21, 159, 202, .12);
        color: var(--site-primary-dark);
    }

.mf-button:hover span,
.mf-sidebar-button:hover span {
    transform: translateX(5px);
}

.page-hero-image figcaption {
    padding: 11px 16px;
    background: #fff;
    color: var(--site-muted);
    font-size: 16px;
}

.mf-heading {
    max-width: 850px;
    margin: 0 0 25px;
}

.mf-cta-band h2 {
    margin: 0 0 12px;
    color: var(--site-heading);
    font-size: clamp(26px, 2.7vw, 36px);
    font-weight: 760;
    letter-spacing: -.03em;
    line-height: 1.22;
}

.mf-heading p {
    margin: 0;
}

.mf-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mf-card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-card,
.mf-capability {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid #d9e8eb;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f8fcfd 100%);
    box-shadow: 0 10px 28px rgba(38, 54, 58, .045);
    transition: transform .3s var(--site-ease), box-shadow .3s ease, border-color .3s ease;
}

    .mf-card::before,
    .mf-capability::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        border-radius: 0 0 4px 0;
        background: linear-gradient(180deg, var(--site-primary), var(--site-accent));
        content: "";
        transition: height .35s var(--site-ease);
    }

    .mf-card:hover,
    .mf-capability:hover {
        transform: translateY(-5px);
        border-color: #b7dfe6;
        box-shadow: 0 22px 48px rgba(38, 54, 58, .13);
    }

        .mf-card:hover::before,
        .mf-capability:hover::before {
            height: 56px;
        }

.mf-card-icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    place-items: center;
    border: 1px solid #d8f0f4;
    border-radius: 13px;
    background: linear-gradient(145deg, #eafafd, #dff5f8);
}

    .mf-card-icon img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

.mf-card h3,
.mf-offering h3,
.mf-capability h3,
.mf-step h3 {
    margin: 0 0 8px;
    color: var(--site-heading);
    font-size: 18px;
    font-weight: 740;
    line-height: 1.45;
}

.mf-card p,
.mf-offering p,
.mf-step p {
    margin: 0;
    font-size: 16px;
    line-height: 1.72;
}

.mf-card-compact {
    padding: 21px;
}

.mf-offering-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    border-top: 1px solid var(--site-border);
}

.mf-offering {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 19px 0;
    border-bottom: 1px solid var(--site-border);
    transition: padding-left .28s var(--site-ease), background .28s ease;
}

    .mf-offering:hover {
        padding-left: 7px;
        background: linear-gradient(90deg, rgba(34, 201, 223, .06), transparent 75%);
    }

.mf-offering-number,
.mf-step > span {
    display: inline-flex;
    align-items: flex-start;
    padding-top: 2px;
    color: var(--site-primary-dark);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .04em;
}

.mf-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mf-capability {
    padding: 21px;
    background: linear-gradient(135deg, #f5fbfc 0%, #eaf8fa 100%);
}

    .mf-capability h3 {
        margin-bottom: 11px;
    }

    .mf-capability ul {
        margin: 0;
        padding-left: 19px;
        color: var(--site-text);
    }

    .mf-capability li {
        margin: 0 0 7px;
        padding-left: 2px;
        line-height: 1.55;
    }

.mf-steps {
    border-top: 1px solid var(--site-border);
}

#mf-page .mf-faq {
    background: linear-gradient(135deg, #f7fbfc, #fff);
}

#mf-page .mf-faq-accordion {
    margin-top: 10px;
}

#mf-page .mf-faq-item {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--site-border) !important;
    border-radius: 12px !important;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}

    #mf-page .mf-faq-item:hover {
        border-color: #bfdde3 !important;
        box-shadow: 0 8px 24px rgba(21, 159, 202, .08);
    }

    #mf-page .mf-faq-item .accordion-header {
        margin: 0;
    }

    #mf-page .mf-faq-item .accordion-button {
        padding: 18px 20px;
        color: var(--site-heading);
        background: #fff;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.45;
        box-shadow: none;
    }

        #mf-page .mf-faq-item .accordion-button:not(.collapsed) {
            color: var(--site-primary-dark);
            background: #eefafd;
            box-shadow: none;
        }

        #mf-page .mf-faq-item .accordion-button:focus {
            border-color: transparent;
            box-shadow: none;
        }

        #mf-page .mf-faq-item .accordion-button::after {
            background-size: 1rem;
        }

    #mf-page .mf-faq-item .accordion-body {
        padding: 0 20px 20px;
        color: var(--site-text);
        font-size: 16px;
        line-height: 1.75;
    }

.mf-cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    overflow: hidden;
    margin: 30px 42px 38px;
    padding: 32px;
    border: 1px solid #cce8ed;
    border-radius: 18px;
    background: radial-gradient(circle at 92% 15%, rgba(34, 201, 223, .2), transparent 25%), linear-gradient(135deg, #eaf9fc 0%, #f8fcfd 100%);
    box-shadow: 0 12px 30px rgba(38, 54, 58, .055);
}

    .mf-cta-band::after {
        position: absolute;
        right: -95px;
        bottom: -125px;
        width: 230px;
        height: 230px;
        border: 1px solid rgba(21, 159, 202, .18);
        border-radius: 50%;
        box-shadow: 0 0 0 28px rgba(21, 159, 202, .035), 0 0 0 56px rgba(21, 159, 202, .025);
        content: "";
        pointer-events: none;
        transition: transform .55s var(--site-ease);
    }

    .mf-cta-band:hover::after {
        transform: scale(1.12);
    }

    .mf-cta-band > div,
    .mf-cta-band > a {
        position: relative;
        z-index: 1;
    }

    .mf-cta-band > .mf-button {
        flex: 0 0 auto;
        min-width: 210px;
        margin-top: 0;
        justify-content: space-between;
        white-space: nowrap;
    }

        .mf-cta-band > .mf-button span {
            flex: 0 0 auto;
        }

    .mf-cta-band > div {
        max-width: 620px;
    }

    .mf-cta-band h2 {
        margin-bottom: 10px;
        font-size: clamp(24px, 2.5vw, 32px);
    }

    .mf-cta-band p {
        margin: 0;
    }

.page-sidebar {
    position: sticky;
    top: 22px;
    z-index: 10;
    align-self: start;
    overflow: hidden;
    border: 1px solid #c9dfe4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 58px rgba(38, 54, 58, .12);
}

.mf-sidebar-card,
.mf-sidebar-note {
    padding: 22px 24px;
    border-bottom: 1px solid #e8eff1;
    background: #fff;
}

.mf-sidebar-contact {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 27px 24px 25px;
    border-bottom: 0;
    background: radial-gradient(circle at 88% 10%, rgba(255,255,255,.18), transparent 9rem), linear-gradient(135deg, #30383a 0%, #166b80 48%, #159fca 100%);
    color: #fff;
}

    .mf-sidebar-contact::before {
        position: absolute;
        top: -83px;
        right: -68px;
        width: 190px;
        height: 190px;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 50%;
        box-shadow: 0 0 0 18px rgba(255,255,255,.045), 0 0 0 38px rgba(255,255,255,.03);
        content: "";
        pointer-events: none;
    }

    .mf-sidebar-contact > * {
        position: relative;
        z-index: 1;
    }

    .mf-sidebar-contact::after {
        position: absolute;
        top: -45%;
        left: -80%;
        width: 55%;
        height: 190%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.17), transparent);
        content: "";
        pointer-events: none;
        transform: rotate(18deg);
        transition: left .8s var(--site-ease);
    }

.page-sidebar:hover .mf-sidebar-contact::after {
    left: 125%;
}

.mf-sidebar-eyebrow {
    margin-bottom: 9px;
    color: var(--site-primary-dark);
}

.mf-sidebar-contact .mf-sidebar-eyebrow {
    color: #bceef4;
}

.page-sidebar h2 {
    margin: 0 0 11px;
    color: var(--site-heading);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
}

.mf-sidebar-contact h2 {
    color: #fff;
    font-size: 22px;
}

.page-sidebar p {
    margin: 0 0 12px;
    color: var(--site-text);
    font-size: 16px;
    line-height: 1.7;
}

.mf-sidebar-contact p {
    color: rgba(255,255,255,.87);
}

.mf-sidebar-button {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    margin-top: 17px;
    padding: 0 15px;
    border-color: var(--site-primary);
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
    box-shadow: 0 8px 18px rgba(21,159,202,.14);
    color: #fff;
    font-size: 16px;
}

    .mf-sidebar-button:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
        box-shadow: 0 14px 28px rgba(21,159,202,.22);
        color: #fff;
    }

.mf-sidebar-links {
    display: grid;
    gap: 0;
}

    .mf-sidebar-links a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        overflow: hidden;
        padding: 10px 8px 10px 13px;
        border-bottom: 1px solid #edf1f2;
        color: #52646a;
        font-size: 16px;
        line-height: 1.45;
        text-decoration: none;
        transition: padding .28s var(--site-ease), color .25s ease, background .25s ease;
    }

        .mf-sidebar-links a::before {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--site-primary), var(--site-accent));
            content: "";
            transform: scaleY(0);
            transform-origin: bottom;
            transition: transform .25s ease;
        }

        .mf-sidebar-links a::after {
            flex: 0 0 auto;
            color: var(--site-primary-dark);
            content: "→";
            opacity: 0;
            transform: translateX(-6px);
            transition: opacity .25s ease, transform .25s ease;
        }

        .mf-sidebar-links a:hover {
            padding-left: 20px;
            background: #f4fbfc;
            color: var(--site-primary-dark);
        }

            .mf-sidebar-links a:hover::before {
                transform: scaleY(1);
            }

            .mf-sidebar-links a:hover::after {
                opacity: 1;
                transform: translateX(0);
            }

        .mf-sidebar-links a:last-child {
            border-bottom: 0;
        }

.mf-sidebar-note {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 0;
    background: linear-gradient(135deg, #f2fafb, #eaf8fa);
}

    .mf-sidebar-note > span {
        display: grid;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        place-items: center;
        border: 1px solid #cfeaf0;
        border-radius: 12px;
        background: linear-gradient(145deg, #e0f7fa, #cceef3);
        color: var(--site-primary-dark);
        font-weight: 850;
    }

    .mf-sidebar-note p {
        margin: 0;
    }

.mf-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s var(--site-ease);
    transition-delay: var(--animation-delay, 0ms);
}

    .mf-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes manufacturingFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes manufacturingTitleIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes manufacturingTextIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1050px) {


    .mf-card-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {

    .page-sidebar {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-sidebar-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {

    .mf-card-grid,
    .mf-card-grid-three,
    .mf-offering-list,
    .mf-capability-grid {
        grid-template-columns: 1fr;
    }

    .page-main,
    .page-sidebar,
    .mf-card,
    .mf-offering,
    .mf-capability,
    .mf-step,
    .mf-cta-band,
    #mf-page .mf-faq-item {
        min-width: 0;
        max-width: 100%;
    }

        .page-header p,
        .page-section-title,
        .mf-heading p,
        .mf-card h3,
        .mf-card p,
        .mf-offering h3,
        .mf-offering p,
        .mf-capability h3,
        .mf-capability li,
        .mf-step h3,
        .mf-step p,
        .mf-cta-band h2,
        .mf-cta-band p,
        .page-sidebar h2,
        .page-sidebar p,
        .mf-sidebar-links a,
        #mf-page .mf-faq-item .accordion-button,
        #mf-page .mf-faq-item .accordion-body {
            overflow-wrap: anywhere;
        }

    .mf-cta-band {
        align-items: flex-start;
        flex-direction: column;
        margin: 22px 18px 25px;
        padding: 24px 20px;
    }

        .mf-cta-band > .mf-button {
            align-self: stretch;
            width: 100%;
            min-width: 0;
            white-space: normal;
        }

    .page-sidebar {
        grid-template-columns: 1fr;
    }

    .mf-sidebar-contact {
        grid-column: auto;
    }

    #mf-page .mf-faq-item .accordion-button {
        padding: 16px;
        font-size: 16px;
    }

    #mf-page .mf-faq-item .accordion-body {
        padding: 0 16px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #mf-page *,
    #mf-page *::before,
    #mf-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .mf-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Page-specific sidebar shell; the main page shell comes from site.css. */
#mf-page .page-sidebar {
    min-width: 0;
}

@media (max-width:960px) {
    #mf-page .page-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width:720px) {
    #mf-page .mf-card-grid, #mf-page .mf-card-grid-three, #mf-page .mf-offering-list, #mf-page .mf-capability-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Match Web Development sidebar horizontal insets. */
#mf-page .page-sidebar {
    padding: 0;
}

#mf-page .mf-sidebar-card:not(.mf-sidebar-contact),
#mf-page .mf-sidebar-note {
    padding-left: 20px;
    padding-right: 20px;
}

#mf-page .mf-sidebar-card.mf-sidebar-contact {
    padding-left: 22px;
    padding-right: 22px;
}

#mf-page .mf-sidebar-links {
    margin-inline: 0;
    padding-inline: 0;
}

@media (max-width: 720px) {
    #mf-page .mf-sidebar-card.mf-sidebar-contact {
        padding-left: 17px;
        padding-right: 17px;
    }

    #mf-page .mf-sidebar-card:not(.mf-sidebar-contact),
    #mf-page .mf-sidebar-note {
        padding-left: 16px;
        padding-right: 16px;
    }
}
