/* ============================================================
   WWD Section – Elementor Widget  v2.0
   wwd-section.css — Base styles only.
   All sizing/color overrides come from Elementor selectors.
============================================================ */

/* ── CSS custom properties (defaults) ────────────────────── */
.wwd-section {
    --wwd-dur:   0.65s;
    --wwd-dist:  20px;
    --wwd-bp:    768px;
}

/* ── Section wrapper ──────────────────────────────────────── */
.wwd-section {
    background-color: #f3f0eb;
    padding: 90px 60px 100px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* ── Two-column top grid ──────────────────────────────────── */
.wwd-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 48px;
    align-items: start;
    margin-bottom: 80px;
}

/* ── "WHAT WE DO" label ───────────────────────────────────── */
.wwd-label {
    grid-column: 1 / -1;  /* always spans full width */
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #196F7B;
    opacity: 0.7;
    margin: 0 0 -24px 0;
    line-height: 1;
}

/* ── Main headline ────────────────────────────────────────── */
.wwd-headline {
    font-size: 60px;
    line-height: 1.12;
    color: #196F7B;
    font-weight: 400;
    margin: 0;
    word-break: break-word;
}

.wwd-headline em {
    font-style: italic;
}

/* ── Right column: body text ──────────────────────────────── */
.wwd-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
    align-self: center;
}

.wwd-body p {
    font-size: 16px;
    line-height: 1.75;
    color: #196F7B;
    font-weight: 300;
    margin: 0;
}

.wwd-body p.wwd-tagline {
    opacity: 0.75;
    font-weight: 400;
}

/* ── Divider ──────────────────────────────────────────────── */
.wwd-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #c8c4bc 30%, #c8c4bc 70%, transparent);
    opacity: 0.5;
    margin-bottom: 64px;
    border: none;
}

/* ── "THE JOURNEY" label ──────────────────────────────────── */
.wwd-journey-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #196F7B;
    opacity: 0.7;
    margin: 0 0 32px;
}

/* ── Journey row ──────────────────────────────────────────── */
.wwd-journey {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    row-gap: 12px;
}

.wwd-step {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-shrink: 0;
}

.wwd-step-num {
    font-size: 10px;
    font-weight: 500;
    color: #196F7B;
    opacity: 0.6;
    letter-spacing: 0.04em;
    line-height: 1;
    align-self: flex-start;
    margin-top: 6px;
}

.wwd-step-name {
    font-size: 44px;
    color: #196F7B;
    font-weight: 400;
    line-height: 1;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.wwd-step-name:hover {
    opacity: 0.7;
}

.wwd-arrow {
    font-size: 20px;
    color: #196F7B;
    opacity: 0.45;
    padding: 0 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Fade-up entrance animation ──────────────────────────── */
@keyframes wwd-fadeUp {
    from {
        opacity: 0;
        transform: translateY(var(--wwd-dist, 20px));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wwd-anim .wwd-label {
    animation: wwd-fadeUp var(--wwd-dur, 0.65s) ease 0.05s both;
}
.wwd-anim .wwd-headline {
    animation: wwd-fadeUp var(--wwd-dur, 0.65s) ease 0.15s both;
}
.wwd-anim .wwd-body {
    animation: wwd-fadeUp var(--wwd-dur, 0.65s) ease 0.25s both;
}
.wwd-anim .wwd-journey-label {
    animation: wwd-fadeUp var(--wwd-dur, 0.65s) ease 0.35s both;
}
.wwd-anim .wwd-step:nth-child(1)  { animation: wwd-fadeUp var(--wwd-dur,0.65s) ease 0.40s both; }
.wwd-anim .wwd-step:nth-child(3)  { animation: wwd-fadeUp var(--wwd-dur,0.65s) ease 0.48s both; }
.wwd-anim .wwd-step:nth-child(5)  { animation: wwd-fadeUp var(--wwd-dur,0.65s) ease 0.56s both; }
.wwd-anim .wwd-step:nth-child(7)  { animation: wwd-fadeUp var(--wwd-dur,0.65s) ease 0.64s both; }
.wwd-anim .wwd-step:nth-child(9)  { animation: wwd-fadeUp var(--wwd-dur,0.65s) ease 0.72s both; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   NOTE: Elementor's per-device controls override these values.
   These are safe fallbacks when no Elementor override is set.
============================================================ */

/* Tablet ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wwd-section {
        padding: 70px 40px 80px;
    }
    .wwd-top {
        column-gap: 48px;
        row-gap: 32px;
        margin-bottom: 56px;
    }
    .wwd-headline  { font-size: 44px; }
    .wwd-step-name { font-size: 34px; }
}

/* Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wwd-section {
        /* ✅ FIX: tight padding left/right — no huge side gaps */
        padding: 48px 20px 60px;
    }

    /* Stack the two columns vertically */
    .wwd-top {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 24px;
        margin-bottom: 40px;
    }

    /* Label spans full single column */
    .wwd-label {
        grid-column: 1 !important;
        margin-bottom: 0 !important;
    }

    .wwd-headline {
        font-size: 35px !important;
        line-height: 1.2;
    }

    .wwd-body p {
        font-size: 16px !important;
    }

    .wwd-body {
        padding-top: 0;
    }

    /* Journey: vertical stacking by default */
    .wwd-journey {
        flex-direction: column;
        align-items: flex-start;
    }

    .wwd-arrow {
        transform: rotate(90deg);
        display: block;
        padding: 2px 0 !important;
        margin-left: 6px;
    }

    .wwd-step-name {
        font-size: 28px !important;
        white-space: normal;
    }

    .wwd-journey-label {
        margin-bottom: 20px;
    }

    .wwd-divider {
        margin-bottom: 40px;
    }
}

/* Very small phones ──────────────────────────────────────── */
@media (max-width: 400px) {
    .wwd-section   { padding: 40px 16px 52px; }
    .wwd-headline  { font-size: 30px !important; }
    .wwd-step-name { font-size: 26px !important; }
}
