/*!
 * Responsive Header & Footer Fixes
 * Mobile-first approach with Bootstrap integration
 * Cross-browser compatible with performance optimizations
 * Version: 1.0.0
 */

/* ==========================================================================
   1. CSS RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==========================================================================
   2. FIXED HEADER STYLES - MOBILE FIRST
   ========================================================================== */

/* Base Header Styles (Mobile First) */
.fixed-header-area {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.fixed-header-area.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-container {
    padding: 10px 0;
    transition: padding 0.3s ease;
}

.fixed-header-area.sticky-active .header-container {
    padding: 8px 0;
}

/* Logo Section */
.header-logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 100%;
    transition: height 0.3s ease;
}

.fixed-header-area.sticky-active .logo-image {
    height: 40px;
}

/* Search Section - Mobile First */
.header-search-section {
    position: relative;
    width: 100%;
    margin: 15px 0 10px;
}

.search-form-container {
    position: relative;
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input-field {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #2c3e50;
    outline: none;
}

.search-input-field::placeholder {
    color: #6c757d;
    font-style: italic;
}

.search-submit-btn {
    background: #007bff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    flex-shrink: 0;
}

.search-submit-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Search Suggestions */
.search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: 5px;
}

.search-suggestions-container[aria-hidden="false"] {
    display: block;
}

.suggestions-content {
    padding: 10px 0;
}

.suggestions-header {
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f3f4;
}

.suggestions-list {
    max-height: 200px;
    overflow-y: auto;
}

