/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 0 10px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* ==========================================================================
   Brand Widget
   ========================================================================== */

.brand-widget {
    max-width: 350px;
}

.brand-header {
    margin-bottom: 16px;
}

.brand-header .custom-logo {
    max-height: 50px;
    width: auto;
}

.brand-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand-title:hover {
    color: #e06109;
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #e06109;
    color: #ffffff;
    transform: translateY(-3px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Footer Widgets
   ========================================================================== */

.footer-widget {
    text-align: left;
}

.footer-widget h3 {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    text-align: left;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e06109;
}

/* ==========================================================================
   Menu Links (Quick Links & Support)
   ========================================================================== */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-menu li {
    margin-bottom: 16px;
    text-align: left;
}

.footer-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 0;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.35s ease;
    text-align: left;
}

/* Arrow Icon */
.footer-menu a::before {
    content: "➜";
    position: absolute;
    left: -20px;
    color: #e06109;
    opacity: 0;
    transition: all 0.35s ease;
}

/* Hover State */
.footer-menu a:hover {
    color: #ffffff;
    padding-left: 22px;
}

.footer-menu a:hover::before {
    left: 0;
    opacity: 1;
}

/* ==========================================================================
   Contact Widget
   ========================================================================== */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 0.95rem;
    text-align: left;
}

.contact-icon {
    min-width: 20px;
    width: 20px;
    height: 20px;
    color: #e06109;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    text-align: left;
}

.contact-text .sub-text {
    font-size: 0.8rem;
    color: #64748b;
}

/* ==========================================================================
   Footer Bottom
   ========================================================================== */

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
}

.footer-bottom .footer-container {
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 1. Prepare the link container */
.copyright-link {
    position: relative;
    color: #e06109;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-link:hover {
    color: #173582;
}

/* 2. Create the Tooltip Bubble */
.copyright-link::after {
    content: attr(data-tooltip); /* Pulls the name from the HTML data attribute */
    position: absolute;
    bottom: 130%; /* Sits right above the link */
    left: 50%;
    transform: translateX(-50%) translateY(8px); /* Slightly lower before hover for a smooth slide-up effect */
    background-color: #173582; /* Matches your blue hover color */
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99;
}

/* 3. Create the tiny bottom arrow on the bubble */
.copyright-link::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    border-width: 6px;
    border-style: solid;
    border-color: #173582 transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99;
}

/* 4. Trigger the fade-in and slide-up on hover */
.copyright-link:hover::after,
.copyright-link:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .brand-widget {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .brand-widget {
        max-width: 100%;
    }
    
    .footer-widget {
        text-align: left;
    }
    
    .footer-widget h3 {
        text-align: left;
    }
    
    .footer-widget h3::after {
        left: 0;
        transform: none;
    }
    
    .contact-list li {
        justify-content: flex-start;
    }
    
    .footer-menu a {
        justify-content: flex-start;
    }
    
    .copyright {
        text-align: center;
    }
}