/**
 * Footer CSS - Jhapa Technical Enterprise
 * @package JhapaTechnical
 * @version 2.0.0
 */

/* =====================================================
   FOOTER - PREMIUM RESPONSIVE
   ===================================================== */

.jte-footer {
    background: #0B3E9E;
    color: #fafafa;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    width: 100%;
    position: relative;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.jte-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jte-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jte-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.6);
    color: #ffffff;
}

/* =====================================================
   FOOTER TOP - DESKTOP 3 COLUMN
   ===================================================== */
.jte-footer-top {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.jte-footer-top .jte-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Brand */
.jte-footer-brand-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.jte-footer-brand-desc {
    color: #8892b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Newsletter */
.jte-footer-newsletter h4,
.jte-footer-social h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.jte-footer-newsletter p {
    color: #8892b0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.jte-newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.jte-newsletter-input-group input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.jte-newsletter-input-group input:focus {
    border-color: #0066ff;
}

.jte-newsletter-input-group input::placeholder {
    color: #8892b0;
}

.jte-newsletter-input-group button {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.jte-newsletter-input-group button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

/* Social */
.jte-footer-social {
    text-align: right;
}

.jte-social-links {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.jte-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ccd6f6;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.jte-social-link:hover {
    background: #0066ff;
    border-color: #0066ff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

/* =====================================================
   FOOTER MIDDLE - 4 COLUMN DESKTOP / 2 COLUMN MOBILE
   ===================================================== */
.jte-footer-middle {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.jte-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.jte-footer-column h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.jte-footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border-radius: 2px;
}

.jte-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jte-footer-menu li {
    margin-bottom: 0.5rem;
}

.jte-footer-menu a {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.jte-footer-menu a:hover {
    color: #00d4ff;
    transform: translateX(4px);
}

/* Contact */
.jte-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jte-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #8892b0;
    line-height: 1.4;
}

.jte-footer-contact li i {
    color: #00d4ff;
    width: 18px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.jte-footer-contact a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jte-footer-contact a:hover {
    color: #00d4ff;
}

/* =====================================================
   FOOTER BOTTOM
   ===================================================== */
.jte-footer-bottom {
    padding: 1.2rem 0;
}

.jte-footer-bottom .jte-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jte-copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: #8892b0;
}

.jte-copyright a {
    color: #ccd6f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jte-copyright a:hover {
    color: #00d4ff;
}

.jte-payment-icons {
    display: flex;
    gap: 0.6rem;
    color: #8892b0;
    font-size: 1.1rem;
}

.jte-payment-icons i {
    transition: all 0.3s ease;
}

.jte-payment-icons i:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.jte-footer-legal {
    display: flex;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #8892b0;
}

.jte-footer-legal a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jte-footer-legal a:hover {
    color: #00d4ff;
}

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.jte-whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.jte-whatsapp-float:hover {
    transform: scale(1.1);
    color: #ffffff;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.8); }
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Tablets - 992px */
@media (max-width: 992px) {
    .jte-footer-top .jte-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .jte-footer-social {
        text-align: center;
    }
    
    .jte-social-links {
        justify-content: center;
    }
    
    .jte-newsletter-input-group {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .jte-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Landscape - 768px */
@media (max-width: 768px) {
    .jte-footer-top {
        padding: 2rem 0 1.5rem;
    }
    
    .jte-footer-middle {
        padding: 1.5rem 0;
    }
    
    .jte-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .jte-footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .jte-footer-column {
        text-align: center;
    }
    
    .jte-footer-menu li {
        text-align: center;
    }
    
    .jte-footer-contact li {
        justify-content: center;
    }
    
    .jte-footer-bottom .jte-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .jte-payment-icons {
        justify-content: center;
    }
    
    .jte-footer-legal {
        justify-content: center;
    }
    
    .jte-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .jte-whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        bottom: 80px;
        right: 20px;
    }
}

/* Mobile Portrait - 576px */
@media (max-width: 576px) {
    .jte-footer-top {
        padding: 1.5rem 0 1rem;
    }
    
    .jte-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .jte-footer-brand-desc {
        font-size: 0.85rem;
    }
    
    .jte-newsletter-input-group {
        flex-direction: column;
        max-width: 100%;
    }
    
    .jte-newsletter-input-group button {
        width: 100%;
        justify-content: center;
    }
    
    .jte-footer-column h4 {
        font-size: 0.9rem;
    }
    
    .jte-footer-menu a {
        font-size: 0.85rem;
    }
    
    .jte-copyright p {
        font-size: 0.8rem;
    }
    
    .jte-payment-icons {
        font-size: 0.95rem;
    }
    
    .jte-social-link {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

/* Very Small - 400px (Single Column) */
@media (max-width: 400px) {
    .jte-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .jte-footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .jte-footer-column {
        text-align: center;
    }
    
    .jte-footer-menu li {
        text-align: center;
    }
    
    .jte-footer-contact li {
        justify-content: center;
    }
    
    .jte-social-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .jte-back-to-top {
        bottom: 15px;
        right: 15px;
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    
    .jte-whatsapp-float {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        bottom: 70px;
        right: 15px;
    }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .jte-back-to-top,
    .jte-whatsapp-float {
        animation: none !important;
        transition: none !important;
    }
}