/* =========================================================
   JACRA — PREMIUM COFFEE CERTIFICATION JOURNEY
   Elementor HTML Widget
   Visual language matched to existing JACRA Cocoa Cycle
========================================================= */

.jacra-coffee-journey {

    --navy:#1B2152;
    --green:#075C43;
    --green-light:#0B7557;
    --gold:#E99B0C;
    --gold-soft:#F8E7BD;
    --brown:#9A491D;
    --cream:#FBF9F3;
    --text:#636B78;
    --line:#E7E6E0;

    width:100%;
    position:relative;
    overflow:hidden;

    padding:86px 24px 82px;

    font-family:"Plus Jakarta Sans", Arial, sans-serif;

    background:
        radial-gradient(
            circle at 8% 16%,
            rgba(233,155,12,.055),
            transparent 21%
        ),
        radial-gradient(
            circle at 94% 82%,
            rgba(7,92,67,.055),
            transparent 22%
        ),
        linear-gradient(
            180deg,
            #fffdf9 0%,
            #faf8f2 100%
        );
}

.jacra-coffee-journey *,
.jacra-coffee-journey *::before,
.jacra-coffee-journey *::after {
    box-sizing:border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.jacra-coffee-inner {
    width:min(1380px,100%);
    margin:0 auto;
    position:relative;
    z-index:2;
}


/* =========================================================
   INTRO
========================================================= */

.jacra-coffee-intro {
    max-width:850px;
    margin:0 auto 48px;
    text-align:center;
}

.jacra-coffee-eyebrow {

    margin-bottom:10px;

    color:var(--green);

    font-size:12px;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.jacra-coffee-intro h2 {

    margin:0;

    color:var(--navy);

    font-size:clamp(36px,4.5vw,56px);
    font-weight:800;
    line-height:1.04;
    letter-spacing:-.035em;
}

.jacra-coffee-title-rule {

    width:58px;
    height:3px;

    margin:18px auto 19px;

    border-radius:999px;

    background:var(--gold);
}

.jacra-coffee-intro p {

    max-width:710px;

    margin:0 auto;

    color:#69717d;

    font-size:16px;
    font-weight:500;
    line-height:1.75;
}


/* =========================================================
   PROCESS SELECTOR
========================================================= */

.jacra-coffee-selector {

    width:100%;

    display:flex;
    justify-content:center;
    align-items:center;

    margin-bottom:34px;
}

.jacra-coffee-selector-inner {

    display:flex;
    align-items:center;
    gap:5px;

    padding:5px;

    border:1px solid #deded8;
    border-radius:999px;

    background:#fff;

    box-shadow:
        0 12px 35px rgba(27,33,82,.055);
}

.jacra-coffee-selector button {

    position:relative;

    border:0;
    outline:0;

    padding:12px 24px;

    border-radius:999px;

    color:#626976;
    background:transparent;

    font-family:"Plus Jakarta Sans", Arial, sans-serif;

    font-size:13px;
    font-weight:600;

    cursor:pointer;

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

.jacra-coffee-selector button:hover {
    color:var(--navy);
}

.jacra-coffee-selector button.active {

    color:#fff;

    background:var(--navy);

    box-shadow:
        0 6px 18px rgba(27,33,82,.18);
}


/* =========================================================
   MAIN EXPERIENCE
========================================================= */

.jacra-coffee-experience {

    position:relative;

    border:1px solid #e1e1db;
    border-radius:30px;

    overflow:hidden;

    background:#fff;

    box-shadow:
        0 28px 80px rgba(27,33,82,.085);
}


/* =========================================================
   TOP STAGE
========================================================= */

.jacra-coffee-stage {

    display:grid;

    grid-template-columns:
        minmax(0,1.25fr)
        minmax(390px,.75fr);

    min-height:590px;
}


/* =========================================================
   IMAGE
========================================================= */

.jacra-coffee-visual {

    position:relative;

    min-height:590px;

    overflow:hidden;

    background:#15261f;
}

.jacra-coffee-visual-image {

    position:absolute;

    inset:-2%;

    width:104%;
    height:104%;

    object-fit:cover;

    opacity:1;

    transform:scale(1.035);

    transition:
        opacity .55s ease,
        transform 5s cubic-bezier(.2,.8,.2,1),
        object-position .8s cubic-bezier(.2,.8,.2,1);
}

.jacra-coffee-visual:hover
.jacra-coffee-visual-image {

    transform:scale(1.075);
}


/* premium editorial image treatment */

.jacra-coffee-visual::before {

    content:"";

    position:absolute;

    inset:0;

    z-index:2;

    pointer-events:none;

    background:
        linear-gradient(
            90deg,
            rgba(5,18,13,.18) 0%,
            rgba(5,18,13,0) 45%,
            rgba(5,18,13,.05) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4,20,14,.44) 0%,
            rgba(4,20,14,0) 42%
        );
}


/* subtle cinematic grain */

.jacra-coffee-visual::after {

    content:"";

    position:absolute;

    inset:0;

    z-index:3;

    pointer-events:none;

    opacity:.13;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255,255,255,.35) 0 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 70% 65%,
            rgba(255,255,255,.25) 0 1px,
            transparent 1px
        );

    background-size:
        17px 17px,
        23px 23px;

    mix-blend-mode:soft-light;
}


