/* 
AFRISURGE BREADCRUMB CONSISTENCY FIXES
====================================

This file ensures all breadcrumb sections across the site use the proper:
- Primary brand color overlay (rgba(27, 54, 93, 0.85))
- Consistent styling and typography
- Proper contrast and accessibility
- Background image positioning

Created: Session 19 - Breadcrumb & Color Fixes
Last Updated: 2024
*/

/* === BREADCRUMB AREA BASE STYLES === */

.breadcrumb-area,
.page-header,
.banner-section {
    position: relative;
    padding: 120px 0 80px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 1;
    overflow: hidden;
}

/* === AFRISURGE PRIMARY COLOR OVERLAY === */
.breadcrumb-area::before,
.page-header::before,
.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 54, 93, 0.85) !important; /* Afrisurge primary brand color */
    z-index: -1;
    transition: background 0.3s ease;
}

/* Enhanced overlay on hover for interactive sections */
.breadcrumb-area:hover::before {
    background: rgba(27, 54, 93, 0.9) !important;
}

/* === BACKGROUND IMAGE POSITIONING === */
.breadcrumb-area-bg,
.page-header-bg,
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* === DECORATIVE SHAPE === */
.shape-box {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 1;
}

/* === CONTENT STYLING === */
.breadcrumb-area .inner-content,
.page-header .inner-content,
.banner-section .inner-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

/* === BREADCRUMB NAVIGATION === */
.breadcrumb-menu ul {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-menu ul li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.breadcrumb-menu ul li:not(:last-child)::after {
    content: '/';
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.breadcrumb-menu ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 4px;
    display: inline-block;
}

.breadcrumb-menu ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb-menu ul li a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

.breadcrumb-menu ul li.active {
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* === PAGE TITLES === */
.breadcrumb-area .title h1,
.breadcrumb-area .title h2,
.page-header .title h1,
.page-header .title h2 {
    color: white !important;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.breadcrumb-area .title .subtitle,
.page-header .title .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 10px 0 0 0;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === SPECIFIC PAGE STYLING === */

/* Services Page Breadcrumb */
.services-breadcrumb {
    background-image: url('../images/breadcrumb/services-bg.jpeg') !important;
}

/* About Page Breadcrumb */
.about-breadcrumb {
    background-image: url('../images/breadcrumb/about-bg.jpeg') !important;
}

/* Contact Page Breadcrumb */
.contact-breadcrumb {
    background-image: url('../images/breadcrumb/contact-bg.jpeg') !important;
}

/* Team Page Breadcrumb */
.team-breadcrumb {
    background-image: url('../images/breadcrumb/team-bg.jpeg') !important;
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 1200px) {
    .breadcrumb-area,
    .page-header,
    .banner-section {
        padding: 100px 0 70px;
    }
    
    .breadcrumb-area .title h1,
    .breadcrumb-area .title h2,
    .page-header .title h1,
    .page-header .title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-area,
    .page-header,
    .banner-section {
        padding: 80px 0 60px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .breadcrumb-area .title h1,
    .breadcrumb-area .title h2,
    .page-header .title h1,
    .page-header .title h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .breadcrumb-menu ul {
        font-size: 14px;
    }
    
    .breadcrumb-menu ul li:not(:last-child)::after {
        margin: 0 8px;
    }
    
    .breadcrumb-area .title .subtitle,
    .page-header .title .subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .shape-box {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-area,
    .page-header,
    .banner-section {
        padding: 60px 0 50px;
    }
    
    .breadcrumb-area .title h1,
    .breadcrumb-area .title h2,
    .page-header .title h1,
    .page-header .title h2 {
        font-size: 1.75rem;
        padding: 0 15px;
    }
    
    .breadcrumb-menu ul {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .breadcrumb-area .title .subtitle,
    .page-header .title .subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .shape-box {
        height: 25px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-area .title h1,
    .breadcrumb-area .title h2,
    .page-header .title h1,
    .page-header .title h2 {
        font-size: 1.5rem;
    }
    
    .breadcrumb-menu ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .breadcrumb-menu ul li:not(:last-child)::after {
        display: none;
    }
}

/* === ACCESSIBILITY ENHANCEMENTS === */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .breadcrumb-area::before,
    .page-header::before,
    .banner-section::before {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .breadcrumb-area .title h1,
    .breadcrumb-area .title h2,
    .page-header .title h1,
    .page-header .title h2 {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .breadcrumb-area::before,
    .page-header::before,
    .banner-section::before {
        transition: none;
    }
    
    .breadcrumb-menu ul li a {
        transition: none;
    }
}

/* Focus visible support */
.breadcrumb-menu ul li a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(27, 54, 93, 0.8);
}

/* === PRINT STYLES === */
@media print {
    .breadcrumb-area,
    .page-header,
    .banner-section {
        background: none !important;
        color: #333 !important;
        padding: 20px 0;
    }
    
    .breadcrumb-area::before,
    .page-header::before,
    .banner-section::before {
        display: none;
    }
    
    .breadcrumb-area .title h1,
    .breadcrumb-area .title h2,
    .page-header .title h1,
    .page-header .title h2 {
        color: #333 !important;
        text-shadow: none !important;
    }
    
    .breadcrumb-menu ul li,
    .breadcrumb-menu ul li a {
        color: #666 !important;
    }
    
    .shape-box {
        display: none;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */

/* Will-change for better animation performance */
.breadcrumb-area::before,
.page-header::before,
.banner-section::before {
    will-change: background;
}

.breadcrumb-menu ul li a {
    will-change: color, background;
}

/* Hardware acceleration for smoother animations */
.breadcrumb-area,
.page-header,
.banner-section {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* === SUCCESS INDICATOR === */
.breadcrumb-fixes-loaded {
    /* Hidden indicator that CSS has loaded successfully */
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    visibility: hidden;
}

.breadcrumb-fixes-loaded::after {
    content: 'Afrisurge Breadcrumb Fixes v1.0 - Successfully Loaded';
}

/* === END AFRISURGE BREADCRUMB FIXES === */
