/* MEGAFORMA — HOMEPAGE
   Split from the production stylesheet on 2026-10-16.
   Keep this file in /wp-content/uploads/megaforma/. */

/* =========================================================
   MEGAFORMA — HOMEPAGE
   Clean homepage block. Old Hero variants removed.
   ========================================================= */

body.mf-home-page .content-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mf-home-page .content-wrapper > .row,
body.mf-home-page .content-wrapper .main-row {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mf-home-page .content-wrapper main.mf-home {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mf-home,
.mf-home * {
    box-sizing: border-box;
}

.mf-home {
    width: 100%;
    margin: 0;
    background: #FFFFFF;
    color: #151515;
    font-family: "Manrope", sans-serif;
}

.mf-home img {
    display: block;
    max-width: 100%;
    height: auto;
}

.mf-home a {
    text-decoration: none;
}

.mf-home-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.mf-home-section {
    padding: 76px 0;
}


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

.mf-home-hero {
    width: 100%;
    padding: 24px 0 64px;
}

.mf-home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    width: 100%;
    min-height: 490px;
    overflow: hidden;
    border: 1px solid #ECEEEF;
    border-radius: 14px;
    background: #F7F8F8;
}

.mf-home-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 56px 56px;
    background: #F7F8F8;
}

.mf-home-eyebrow {
    display: block;
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .14em;
    color: #FF6600;
}

.mf-home-hero-title {
    max-width: 520px;
    margin: 0;
    font-size: clamp(46px, 4vw, 58px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.045em;
    color: #151515;
}

.mf-home-hero-title span {
    display: block;
}

.mf-home-hero-description {
    max-width: 500px;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    color: #64676B;
}

.mf-home-hero-actions {
    display: flex;
    align-items: center;
    margin-top: 32px;
}

.mf-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 25px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.mf-home-button:hover {
    transform: translateY(-1px);
}

.mf-home-button-primary {
    border: 1px solid #FF6600;
    background: #FF6600;
    color: #FFFFFF !important;
}

.mf-home-button-primary:hover {
    border-color: #E65C00;
    background: #E65C00;
    color: #FFFFFF !important;
}

.mf-home-hero-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    min-height: 490px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 102, 0, .14) 0, rgba(255, 102, 0, .07) 18%, transparent 42%),
        linear-gradient(135deg, #F0F1F1 0%, #F8F8F8 55%, #ECEEEE 100%);
}

.mf-home-hero-accent {
    position: absolute;
    right: -90px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 102, 0, .14);
    border-radius: 50%;
    pointer-events: none;
}

.mf-home-hero-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 88%;
    height: 92%;
    margin: 0 auto 6px;
    object-fit: contain;
    object-position: center bottom;
}


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

.mf-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.mf-home-section-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #151515;
}

.mf-home-section-heading > a {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #151515;
    transition: color .2s ease;
}

.mf-home-section-heading > a:hover {
    color: #FF6600;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.mf-home-categories-section {
    padding-top: 0;
}

.mf-home-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mf-home-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E5E7E9;
    border-radius: 12px;
    background: #FFFFFF;
    color: #151515 !important;
    transition: transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.mf-home-category-card:hover {
    border-color: #D4D6D8;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .06);
    transform: translateY(-3px);
}

.mf-home-category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 235px;
    padding: 24px;
    overflow: hidden;
    background: #F7F8F8;
}

.mf-home-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.mf-home-category-card:hover .mf-home-category-image img {
    transform: scale(1.035);
}

.mf-home-category-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
}

.mf-home-category-content > div {
    min-width: 0;
}

.mf-home-category-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 750;
    color: #151515;
}

.mf-home-category-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #767A7F;
}

.mf-home-category-arrow {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: -2px;
    border-radius: 50%;
    background: #F3F4F4;
    color: #151515;
    font-size: 17px;
    transition: background-color .2s ease,
        color .2s ease;
}

.mf-home-category-card:hover .mf-home-category-arrow {
    background: #FF6600;
    color: #FFFFFF;
}


/* =========================================================
   BENEFITS STRIP
   ========================================================= */

.mf-home-benefits-section {
    padding: 0 0 76px;
}

.mf-home-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 12px;
    background: #F7F8F8;
}

.mf-home-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 108px;
    padding: 24px;
    border-right: 1px solid #E4E5E6;
}

.mf-home-benefit:last-child {
    border-right: 0;
}

.mf-home-benefit-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #FF6600;
}

