/* =========================================================
   MISR — PROCESS PAGE
   Premium / Industrial Design System
   HTML content & structure intentionally unchanged
   ========================================================= */

:root {
    --process-line: var(--line, #dfe7e2);
    --process-accent: var(--accent, #145c4a);
    --process-dark: var(--ink, #12372d);
    --process-green: #164d3c;
    --process-green-2: #1d624c;
    --process-soft: #f5f8f5;
    --process-muted: var(--muted, #66736d);
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 118px 0 92px;
    background:
        radial-gradient(circle at 88% 18%, rgba(201,169,104,.13), transparent 28%),
        radial-gradient(circle at 8% 82%, rgba(22,77,60,.08), transparent 30%),
        linear-gradient(180deg, #fbfcfb 0%, #f4f8f5 100%);
}



.page-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--process-accent);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.page-hero .eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--process-accent);
}

.page-hero h1 {
    max-width: 760px;
    margin: 15px 0 17px;
    color: var(--process-dark);
     font-size: clamp(1.65rem, 2.7vw, 2.45rem);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.015em;}

.page-hero .lead {
    max-width: 800px;
    margin: 0;
    color: var(--process-muted);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.9;
}

/* =========================================================
   PROCESS SECTION
   ========================================================= */

.section {
    padding: 104px 0;
}

.process-rail {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;

    margin-top: 12px;
    padding: 26px 0 8px;
}

/* connector */
.process-rail::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 7%;
    right: 7%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--process-line) 9%,
        var(--process-line) 91%,
        transparent
    );
    z-index: -1;
}

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

.process-step {
    position: relative;
    min-width: 0;
    padding: 0 3px;
}

/* node */
.process-step::before {
    content: "";
    position: relative;
    display: block;

    width: 17px;
    height: 17px;
    margin: 12px auto 25px;

    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--process-accent);

    box-shadow:
        0 0 0 1px rgba(201,169,104,.9),
        0 7px 20px rgba(18,55,45,.12);
    z-index: 2;
}

/* =========================================================
   PROCESS CARD
   ========================================================= */

.process-card {
    position: relative;
    min-height: 275px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 28px 23px 26px;

    border: 1px solid rgba(18,55,45,.10);
    border-radius: 24px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 10px 28px rgba(18,55,45,.045),
        0 2px 5px rgba(18,55,45,.025);

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.process-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 3px;

    border-radius: 0 0 8px 8px;
    background: linear-gradient(
        90deg,
        var(--process-accent),
        #e5ce9e
    );

    transform: scaleX(.35);
    transform-origin: center;
    opacity: .7;

    transition: transform .35s ease, opacity .35s ease;
}

.process-card:hover {
    transform: translateY(-9px);
    border-color: rgba(201,169,104,.48);

    box-shadow:
        0 24px 55px rgba(18,55,45,.11),
        0 5px 12px rgba(18,55,45,.04);
}

.process-card:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

/* =========================================================
   NUMBER
   ========================================================= */

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;
    margin-bottom: 22px;

    border: 1px solid rgba(201,169,104,.48);
    border-radius: 50%;

    color: var(--process-accent);
    background: rgba(201,169,104,.07);

    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;

    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.process-card:hover .process-number {
    color: #fff;
    background: var(--process-green);
    border-color: var(--process-green);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.process-card h3 {
    margin: 0 0 13px;
    color: var(--process-dark);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 850;
    letter-spacing: -.01em;
}

.process-card p {
    margin: 0;
    color: var(--process-muted);
    font-size: .86rem;
    line-height: 1.78;
}

/* =========================================================
   SOFT SECTIONS / SPLIT AREAS
   Gives the sections after the timeline the same visual
   language as Technology and About.
   ========================================================= */

.soft-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 25%, rgba(201,169,104,.07), transparent 25%),
        linear-gradient(180deg, #f7f9f7 0%, #f2f6f3 100%);
}

.soft-section::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: -180px;
    right: -130px;
    border: 1px solid rgba(201,169,104,.14);
    border-radius: 50%;
    pointer-events: none;
}

.soft-section .split {
    position: relative;
    z-index: 1;
}

.soft-section .split > * {
    min-width: 0;
}

