/* ========================================
   Modern Footer Styles - Customer Frontend
   ======================================== */

.modern-footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    background-size: 200% 200%;
    border-top: 2px solid #2b8d50;
    color: #ddd;
    font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
    margin-top: auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Subtle animated gradient background */
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(43, 141, 80, 0.03) 0%,
        transparent 50%,
        rgba(30, 110, 58, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

/* ========================================
   Main Footer Grid
   ======================================== */

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: auto 1fr 1fr;
        gap: clamp(2rem, 3vw, 4rem);
    }
}

@media (min-width: 992px) {
    .footer-main {
        gap: clamp(3rem, 4vw, 5rem);
    }
}

/* ========================================
   Footer Sections
   ======================================== */

.footer-section {
    display: flex;
    flex-direction: column;
}

/* WPN Logo Section */
.footer-logo-section {
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-logo-section {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

.footer-wpn-logo {
    width: clamp(120px, 15vw, 150px);
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.08));
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-wpn-logo:hover {
    filter: drop-shadow(0 6px 16px rgba(43, 141, 80, 0.3));
}

/* ========================================
   Typography
   ======================================== */

.footer-heading {
    color: #2b8d50;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    margin: 0 0 clamp(0.875rem, 2vw, 1.25rem);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2b8d50, transparent);
    border-radius: 2px;
}

.footer-text {
    font-size: clamp(0.875rem, 1.5vw, 0.938rem);
    line-height: 1.7;
    color: #bbb;
    margin: 0;
}

.footer-text p {
    margin: 0 0 clamp(0.75rem, 2vw, 1rem);
}

.footer-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Contact Information
   ======================================== */

.contact-location {
    color: #ddd;
}

.contact-location strong {
    color: #fff;
    font-weight: 600;
    font-size: clamp(0.938rem, 1.5vw, 1rem);
}

.contact-phone {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

.contact-phone::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #4CAF50;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-phone:hover {
    color: #2b8d50;
}

.contact-phone:hover::after {
    width: 100%;
}

.contact-phone:focus-visible {
    outline: 2px solid #2b8d50;
    outline-offset: 3px;
    border-radius: 2px;
}

.contact-address {
    color: #aaa;
    font-size: clamp(0.875rem, 1.5vw, 0.938rem);
}

.contact-hours {
    color: #bbb;
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

.hours-label {
    color: #ddd;
    font-weight: 500;
}

/* ========================================
   Footer Bottom - Social & Copyright
   ======================================== */

.footer-bottom {
    text-align: center;
}

.footer-social {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.footer-social-heading {
    color: #fff;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    font-weight: 600;
    margin: 0 0 clamp(1rem, 2vw, 1.5rem);
    letter-spacing: -0.01em;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.social-link {
    color: #aaa;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 8vw, 52px);
    height: clamp(44px, 8vw, 52px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(43, 141, 80, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    color: #4CAF50;
    background: rgba(43, 141, 80, 0.1);
    transform: translateY(-4px);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:focus-visible {
    outline: 2px solid #2b8d50;
    outline-offset: 4px;
}

/* Individual social media colors on hover */
.social-link:hover .fa-facebook-square {
    color: #1877f2;
}

.social-link:hover .fa-youtube {
    color: #ff0000;
}

.social-link:hover .fa-instagram {
    color: #e4405f;
}

/* ========================================
   Divider & Copyright
   ======================================== */

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: min(90%, 800px);
    margin: 0 auto clamp(1rem, 2vw, 1.5rem);
}

.footer-copyright {
    font-size: clamp(0.813rem, 1.5vw, 0.875rem);
    color: #999;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ========================================
   Accessibility & Print Styles
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .modern-footer,
    .footer-wpn-logo,
    .contact-phone,
    .social-link {
        transition: none;
    }
}

@media print {
    .modern-footer {
        background: white;
        color: black;
        border-top: 2px solid black;
        box-shadow: none;
    }

    .footer-heading {
        color: black;
    }

    .social-links {
        display: none;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 767px) {
    .footer-main {
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-text {
        text-align: center;
    }
}

/* Ensure footer sticks to bottom on short pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.modern-footer {
    flex-shrink: 0;
}