.mf-home-benefit-icon svg,
.mf-home-why-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mf-home-benefit strong,
.mf-home-benefit small {
    display: block;
}

.mf-home-benefit strong {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;
    color: #161616;
}

.mf-home-benefit small {
    font-size: 12px;
    line-height: 1.45;
    color: #777B80;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.mf-home-products-section {
    padding-top: 0;
}

.mf-home-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mf-home-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E5E7E9;
    border-radius: 12px;
    background: #FFFFFF;
    transition: border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.mf-home-product-card:hover {
    border-color: #D4D6D8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
    transform: translateY(-2px);
}

.mf-home-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 16px;
    overflow: hidden;
    border-bottom: 1px solid #EEEEEE;
    background: #FFFFFF;
}

.mf-home-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
    background: #FFFFFF;
    transition: transform .25s ease;
}

.mf-home-product-card:hover .mf-home-product-image img {
    transform: scale(1.025);
}

.mf-home-product-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.mf-home-product-title {
    display: block;
    margin: 0 0 18px;
    overflow: visible;
    color: #202020 !important;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mf-home-product-title:hover {
    color: #FF6600 !important;
}

.mf-home-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.mf-home-product-price {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    color: #111111;
}

.mf-home-product-price del {
    margin-right: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #989898;
}

.mf-home-product-price ins {
    text-decoration: none;
}

.mf-home-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 39px;
    padding: 0 15px;
    border: 1px solid #DEDEDE;
    border-radius: 7px;
    background: #FFFFFF;
    color: #181818 !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    transition: background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.mf-home-product-button:hover {
    border-color: #FF6600;
    background: #FF6600;
    color: #FFFFFF !important;
}


/* =========================================================
   B2B
   ========================================================= */

.mf-home-business-section {
    padding: 0 0 76px;
}

.mf-home-business {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 72px;
    padding: 58px 62px;
    border-radius: 14px;
    background: #1E1E1E;
    color: #FFFFFF;
}

.mf-home-business-copy {
    max-width: 570px;
}

.mf-home-business-eyebrow {
    display: block;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .13em;
    color: #FF6600;
}

body.mf-home-page .mf-home-business .mf-home-business-copy > h2 {
    display: block !important;
    max-width: 580px;
    margin: 0;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mf-home-business-copy p {
    max-width: 520px;
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .67);
}

.mf-home-business-button {
    margin-top: 30px;
    border: 1px solid #FF6600;
    background: #FF6600;
    color: #FFFFFF !important;
}

.mf-home-business-button:hover {
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: #151515 !important;
}

.mf-home-business-features {
    display: grid;
    align-content: center;
}

.mf-home-business-features > div {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 16px;
    padding: 19px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mf-home-business-features > div:first-child {
    padding-top: 0;
}

.mf-home-business-features > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mf-home-business-features span {
    display: flex;
    grid-row: 1 / 3;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1px;
    font-size: 13px;
    font-weight: 800;
    color: #FF6600;
}

.mf-home-business-features strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #FFFFFF;
}

.mf-home-business-features small {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .56);
}


/* =========================================================
   WHY MEGAFORMA
   ========================================================= */

.mf-home-why-section {
    padding-top: 0;
    padding-bottom: 90px;
}

.mf-home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mf-home-why-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 170px;
    padding: 28px;
    border: 1px solid #ECEEEF;
    border-radius: 12px;
    background: #F7F8F8;
}

.mf-home-why-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #FF6600;
}



.mf-home-why-card h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 750;
    color: #151515;
}

.mf-home-why-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #72767A;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .mf-home-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mf-home-hero {
        padding-top: 20px;
        padding-bottom: 56px;
    }

    .mf-home-hero-inner {
        grid-template-columns: 48% 52%;
        min-height: 440px;
    }

    .mf-home-hero-copy {
        padding: 44px 34px;
    }

    .mf-home-hero-title {
        font-size: 44px;
    }

    .mf-home-hero-description {
        font-size: 14px;
    }

    .mf-home-hero-visual {
        min-height: 440px;
    }

    .mf-home-categories,
    .mf-home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-home-category-image {
        height: 270px;
    }

    .mf-home-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-home-benefit {
        border-bottom: 1px solid #E4E5E6;
    }

    .mf-home-benefit:nth-child(2) {
        border-right: 0;
    }

    .mf-home-benefit:nth-child(3),
    .mf-home-benefit:nth-child(4) {
        border-bottom: 0;
    }

    .mf-home-business {
        gap: 42px;
        padding: 48px 42px;
    }

    body.mf-home-page .mf-home-business .mf-home-business-copy > h2 {
        font-size: 32px;
    }
}


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