/* =========================================================
   IMAGE META
========================================================= */

.jacra-coffee-image-meta {

    position:absolute;

    z-index:5;

    left:30px;
    top:28px;

    display:flex;
    align-items:center;
    gap:10px;

    color:#fff;

    font-size:10px;
    font-weight:800;
    letter-spacing:.13em;
    text-transform:uppercase;
}

.jacra-coffee-image-meta::before {

    content:"";

    width:30px;
    height:2px;

    background:var(--gold);
}


/* =========================================================
   IMAGE BOTTOM CAPTION
========================================================= */

.jacra-coffee-image-caption {

    position:absolute;

    z-index:5;

    left:34px;
    right:34px;
    bottom:32px;
}

.jacra-coffee-image-caption small {

    display:block;

    margin-bottom:7px;

    color:var(--gold);

    font-size:10px;
    font-weight:800;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.jacra-coffee-image-caption strong {

    display:block;

    max-width:580px;

    color:#fff;

    font-size:clamp(24px,3vw,39px);
    font-weight:800;
    line-height:1.05;
    letter-spacing:-.025em;

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


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

.jacra-coffee-stage-number {

    position:absolute;

    z-index:6;

    right:28px;
    top:28px;

    width:58px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:2px solid rgba(255,255,255,.9);
    border-radius:50%;

    color:#fff;

    background:
        rgba(27,33,82,.74);

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);

    font-size:13px;
    font-weight:800;

    box-shadow:
        0 12px 30px rgba(0,0,0,.15);
}


/* =========================================================
   CONTENT SIDE
========================================================= */

.jacra-coffee-content {

    position:relative;

    display:flex;
    flex-direction:column;

    padding:55px 52px 48px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(233,155,12,.07),
            transparent 35%
        ),
        #fff;
}


/* small section label */

.jacra-coffee-stage-label {

    display:flex;
    align-items:center;
    gap:10px;

    margin-bottom:18px;

    color:var(--green);

    font-size:10px;
    font-weight:800;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.jacra-coffee-stage-label::after {

    content:"";

    width:34px;
    height:2px;

    background:var(--gold);
}


/* title */

.jacra-coffee-content h3 {

    margin:0;

    color:var(--navy);

    font-size:clamp(30px,3.4vw,45px);
    font-weight:800;
    line-height:1.06;
    letter-spacing:-.035em;
}


/* description */

.jacra-coffee-description {

    margin:18px 0 0;

    color:#69717d;

    font-size:15px;
    font-weight:500;
    line-height:1.75;
}


/* =========================================================
   STAGE PROGRESS
========================================================= */

.jacra-coffee-progress-wrap {

    margin-top:35px;
}

.jacra-coffee-progress-top {

    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:9px;
}

.jacra-coffee-progress-top span:first-child {

    color:#747b86;

    font-size:10px;
    font-weight:600;
}

.jacra-coffee-progress-count {

    color:var(--navy);

    font-size:11px;
    font-weight:800;
}

.jacra-coffee-progress {

    width:100%;
    height:4px;

    overflow:hidden;

    border-radius:999px;

    background:#e9e8e2;
}

.jacra-coffee-progress-fill {

    width:0;
    height:100%;

    border-radius:inherit;

    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--gold)
        );

    transition:width .6s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   CONTROLS
