/**
 * Footer Widget Styles - Professional & Modern
 *
 * @package PWZ_Theme
 * @since 1.0.0
 */

/* ============================================
   ELEMENTOR COMPATIBILITY & OVERFLOW FIX
   ============================================ */

.elementor-widget-pwz-footer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.elementor-widget-pwz-footer .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    overflow: hidden;
}

/* ============================================
   MAIN FOOTER
   ============================================ */

.pwz-footer {
    background: #000000;
    color: #CCCCCC;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* Background Pattern - Dot Grid */
.pwz-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    pointer-events: none;
}

/* Background Glow */
.pwz-footer-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, rgba(0, 255, 136, 0.03) 40%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.pwz-footer .pwz-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.pwz-footer-main {
    padding: 80px 0 50px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    position: relative;
    z-index: 1;
}

/* Decorative Line Above Footer */
.pwz-footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

/* ============================================
   FOOTER GRID
   ============================================ */

.pwz-footer-content {
    display: grid;
    gap: 50px;
    max-width: 100%;
}

.pwz-footer-cols-1 {
    grid-template-columns: 1fr;
}

.pwz-footer-cols-2 {
    grid-template-columns: 1.5fr 1fr;
}

.pwz-footer-cols-3 {
    grid-template-columns: 1.5fr 1fr 1fr;
}

.pwz-footer-cols-4 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.pwz-footer-cols-5 {
    grid-template-columns: 1.5fr repeat(4, 1fr);
}

.pwz-footer-cols-6 {
    grid-template-columns: 1.5fr repeat(5, 1fr);
}

