/**
 * Footer V2 - Home Page Modern Design
 * Conversion-optimized, accessible, mobile-first
 * @version 2.0
 */

/* ===========================
   CSS Variables
   =========================== */
:root {
    /* Colors - Matching home-v2 design */
    --footer-primary: #0056B3;
    --footer-primary-dark: #003D82;
    --footer-secondary: #6C757D;
    --footer-success: #28A745;
    --footer-text-primary: #212529;
    --footer-text-secondary: #6C757D;
    --footer-text-muted: #868E96;
    --footer-bg-light: #F8F9FA;
    --footer-bg-muted: #E9ECEF;
    --footer-border: #DEE2E6;

    /* Spacing */
    --footer-space-xs: 0.25rem;
    --footer-space-sm: 0.5rem;
    --footer-space-md: 1rem;
    --footer-space-lg: 1.5rem;
    --footer-space-xl: 2rem;
    --footer-space-2xl: 3rem;
    --footer-space-3xl: 4rem;

    /* Typography */
    --footer-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --footer-font-size-xs: 0.75rem;
    --footer-font-size-sm: 0.875rem;
    --footer-font-size-base: 1rem;
    --footer-font-size-lg: 1.125rem;
    --footer-font-size-xl: 1.25rem;
    --footer-font-size-2xl: 1.5rem;
    --footer-font-size-3xl: 2rem;

    /* Transitions */
    --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --footer-transition-fast: all 0.2s ease-out;
}

/* ===========================
   Pre-Footer CTA Band
   =========================== */
.footer-cta {
    background: linear-gradient(135deg, #4F46E5 0%, #9333EA 50%, #4338CA 100%);
    padding: var(--footer-space-3xl) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Subtle pattern overlay - enhanced */
.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.footer-cta__content {
    position: relative;
    z-index: 1;
}

.footer-cta__title {
    font-size: var(--footer-font-size-3xl);
    font-weight: 700;
    color: white;
    margin: 0 0 var(--footer-space-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.footer-cta__subtitle {
    font-size: var(--footer-font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--footer-space-2xl);
    font-weight: 300;
}

.footer-cta__actions {
    display: flex;
    gap: var(--footer-space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--footer-space-xl);
}

.footer-cta__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--footer-space-sm);
    padding: 14px 28px;
    font-size: var(--footer-font-size-base);
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--footer-transition);
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.footer-cta__actions .btn--primary {
    background: white;
    color: #4F46E5;
    border: 2px solid white;
    font-weight: 600;
}

.footer-cta__actions .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #4338CA;
}

.footer-cta__actions .btn--secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.footer-cta__actions .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.footer-cta__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--footer-space-xl);
    flex-wrap: wrap;
}

.footer-cta__trust-item {
    display: flex;
    align-items: center;
    gap: var(--footer-space-xs);
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--footer-font-size-base);
    font-weight: 500;
}

.footer-cta__trust-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.9;
    margin-right: 2px;
}

/* Typography alignment with Home v2 scale */
.footer-cta,
.footer-main,
.footer-sub {
    font-family: var(--font-family-base);
    line-height: var(--leading-normal);
    --footer-font-size-base: var(--text-lg);
    --footer-font-size-sm: 0.95rem;
    --footer-font-size-lg: var(--text-xl);
}

/* ===========================
   Main Footer
   =========================== */
.footer-main {
    background: white;
    padding: var(--footer-space-3xl) 0 var(--footer-space-2xl);
    border-top: 1px solid var(--footer-border);
}

.footer-main__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--footer-space-2xl);
}

/* Footer Columns */
.footer-main__column {
    display: flex;
    flex-direction: column;
    gap: var(--footer-space-md);
}

.footer-main__title {
    font-size: var(--footer-font-size-sm);
    font-weight: 700;
    color: var(--footer-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-main__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--footer-space-sm);
}

.footer-main__list a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: var(--footer-font-size-base);
    transition: var(--footer-transition-fast);
    display: inline-block;
}

.footer-main__list a:hover {
    color: var(--footer-primary);
    transform: translateX(4px);
}

/* Contact column specific styles */
.footer-main__list--contact li {
    display: flex;
    align-items: center;
    gap: var(--footer-space-sm);
    font-size: var(--footer-font-size-base);
}

