/**
 * SAF Focus Areas In Depth - Stylesheet
 * Scoped strictly to #saf_our_work_focus_depth
 */

#saf_our_work_focus_depth.saf-focus-depth-section {
    background-color: #FAFAF7;
    width: 100%;
    padding: 88px 0 104px 0;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

#saf_our_work_focus_depth * {
    box-sizing: border-box;
}

#saf_our_work_focus_depth .saf-focus-depth-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* Header */
#saf_our_work_focus_depth .saf-focus-depth-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E3E7E9;
}

#saf_our_work_focus_depth .saf-focus-depth-eyebrow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

#saf_our_work_focus_depth .saf-focus-depth-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 */
}

#saf_our_work_focus_depth .saf-focus-depth-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;
}

#saf_our_work_focus_depth .saf-focus-depth-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;
}

/* Rows Container */
#saf_our_work_focus_depth .saf-focus-depth-rows {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Alternating Focus Row */
#saf_our_work_focus_depth .saf-focus-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    padding: 64px 0;
    border-bottom: 1px solid #E3E7E9;
    position: relative;
    box-sizing: border-box;
    /* Entrance animation base */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

#saf_our_work_focus_depth .saf-focus-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Alternating Direction */
#saf_our_work_focus_depth .saf-focus-row--alt {
    flex-direction: row-reverse;
}

/* Revealed row via JS or fallback */
#saf_our_work_focus_depth .saf-focus-row.saf-row-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Column - exact math accounting for 56px gap */
#saf_our_work_focus_depth .saf-focus-img-col {
    flex: 0 0 calc(50% - 28px);
    max-width: calc(50% - 28px);
    width: calc(50% - 28px);
    box-sizing: border-box;
}

#saf_our_work_focus_depth .saf-focus-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #ECEFEF;
    box-shadow: 0 4px 20px rgba(0, 47, 41, 0.04);
}

#saf_our_work_focus_depth .saf-focus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

#saf_our_work_focus_depth .saf-focus-row:hover .saf-focus-img {
    transform: scale(1.025);
}

/* Content Column - exact math accounting for 56px gap */
#saf_our_work_focus_depth .saf-focus-content-col {
    flex: 0 0 calc(50% - 28px);
    max-width: calc(50% - 28px);
    width: calc(50% - 28px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Meta: Number & Label */
#saf_our_work_focus_depth .saf-focus-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

#saf_our_work_focus_depth .saf-focus-number {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #00695C; /* Deep Teal */
    letter-spacing: -0.02em;
}

#saf_our_work_focus_depth .saf-focus-label-divider {
    color: #C0C8CB;
    font-size: 16px;
    font-weight: 300;
}

#saf_our_work_focus_depth .saf-focus-label {
    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: #6B7A82;
}

/* Title */
#saf_our_work_focus_depth .saf-focus-title {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #263238;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

#saf_our_work_focus_depth .saf-focus-row:hover .saf-focus-title {
    color: #00695C;
}

/* Description */
#saf_our_work_focus_depth .saf-focus-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #455A64;
    margin: 0 0 24px 0;
}

/* Tags */
#saf_our_work_focus_depth .saf-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

#saf_our_work_focus_depth .saf-focus-tag {
    background-color: #E6F0EE; /* Light Teal Tint */
    color: #00695C;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 7px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    transition: background-color 0.25s ease, color 0.25s ease;
}

#saf_our_work_focus_depth .saf-focus-row:hover .saf-focus-tag {
    background-color: #D9EBE7;
}

/* Action & Arrow */
#saf_our_work_focus_depth .saf-focus-action-wrap {
    display: inline-flex;
    align-items: center;
}

#saf_our_work_focus_depth .saf-focus-action-link,
#saf_our_work_focus_depth .saf-focus-action-affordance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #00695C;
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.25s ease;
}

#saf_our_work_focus_depth .saf-focus-arrow {
    display: inline-block;
    font-size: 16px;
    transition: transform 0.25s ease, color 0.25s ease;
}

#saf_our_work_focus_depth .saf-focus-row:hover .saf-focus-arrow,
#saf_our_work_focus_depth .saf-focus-action-link:hover .saf-focus-arrow {
    transform: translateX(6px);
    color: #1565C0; /* Royal Blue accent on active/hover */
}

#saf_our_work_focus_depth .saf-focus-row:hover .saf-focus-action-affordance,
#saf_our_work_focus_depth .saf-focus-action-link:hover {
    color: #1565C0;
}

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

/* Tablet (1024px) */
@media (max-width: 1024px) {
    #saf_our_work_focus_depth.saf-focus-depth-section {
        padding: 64px 0 80px 0;
    }

    #saf_our_work_focus_depth .saf-focus-depth-container {
        padding: 0 24px;
    }

    #saf_our_work_focus_depth .saf-focus-depth-heading {
        font-size: 38px;
    }

    #saf_our_work_focus_depth .saf-focus-row {
        gap: 40px;
        padding: 48px 0;
    }

    #saf_our_work_focus_depth .saf-focus-img-col {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
        width: calc(50% - 20px);
    }

    #saf_our_work_focus_depth .saf-focus-content-col {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
        width: calc(50% - 20px);
    }

    #saf_our_work_focus_depth .saf-focus-title {
        font-size: 28px;
    }
}

/* Mobile & Small Tablet (<= 768px) */
@media (max-width: 768px) {
    #saf_our_work_focus_depth.saf-focus-depth-section {
        padding: 48px 0 64px 0;
    }

    #saf_our_work_focus_depth .saf-focus-depth-container {
        padding: 0 20px;
    }

    #saf_our_work_focus_depth .saf-focus-depth-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    #saf_our_work_focus_depth .saf-focus-depth-heading {
        font-size: 30px;
    }

    #saf_our_work_focus_depth .saf-focus-depth-intro {
        font-size: 15px;
    }

    /* Single column stacking for ALL rows */
    #saf_our_work_focus_depth .saf-focus-row,
    #saf_our_work_focus_depth .saf-focus-row--alt {
        flex-direction: column !important;
        gap: 24px;
        padding: 36px 0;
    }

    #saf_our_work_focus_depth .saf-focus-img-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        order: 1;
    }

    #saf_our_work_focus_depth .saf-focus-content-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        order: 2;
    }

    #saf_our_work_focus_depth .saf-focus-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    #saf_our_work_focus_depth .saf-focus-desc {
        font-size: 15px;
        margin-bottom: 18px;
    }

    #saf_our_work_focus_depth .saf-focus-tags {
        margin-bottom: 18px;
        gap: 6px;
    }

    #saf_our_work_focus_depth .saf-focus-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Extra Small (430px, 375px & 320px) */
@media (max-width: 430px) {
    #saf_our_work_focus_depth .saf-focus-depth-heading {
        font-size: 28px;
    }

    #saf_our_work_focus_depth .saf-focus-number {
        font-size: 28px;
    }

    #saf_our_work_focus_depth .saf-focus-title {
        font-size: 24px;
    }

    #saf_our_work_focus_depth .saf-focus-tags {
        gap: 6px;
    }

    #saf_our_work_focus_depth .saf-focus-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
}

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

    #saf_our_work_focus_depth .saf-focus-img,
    #saf_our_work_focus_depth .saf-focus-row:hover .saf-focus-img,
    #saf_our_work_focus_depth .saf-focus-arrow,
    #saf_our_work_focus_depth .saf-focus-row:hover .saf-focus-arrow {
        transform: none !important;
        transition: none !important;
    }
}
