/* ========================================
   GLOBAL ENHANCEMENTS CSS
   Mega Menu, Breadcrumbs, Sticky CTA, 
   Footer, Logo Carousel, Trust Badges,
   Accessibility, Schema
   ======================================== */

/* --- MEGA MENU --- */
.mega-menu-wrapper {
    position: relative;
}
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border-radius: 0 0 20px 20px;
    padding: 30px;
    display: none;
    z-index: 9999;
    animation: megaSlide 0.3s ease;
}
@keyframes megaSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mega-menu.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.mega-menu-col h4 {
    color: #1A5276;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #C0392B;
}
.mega-menu-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.mega-menu-col a:hover { color: #C0392B; transform: translateX(-5px); }
.mega-menu-col a i { color: #2E86C1; width: 20px; }

/* --- BREADCRUMBS --- */
.breadcrumbs {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e0e0e0;
}
.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}
.breadcrumbs a {
    color: #2E86C1;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover { color: #C0392B; }
.breadcrumbs span { color: #999; }
.breadcrumbs .current { color: #333; font-weight: 600; }

/* --- STICKY CTA BAR --- */
.sticky-cta {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9990;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transition: bottom 0.4s ease;
}
.sticky-cta.visible { bottom: 0; }
.sticky-cta p { color: white; font-weight: 600; font-size: 0.95rem; }
.sticky-cta-btn {
    padding: 8px 25px;
    background: white;
    color: #C0392B;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}
.sticky-cta-btn:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.sticky-cta-close {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- ENHANCED FOOTER --- */
.footer-enhanced {
    background: #0a1628;
    color: white;
    padding: 80px 20px 0;
}
.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-top: 15px; }
.footer-brand .footer-logo { font-size: 1.5rem; font-weight: 800; color: white; }
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}
.footer-social a:hover { background: #C0392B; transform: translateY(-3px); }
.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.footer-col a:hover { color: white; transform: translateX(-5px); }
.footer-newsletter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-newsletter h4 { color: white; font-size: 1.2rem; }
.footer-newsletter p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form input {
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    border-radius: 25px;
    color: white;
    font-family: 'Cairo', sans-serif;
    width: 250px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
    padding: 12px 25px;
    background: #C0392B;
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.newsletter-form button:hover { background: #E74C3C; }
.footer-bottom-enhanced {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-bottom-enhanced p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-bottom-links a:hover { color: white; }

/* --- LOGO CAROUSEL / PARTNERS --- */
.partners-carousel {
    padding: 40px 0;
    background: #f8fafc;
    overflow: hidden;
}
.partners-track {
    display: flex;
    gap: 60px;
    animation: scrollPartners 30s linear infinite;
    width: max-content;
}
@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-logo {
    height: 50px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}
.partner-logo:hover { opacity: 1; filter: grayscale(0%); }

/* --- TRUST BADGES --- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.trust-badge i { font-size: 1.5rem; color: #27AE60; }
.trust-badge span { font-size: 0.85rem; color: #333; font-weight: 600; }

/* --- LIVE COUNTER --- */
.live-counter {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    z-index: 999;
    animation: fadeInUp 0.5s ease;
}
.live-counter .dot {
    width: 8px;
    height: 8px;
    background: #27AE60;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C0392B, #E74C3C, #F39C12);
    z-index: 99999;
    transition: width 0.1s;
    width: 0%;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #1A5276;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #C0392B; transform: translateY(-3px); }

/* --- ACCESSIBILITY WIDGET --- */
.accessibility-widget {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9998;
}
.accessibility-toggle {
    width: 40px;
    height: 40px;
    background: #1A5276;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.accessibility-panel {
    position: absolute;
    top: -100px;
    left: 40px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 220px;
    display: none;
}
.accessibility-panel.active { display: block; }
.accessibility-panel h4 { color: #1A5276; margin-bottom: 15px; font-size: 0.95rem; }
.acc-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #555;
}
.acc-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.acc-btn:hover { background: #1A5276; color: white; border-color: #1A5276; }

/* --- QUIZ WIDGET --- */
.quiz-float-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 5px 20px rgba(155,89,182,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    border: none;
}
.quiz-float-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(155,89,182,0.5); }

/* --- FREE CONSULTATION BANNER --- */
.consultation-banner {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    padding: 15px 20px;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.consultation-banner p { font-weight: 600; }
.consultation-banner a {
    padding: 8px 20px;
    background: white;
    color: #27AE60;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.consultation-banner a:hover { transform: scale(1.05); }

/* --- HIGH CONTRAST MODE --- */
body.high-contrast {
    filter: contrast(1.3);
}
body.large-text {
    font-size: 120% !important;
}
body.large-text * {
    font-size: inherit;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .mega-menu.active { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .sticky-cta { flex-direction: column; gap: 10px; padding: 15px; }
    .footer-newsletter { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { width: 100%; }
    .live-counter { display: none; }
    .accessibility-widget { display: none; }
    .quiz-float-btn { bottom: 150px; padding: 10px 15px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .mega-menu.active { grid-template-columns: 1fr; }
    .trust-badges { flex-direction: column; align-items: center; }
}
