/* ==============================================
   FOOTER STYLES - NEW CLEAN LAYOUT
   File: assets/css/footer.css or integrate in main.css
   ============================================== */

/* ========================================
   FOOTER BASE STYLES
   ======================================== */
.site-footer {
    background: #0f2359;
    color: #fff;
    margin-top: 60px;
    width: 100%;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-footer a:hover {
    opacity: 0.9;
}

.site-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ========================================
   FOOTER TOP - 3 COLUMN LAYOUT
   ======================================== */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px 0;
}

/* Brand Column */
.footer-col.brand .footer-logo {
    font-weight: 700;
    font-size: 28px;
    display: inline-block;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f79448, #e8843f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col.brand .footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-tagline {
    opacity: 0.85;
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
    color: #bdc3c7;
}

/* Navigation Column */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

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

.footer-menu a {
    font-size: 15px;
    color: #fff;
    padding: 5px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: #f79448;
    transform: translateX(5px);
}

/* Contact Column */
.contact-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.contact-list svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-list a:hover {
    color: #f79448;
}

/* Social Icons */
.social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social a:hover {
    background: #f79448;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(247, 148, 72, 0.3);
}

.social svg {
    fill: #fff;
    width: 20px;
    height: 20px;
}

/* ========================================
   FOOTER BOTTOM - LEGAL & COPYRIGHT
   ======================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
}

.legal-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-menu a {
    font-size: 14px;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.legal-menu a:hover {
    color: #fff;
}

.copy {
    margin: 0;
    opacity: 0.85;
    font-size: 14px;
    color: #bdc3c7;
}

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

/* Tablet */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col.brand .footer-logo {
        font-size: 24px;
    }
    
    .footer-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-menu li {
        margin-bottom: 0;
    }
    
    .contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social {
        justify-content: center;
    }
    
    .footer-bottom__inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-menu {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .site-footer .container {
        padding: 20px 12px;
    }
    
    .footer-top {
        padding: 30px 0;
        gap: 25px;
    }
    
    .footer-col.brand .footer-logo {
        font-size: 22px;
    }
    
    .footer-tagline {
        font-size: 14px;
    }
    
    .footer-menu {
        gap: 12px;
    }
    
    .footer-menu a {
        font-size: 14px;
    }
    
    .contact-list a {
        font-size: 13px;
    }
    
    .social {
        gap: 12px;
    }
    
    .social a {
        width: 36px;
        height: 36px;
    }
    
    .legal-menu {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .legal-menu a,
    .copy {
        font-size: 13px;
    }
    
    .footer-bottom__inner {
        padding: 15px 12px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .site-footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 2px solid #000;
    }
    
    .site-footer a {
        color: #000 !important;
    }
    
    .social {
        display: none;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: #0a1628;
    }
    
    .footer-bottom {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
.footer-menu a:focus,
.legal-menu a:focus,
.contact-list a:focus,
.social a:focus {
    outline: 2px solid #f79448;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .social a,
    .footer-menu a {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-footer {
        background: #000;
        border-top: 3px solid #fff;
    }
    
    .footer-bottom {
        border-top: 2px solid #fff;
    }
    
    .site-footer a {
        color: #fff;
        text-decoration: underline;
    }
    
    .site-footer a:hover {
        background: #fff;
        color: #000;
    }
}

/* ========================================
   INTEGRATION WITH EXISTING THEME
   ======================================== */

/* Override existing footer styles if needed */
body.tour-page .site-footer {
    margin-bottom: 0;
}

/* Mobile booking bar compatibility */
@media (max-width: 768px) {
    body.single-tour .site-footer {
        margin-bottom: 80px; /* Space for mobile booking bar */
    }
}

/* Ensure footer appears above mobile elements */
.site-footer {
    position: relative;
    z-index: 50;
}

/* Custom logo integration */
.footer-col.brand .custom-logo-link {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-col.brand .custom-logo {
    max-height: 50px;
    width: auto;
}

/* When custom logo exists, hide text logo */
.footer-col.brand .custom-logo-link + .footer-logo {
    display: none;
}