.footer-main__contact-link {
    display: flex;
    align-items: center;
    gap: var(--footer-space-sm) !important;
    font-size: var(--footer-font-size-base);
}

.footer-main__contact-link:hover {
    transform: none !important;
    color: var(--footer-primary) !important;
}

.footer-main__schedule {
    display: flex;
    align-items: center;
    gap: var(--footer-space-sm);
    color: var(--footer-text-secondary);
    font-size: var(--footer-font-size-base);
}


/* Social Icons Section */
.footer-main__social {
    display: flex;
    gap: var(--footer-space-md);
    flex-wrap: wrap;
    margin-top: var(--footer-space-sm);
}

.footer-main__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--footer-bg-light);
    border-radius: 50%;
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: var(--footer-transition-fast);
    border: 2px solid transparent;
}

.footer-main__social-icon:hover {
    background: var(--footer-text-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-main__social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Social network specific hover colors */
.footer-main__social-icon:nth-child(1):hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: #833ab4;
}

.footer-main__social-icon:nth-child(2):hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-main__social-icon:nth-child(3):hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.footer-main__social-icon:nth-child(4):hover {
    background: #25d366;
    border-color: #25d366;
}

/* ===========================
   Sub-Footer
   =========================== */
.footer-sub {
    background: var(--footer-bg-light);
    padding: var(--footer-space-lg) 0;
    border-top: 1px solid var(--footer-border);
}

.footer-sub__legal {
    font-size: var(--text-sm);
    color: var(--footer-text-muted);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.footer-main__grid > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.footer-main__grid > *:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-main__grid > *:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-main__grid > *:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-main__grid > *:nth-child(4) {
    animation-delay: 0.4s;
}

/* Subtle pulse on CTA buttons */
.footer-cta__actions .btn--primary {
    animation: pulse 2s infinite;
    animation-delay: 2s;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .footer-cta__title {
        font-size: 1.75rem;
    }

    .footer-main__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--footer-space-2xl);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .footer-cta {
        padding: var(--footer-space-2xl) var(--footer-space-lg);
    }

    .footer-cta__title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        line-height: 1.25;
    }

    .footer-cta__subtitle {
        font-size: clamp(1.2rem, 4.5vw, 1.4rem);
        font-weight: 500;
        line-height: 1.4;
    }

    .footer-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-cta__actions .btn {
        width: 100%;
    }

    .footer-cta__trust {
        flex-direction: column;
        gap: var(--footer-space-sm);
    }

    .footer-main {
        padding: var(--footer-space-2xl) var(--footer-space-lg);
    }

    .footer-main__grid {
        grid-template-columns: 1fr;
        gap: var(--footer-space-2xl);
    }

    .footer-main__column {
        text-align: center;
        border-top: 1px solid var(--footer-border);
        padding-top: var(--footer-space-xl);
    }

    .footer-main__column:first-child {
        border-top: none;
        padding-top: 0;
    }

    .footer-main__list a:hover {
        transform: none;
    }

    .footer-main__list--contact {
        align-items: center;
    }

    .footer-main__social {
        justify-content: center;
    }

    .footer-main__social-icon {
        width: 45px;
        height: 45px;
    }

    .footer-sub {
        padding: var(--footer-space-lg);
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .footer-cta__title {
        font-size: clamp(1.75rem, 7vw, 2.3rem);
    }

    .footer-cta__trust-item {
        font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    }

    .footer-main__social-icon {
        width: 38px;
        height: 38px;
    }

    .footer-main__social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ===========================
   Accessibility Improvements
   =========================== */

/* Focus indicators */
.footer-main__list a:focus,
.footer-main__contact-link:focus,
.footer-main__social-icon:focus,
.footer-cta__actions .btn:focus {
    outline: 2px solid var(--footer-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--footer-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
    top: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer-cta {
        background: var(--footer-primary-dark);
    }

    .badge {
        border: 1px solid currentColor;
    }

    .footer-main__social-link {
        border: 1px solid currentColor;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here when needed */
}

/* Print styles */
@media print {
    .footer-cta,
    .footer-main__social,
    .conten-fixed-wp {
        display: none;
    }

    .footer-main {
        padding: 20px 0;
    }

    .footer-sub__legal {
        font-size: 10pt;
    }
}
