/************************************/
/**** 	   05. Footer css		 ****/
/************************************/

.site-footer {
    background: var(--footer-bg-color, #002F47);
    color: var(--footer-text-color, #ffffff);
    padding: 90px 0 30px;
    position: relative;
    overflow: hidden;
}

/* ===================== */
/* Widget Areas */
/* ===================== */

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: var(--footer-text-color, #ffffff);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}

.footer-widget-title::after {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--footer-accent-color, var(--accent-color, #ce0606));
    display: block;
    margin-top: 10px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 14px;
}

.footer-widget a {
    color: var(--footer-text-color, #ffffff);
    transition: all 0.3s ease;
}

.footer-widget a:hover {
    color: var(--footer-accent-color, var(--accent-color, #ce0606));
}

/* Text widget styles */
.footer-widget.textwidget {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* ===================== */
/* Brand Column */
/* ===================== */

.footer-brand-logo {
    width: var(--footer-brand-logo-width, 220px);
    max-width: var(--footer-brand-logo-width, 220px);
    margin-bottom: 25px;
    height: auto;
}

.footer-brand-desc {
    color: var(--footer-text-color, #ffffff);
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-brand-socials {
    display: flex;
    gap: 12px;
}

.footer-brand-socials a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--footer-text-color, #ffffff);
    transition: all 0.35s ease;
}

.footer-brand-socials a:hover {
    background: var(--footer-accent-color, var(--accent-color, #ce0606));
    transform: translateY(-6px);
}

/* ===================== */
/* Navigation */
/* ===================== */

.footer-title {
    color: var(--footer-text-color, #ffffff);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--footer-accent-color, var(--accent-color, #ce0606));
    display: block;
    margin-top: 10px;
}

.footer-nav ul, .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li, .widget_nav_menu li {
    margin-bottom: 14px;
}

.footer-nav a, .widget_nav_menu a {
    color: var(--footer-text-color, #ffffff);
    position: relative;
    padding-left: 14px;
    transition: all 0.3s ease;
}

.footer-nav a::before ,.widget_nav_menu a::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--footer-accent-color, var(--accent-color, #ce0606));
}

.footer-nav a:hover, .widget_nav_menu a:hover {
    color: var(--footer-accent-color, var(--accent-color, #ce0606));
    padding-left: 18px;
}

/* ===================== */
/* Contact */
/* ===================== */

.footer-contact-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-contact-row .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-accent-color, var(--accent-color, #ce0606));
}

.footer-contact-row small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 2px;
}

.footer-contact-row a,
.footer-contact-row span {
    color: var(--footer-text-color, #ffffff);
    font-size: 15px;
}

.footer-contact-row a:hover {
    color: var(--footer-accent-color, var(--accent-color, #ce0606));
}

/* ===================== */
/* Watermark */
/* ===================== */

.footer-brand-watermark {
    text-align: center;
    margin: 60px 0 40px;
}

.footer-brand-watermark h2 {
    font-size: 150px;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
}

/* ===================== */
/* Bottom */
/* ===================== */

.footer-bottom {
    border-top: 1px solid var(--footer-border-color, rgba(255, 255, 255, 0.1));
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--footer-text-color, #ffffff);
    margin: 0;
}

/* ===================== */
/* Back to Top Button */
/* ===================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color, #ce0606);
    color: var(--footer-text-color, #ffffff);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color, #002F47);
    transform: translateY(-3px);
}

/* ===================== */
/* Footer Style Variations */
/* ===================== */

/* Style 2 - Minimal (No Watermark) */
.footer-style-2.minimal-footer {
    padding: 60px 0 30px;
}

.footer-style-2 .footer-main {
    margin-bottom: 40px;
}

/* Remove watermark styles for minimal footer */
.footer-style-2 .footer-brand-watermark {
    display: none !important;
}

/* Style 3 - Dark */
.footer-style-3.dark-footer {
    background: #1a1a1a;
}

.footer-style-3 .footer-contact-row .icon {
    background: rgba(255, 255, 255, 0.05);
}

/* ===================== */
/* Responsive */
/* ===================== */

@media (max-width: 991px) {
    .footer-brand-watermark h2 {
        font-size: 65px;
    }
    
    .footer-nav,
    .footer-widget {
        margin-top: 30px;
    }
    
    .footer-style-2 .minimal-watermark h2 {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0 30px;
    }
    
    .footer-brand-logo {
        width: calc(var(--footer-brand-logo-width, 220px) * 0.8);
        max-width: calc(var(--footer-brand-logo-width, 220px) * 0.8);
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .footer-brand-watermark h2 {
        font-size: 55px;
    }
    
    .footer-style-2 .minimal-watermark h2 {
        font-size: 50px;
    }
    
    .footer-main > div {
        margin-bottom: 40px;
    }
    
    .footer-main > div:last-child {
        margin-bottom: 0;
    }
    
    .footer-brand-logo {
        width: calc(var(--footer-brand-logo-width, 220px) * 0.7);
        max-width: calc(var(--footer-brand-logo-width, 220px) * 0.7);
    }
}