
/* =========================================================
   HEDA SHELVES
   MOROCCO WAREHOUSE SUPERMARKET RACKING CASE
========================================================= */

.heda-ma-market {
    --orange: #f47721;
    --blue: #165fa8;
    --dark: #202b36;
    --text: #424a52;
    --muted: #717981;
    --light: #f5f7f8;
    --line: #e2e5e8;
    --white: #ffffff;

    max-width: 1160px;
    margin: 0 auto;
    padding: 8px 18px 60px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.72;
    box-sizing: border-box;
}

.heda-ma-market *,
.heda-ma-market *::before,
.heda-ma-market *::after {
    box-sizing: border-box;
}

.heda-ma-market h1,
.heda-ma-market h2,
.heda-ma-market h3,
.heda-ma-market p {
    margin-top: 0;
}

.heda-ma-market img {
    max-width: 100%;
}


/* =========================================================
   INTRO
========================================================= */

.ma-intro {
    padding: 25px 30px;
    margin-bottom: 20px;
    background: var(--light);
    border-left: 4px solid var(--orange);
}

.ma-label,
.ma-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--orange) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ma-intro h1 {
    max-width: 970px;
    margin-bottom: 11px;
    color: var(--dark) !important;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.ma-intro p {
    max-width: 960px;
    margin-bottom: 0;
    color: var(--muted) !important;
    font-size: 15px;
}


/* =========================================================
   META
========================================================= */

.ma-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 32px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.ma-meta-item {
    padding: 16px 19px;
    border-right: 1px solid var(--line);
}

.ma-meta-item:last-child {
    border-right: 0;
}

.ma-meta-label {
    display: block;
    margin-bottom: 4px;
    color: var(--orange) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ma-meta-value {
    display: block;
    color: var(--dark) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}


/* =========================================================
   IMAGE
========================================================= */

.ma-image {
    margin: 28px 0 38px;
}

.ma-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.ma-caption {
    margin: 9px 0 0 !important;
    color: #899098 !important;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   GENERAL
========================================================= */

.ma-section {
    margin: 38px 0;
}

.ma-heading {
    max-width: 870px;
    margin-bottom: 20px;
}

.ma-section h2,
.ma-result h2,
.ma-planning h2 {
    margin-bottom: 13px;
    color: var(--dark) !important;
    font-size: 26px;
    line-height: 1.3;
}

.ma-section h3 {
    margin-bottom: 9px;
    color: var(--dark) !important;
    font-size: 18px;
    line-height: 1.4;
}

.ma-section p,
.ma-result > p,
.ma-planning > p {
    margin-bottom: 14px;
    color: var(--text) !important;
}


/* =========================================================
   CHALLENGE / SOLUTION
========================================================= */

.ma-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ma-card {
    height: 100%;
    padding: 25px 27px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.ma-card:first-child {
    border-top: 3px solid var(--blue);
}

.ma-card:last-child {
    border-top: 3px solid var(--orange);
}

.ma-card h3 {
    color: var(--dark) !important;
}

.ma-card p {
    margin: 0;
    color: var(--muted) !important;
    font-size: 14px;
}


/* =========================================================
   DARK PROJECT FLOW
   HIGH PRIORITY CONTRAST FIX
========================================================= */

.ma-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 38px 0;
    background: #202b36 !important;
    color: #ffffff !important;
}

.heda-ma-market .ma-flow-item {
    padding: 27px 26px;
    border-right: 1px solid rgba(255,255,255,.16);
    color: #ffffff !important;
}

.heda-ma-market .ma-flow-item:last-child {
    border-right: 0;
}

.heda-ma-market .ma-flow-step {
    display: block;
    margin-bottom: 6px;
    color: #f47721 !important;
    font-size: 12px;
    font-weight: 700;
}

.heda-ma-market .ma-flow-title {
    display: block;
    margin-bottom: 5px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
}

.heda-ma-market .ma-flow-text {
    display: block;
    color: #d4d9de !important;
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   3D PLANNING
========================================================= */

.ma-planning {
    padding: 30px 32px;
    margin: 38px 0;
    background: var(--light);
    border-left: 4px solid var(--blue);
}

.ma-planning > p {
    max-width: 930px;
}

.ma-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.ma-plan-item {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.ma-plan-num {
    display: block;
    margin-bottom: 7px;
    color: var(--orange) !important;
    font-size: 11px;
    font-weight: 700;
}

.ma-plan-item h3 {
    color: var(--dark) !important;
    font-size: 17px;
}

.ma-plan-item p {
    margin: 0;
    color: var(--muted) !important;
    font-size: 14px;
    line-height: 1.62;
}


/* =========================================================
   DARK APPLICATION
   HIGH PRIORITY CONTRAST FIX
========================================================= */

.ma-application {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    margin: 38px 0;
    background: #202b36 !important;
    color: #ffffff !important;
}

.ma-app-title {
    padding: 30px;
    background: #165fa8 !important;
    color: #ffffff !important;
}

.heda-ma-market .ma-app-title .ma-kicker {
    color: #dce8f3 !important;
}

.heda-ma-market .ma-app-title h2 {
    margin: 0;
    color: #ffffff !important;
    font-size: 24px;
    line-height: 1.35;
}

.ma-app-copy {
    padding: 30px 34px;
    color: #ffffff !important;
}

.heda-ma-market .ma-app-copy p {
    margin-bottom: 14px;
    color: #d6dce1 !important;
}

.ma-app-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 18px;
    margin-top: 17px;
}

.heda-ma-market .ma-app-point {
    position: relative;
    padding-left: 17px;
    color: #ffffff !important;
    font-size: 13px;
}

.heda-ma-market .ma-app-point::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f47721 !important;
    font-weight: 700;
}


/* =========================================================
   REAL APPLICATION DETAILS
========================================================= */

.ma-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.ma-detail {
    height: 100%;
    padding: 22px;
    background: var(--light);
}

.ma-detail strong {
    display: block;
    margin-bottom: 6px;
    color: var(--dark) !important;
    font-size: 14px;
}

.ma-detail span {
    display: block;
    color: var(--muted) !important;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   FROM RENDER TO REALITY
========================================================= */

.ma-compare {
    padding: 29px 32px;
    margin: 38px 0;
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    background: #ffffff;
}

.ma-compare h2 {
    margin-bottom: 13px;
    color: var(--dark) !important;
    font-size: 26px;
}

.ma-compare > p {
    max-width: 930px;
    color: var(--text) !important;
}

.ma-compare-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
    border: 1px solid var(--line);
    background: var(--light);
}

.ma-compare-item {
    padding: 18px;
    border-right: 1px solid var(--line);
}

.ma-compare-item:last-child {
    border-right: 0;
}

.ma-compare-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark) !important;
    font-size: 13px;
}

.ma-compare-item span {
    display: block;
    color: var(--muted) !important;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   RESULT
========================================================= */

.ma-result {
    padding: 29px 32px;
    margin: 38px 0;
    background: var(--light);
}

.ma-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.ma-highlight {
    padding: 18px;
    border-right: 1px solid var(--line);
}

.ma-highlight:last-child {
    border-right: 0;
}

.ma-check {
    display: block;
    margin-bottom: 6px;
    color: var(--orange) !important;
    font-size: 17px;
    font-weight: 700;
}

.ma-highlight strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark) !important;
    font-size: 13px;
}

