﻿
:root {
    --dark: #0f1316;
    --gold: #e1b746;
    --gold-soft: rgba(194,147,99,.14);
    --line: rgba(194,147,99,.35);
    --text: rgba(255,255,255,.72);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

.process {
    background: var(--dark)
}

/* ===== SECTION ===== */
.process {
    position: relative;
    overflow: hidden;
    background: radial-gradient(700px 380px at 12% 0%, rgba(194,147,99,.10), transparent 70%), radial-gradient(600px 360px at 92% 100%, rgba(194,147,99,.08), transparent 70%), var(--dark);
    padding: 40px 24px 40px;
    font-family: "DM Sans",sans-serif;
    color: var(--text);
}

.process__wrap {
    max-width: 1240px;
    margin: 0 auto
}

.process__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 78px
}
.process__title {
    font-weight: 600;
    color: #fff;
    font-size: 41px;
    line-height: 45px;
    letter-spacing: -.01em;
    font-family: "Valley Sans", sans-serif;
}

    .process__title em {
        font-style: italic;
        color: var(--gold);
        font-weight: 500
    }

.process__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 26px 0 22px
}

.process__rule i {
    display: block;
    height: 1px;
    width: 70px;
    background: linear-gradient(90deg,transparent,var(--gold))
}
.process__rule i:last-child {
    transform: scaleX(-1)
}
.process__rule span {
    width: 9px;
    height: 9px;
    border: 1px solid var(--gold);
    transform: rotate(45deg)
}
.process__sub {
    font-size: 15px;
    line-height: 22px;
}

/* ===== STEPS GRID (4 + 3, horizontal) ===== */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 56px 28px;
    list-style: none
}

.step {
    position: relative;
    flex: 0 0 calc(25% - 21px);
    padding: 0 6px;
    text-align: center;
}

/* icon medallion */
.step__icon {
    position: relative;
    z-index: 2;
    width: 104px;
    height: 104px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--dark);
    border: 1px solid var(--line);
    box-shadow: 0 0 0 9px var(--gold-soft);
    color: var(--gold);
    transition: background .35s, color .35s, box-shadow .35s, transform .35s;
}

    .step__icon::after { /* dashed orbit ring */
        content: "";
        position: absolute;
        inset: -9px;
        border-radius: 50%;
        border: 1px dashed rgba(194,147,99,.45);
        transition: transform 1.2s ease;
    }

    .step__icon svg {
        width: 40px;
        height: 40px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round
    }

/* connector to next step */
.step::before {
    content: "";
    background-image: url('../img/arrowpng.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: absolute;
    height: 80px;
    width: 160px;
    top: 0;
    bottom: 0;
    right: -90px;
    margin: auto;
    filter: brightness(0) saturate(100%) invert(60%) sepia(54%) saturate(349%) hue-rotate(349deg) brightness(93%) contrast(81%);
    transform: rotate(-15deg);
}
.step.lastrow::before {
    transform: rotate(170deg);
}
.step.lastrow.lastli::before {
    display:block;
}
.step.lastrow.lastli::before {
    display: block;
    transform: rotate(-232deg);
    height: 130px;
    width: 260px;
    top: 0px;
    bottom: auto;
    left: 180px;
}
.step:nth-child(4)::before,
.step:last-child::before {
    display: none
}

/* big ghost numeral */
.step__num {
    font-family: 'Cormorant',sans-serif;
    font-weight: 600;
    font-size: 70px;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(194,147,99,.55);
    margin-bottom: 6px;
    transition: color .35s;
}

.step h3 {
    font-weight: 600;
    color: #fff;
    font-size: 29px;
    line-height: 1.1;
    margin-bottom: 12px;
    font-family: "Valley Sans", sans-serif;
}
.step p {
    font-size: 15px;
    line-height: 22px;
    max-width: 270px;
    margin: 0 auto;
    font-weight: 300;
}

.step:hover .step__icon, .step:focus-within .step__icon {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-6px);
    box-shadow: 0 0 0 9px rgba(194,147,99,.22),0 18px 40px -10px rgba(194,147,99,.55);
}

    .step:hover .step__icon::after {
        transform: rotate(90deg)
    }

.step:hover .step__num {
    color: var(--gold)
}

/* single entrance: steps appear left to right once */
.js .step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease,transform .7s ease
}

.js .steps.is-in .step {
    opacity: 1;
    transform: none
}

    .js .steps.is-in .step:nth-child(1) {
        transition-delay: .0s
    }

    .js .steps.is-in .step:nth-child(2) {
        transition-delay: .12s
    }

    .js .steps.is-in .step:nth-child(3) {
        transition-delay: .24s
    }

    .js .steps.is-in .step:nth-child(4) {
        transition-delay: .36s
    }

    .js .steps.is-in .step:nth-child(5) {
        transition-delay: .48s
    }

    .js .steps.is-in .step:nth-child(6) {
        transition-delay: .6s
    }

    .js .steps.is-in .step:nth-child(7) {
        transition-delay: .72s
    }

@media (prefers-reduced-motion:reduce) {
    .js .step {
        opacity: 1;
        transform: none;
        transition: none
    }

    .step__icon, .step__icon::after {
        transition: none
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
    .step {
        flex: unset;
    }
    .steps li.step:nth-child(4) {
        order: 6;
    }
    .steps li.step:last-child {
        order: 5;
    }
    .steps li.step:nth-child(6) {
        order: 4;
    }
    .steps li.step:first-child {
        order: 1;
    }
    .steps li.step:nth-child(2) {
        order: 2;
    }
    .steps li.step:nth-child(3) {
        order: 3;
    }
    .steps li.step:nth-child(5) {
        order: 7;
    }
    .step.lastrow.lastli::before {
        transform: rotate(-202deg);
        height: 80px;
        width: 170px;
        top: 110px;
    }
    .step:nth-child(3)::before {
        height: 80px;
        width: 160px;
        top: auto;
        bottom: -70px;
        transform: rotate(95deg);
    }
    .step.lastrow:nth-child(5)::before {
        right: auto;
        left: -140px;
        background-image: url('../img/leftarrow.png');
        transform: rotate(60deg);
        height: 120px;
        width: 240px;
        top: 0;
        bottom: auto;
    }
}

@media (max-width:767px) {
    .process {
        padding: 30px 15px 30px;
    }

    .step {
        flex: 0 0 100%
    }

        .step::before {
            display: none !important
        }

    .process__head {
        margin-bottom: 56px
    }
  
    .step__icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 10px;
        border: 1px solid var(--line);
        box-shadow: 0 0 0 4px var(--gold-soft);
    }
    .step__icon img {
        height: 30px;
    }
    .step p {
        font-size: 14px;
        line-height: 20px;
    }
    .step h3 {
        font-size: 20px;
        line-height: 25px;
        margin: 0;
    }
    .step__num {
        font-size: 50px;
        line-height: 50px;
    }
    .steps {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-gap: 35px 20px;
        padding: 0;
    }
    

}

