/* ==========================================================================
   IFW GLOBAL SERVICES DESIGN SYSTEM (DARK FORENSIC INTELLIGENCE THEME)
   ========================================================================== */

/* Hero Banner */
.ifw-service-hero {
    background-color: #07090e;
    background-image: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 15% 80%, rgba(2, 46, 107, 0.18) 0%, transparent 60%);
    position: relative;
    padding: 55px 0 40px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ifw-service-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ifw-gold);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.ifw-service-title {
    font-family: "Oswald", "Bebas Neue", sans-serif;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    line-height: 1.15;
}

.ifw-service-subtitle {
    color: #cbd5e1 !important;
    font-size: 16.5px;
    line-height: 1.65;
    max-width: 720px;
    margin-bottom: 20px;
}

.ifw-service-meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ifw-service-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ifw-service-meta i {
    color: var(--ifw-gold);
}

.ifw-service-hero-icon {
    font-size: 120px;
    color: rgba(37, 99, 235, 0.12);
    line-height: 1;
}

/* Main Section Layout */
.ifw-services-section {
    background-color: #07090e;
    color: #cbd5e1;
    min-height: 80vh;
    padding: 50px 0 80px 0;
}

/* Sidebar Styling */
.ifw-service-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.ifw-service-sidebar-card {
    background: #0d121c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
}

.ifw-service-sidebar-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
}

.ifw-service-nav-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.ifw-service-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.ifw-service-nav-link i {
    font-size: 16px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.ifw-service-nav-link:hover,
.ifw-service-nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: #ffffff !important;
    border-left-color: var(--ifw-gold);
    padding-left: 22px;
}

.ifw-service-nav-link.active i,
.ifw-service-nav-link:hover i {
    color: var(--ifw-gold);
    transform: translateX(3px);
}

