/* ========== FOOTER REDESIGN ========== */
:root {
    --footer-bg: #000000;
    --footer-text: #f0f0f0;
    --footer-heading: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-accent: #003366;
    --footer-hover: #ffffff;
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--footer-accent) 0%, 
        #004488 50%, 
        var(--footer-accent) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* Brand Column */
.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--footer-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: rotate(-10deg);
}

.footer-logo-text h3 {
    color: var(--footer-heading);
    font-size: 1.5rem;
    margin: 0 0 5px;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge i {
    color: var(--footer-accent);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.payment-method {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.payment-method:hover {
    color: white;
}

/* Footer Columns */
.footer-column h4 {
    color: var(--footer-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--footer-accent);
}

/* Footer Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--footer-hover);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--footer-accent);
    width: 16px;
}

/* Contact Info */
.contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 51, 102, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--footer-heading);
    font-size: 0.95rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--footer-hover);
}

.business-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.business-hours p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

/* Newsletter */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--footer-accent);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-submit {
    background: var(--footer-accent);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit:hover {
    background: #002244;
    transform: translateY(-2px);
}

.newsletter-success {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

.newsletter-success.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.gdpr-notice {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    line-height: 1.4;
}

/* Social Media */
.social-media {
    margin-top: 25px;
}

.social-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.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;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--footer-accent);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright a {
    color: var(--footer-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--footer-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #002244;
    transform: translateY(-5px);
}

/* Mobile Bottom Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    z-index: 999;
    padding: 10px 0;
}

.action-buttons {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    min-width: 70px;
}

.action-button:hover,
.action-button.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.action-button i {
    font-size: 1.2rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .mobile-action-bar {
        display: block;
    }
    
    /* Adjust body padding for mobile action bar */
    body {
        padding-bottom: 70px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-submit {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 0;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact-info li {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .action-buttons {
        padding: 0 10px;
    }
    
    .action-button {
        min-width: 60px;
        padding: 8px;
        font-size: 0.7rem;
    }
    
    .action-button i {
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for footer items */
.footer-column {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Mobile accordion */
@media (max-width: 768px) {
    .footer-column h4 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-column h4::after {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: static;
        width: auto;
        height: auto;
        background: none;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }
    
    .footer-column.active h4::after {
        transform: rotate(180deg);
    }
    
    .footer-column .footer-links,
    .footer-column .contact-info,
    .footer-column .newsletter-form,
    .footer-column .social-media {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .footer-column.active .footer-links,
    .footer-column.active .contact-info,
    .footer-column.active .newsletter-form,
    .footer-column.active .social-media {
        max-height: 500px;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-grid {
    animation: slideInUp 0.8s ease;
}

/* Focus styles for accessibility */
.footer-links a:focus,
.contact-details a:focus,
.newsletter-input:focus,
.newsletter-submit:focus,
.back-to-top:focus,
.action-button:focus,
.social-link:focus {
    outline: 2px solid var(--footer-accent);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-column,
    .footer-grid,
    .back-to-top {
        animation: none !important;
        transition: none !important;
    }
    
    .footer-links a:hover,
    .social-link:hover,
    .back-to-top:hover {
        transform: none !important;
    }
}