.ma-highlight span {
    display: block;
    color: var(--muted) !important;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   FEEDBACK
========================================================= */

.ma-feedback {
    padding: 27px 30px;
    margin: 38px 0;
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    background: #ffffff;
}

.ma-feedback h2 {
    margin-bottom: 10px;
    color: var(--dark) !important;
    font-size: 22px;
    line-height: 1.35;
}

.ma-feedback p {
    margin-bottom: 0;
    color: var(--muted) !important;
}


/* =========================================================
   DARK CTA
   HIGH PRIORITY CONTRAST FIX
========================================================= */

.ma-cta {
    margin-top: 44px;
    padding: 34px 28px;
    text-align: center;
    background: #202b36 !important;
    color: #ffffff !important;
    border-top: 4px solid var(--orange);
}

.heda-ma-market .ma-cta h2 {
    margin-bottom: 10px;
    color: #ffffff !important;
    font-size: 25px;
    line-height: 1.35;
}

.heda-ma-market .ma-cta p {
    max-width: 760px;
    margin: 0 auto 20px;
    color: #d4d9de !important;
    font-size: 14px;
}

.heda-ma-market .ma-cta .ma-cta-btn {
    display: inline-block;
    padding: 13px 31px !important;
    background: #f47721 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    cursor: pointer;
}

.heda-ma-market .ma-cta .ma-cta-btn:hover {
    background: #dc6518 !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .ma-meta,
    .ma-compare-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ma-meta-item:nth-child(2),
    .ma-compare-item:nth-child(2) {
        border-right: 0;
    }

    .ma-meta-item:nth-child(1),
    .ma-meta-item:nth-child(2),
    .ma-compare-item:nth-child(1),
    .ma-compare-item:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .ma-plan-grid,
    .ma-details {
        grid-template-columns: 1fr;
    }

    .ma-application {
        grid-template-columns: 1fr;
    }

    .ma-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .ma-highlight:nth-child(2) {
        border-right: 0;
    }

    .ma-highlight:nth-child(1),
    .ma-highlight:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }
}


@media (max-width: 640px) {

    .heda-ma-market {
        padding: 5px 10px 42px;
    }

    .ma-intro {
        padding: 22px 20px;
    }

    .ma-intro h1 {
        font-size: 25px;
    }

    .ma-meta,
    .ma-two-col,
    .ma-flow,
    .ma-compare-grid,
    .ma-highlights {
        grid-template-columns: 1fr;
    }

    .ma-meta-item,
    .ma-flow-item,
    .ma-compare-item,
    .ma-highlight {
        border-right: 0 !important;
        border-bottom: 1px solid var(--line);
    }

    .ma-meta-item:last-child,
    .ma-flow-item:last-child,
    .ma-compare-item:last-child,
    .ma-highlight:last-child {
        border-bottom: 0;
    }

    .ma-section {
        margin: 32px 0;
    }

    .ma-section h2,
    .ma-result h2,
    .ma-planning h2,
    .ma-compare h2 {
        font-size: 23px;
    }

    .ma-planning,
    .ma-result,
    .ma-compare {
        padding: 25px 21px;
    }

    .ma-app-title,
    .ma-app-copy {
        padding: 25px 21px;
    }

    .ma-app-list {
        grid-template-columns: 1fr;
    }

    .ma-cta {
        padding: 30px 20px;
    }

    .ma-cta h2 {
        font-size: 23px;
    }
}