/* Navigation Section - Mobile First */
.header-navigation-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation - Hidden on Mobile */
.desktop-navigation {
    display: none;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-item {
    position: relative;
}

.nav-menu-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-menu-link:hover,
.nav-menu-link:focus {
    color: #007bff;
    text-decoration: none;
}

.nav-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.nav-menu-item:hover .nav-submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-content {
    padding: 10px 0;
}

.submenu-item-link {
    display: block;
    padding: 8px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu-item-link:hover,
.submenu-item-link:focus {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-container {
    position: absolute;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active .mobile-nav-container {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo-img {
    height: 35px;
    width: auto;
}

.mobile-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: #e9ecef;
    color: #2c3e50;
}

/* Mobile Search */
.mobile-search-section {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.mobile-search-form {
    display: flex;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.mobile-search-input:focus {
    border-color: #007bff;
}

.mobile-search-btn {
    background: #007bff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn:hover {
    background: #0056b3;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    flex: 1;
    padding: 10px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f1f3f4;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.mobile-nav-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle.active .mobile-nav-arrow {
    transform: rotate(90deg);
}

.mobile-submenu {
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 40px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
    background: #e9ecef;
    color: #007bff;
    text-decoration: none;
}

/* Header Spacer */
.header-spacer {
    height: 0;
    transition: height 0.3s ease;
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Small Mobile (480px and up) */
@media (min-width: 480px) {
    .search-input-field {
        font-size: 15px;
    }
    
    .mobile-nav-container {
        width: 350px;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .header-container {
        padding: 15px 0;
    }
    
    .fixed-header-area.sticky-active .header-container {
        padding: 10px 0;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .fixed-header-area.sticky-active .logo-image {
        height: 45px;
    }
    
    .header-search-section {
        margin: 0;
    }
    
    .search-input-field {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .search-submit-btn {
        width: 45px;
        height: 45px;
        margin: 3px;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .desktop-navigation {
        display: block;
    }
    
    .header-container {
        padding: 20px 0;
    }
    
    .fixed-header-area.sticky-active .header-container {
        padding: 15px 0;
    }
    
    .logo-image {
        height: 55px;
    }
    
    .fixed-header-area.sticky-active .logo-image {
        height: 50px;
    }
    
    .search-input-field {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .search-submit-btn {
        width: 50px;
        height: 50px;
        margin: 4px;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .nav-menu-list {
        gap: 30px;
    }
    
    .nav-menu-link {
        font-size: 16px;
    }
}

/* ==========================================================================
   4. ENHANCED FOOTER FIXES
   ========================================================================== */

/* Modern Footer Base Styles */
.modern-footer-area {
    background: #2c3e50;
    color: #ecf0f1;
    position: relative;
    margin-top: auto;
}

/* Newsletter Section Fixes */
.modern-newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-wrapper {
    position: relative;
    z-index: 2;
}

.newsletter-content {
    margin-bottom: 20px;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffd700;
    font-size: 24px;
}

.newsletter-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.feature-item i {
    color: #28a745;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Newsletter Form Container */
.newsletter-form-container {
    display: flex;
    justify-content: center;
}

.newsletter-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
}

.form-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.modern-newsletter-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.modern-newsletter-form .form-group {
    margin-bottom: 0;
}

.modern-newsletter-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modern-newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.modern-newsletter-form .form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.modern-subscribe-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.modern-subscribe-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-subscribe-btn:hover .btn-shine {
    left: 100%;
}

.form-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.form-note i {
    color: #28a745;
}

/* Main Footer Layout Fixes */
.footer-main {
    padding: 50px 0 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.widget-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #007bff;
}

.widget-title i {
    color: #007bff;
    font-size: 20px;
}

/* Company Widget */
.company-widget .modern-company-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modern-company-logo img {
    width: 50px;
    height: auto;
}

.company-info .company-name {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.company-info .company-tagline {
    color: #bdc3c7;
    font-size: 12px;
    font-weight: 500;
}

.company-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

/* App Download Section */
.app-download-section {
    margin-top: 25px;
}

.download-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.app-btn i {
    font-size: 20px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-text .small {
    font-size: 10px;
    opacity: 0.8;
}

.btn-text .large {
    font-size: 12px;
    font-weight: 600;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #007bff;
    text-decoration: none;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    color: #007bff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Contact Widget */
.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #bdc3c7;
    font-size: 14px;
}

.contact-item i {
    color: #007bff;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.contact-item a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Social Media */
.social-media-section {
    margin-top: 20px;
}

.social-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link.facebook:hover {
    background: #4267B2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.instagram:hover {
    background: #e4405f;
}

.social-link.youtube:hover {
    background: #ff0000;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

/* Trust Section */
.trust-section {
    background: #1a252f;
    padding: 30px 0;
    border-top: 1px solid #34495e;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 20px;
    margin-bottom: 5px;
}

.trust-content {
    text-align: center;
}

.trust-number {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
    line-height: 1;
}

.trust-label {
    font-size: 12px;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Footer Bottom */
.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    border-top: 1px solid #34495e;
}

.copyright-text p {
    margin: 0;
    color: #bdc3c7;
    font-size: 14px;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    text-decoration: none;
    color: white;
}

/* ==========================================================================
   5. RESPONSIVE FOOTER BREAKPOINTS
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .newsletter-content {
        margin-bottom: 0;
    }
    
    .newsletter-features {
        flex-direction: row;
        gap: 20px;
    }
    
    .newsletter-form-container {
        justify-content: flex-end;
    }
    
    .modern-newsletter-form .form-row {
        flex-direction: row;
        gap: 15px;
    }
    
    .app-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-bottom-links {
        justify-content: flex-end;
        margin-top: 0;
    }
    
    .copyright-text {
        text-align: left;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .modern-newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
    
    .newsletter-description {
        font-size: 18px;
    }
    
    .footer-main {
        padding: 60px 0 40px;
    }
    
    .widget-title {
        font-size: 20px;
    }
    
    .trust-section {
        padding: 40px 0;
    }
    
    .trust-number {
        font-size: 28px;
    }
    
    .trust-label {
        font-size: 13px;
    }
}

/* ==========================================================================
   6. UTILITY CLASSES & FIXES
   ========================================================================== */

/* Sticky Footer Implementation */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus Styles for Accessibility */
.search-input-field:focus,
.mobile-search-input:focus,
.nav-menu-link:focus,
.mobile-nav-link:focus,
.back-to-top:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .fixed-header-area {
        border-bottom: 2px solid #000;
    }
    
    .nav-menu-link {
        color: #000;
    }
    
    .search-input-group {
        border-color: #000;
    }
    
    .modern-footer-area {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .back-to-top {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .fixed-header-area,
    .mobile-nav-overlay,
    .back-to-top,
    .modern-newsletter-section,
    .trust-section {
        display: none !important;
    }
    
    .modern-footer-area {
        background: #fff !important;
        color: #000 !important;
    }
    
    .footer-main {
        padding: 20px 0;
    }
    
    .widget-title,
    .company-name {
        color: #000 !important;
    }
    
    .footer-links a,
    .company-description,
    .contact-item {
        color: #000 !important;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   7. BROWSER COMPATIBILITY FIXES
   ========================================================================== */

/* IE11 Flexbox Fixes */
.header-navigation-section,
.nav-menu-list,
.mobile-nav-header,
.newsletter-features,
.trust-grid {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Safari iOS Fixes */
@supports (-webkit-touch-callout: none) {
    .search-input-field,
    .mobile-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .mobile-nav-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Firefox Fixes */
@-moz-document url-prefix() {
    .search-submit-btn,
    .mobile-search-btn {
        -moz-appearance: none;
    }
}

/* Edge Fixes */
@supports (-ms-ime-align: auto) {
    .nav-submenu-container {
        border: 1px solid #e9ecef;
    }
}
