/* ============================================================
   RAEES IMPORT & EXPORT
   PROCESS / PRODUCTION & SOURCING SECTION
   FINAL ULTRA PREMIUM VERSION
   File: /assets/css/sections/process.css
   ============================================================ */


/* ============================================================
   1. SECTION
   ============================================================ */

.process-section {
    position: relative;
    width: 100%;
    overflow: hidden;

    padding: 110px 0;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(183, 128, 42, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(183, 128, 42, 0.06),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fdfbf7 48%,
            #faf6ef 100%
        );

    isolation: isolate;
}


/* Decorative glow */

.process-section::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    left: -210px;
    top: 20%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(181, 126, 39, 0.10) 0%,
            rgba(181, 126, 39, 0.03) 45%,
            transparent 72%
        );

    pointer-events: none;
    z-index: -1;
}


.process-section::after {
    content: "";
    position: absolute;

    width: 520px;
    height: 520px;

    right: -260px;
    bottom: -200px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(24, 20, 16, 0.055) 0%,
            transparent 70%
        );

    pointer-events: none;
    z-index: -1;
}


/* ============================================================
   2. CONTAINER
   ============================================================ */

.process-section > .container {
    position: relative;
    z-index: 2;
}


/* ============================================================
   3. SECTION HEADING
   ============================================================ */

.process-section .section-heading {
    width: 100%;
    max-width: 760px;

    margin: 0 auto 64px;

    text-align: center;
}


.process-section .section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-bottom: 17px;

    color: #a66f20;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.18em;
    line-height: 1.2;

    text-transform: uppercase;
}


.process-section .section-kicker::before,
.process-section .section-kicker::after {
    content: "";

    width: 34px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(166, 111, 32, 0.65)
    );
}


.process-section .section-kicker::after {
    background: linear-gradient(
        90deg,
        rgba(166, 111, 32, 0.65),
        transparent
    );
}


.process-section .section-heading h2 {
    max-width: 720px;

    margin: 0 auto;

    color: #17130f;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(38px, 4vw, 60px);
    font-weight: 400;

    line-height: 1.08;
    letter-spacing: -0.035em;
}


.process-section .section-heading > p {
    max-width: 670px;

    margin: 22px auto 0;

    color: #6c6258;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.85;
}


/* ============================================================
   4. PROCESS GRID
   IMPORTANT:
   Removes old oversized/min-height behaviour
   ============================================================ */

.process-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    margin: 0;
    padding: 0;

    align-items: stretch;
}


/* Connecting premium line */

.process-grid::before {
    content: "";

    position: absolute;

    left: 10%;
    right: 10%;
    top: 49px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(181, 126, 39, 0.28) 12%,
            rgba(181, 126, 39, 0.28) 88%,
            transparent 100%
        );

    pointer-events: none;
}


/* ============================================================
   5. PROCESS CARD
   ============================================================ */

.process-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 280px;

    padding: 34px 28px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(252, 248, 241, 0.94)
        );

    border: 1px solid rgba(28, 22, 16, 0.09);

    border-radius: 24px;

    box-shadow:
        0 18px 50px rgba(31, 24, 17, 0.055),
        0 4px 14px rgba(31, 24, 17, 0.025);

    overflow: hidden;

    transition:
        transform 0.4s cubic-bezier(.2, .8, .2, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;

    z-index: 2;
}


/* Premium top accent */

.process-card::before {
    content: "";

    position: absolute;

    left: 26px;
    right: 26px;
    top: 0;

    height: 2px;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            #b67c29,
            transparent
        );

    transition: opacity 0.35s ease;
}


/* subtle inner glow */

.process-card::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    right: -55px;
    bottom: -60px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(183, 128, 42, 0.09),
            transparent 68%
        );

    pointer-events: none;
}


.process-card:hover {
    transform: translateY(-9px);

    border-color: rgba(181, 126, 39, 0.24);

    box-shadow:
        0 28px 65px rgba(31, 24, 17, 0.10),
        0 7px 20px rgba(31, 24, 17, 0.04);
}


.process-card:hover::before {
    opacity: 1;
}


/* ============================================================
   6. PROCESS NUMBER
   ============================================================ */

.process-number {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    margin-bottom: 27px;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #c28a37,
            #9d671e
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.05em;

    box-shadow:
        0 10px 25px rgba(168, 111, 31, 0.22);

    z-index: 2;
}


/* ============================================================
   7. PROCESS ICON
   ============================================================ */

