/* ========== Modern Footer Styles - Inspinia Aligned ========== */

.modern-footer {
    position: relative;
    background: #313a46;
    margin-top: 80px;
}

/* Wave Effect */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-wave svg path {
    fill: #f6f7fb;
}

.footer-content {
    padding-top: 100px;
    padding-bottom: 30px;
}

/* Footer Sections */
.footer-section {
    height: 100%;
}

.footer-logo img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-tagline {
    color: #1ab394;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.8;
}

.footer-heading {
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #1ab394;
}

/* Social Links */
.footer-social h6 {
    font-size: 14px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
    background: #1ab394;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 179, 148, 0.3);
    border-color: #1ab394;
}

.social-facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3); }
.social-twitter:hover { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 6px 15px rgba(29, 161, 242, 0.3); }
.social-whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); }

.social-link::before { display: none; }

/* Contact Items */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-item:hover {
    background: rgba(26, 179, 148, 0.08);
    border-color: rgba(26, 179, 148, 0.2);
    transform: translateX(4px);
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(26, 179, 148, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1ab394;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.contact-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Business Hours */
.business-hours h6 {
    font-size: 14px;
    font-weight: 600;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.hours-item span:first-child {
    color: rgba(255, 255, 255, 0.55);
}

.hours-item span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hours-closed {
    opacity: 0.5;
}

/* App Downloads */
.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    display: flex;
    gap: 15px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
}

.app-card:hover {
    background: rgba(26, 179, 148, 0.08);
    border-color: rgba(26, 179, 148, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.app-qr {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    padding: 4px;
}

.app-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info h6 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.app-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-link i {
    color: #1ab394;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: white;
    background: rgba(26, 179, 148, 0.08);
    transform: translateX(4px);
}

.footer-link:hover i {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.copyright-text a {
    color: #1ab394;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    color: #23d9ad;
}

.separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

.developed-by {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #1ab394;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 179, 148, 0.35);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #16987e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 179, 148, 0.45);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        padding-top: 80px;
    }
    .footer-wave svg {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        margin-top: 60px;
    }
    .footer-content {
        padding-top: 60px;
    }
    .footer-wave svg {
        height: 50px;
    }
    .footer-heading {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        text-align: center;
    }
    .copyright-text,
    .developed-by {
        font-size: 12px;
    }
    .separator {
        display: block;
        margin: 5px 0;
    }
}

/* ========== Mobile Footer Navigation Menu ========== */
.mobile-footer-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(49, 58, 70, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-footer-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(26, 179, 148, 0.4) 50%, transparent 100%);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
}

.mobile-nav-item i {
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #1ab394;
    border-radius: 0 0 3px 3px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item.active,
.mobile-nav-item:active {
    color: #1ab394;
    background: rgba(26, 179, 148, 0.08);
}

.mobile-nav-item.active::before,
.mobile-nav-item:active::before {
    width: 60%;
}

.mobile-nav-item.active i,
.mobile-nav-item:active i {
    transform: scale(1.15);
    color: #1ab394;
}

/* Show mobile menu only on small screens */
@media (max-width: 768px) {
    .mobile-footer-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
    .back-to-top {
        bottom: 85px;
    }
}

@media (max-width: 576px) {
    .mobile-nav-item i {
        font-size: 18px;
    }
    .mobile-nav-item span {
        font-size: 10px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .mobile-nav-item:active {
        transform: scale(0.95);
    }
}