.pwz-footer-col {
    min-width: 0;
    max-width: 100%;
    animation: fadeInUp 0.6s ease-out both;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ABOUT COLUMN
   ============================================ */

.pwz-footer-about {
    grid-column: span 1;
}

.pwz-footer-logo {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.pwz-footer-logo-image {
    max-width: 180px;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.pwz-footer-logo:hover .pwz-footer-logo-image {
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
}

.pwz-footer-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.pwz-footer-logo:hover .pwz-footer-logo-glow {
    transform: translate(-50%, -50%) scale(1.5);
}

.pwz-footer-description {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
    color: #CCCCCC;
    max-width: 400px;
    letter-spacing: 0.3px;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.pwz-footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pwz-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.08);
    border: 2px solid rgba(0, 255, 136, 0.25);
    color: #00FF88;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
    overflow: hidden;
}

.pwz-social-icon svg,
.pwz-social-icon i {
    position: relative;
    z-index: 2;
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    color: #00FF88 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure Font Awesome icons display */
.pwz-social-icon i::before {
    color: #00FF88 !important;
}

.pwz-social-icon svg path,
.pwz-social-icon svg circle,
.pwz-social-icon svg rect,
.pwz-social-icon svg line,
.pwz-social-icon svg polyline,
.pwz-social-icon svg polygon {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.pwz-social-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.pwz-social-icon:hover {
    background: #00FF88;
    border-color: #00FF88;
    color: #000000;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.5);
}

.pwz-social-icon:hover svg,
.pwz-social-icon:hover i {
    color: #000000 !important;
    transform: rotate(360deg);
}

.pwz-social-icon:hover i::before {
    color: #000000 !important;
}

.pwz-social-icon:hover .pwz-social-icon-glow {
    transform: translate(-50%, -50%) scale(1.8);
}

/* ============================================
   FOOTER COLUMNS
   ============================================ */

.pwz-footer-col-title,
.pwz-footer-col h3,
.pwz-footer-col .widget-title {
    font-family: var(--pwz-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 28px 0;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.pwz-footer-col-title::after,
.pwz-footer-col h3::after,
.pwz-footer-col .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00FF88 0%, rgba(0, 255, 136, 0.3) 70%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Links List */
.pwz-footer-links,
.pwz-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pwz-footer-links li,
.pwz-footer-col ul li {
    margin-bottom: 15px;
}

.pwz-footer-links li:last-child,
.pwz-footer-col ul li:last-child {
    margin-bottom: 0;
}

.pwz-footer-links li a,
.pwz-footer-col ul li a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 15px;
    font-family: var(--pwz-font-body);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding-left: 0;
    letter-spacing: 0.3px;
}

.pwz-footer-links li a::before,
.pwz-footer-col ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #00FF88;
    transform: translateY(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.pwz-footer-links li a:hover,
.pwz-footer-col ul li a:hover {
    color: #00FF88;
    padding-left: 20px;
}

.pwz-footer-links li a:hover::before,
.pwz-footer-col ul li a:hover::before {
    width: 14px;
}

/* Contact List */
.pwz-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pwz-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.pwz-footer-contact li:last-child {
    margin-bottom: 0;
}

.pwz-contact-icon {
    flex-shrink: 0;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FF88 !important;
    position: relative;
}

.pwz-contact-icon svg,
.pwz-contact-icon i {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    color: #00FF88 !important;
    fill: #00FF88 !important;
    transition: all 0.3s ease;
}

/* Ensure Font Awesome icons display properly */
.pwz-contact-icon i::before {
    color: #00FF88 !important;
    font-size: 18px !important;
}

/* Ensure SVG icons display properly */
.pwz-contact-icon svg path,
.pwz-contact-icon svg circle,
.pwz-contact-icon svg rect,
.pwz-contact-icon svg line,
.pwz-contact-icon svg polyline,
.pwz-contact-icon svg polygon {
    fill: #00FF88 !important;
    stroke: #00FF88 !important;
}

.pwz-footer-contact li span {
    color: #CCCCCC;
    font-size: 15px;
    line-height: 1.7;
    font-family: var(--pwz-font-body);
    transition: color 0.3s ease;
}

.pwz-footer-contact li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.pwz-footer-contact li:hover .pwz-contact-icon {
    transform: scale(1.15);
}

.pwz-footer-contact li:hover .pwz-contact-icon svg,
.pwz-footer-contact li:hover .pwz-contact-icon i {
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

.pwz-footer-contact li a:hover {
    color: #00FF88;
}

.pwz-footer-contact li a:hover span {
    color: #00FF88;
}

/* Text Content */
.pwz-footer-text-content {
    font-family: var(--pwz-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--pwz-secondary-text);
}

.pwz-footer-text-content p {
    margin: 0 0 15px 0;
}

.pwz-footer-text-content p:last-child {
    margin-bottom: 0;
}

.pwz-footer-text-content a {
    color: var(--pwz-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pwz-footer-text-content a:hover {
    color: var(--pwz-accent-hover);
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */

.pwz-footer-bottom {
    background: rgba(0, 0, 0, 0.6);
    padding: 28px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 255, 136, 0.08);
}

.pwz-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pwz-footer-copyright {
    font-size: 14px;
    color: #CCCCCC;
    letter-spacing: 0.3px;
}

.pwz-footer-copyright a {
    color: #00FF88;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.pwz-footer-copyright a:hover {
    color: #00CC6A;
    text-decoration: underline;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.pwz-back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.08);
    border: 2px solid rgba(0, 255, 136, 0.25);
    border-radius: 50%;
    color: #00FF88;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    position: relative;
    overflow: hidden;
}

.pwz-back-to-top-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.pwz-back-to-top svg {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.pwz-back-to-top:hover {
    background: #00FF88;
    border-color: #00FF88;
    color: #000000;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.5);
}

.pwz-back-to-top:hover svg {
    transform: translateY(-3px);
}

.pwz-back-to-top:hover .pwz-back-to-top-glow {
    transform: translate(-50%, -50%) scale(1.8);
}

.pwz-back-to-top:active {
    transform: translateY(-4px) scale(1.02);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .pwz-footer .pwz-container {
        max-width: 100%;
        padding: 0 30px;
    }

    .pwz-footer-cols-5,
    .pwz-footer-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pwz-footer-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pwz-footer-content {
        gap: 45px;
    }
}

@media (max-width: 1024px) {
    .pwz-footer-main {
        padding: 60px 0 40px;
    }

    .pwz-footer-cols-4,
    .pwz-footer-cols-5,
    .pwz-footer-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pwz-footer-cols-3 {
        grid-template-columns: 1.5fr 1fr;
    }

    .pwz-footer-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .pwz-footer .pwz-container {
        padding: 0 20px;
    }

    .pwz-footer-main {
        padding: 50px 0 35px;
    }

    .pwz-footer-cols-1,
    .pwz-footer-cols-2,
    .pwz-footer-cols-3,
    .pwz-footer-cols-4,
    .pwz-footer-cols-5,
    .pwz-footer-cols-6 {
        grid-template-columns: 1fr !important;
    }

    .pwz-footer-content {
        gap: 35px;
    }

    .pwz-footer-col-title,
    .pwz-footer-col h3,
    .pwz-footer-col .widget-title {
        font-size: 19px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .pwz-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .pwz-footer-copyright {
        order: 2;
    }

    .pwz-back-to-top {
        order: 1;
    }
}

@media (max-width: 480px) {
    .pwz-footer .pwz-container {
        padding: 0 15px;
    }

    .pwz-footer-main {
        padding: 40px 0 30px;
    }

    .pwz-footer-content {
        gap: 30px;
    }

    .pwz-footer-logo-image {
        max-width: 150px;
    }

    .pwz-footer-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .pwz-footer-col-title,
    .pwz-footer-col h3,
    .pwz-footer-col .widget-title {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .pwz-footer-links li a,
    .pwz-footer-col ul li a,
    .pwz-footer-contact li span,
    .pwz-footer-text-content {
        font-size: 14px;
    }

    .pwz-social-icon {
        width: 44px;
        height: 44px;
    }

    .pwz-social-icon svg,
    .pwz-social-icon i {
        width: 18px !important;
        height: 18px !important;
        font-size: 18px !important;
    }

    .pwz-back-to-top {
        width: 44px;
        height: 44px;
    }

    .pwz-footer-bottom {
        padding: 20px 0;
    }

    .pwz-footer-copyright {
        font-size: 13px;
    }
}