@media (max-width: 767px) {
    .mf-home-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mf-home-section {
        padding: 56px 0;
    }

    .mf-home-hero {
        padding: 14px 0 48px;
    }

    .mf-home-hero-inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 12px;
    }

    .mf-home-hero-copy {
        order: 1;
        padding: 36px 22px 32px;
    }

    .mf-home-eyebrow {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .mf-home-hero-title {
        max-width: 100%;
        font-size: 37px;
        line-height: 1.05;
        letter-spacing: -.035em;
    }

    .mf-home-hero-description {
        max-width: 100%;
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.55;
    }

    .mf-home-hero-actions {
        width: 100%;
        margin-top: 25px;
    }

    .mf-home-button-primary {
        width: 100%;
    }

    .mf-home-hero-visual {
        order: 2;
        min-height: 315px;
    }

    .mf-home-hero-image {
        width: 82%;
        height: 92%;
        margin-bottom: 0;
    }

    .mf-home-section-heading {
        align-items: center;
        gap: 15px;
        margin-bottom: 22px;
    }

    .mf-home-section-heading h2 {
        font-size: 24px;
    }

    .mf-home-section-heading > a {
        font-size: 12px;
    }

    .mf-home-categories-section,
    .mf-home-products-section {
        padding-top: 0;
    }

    .mf-home-categories {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mf-home-category-card {
        display: grid;
        grid-template-columns: 118px 1fr;
        min-height: 125px;
    }

    .mf-home-category-image {
        height: 100%;
        min-height: 125px;
        padding: 12px;
    }

    .mf-home-category-content {
        align-items: center;
        padding: 16px;
    }

    .mf-home-category-content h3 {
        margin-bottom: 5px;
        font-size: 15px;
    }

    .mf-home-category-content p {
        font-size: 11px;
    }

    .mf-home-category-arrow {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .mf-home-benefits-section {
        padding-bottom: 56px;
    }

    .mf-home-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .mf-home-benefit {
        display: block;
        min-height: 145px;
        padding: 20px 16px;
    }

    .mf-home-benefit:nth-child(2) {
        border-right: 0;
    }

    .mf-home-benefit:nth-child(3) {
        border-right: 1px solid #E4E5E6;
    }

    .mf-home-benefit:nth-child(3),
    .mf-home-benefit:nth-child(4) {
        border-bottom: 0;
    }

    .mf-home-benefit-icon {
        display: block;
        width: 30px;
        height: 30px;
        margin-bottom: 13px;
    }

    .mf-home-benefit strong {
        font-size: 12px;
    }

    .mf-home-benefit small {
        font-size: 10px;
    }

    .mf-home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mf-home-product-card {
        border-radius: 10px;
    }

    .mf-home-product-image {
        aspect-ratio: 1 / 1;
        padding: 12px;
        background: #FFFFFF;
    }

    .mf-home-product-content {
        padding: 13px;
    }

    .mf-home-product-title {
        margin-bottom: 14px;
        font-size: 12px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .mf-home-product-footer {
        display: block;
        margin-top: auto;
    }

    .mf-home-product-price {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .mf-home-product-button {
        width: 100%;
        min-height: 38px;
        padding: 0 8px;
        font-size: 11px;
    }

    .mf-home-business-section {
        padding-bottom: 56px;
    }

    .mf-home-business {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 36px 22px;
        border-radius: 12px;
    }

    body.mf-home-page .mf-home-business .mf-home-business-copy > h2 {
        font-size: 29px;
    }

    .mf-home-business-copy p {
        margin-top: 16px;
        font-size: 13px;
    }

    .mf-home-business-features > div {
        padding: 16px 0;
    }

    .mf-home-why-section {
        padding-bottom: 64px;
    }

    .mf-home-why-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mf-home-why-card {
        min-height: 0;
        padding: 20px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {
    .mf-home-hero-title {
        font-size: 33px;
    }

    .mf-home-hero-visual {
        min-height: 285px;
    }

    .mf-home-section-heading h2 {
        font-size: 22px;
    }

    .mf-home-category-card {
        grid-template-columns: 104px 1fr;
    }

    .mf-home-category-content p {
        display: none;
    }

    .mf-home-products {
        gap: 8px;
    }

    .mf-home-product-content {
        padding: 11px;
    }
}

