/* ============================================================
   Jules Process Section – Elementor Widget Stylesheet
   jules-process.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
.jules-process {
    --jp-teal:        #2a8080;
    --jp-gold:        #c9a227;
    --jp-purple:      #4a2070;
    --jp-title:       #1e2a4a;
    --jp-step-title:  #2a3550;
    --jp-step-desc:   #5a6478;
    --jp-circle-bg:   #ffffff;
    --jp-icon:        #c9a227;
}

/* ── Section ── */
.jules-process {
    background-color: #ffffff;
    padding: 80px 80px 100px;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
    width: 100%;
}

/* ── Header ── */
.jp-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.jp-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--jp-teal);
    margin-bottom: 20px;
}

.jp-badge-line {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--jp-gold);
    opacity: 0.65;
}

.jp-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 400;
    color: var(--jp-title);
    margin: 0 0 20px;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.jp-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--jp-step-desc);
    margin: 0 auto;
    max-width: 600px;
}

/* ── Steps Row ── */
.jp-steps-row {
    display: grid;
    grid-template-columns: repeat( var(--jp-step-count, 4), 1fr );
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* ── Single Step ── */
.jp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Visual row: circle + connector ── */
.jp-visual {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 28px;
}

/* ── Circle ── */
.jp-circle {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--jp-gold);
    background: var(--jp-circle-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease;
}

.jp-circle:hover {
    box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.12);
}

/* Number badge (top-right of circle) */
.jp-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    background-color: var(--jp-purple);
    color: #ffffff;
    border-radius: 50%;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

/* Icon inside circle */
.jp-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jp-icon-wrap i,
.jp-icon-wrap svg {
    font-size: 30px;
    color: var(--jp-icon);
    line-height: 1;
}

.jp-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.jp-icon-fallback {
    font-size: 28px;
    color: var(--jp-icon);
    line-height: 1;
}

/* ── Connector line ── */
.jp-connector {
    flex: 1;
    height: 1px;
    background: var(--jp-gold);
    opacity: 0.5;
    min-width: 8px;
}

/* Last step: no connector, circle centred */
.jp-step--last .jp-visual {
    justify-content: center;
}

/* Re-centre circles when connector is present —
   make sure the line + circle fill the row correctly */
.jp-step:not(.jp-step--last) .jp-visual {
    /* circle on left half, connector fills to right */
    justify-content: flex-start;
}

.jp-step:not(.jp-step--last) .jp-circle {
    margin: 0;               /* don't auto-centre, line grows instead */
}

/* ── Step Text ── */
.jp-step-text {
    padding: 0 12px;
    width: 100%;
}

.jp-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 400;
    color: var(--jp-step-title);
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

.jp-step-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--jp-step-desc);
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .jules-process {
        padding: 60px 48px 80px;
    }
}

@media (max-width: 900px) {
    .jp-steps-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 24px;
    }

    /* Hide connector on mobile grid */
    .jp-connector {
        display: none;
    }

    .jp-step:not(.jp-step--last) .jp-circle {
        margin: 0 auto;
    }

    .jp-step:not(.jp-step--last) .jp-visual {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .jules-process {
        padding: 48px 24px 64px;
    }

    .jp-steps-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jp-section-title {
        font-size: 34px;
    }

    .jp-circle {
        width: 84px;
        height: 84px;
    }

    .jp-icon-wrap i,
    .jp-icon-wrap svg {
        font-size: 26px;
    }
}