========================================================= */

.jacra-coffee-controls {

    display:flex;
    align-items:center;

    margin-top:auto;
    padding-top:35px;
}

.jacra-coffee-control {

    width:62px;
    height:62px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex:0 0 62px;

    padding:0;

    border:1px solid #d7dad4;
    border-radius:50%;

    color:var(--navy);

    background:#fff;

    font-family:"Plus Jakarta Sans", Arial, sans-serif;

    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;

    box-shadow:
        0 7px 22px rgba(27,33,82,.055);

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

.jacra-coffee-control + .jacra-coffee-control {
    margin-left:8px;
}

.jacra-coffee-control .jacra-coffee-arrow-svg {
    display:block;
    width:30px;
    height:30px;
    flex:0 0 30px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.35;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .25s ease;
}

.jacra-coffee-control:first-child:hover .jacra-coffee-arrow-svg {
    transform:translateX(-3px);
}

.jacra-coffee-control:last-child:hover .jacra-coffee-arrow-svg {
    transform:translateX(3px);
}

.jacra-coffee-control:hover {

    transform:translateY(-2px);

    border-color:var(--navy);

    color:#fff;

    background:var(--navy);

    box-shadow:
        0 10px 26px rgba(27,33,82,.14);
}

.jacra-coffee-control:focus-visible {
    outline:
        2px solid
        var(--gold);

    outline-offset:4px;
}

.jacra-coffee-control:disabled {
    opacity:.4;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}


/* =========================================================
   JOURNEY RAIL
========================================================= */

.jacra-coffee-rail {

    position:relative;

    padding:36px 36px 34px;

    border-top:1px solid #e7e6e0;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fbfaf6
        );
}

.jacra-coffee-rail-title {

    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:27px;
}

.jacra-coffee-rail-title span:first-child {

    color:var(--navy);

    font-size:16px;
    font-weight:700;
}

.jacra-coffee-rail-title span:last-child {

    color:#7a8088;

    font-size:12px;
    font-weight:500;
}


/* horizontal track */

.jacra-coffee-steps {

    position:relative;

    display:grid;

    grid-template-columns:
        repeat(13,minmax(70px,1fr));

    gap:10px;
}

.jacra-coffee-step {

    position:relative;

    min-width:0;

    padding:0;

    border:0;

    background:transparent;

    font-family:"Plus Jakarta Sans", Arial, sans-serif;

    cursor:pointer;

    text-align:center;
}


/* connecting line */

.jacra-coffee-step-track {

    position:absolute;

    left:0;
    right:0;
    top:21px;

    height:1px;

    background:#dcded8;

    z-index:0;
}

.jacra-coffee-step-track-fill {

    position:absolute;

    left:0;
    top:0;

    width:0;
    height:100%;

    background:var(--gold);

    transition:width .55s ease;
}


/* numbered point */