/* Generic content rhythm inside these sections */
.soft-section .reveal > * + * {
    margin-top: 18px;
}

.soft-section h2 {
    color: var(--process-dark);
    line-height: 1.2;
}

.soft-section p.lead {
    color: var(--process-muted);
    line-height: 1.85;
}

.soft-section .eyebrow {
    color: var(--process-accent);
    font-weight: 900;
    letter-spacing: .12em;
}

/* =========================================================
   TRACEABILITY
   ========================================================= */

.soft-section .container:not(.split) {
    position: relative;
}

.soft-section .container:not(.split) .reveal {
    max-width: 900px;
    padding: 52px 56px;
    border: 1px solid rgba(18,55,45,.09);
    border-radius: 28px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 18px 45px rgba(18,55,45,.055);
}

/* =========================================================
   LTR / RTL
   ========================================================= */

html[dir="ltr"] .process-rail,
.ltr .process-rail {
    direction: ltr;
}

html[dir="rtl"] .process-rail,
.rtl .process-rail {
    direction: rtl;
}

html[dir="rtl"] .page-hero::before,
.rtl .page-hero::before {
    right: auto;
    left: -18px;
}

html[dir="rtl"] .page-hero .eyebrow {
    letter-spacing: 0;
}

html[dir="rtl"] .soft-section::before,
.rtl .soft-section::before {
    right: auto;
    left: -130px;
}

/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {
    .page-hero {
        padding: 132px 0 104px;
    }

    .section {
        padding: 118px 0;
    }

    .process-rail {
        gap: 20px;
        padding-top: 34px;
    }

    .process-card {
        min-height: 292px;
        padding: 30px 25px 28px;
    }

    .process-card h3 {
        font-size: 1.02rem;
    }

    .process-card p {
        font-size: .84rem;
    }
}

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

@media (max-width: 1050px) {
    .page-hero {
        padding: 100px 0 78px;
    }

    .section {
        padding: 88px 0;
    }

    .process-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 48px;
        margin-top: 4px;
    }

    .process-rail::before {
        display: none;
    }

    .process-step {
        padding: 0 6px;
    }

    .process-step::after {
        content: "";
        position: absolute;
        top: 20px;
        height: 2px;
        width: calc(50% - 20px);
        background: var(--process-line);
        z-index: -1;
    }

    .process-step:nth-child(3)::after,
    .process-step:nth-child(6)::after {
        display: none;
    }

    html[dir="ltr"] .process-step::after,
    .ltr .process-step::after {
        right: -1px;
    }

    html[dir="rtl"] .process-step::after,
    .rtl .process-step::after {
        left: -1px;
    }

    .process-step::before {
        margin-top: 5px;
        margin-bottom: 22px;
    }

    .process-card {
        min-height: 245px;
        padding: 25px 21px;
    }

    .soft-section .container:not(.split) .reveal {
        padding: 42px;
    }
}

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

@media (max-width: 760px) {
    .page-hero {
        padding: 82px 0 65px;
    }

    .page-hero::before {
        top: 20px;
        right: -42px;
        font-size: 5rem;
    }

    html[dir="rtl"] .page-hero::before,
    .rtl .page-hero::before {
        right: auto;
        left: -42px;
    }

    .page-hero .eyebrow {
        margin-bottom: 18px;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1.12;
        letter-spacing: -.025em;
    }

    .page-hero .lead {
        font-size: .96rem;
        line-height: 1.8;
    }

    .section {
        padding: 72px 0;
    }

    .process-rail {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    padding: 0 0 8px;
}

    .process-rail::before {
        display: block;
        top: 7px;
        bottom: 7px;
        left: 20px;
        right: auto;
        width: 2px;
        height: auto;

        background: linear-gradient(
            180deg,
            transparent,
            var(--process-line) 7%,
            var(--process-line) 93%,
            transparent
        );
    }

    html[dir="rtl"] .process-rail::before,
    .rtl .process-rail::before {
        left: auto;
        right: 20px;
    }

    .process-step,
    .process-step:nth-child(even),
    .process-step:nth-child(odd) {
        width: 100%;
        margin: 0;
        padding: 0 0 34px 50px;
    }

    html[dir="rtl"] .process-step,
    .rtl .process-step,
    html[dir="rtl"] .process-step:nth-child(even),
    .rtl .process-step:nth-child(even),
    html[dir="rtl"] .process-step:nth-child(odd),
    .rtl .process-step:nth-child(odd) {
        padding: 0 50px 34px 0;
    }

    .process-step::before {
        position: absolute;
        top: 7px;
        left: 13px;

        width: 17px;
        height: 17px;
        margin: 0;
    }

    html[dir="rtl"] .process-step::before,
    .rtl .process-step::before {
        left: auto;
        right: 13px;
    }

    .process-step::after {
        display: none;
    }

    .process-card {
        min-height: 0;
        padding: 25px 22px 26px;
        border-radius: 21px;
    }

    .process-number {
        width: 36px;
        height: 36px;
        margin-bottom: 18px;
    }

    .process-card h3 {
        margin-bottom: 10px;
        font-size: 1rem;
        line-height: 1.4;
    }

    .process-card p {
        font-size: .84rem;
        line-height: 1.75;
    }

    .process-card:hover {
        transform: none;
        box-shadow: 0 13px 32px rgba(18,55,45,.075);
    }

    .soft-section .container:not(.split) .reveal {
        padding: 32px 25px;
        border-radius: 22px;
    }
}

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

