/* =============================================================
   FEC §4 WORKING APPROACH — komor / atmospheric ink-Navy 2026-05-04
   David picked the parallax-dark reference from fec-startsite.
   Goals:
     • Different bg from §3 Cool-white so the two sections separate
       visually instead of bleeding into one block
     • "Komor" = somber atmospheric darkness (not the brand Navy
       #283582 which David flagged as "túl kék")
     • Section padding is Divi-controlled — no CSS override
     • Top border-radius gives a visual "tab" against §3's bottom curve
   Palette: #13182e ink-Navy (deep, low-chroma) · #5fb8e8 Cyan-light
   Fonts: Rubik (eyebrow) · Avenir (verb body) · Fraunces (display + italic numerals)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&display=swap');

body.page-id-333930 {
    --fec-ap-ink-navy: #13182e;
    --fec-ap-navy: #283582;  /* FEC brand Navy — blends into the bg gradient */
    --fec-ap-cyan: #3ca3dd;
    --fec-ap-cyan-light: #5fb8e8;
    --fec-ap-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
   Section root — ink-Navy with layered atmospheric depth.
       NO padding override here — Divi shortcode owns top/bottom
       padding (custom_padding="120px||120px||false|false").
       Bottom corners rounded (matches §3 pattern); top stays flat.
   ------------------------------------------------------------- */
body.page-id-333930 .fec-approach-v1.et_pb_section {
    position: relative;
    overflow: hidden;
    /* Slot up under §3's curved bottom so the corner gaps render in §4's
       dark color instead of the body bg. §3 needs higher z-index for its
       content to paint on top — set in fec-section3-scope.css. */
    z-index: 1;
    margin-top: -60px !important;
    background-color: var(--fec-ap-ink-navy) !important;
    background-image:
        /* Cyan-light wash blooming from top-right */
        radial-gradient(
            ellipse 65% 55% at 90% 8%,
            rgba(95, 184, 232, 0.20) 0%,
            rgba(95, 184, 232, 0.05) 40%,
            transparent 70%
        ),
        /* Brand-Navy bloom — pulls the FEC #283582 into the surface so
           §4 reads as "a darker version of the brand", not a separate ink */
        radial-gradient(
            ellipse 70% 65% at 50% 30%,
            rgba(40, 53, 130, 0.70) 0%,
            rgba(40, 53, 130, 0.40) 30%,
            rgba(40, 53, 130, 0.15) 55%,
            transparent 80%
        ),
        /* Cooler glow bottom-left */
        radial-gradient(
            ellipse 60% 50% at 8% 95%,
            rgba(60, 163, 221, 0.16) 0%,
            rgba(60, 163, 221, 0.04) 45%,
            transparent 75%
        ),
        /* Diagonal aurora sweep — subtle */
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 35%,
            rgba(95, 184, 232, 0.05) 50%,
            transparent 65%,
            transparent 100%
        ) !important;
    border-radius: 0 0 80px 80px !important;
    /* Extra top padding compensates for the -60px margin-top: 60px of the
       section is hidden behind §3's curve, so we add 20px on top of the
       Divi default 120px to keep visible breathing room ≥80px. */
    padding-top: 140px !important;
}

/* Eyebrow — Cyan-light on dark, system token */
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-eyebrow p {
    font-family: 'Rubik', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 24px;
    line-height: 1.2;
    color: var(--fec-ap-cyan-light);
}

/* H2 — Fraunces 500 white, italic Cyan-light second clause */
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-h2 h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.018em;
    margin: 0;
    color: #ffffff;
    text-wrap: balance;
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-h2 h2 em {
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    font-size: 1.04em;
    letter-spacing: -0.012em;
    color: var(--fec-ap-cyan-light);
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-eyebrow.et_pb_module {
    margin-bottom: 24px !important;
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-h2.et_pb_module {
    margin: 0 0 48px !important;
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-steps.et_pb_module {
    margin: 0 !important;
    padding: 0 !important;
}

/* -------------------------------------------------------------
   List — quiet hairline-divided rows on dark.
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   List — HORIZONTAL TIMELINE layout (5 steps side-by-side).
       Completely different arrangement from §5 (which is a vertical
       hairline-divided list). Reads as a left-to-right metro-line
       diagram: each step is a station on the cyan rail.
   ------------------------------------------------------------- */
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-list {
    list-style: none;
    margin: 0;
    padding: 56px 0 0 0;
    max-width: none;
    width: 100%;
    border-top: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
/* Connector segments — drawn per-row::after so each gap between two
   consecutive numbers can animate independently as the user scrolls. */
/* Each step is a vertical mini-cell: number on top, verb caption below.
   Numbers float over the connector segments without any background block. */
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    border: 0;
    cursor: default;
    grid-template-columns: none;
    gap: 0;
}

/* Connector segment — sits between this number and the next one.
   Vertical position centered on the number (56px / 2 = 28px from top).
   Spans the gap between rows, plus extends past each number edge so the
   segment visually connects num N's right side to num N+1's left side. */
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-row:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    /* Start past the num's right edge (~36px past row centre) */
    left: calc(50% + 36px);
    /* Extend across grid gap + into next row up to its num's left edge */
    width: calc(100% - 36px - 36px + 24px);
    height: 2px;
    background: var(--fec-ap-cyan-light);
    opacity: 0.5;
    transform-origin: left;
    transform: scaleX(1);  /* fallback: fully drawn */
    z-index: 1;
}
/* Animation removed 2026-05-04 (David spec). Segments are statically drawn. */
/* Hover — both num and verb text shift to Cyan-light. Subtle, but
   the cool-tone shift makes the row read as "active" without arrows
   or background flashes. */
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-row .fec-approach-v1-num,
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-row .fec-approach-v1-text {
    transition: color 0.4s var(--fec-ap-ease);
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-row:hover .fec-approach-v1-num,
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-row:hover .fec-approach-v1-text {
    color: var(--fec-ap-cyan-light);
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-num {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    font-feature-settings: "tnum" 1;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--fec-ap-cyan-light);
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-text {
    font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    max-width: 22ch;
    text-align: center;
}
body.page-id-333930 .fec-approach-v1 .fec-approach-v1-arrow {
    display: none;
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 980px) {
    /* 5-col → 2-col + 3-col stagger (no line, list metaphor breaks) */
    body.page-id-333930 .fec-approach-v1 .fec-approach-v1-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
        padding-top: 32px;
    }
    body.page-id-333930 .fec-approach-v1 .fec-approach-v1-list::before {
        display: none;
    }
    body.page-id-333930 .fec-approach-v1 .fec-approach-v1-num {
        font-size: 48px;
        background: transparent;
        padding: 0;
        margin-bottom: 16px;
    }
}
@media (max-width: 600px) {
    body.page-id-333930 .fec-approach-v1.et_pb_section {
        border-radius: 0 0 48px 48px !important;
    }
    body.page-id-333930 .fec-approach-v1 .fec-approach-v1-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    body.page-id-333930 .fec-approach-v1 .fec-approach-v1-num {
        font-size: 40px;
    }
    body.page-id-333930 .fec-approach-v1 .fec-approach-v1-text {
        font-size: 17px;
        max-width: none;
    }
}