.jacra-coffee-step-dot {

    position:relative;
    z-index:2;

    width:44px;
    height:44px;

    margin:0 auto 13px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #d8dbd5;
    border-radius:50%;

    color:#747b81;

    background:#fff;

    font-size:12px;
    font-weight:800;

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

.jacra-coffee-step:hover
.jacra-coffee-step-dot {

    transform:translateY(-2px);

    border-color:var(--green);
}

.jacra-coffee-step.active
.jacra-coffee-step-dot {

    border-color:var(--green);

    color:#fff;

    background:var(--green);

    box-shadow:
        0 0 0 5px rgba(7,92,67,.09);
}

.jacra-coffee-step.complete
.jacra-coffee-step-dot {

    border-color:var(--gold);

    color:var(--navy);

    background:var(--gold);
}

.jacra-coffee-step-name {

    display:block;

    max-width:132px;

    margin:0 auto;

    color:#68717c;

    font-size:13.5px;
    font-weight:500;
    line-height:1.38;

    letter-spacing:-.01em;

    transition:
        color .25s ease,
        font-weight .25s ease;
}

.jacra-coffee-step.active
.jacra-coffee-step-name {

    color:var(--navy);

    font-weight:700;
}


/* =========================================================
   BRANCH / DECISION
========================================================= */

.jacra-coffee-branch {

    display:none;

    margin-top:26px;

    padding:22px 24px;

    border:1px solid #e2e3dc;
    border-left:3px solid var(--gold);
    border-radius:12px;

    background:#fffdf8;

    animation:
        jacraCoffeeBranchIn
        .4s
        ease
        both;
}

.jacra-coffee-branch.visible {
    display:block;
}

@keyframes jacraCoffeeBranchIn {

    from {
        opacity:0;
        transform:translateY(8px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }
}

.jacra-coffee-branch-title {

    margin-bottom:13px;

    color:var(--navy);

    font-size:13px;
    font-weight:700;
}

.jacra-coffee-branch-actions {

    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.jacra-coffee-branch button {

    padding:9px 14px;

    border:1px solid #dcded8;
    border-radius:7px;

    color:var(--navy);
    background:#fff;

    font-family:"Plus Jakarta Sans", Arial, sans-serif;

    font-size:10px;
    font-weight:600;

    cursor:pointer;

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

.jacra-coffee-branch button:hover {

    border-color:var(--green);

    color:#fff;

    background:var(--green);
}

.jacra-coffee-branch-result {

    margin-top:14px;

    color:#69717d;

    font-size:12px;
    font-weight:500;
    line-height:1.65;
}


/* =========================================================
   SECOND PROCESS
========================================================= */

.jacra-coffee-shipment
.jacra-coffee-steps {

    grid-template-columns:
        repeat(16,minmax(65px,1fr));
}


/* =========================================================
   COMPLETION
========================================================= */

.jacra-coffee-complete {

    display:none;

    margin-top:28px;

    padding:19px 21px;

    border:1px solid #dfe9e2;
    border-radius:12px;

    background:#f5faf6;
}

.jacra-coffee-complete.visible {
    display:flex;
    align-items:center;
    gap:14px;
}

.jacra-coffee-complete-icon {

    width:38px;
    height:38px;

    flex:0 0 38px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    color:#fff;

    background:var(--green);

    font-size:15px;
    font-weight:800;
}

.jacra-coffee-complete strong {

    display:block;

    margin-bottom:3px;

    color:var(--navy);

    font-size:13px;
    font-weight:700;
}

.jacra-coffee-complete span {

    color:#69717d;

    font-size:11px;
    font-weight:500;
    line-height:1.5;
}


/* =========================================================
   PROCESS FADE
========================================================= */

.jacra-coffee-stage.is-changing
.jacra-coffee-content > * {

    animation:
        jacraCoffeeTextIn
        .4s
        ease
        both;
}

@keyframes jacraCoffeeTextIn {

    from {
        opacity:0;
        transform:translateY(8px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }
}


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

@media(max-width:1050px) {

    .jacra-coffee-stage {

        grid-template-columns:
            1fr
            1fr;

        min-height:520px;
    }

    .jacra-coffee-visual {

        min-height:520px;
    }

    .jacra-coffee-content {

        padding:45px 38px;
    }

}


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

@media(max-width:760px) {

    .jacra-coffee-journey {

        padding:
            52px
            14px
            60px;
    }

    .jacra-coffee-intro {

        margin-bottom:32px;
        padding:0 8px;
    }

    .jacra-coffee-eyebrow {
        font-size:10px;
    }

    .jacra-coffee-intro h2 {

        font-size:32px;

        line-height:1.08;
    }

    .jacra-coffee-intro p {

        font-size:14px;

        line-height:1.65;
    }


    /* selector */

    .jacra-coffee-selector {

        margin-bottom:22px;
    }

    .jacra-coffee-selector-inner {

        width:100%;

        display:grid;
        grid-template-columns:1fr 1fr;

        border-radius:13px;
    }

    .jacra-coffee-selector button {

        width:100%;

        padding:
            11px
            9px;

        border-radius:9px;

        font-size:11px;
    }


    /* experience */

    .jacra-coffee-experience {

        border-radius:22px;
    }

    .jacra-coffee-stage {

        display:flex;
        flex-direction:column;

        min-height:auto;
    }

    .jacra-coffee-visual {

        min-height:310px;
    }

    .jacra-coffee-image-meta {

        left:20px;
        top:20px;
    }

    .jacra-coffee-stage-number {

        right:20px;
        top:20px;

        width:50px;
        height:50px;
    }

    .jacra-coffee-image-caption {

        left:22px;
        right:22px;
        bottom:22px;
    }

    .jacra-coffee-image-caption strong {

        font-size:25px;
    }

    .jacra-coffee-content {

        padding:
            30px
            22px
            27px;
    }

    .jacra-coffee-content h3 {

        font-size:29px;
    }

    .jacra-coffee-description {

        font-size:14px;

        line-height:1.7;
    }

    .jacra-coffee-controls {

        margin-top:25px;
        padding-top:0;
    }


    /* rail */

    .jacra-coffee-step-dot {
        width:44px;
        height:44px;
        margin-bottom:13px;
        font-size:12px;
    }

    .jacra-coffee-step-name {
        max-width:92px;
        font-size:13px;
        line-height:1.35;
    }

    .jacra-coffee-control {
        width:60px;
        height:60px;
        flex-basis:60px;
    }

    .jacra-coffee-control .jacra-coffee-arrow-svg {
        width:29px;
        height:29px;
        flex-basis:29px;
    }

    .jacra-coffee-rail {

        padding:
            30px
            18px
            28px;
    }

    .jacra-coffee-steps {

        width:920px;

        grid-template-columns:
            repeat(13,78px);
    }

    .jacra-coffee-shipment
    .jacra-coffee-steps {

        grid-template-columns:
            repeat(16,78px);
    }

    .jacra-coffee-rail-scroll {

        overflow-x:auto;

        margin:
            0 -18px;

        padding:
            0 18px 8px;

        scrollbar-width:thin;
    }

    .jacra-coffee-rail-title {

        margin-bottom:19px;
    }

}


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

@media(prefers-reduced-motion:reduce) {

    .jacra-coffee-visual-image,
    .jacra-coffee-progress-fill,
    .jacra-coffee-step-dot,
    .jacra-coffee-branch,
    .jacra-coffee-stage.is-changing
    .jacra-coffee-content > * {

        transition:none !important;
        animation:none !important;
    }
}


/* 1.0.1 typography + rail scale refinement */
.jacra-coffee-journey,
.jacra-coffee-journey button,
.jacra-coffee-journey input,
.jacra-coffee-journey textarea,
.jacra-coffee-journey select {
    font-family:"Plus Jakarta Sans", Arial, sans-serif !important;
}

.jacra-coffee-rail-title span:first-child,
.jacra-coffee-rail-title span:last-child,
.jacra-coffee-step-dot,
.jacra-coffee-step-name {
    font-family:"Plus Jakarta Sans", Arial, sans-serif !important;
}


/* 1.0.2 — larger navigation controls and true SVG arrows */
.jacra-coffee-control {
    width:62px !important;
    height:62px !important;
    flex:0 0 62px !important;
}
.jacra-coffee-control .jacra-coffee-arrow-svg {
    width:30px !important;
    height:30px !important;
    stroke-width:2.35;
}