/* Sidebar Metric HUD Box */
.ifw-hud-metric-card {
    background: linear-gradient(180deg, #0d121c 0%, #111827 100%);
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 8px;
    padding: 22px 18px;
    margin-bottom: 25px;
}

.ifw-hud-metric-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ifw-hud-metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ifw-hud-metric-item .hud-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--ifw-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ifw-hud-metric-item .hud-val {
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.ifw-hud-metric-item .hud-lbl {
    font-size: 12px;
    color: #94a3b8;
}

/* Main Content Components */
.ifw-service-card {
    background: #0d121c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ifw-service-overview-card {
    background: #0d121c;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-left: 4px solid var(--ifw-gold);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.ifw-service-card-title {
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ifw-service-card-title i {
    color: var(--ifw-gold);
}

/* Process Step Cards */
.ifw-step-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 22px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.ifw-step-box:hover {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-4px);
}

.ifw-step-num {
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ifw-gold);
    opacity: 0.85;
    margin-bottom: 8px;
    line-height: 1;
}

.ifw-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.ifw-step-desc {
    color: #94a3b8 !important;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Feature & Capability Cards */
.ifw-feature-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.ifw-feature-box:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.ifw-feature-box .f-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--ifw-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ifw-feature-box h5 {
    color: #ffffff !important;
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ifw-feature-box p {
    color: #94a3b8 !important;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Who We Help Cards */
.ifw-profile-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 24px 20px;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.ifw-profile-card:hover {
    border-color: rgba(37, 99, 235, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}

.ifw-profile-card .p-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: var(--ifw-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 14px;
}

.ifw-profile-card h5 {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ifw-profile-card p {
    color: #94a3b8 !important;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Evidentiary Checklist */
.ifw-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ifw-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
    color: #cbd5e1;
}

.ifw-checklist li:last-child {
    border-bottom: none;
}

.ifw-checklist li i {
    color: var(--ifw-gold);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Consultation & CTA Banner */
.ifw-service-cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #0d121c 100%);
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.ifw-service-cta-banner h4 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ifw-service-cta-banner p {
    color: #94a3b8 !important;
    font-size: 13.5px;
    margin-bottom: 0;
}

.ifw-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff !important;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.ifw-btn-gold:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
    color: #ffffff !important;
}

.ifw-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.ifw-btn-outline:hover {
    border-color: var(--ifw-gold);
    color: var(--ifw-gold) !important;
    background: rgba(37, 99, 235, 0.12);
}

/* Service Catalog Grid (for main /services page) */
.ifw-catalog-card {
    background: #0d121c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ifw-catalog-card:hover {
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 99, 235, 0.15);
}

.ifw-catalog-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--ifw-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.ifw-catalog-title {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.ifw-catalog-desc {
    color: #94a3b8 !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.ifw-catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ifw-gold) !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.ifw-catalog-link:hover {
    color: #ffffff !important;
    gap: 10px;
}

/* ==========================================================================
   SERVICES LIGHT THEME (WHITE MODE) OVERRIDES
   ========================================================================== */
html.theme-light .ifw-service-hero {
    background-color: #f1f5f9 !important;
    background-image: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 15% 80%, rgba(2, 46, 107, 0.08) 0%, transparent 60%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .ifw-service-title {
    color: #0f172a !important;
}

html.theme-light .ifw-service-subtitle {
    color: #334155 !important;
}

html.theme-light .ifw-service-meta {
    color: #64748b !important;
}

html.theme-light .ifw-service-hero-icon {
    color: rgba(37, 99, 235, 0.22) !important;
}

html.theme-light .ifw-services-section {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

html.theme-light .ifw-service-sidebar-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .ifw-service-sidebar-header {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

html.theme-light .ifw-service-nav-link {
    color: #475569 !important;
}

html.theme-light .ifw-service-nav-link:hover,
html.theme-light .ifw-service-nav-link.active {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #0f172a !important;
    border-left-color: var(--ifw-gold) !important;
}

html.theme-light .ifw-hud-metric-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .ifw-hud-metric-item {
    border-bottom-color: #f1f5f9 !important;
}

html.theme-light .ifw-hud-metric-item .hud-val {
    color: #0f172a !important;
}

html.theme-light .ifw-hud-metric-item .hud-lbl {
    color: #64748b !important;
}

html.theme-light .ifw-service-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .ifw-service-overview-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    border-left: 4px solid var(--ifw-gold) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .ifw-service-card-title {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

html.theme-light .ifw-step-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.theme-light .ifw-step-title {
    color: #0f172a !important;
}

html.theme-light .ifw-step-desc {
    color: #475569 !important;
}

html.theme-light .ifw-feature-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.theme-light .ifw-feature-box h5 {
    color: #0f172a !important;
}

html.theme-light .ifw-feature-box p {
    color: #475569 !important;
}

html.theme-light .ifw-profile-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
}

html.theme-light .ifw-profile-card h5 {
    color: #0f172a !important;
}

html.theme-light .ifw-profile-card p {
    color: #475569 !important;
}

html.theme-light .ifw-checklist li {
    color: #334155 !important;
    border-bottom-color: #e2e8f0 !important;
}

html.theme-light .ifw-service-cta-banner {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

html.theme-light .ifw-service-cta-banner h4 {
    color: #0f172a !important;
}

html.theme-light .ifw-service-cta-banner p {
    color: #475569 !important;
}

html.theme-light .ifw-btn-outline {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html.theme-light .ifw-btn-outline:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #0f172a !important;
}

html.theme-light .ifw-catalog-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .ifw-catalog-card:hover {
    border-color: rgba(37, 99, 235, 0.6) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 15px rgba(37, 99, 235, 0.15) !important;
}

html.theme-light .ifw-catalog-title {
    color: #0f172a !important;
}

html.theme-light .ifw-catalog-desc {
    color: #475569 !important;
}

html.theme-light .ifw-catalog-link:hover {
    color: #0f172a !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES FOR SERVICES
   ========================================================================== */
@media (max-width: 768px) {
    .ifw-service-sidebar-sticky {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .ifw-service-hero {
        padding: 35px 0 30px 0;
    }

    .ifw-services-section {
        padding: 35px 0 60px 0;
    }

    .ifw-service-card,
    .ifw-service-overview-card {
        padding: 20px 16px;
    }

    .ifw-step-box {
        padding: 16px 14px;
    }

    .ifw-feature-box {
        padding: 16px 14px;
    }

    .ifw-profile-card {
        padding: 18px 14px;
    }

    .ifw-hud-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