@media (max-width: 430px) {
    .page-hero {
        padding: 72px 0 56px;
    }

    .page-hero h1 {
        font-size: 1.95rem;
    }

    .page-hero .lead {
        font-size: .9rem;
    }

    .section {
        padding: 60px 0;
    }

    .process-rail::before {
        left: 17px;
    }

    html[dir="rtl"] .process-rail::before,
    .rtl .process-rail::before {
        left: auto;
        right: 17px;
    }

    .process-step,
    .process-step:nth-child(even),
    .process-step:nth-child(odd) {
        padding-left: 42px;
        padding-bottom: 28px;
    }

    html[dir="rtl"] .process-step,
    .rtl .process-step,
    html[dir="rtl"] .process-step:nth-child(even),
    .rtl .process-step:nth-child(even),
    html[dir="rtl"] .process-step:nth-child(odd),
    .rtl .process-step:nth-child(odd) {
        padding-right: 42px;
        padding-left: 0;
    }

    .process-step::before {
        left: 10px;
        width: 15px;
        height: 15px;
    }

    html[dir="rtl"] .process-step::before,
    .rtl .process-step::before {
        left: auto;
        right: 10px;
    }

    .process-card {
        padding: 22px 19px 23px;
        border-radius: 19px;
    }

    .process-number {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .process-card,
    .process-card::before,
    .process-number {
        transition: none;
    }

    .process-card:hover {
        transform: none;
    }
}
/* Reduce space before footer */
main > section:last-of-type {
    padding-bottom: 10px !important;
}
html[dir="rtl"] .page-hero .eyebrow,
.rtl .page-hero .eyebrow {
    font-size: 2rem !important;
}
/* =========================================================
   ARABIC — ENLARGE ALL PAGE TEXT
========================================================= */

html[dir="rtl"] .page-hero .eyebrow,
.rtl .page-hero .eyebrow {
    font-size: 1.15rem !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] .page-hero h1,
.rtl .page-hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
}

html[dir="rtl"] .page-hero .lead,
.rtl .page-hero .lead {
    font-size: 1.05rem !important;
}


/* PROCESS CARDS */

html[dir="rtl"] .process-card h3,
.rtl .process-card h3 {
    font-size: 1.15rem !important;
}

html[dir="rtl"] .process-card p,
.rtl .process-card p {
    font-size: 1rem !important;
}


/* SOFT SECTIONS */

html[dir="rtl"] .soft-section .eyebrow,
.rtl .soft-section .eyebrow {
    font-size: 1.05rem !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] .soft-section h2,
.rtl .soft-section h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.2rem) !important;
}

html[dir="rtl"] .soft-section p,
html[dir="rtl"] .soft-section p.lead,
.rtl .soft-section p,
.rtl .soft-section p.lead {
    font-size: 1rem !important;
    line-height: 1.9 !important;
}



html[dir="rtl"] .process-card,
.rtl .process-card {
    font-size: 1rem;
}