/* ===================================
   Footer Component Styles
   footer.css
   ================================= */

/* ===================================
   Base Footer Styles
   ================================= */

.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* ===================================
   Footer Sections
   ================================= */

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-section ul li a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 8px;
}

/* ===================================
   Footer Bottom Bar
   ================================= */

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Newsletter Section (if in footer)
   ================================= */

.footer-newsletter {
    background: #374151;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.footer-newsletter p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #4b5563;
    border-radius: 8px;
    background: #1f2937;
    color: var(--white);
    font-size: 0.875rem;
}

.footer-newsletter-input::placeholder {
    color: #9ca3af;
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.footer-newsletter-button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter-button:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===================================
   Social Media Links
   ================================= */

.footer-social {
    margin-top: 1.5rem;
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===================================
   Footer Branding
   ================================= */

.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo::before {
    content: "🚁";
    font-size: 1.75rem;
}

.footer-tagline {
    color: #9ca3af;
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

/* ===================================
   Contact Information
   ================================= */

.footer-contact {
    background: #374151;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
    font-size: 0.875rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

/* ===================================
   Responsive Design
   ================================= */

/* Tablet */
@media (max-width: 1024px) {
    .footer {
        padding: 2.5rem 1.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section ul li a {
        justify-content: center;
        text-align: center;
    }

    .footer-section ul li a::before {
        display: none;
    }

    .footer-section ul li a:hover {
        transform: translateY(-2px);
    }

    .footer-newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-newsletter-button {
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0.75rem 0.75rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section ul li a {
        font-size: 0.875rem;
        padding: 0.375rem 0;
    }

    .footer-newsletter {
        padding: 1.5rem;
    }

    .footer-newsletter h4 {
        font-size: 1.125rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ===================================
   Footer Variants
   ================================= */

/* Dark footer variant */
.footer--dark {
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

.footer--dark .footer-newsletter,
.footer--dark .footer-contact {
    background: #1e293b;
}

.footer--dark .social-link {
    background: #1e293b;
}

/* Light footer variant */
.footer--light {
    background: #f8fafc;
    color: var(--text-dark);
}

.footer--light .footer-section h4 {
    color: var(--primary-color);
}

.footer--light .footer-section ul li a {
    color: #64748b;
}

.footer--light .footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer--light .footer-bottom {
    border-top-color: #e2e8f0;
}

.footer--light .footer-bottom p {
    color: #64748b;
}

/* Minimal footer variant */
.footer--minimal {
    padding: 1.5rem 2rem;
}

.footer--minimal .footer-content {
    display: block;
    text-align: center;
}

.footer--minimal .footer-section {
    display: none;
}

/* ===================================
   Accessibility Improvements
   ================================= */

/* Focus states */
.footer-section ul li a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-newsletter-input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.footer-newsletter-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-section ul li a,
    .footer-newsletter-button,
    .social-link {
        transition: none;
    }

    .footer-section ul li a:hover,
    .social-link:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer {
        border-top: 2px solid var(--white);
    }

    .footer-section ul li a {
        border: 1px solid transparent;
    }

    .footer-section ul li a:hover,
    .footer-section ul li a:focus {
        border-color: var(--accent-color);
        background: var(--accent-color);
        color: var(--text-dark);
    }
}

/* ===================================
   Print Styles
   ================================= */

@media print {
    .footer {
        background: transparent;
        color: var(--text-dark);
        border-top: 2px solid var(--text-dark);
        page-break-inside: avoid;
    }

    .footer-newsletter,
    .footer-social,
    .social-links {
        display: none;
    }

    .footer-section ul li a {
        color: var(--text-dark);
    }

    .footer-section h4 {
        color: var(--text-dark);
    }
}
