/**
 * SAF Work Connections - Stylesheet
 * Scoped strictly to #how-change-happens.saf-connections-section
 */

#how-change-happens.saf-connections-section {
    background-color: #FAFAF7;
    width: 100%;
    padding: 88px 0 104px 0;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

#how-change-happens * {
    box-sizing: border-box;
}

#how-change-happens .saf-connections-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* Header */
#how-change-happens .saf-connections-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E3E7E9;
}

#how-change-happens .saf-connections-eyebrow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

#how-change-happens .saf-connections-marker {
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: #F4B400; /* Warm Gold */
    border-radius: 1px;
    flex-shrink: 0;
}

#how-change-happens .saf-connections-eyebrow {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #00695C; /* Deep Teal */
}

#how-change-happens .saf-connections-heading {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #263238; /* Charcoal */
    margin: 0 0 18px 0;
    letter-spacing: -0.02em;
}

#how-change-happens .saf-connections-intro {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #455A64; /* Slate/Charcoal Soft */
    max-width: 800px;
    margin: 0;
}

/* Relationships List */
#how-change-happens .saf-connections-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Each Relationship Row */
#how-change-happens .saf-connections-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 0;
    border-bottom: 1px solid #E3E7E9;
    position: relative;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    /* Scroll Reveal Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

#how-change-happens .saf-connections-row.saf-row-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Number */
#how-change-happens .saf-connections-number {
    flex: 0 0 54px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #00695C; /* Deep Teal */
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* Focus Area */
#how-change-happens .saf-connections-area {
    flex: 0 0 340px;
    max-width: 340px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #263238; /* Charcoal */
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.25;
    transition: color 0.3s ease;
}

/* Connection Center Line & Arrow */
#how-change-happens .saf-connections-line-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 60px;
    margin: 0 16px;
}

#how-change-happens .saf-connections-line {
    flex: 1 1 auto;
    height: 1px;
    background-color: #E3E7E9;
    position: relative;
    transition: background-color 0.3s ease;
}

#how-change-happens .saf-connections-arrow.desktop-arrow {
    font-size: 20px;
    color: #00695C;
    margin-left: 10px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    user-select: none;
}

#how-change-happens .saf-connections-arrow.mobile-arrow {
    display: none;
}

/* Conceptual Outcome */
#how-change-happens .saf-connections-concept {
    flex: 0 0 340px;
    max-width: 340px;
    text-align: right;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #455A64; /* Slate Soft */
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Desktop Hover Interaction */
#how-change-happens .saf-connections-row:hover .saf-connections-number {
    color: #F4B400; /* Warm Gold */
}

#how-change-happens .saf-connections-row:hover .saf-connections-area {
    color: #00695C; /* Deep Teal */
}

#how-change-happens .saf-connections-row:hover .saf-connections-line {
    background-color: #F4B400; /* Gold Line */
}

#how-change-happens .saf-connections-row:hover .saf-connections-arrow.desktop-arrow {
    color: #F4B400;
    transform: translateX(6px);
}

#how-change-happens .saf-connections-row:hover .saf-connections-concept {
    color: #00695C; /* Deep Teal */
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    #how-change-happens.saf-connections-section {
        padding: 64px 0 80px 0;
    }

    #how-change-happens .saf-connections-container {
        padding: 0 24px;
    }

    #how-change-happens .saf-connections-heading {
        font-size: 38px;
    }

    #how-change-happens .saf-connections-area {
        flex: 0 0 270px;
        max-width: 270px;
        font-size: 21px;
    }

    #how-change-happens .saf-connections-concept {
        flex: 0 0 270px;
        max-width: 270px;
        font-size: 19px;
    }

    #how-change-happens .saf-connections-number {
        font-size: 30px;
        flex: 0 0 48px;
    }

    #how-change-happens .saf-connections-row {
        gap: 18px;
        padding: 24px 0;
    }
}

/* Mobile & Tablet Portrait (<= 768px) */
@media (max-width: 768px) {
    #how-change-happens.saf-connections-section {
        padding: 48px 0 64px 0;
    }

    #how-change-happens .saf-connections-container {
        padding: 0 20px;
    }

    #how-change-happens .saf-connections-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
        text-align: center;
    }

    #how-change-happens .saf-connections-eyebrow-wrap {
        justify-content: center;
    }

    #how-change-happens .saf-connections-heading {
        font-size: 30px;
    }

    #how-change-happens .saf-connections-intro {
        font-size: 15px;
        margin: 0 auto;
    }

    /* Vertical Relationship Composition */
    #how-change-happens .saf-connections-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 32px 12px !important;
    }

    #how-change-happens .saf-connections-number {
        flex: none !important;
        font-size: 28px !important;
        margin-bottom: 2px !important;
    }

    #how-change-happens .saf-connections-area {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        font-size: 22px !important;
        text-align: center !important;
    }

    #how-change-happens .saf-connections-line-wrap {
        flex: none !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 6px 0 !important;
        width: 100% !important;
    }

    #how-change-happens .saf-connections-line {
        width: 1px !important;
        height: 18px !important;
        flex: none !important;
        margin-bottom: 4px !important;
    }

    #how-change-happens .saf-connections-arrow.desktop-arrow {
        display: none !important;
    }

    #how-change-happens .saf-connections-arrow.mobile-arrow {
        display: inline-block !important;
        font-size: 22px !important;
        color: #00695C !important;
        line-height: 1 !important;
        transition: transform 0.3s ease, color 0.3s ease !important;
    }

    #how-change-happens .saf-connections-concept {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 18px !important;
        color: #455A64 !important;
    }

    /* Mobile hover / active interaction */
    #how-change-happens .saf-connections-row:hover .saf-connections-arrow.mobile-arrow {
        transform: translateY(4px) !important;
        color: #F4B400 !important;
    }
}

/* Extra Small (430px, 375px & 320px) */
@media (max-width: 430px) {
    #how-change-happens .saf-connections-heading {
        font-size: 26px;
    }

    #how-change-happens .saf-connections-number {
        font-size: 26px;
    }

    #how-change-happens .saf-connections-area {
        font-size: 20px;
    }

    #how-change-happens .saf-connections-concept {
        font-size: 16px;
    }

    #how-change-happens .saf-connections-row {
        padding: 26px 8px !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #how-change-happens .saf-connections-row {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #how-change-happens .saf-connections-arrow.desktop-arrow,
    #how-change-happens .saf-connections-arrow.mobile-arrow,
    #how-change-happens .saf-connections-line,
    #how-change-happens .saf-connections-row:hover .saf-connections-arrow.desktop-arrow,
    #how-change-happens .saf-connections-row:hover .saf-connections-arrow.mobile-arrow {
        transform: none !important;
        transition: none !important;
    }
}