.process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 20px;

    border-radius: 15px;

    color: #a66f20;

    background: #f7ead3;

    font-size: 18px;

    transition:
        transform 0.35s ease,
        background-color 0.35s ease;
}


.process-card:hover .process-icon {
    transform: translateY(-2px) scale(1.05);

    background: #f2dfbd;
}


/* ============================================================
   8. CARD CONTENT
   ============================================================ */

.process-card h3 {
    margin: 0 0 12px;

    color: #1b1713;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 23px;
    font-weight: 500;

    line-height: 1.25;
    letter-spacing: -0.02em;
}


.process-card p {
    margin: 0;

    color: #74695e;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.75;
}


/* ============================================================
   9. ALTERNATIVE HTML SUPPORT
   Supports process-step class if currently used
   ============================================================ */

.process-step {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 280px;

    padding: 34px 28px 30px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fcf8f1
        );

    border:
        1px solid rgba(28, 22, 16, 0.09);

    border-radius: 24px;

    box-shadow:
        0 18px 50px rgba(31, 24, 17, 0.055);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.process-step:hover {
    transform: translateY(-8px);

    box-shadow:
        0 28px 65px rgba(31, 24, 17, 0.10);
}


/* ============================================================
   10. SECTION FOOTER / CTA
   ============================================================ */

.process-section .section-footer-action {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 52px 0 0 !important;
    padding: 0 !important;

    min-height: 0 !important;
}


.process-section .section-footer-action .btn {
    min-height: 54px;

    padding: 0 27px;

    border-radius: 14px;
}


/* ============================================================
   11. CRITICAL HEIGHT RESET
   Fixes giant empty white area
   ============================================================ */

.process-section,
.process-section .container,
.process-grid,
.process-section .section-heading,
.process-section .section-footer-action {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}


.process-section .container {
    display: block !important;
}


/* Never allow accidental viewport heights */

.process-section,
.process-grid {
    block-size: auto !important;
}


/* ============================================================
   12. TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

    .process-section {
        padding: 90px 0;
    }


    .process-section .section-heading {
        margin-bottom: 50px;
    }


    .process-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .process-grid::before {
        display: none;
    }


    .process-card,
    .process-step {
        min-height: 250px;
    }

}


/* ============================================================
   13. MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .process-section {
        padding: 70px 0;
    }


    .process-section .section-heading {
        max-width: 100%;

        margin-bottom: 38px;

        padding: 0 4px;
    }


    .process-section .section-kicker {
        margin-bottom: 14px;

        font-size: 10px;

        letter-spacing: 0.15em;
    }


    .process-section .section-kicker::before,
    .process-section .section-kicker::after {
        width: 22px;
    }


    .process-section .section-heading h2 {
        font-size: clamp(34px, 9vw, 44px);

        line-height: 1.08;
    }


    .process-section .section-heading > p {
        margin-top: 17px;

        font-size: 14px;
        line-height: 1.7;
    }


    .process-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 15px;

        height: auto !important;
        min-height: 0 !important;
    }


    .process-card,
    .process-step {
        min-height: 0;

        padding: 26px 23px;

        border-radius: 20px;
    }


    .process-number {
        width: 48px;
        height: 48px;

        flex-basis: 48px;

        margin-bottom: 22px;

        border-radius: 14px;
    }


    .process-icon {
        width: 44px;
        height: 44px;

        margin-bottom: 17px;
    }


    .process-card h3 {
        font-size: 21px;
    }


    .process-card p {
        font-size: 14px;
        line-height: 1.7;
    }


    .process-section .section-footer-action {
        margin-top: 34px !important;
    }


    .process-section .section-footer-action .btn {
        width: 100%;

        min-height: 54px;

        justify-content: center;
    }

}


/* ============================================================
   14. SMALL MOBILE
   ============================================================ */

@media (max-width: 479.98px) {

    .process-section {
        padding: 58px 0;
    }


    .process-section .section-heading {
        margin-bottom: 32px;
    }


    .process-section .section-heading h2 {
        font-size: 32px;
    }


    .process-card,
    .process-step {
        padding: 23px 20px;

        border-radius: 18px;
    }


    .process-section .section-footer-action {
        margin-top: 28px !important;
    }

}


/* ============================================================
   15. HOVER ONLY ON SUPPORTED DEVICES
   ============================================================ */

@media (hover: none) {

    .process-card:hover,
    .process-step:hover {
        transform: none;
    }

}


/* ============================================================
   16. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .process-card,
    .process-step,
    .process-icon {
        transition: none !important;
    }

}