/* Footer Styles */
.site-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}

/* Single 6% padding for all footer content (align with page sections) */
.site-footer .footer-cta,
.site-footer .footer-main,
.site-footer .footer-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 1. CTA Section */
.footer-cta-wrapper {
    background-color: #050a1c;
    padding: 70px 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-cta-content {
    max-width: 700px;
}

.site-footer .footer-cta .cta-title {
    font-size: 44px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.site-footer .footer-cta .cta-subtitle {
    font-size: 16px;
    color: #99a1af;
    letter-spacing: -0.3px;
}

.request-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 14px;
    padding: 12px 30px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 16px;
    height: 62px;
}

.request-quote-btn:hover {
    background-color: #ffffff;
    color: #050a1c;
}

.request-quote-btn .btn-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.request-quote-btn:hover .btn-icon {
    filter: invert(1);
    transform: translateX(5px);
}

/* 2. Main Content (Links) */
.footer-main-wrapper {
    background-color: #050a1c;
    padding: 60px 6% 80px;
    box-sizing: border-box;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.4px;
}

.footer-list, .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-list a {
    color: #99a1af;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
    display: block;
}

.footer-list a:hover {
    color: #ff6900;
}

.list-category {
    color: #99a1af;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.mt-2 {
    margin-top: 24px;
}

/* Contact List Specifics */
.footer-contact-list li {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 14px;
    color: #99a1af;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}

.contact-value:hover {
    color: #ff6900;
}

/* Brand Column */
.footer-brand-col {
    flex: 1.2;
}

.footer-logo-img {
    height: 24px;
    margin-bottom: 24px;
}

.brand-desc {
    color: #99a1af;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 250px;
}

.social-section h4 {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 16px;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

.social-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon-bg img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.social-img {
    height: 36px;
    width: auto;
}

/* 3. Locations Grid */
.footer-locations-wrapper {
    background-color: #050a1c;
    padding: 0 6% 60px;
    box-sizing: border-box;
}

.footer-locations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background-color: #02071a;
    border: 1px solid #191919;
    /* Use same max-width and centering as .footer-cta / .footer-main so the box aligns on wide screens */
    max-width: var(--container-width, 1440px);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.location-card {
    padding: 40px 30px;
    border-right: 1px solid #1e2939;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.location-card:last-child {
    border-right: none;
}

.flag {
    margin-bottom: 12px;
    line-height: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag img {
    height: 45px; /* Base height for all flags */
    width: auto;
    max-width: 100%;
}

/* Specific adjustment for UAE flag if needed, or rely on base height */
/* Assuming the UAE flag image itself is larger/different aspect ratio */
/* We can constrain max-height or width specifically if it looks too big */
.flag img[src*="uae"] {
    height: 35px; /* Reduced further from 45px */
}

.location-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #ff6900;
}

.text-orange {
    color: #ff6900;
}

.font-normal {
    font-weight: 400;
}

.location-address {
    color: #d1d5dc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    flex-grow: 1;
}

.location-phone {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

/* 4. Footer Bottom */
.footer-bottom-wrapper {
    background-color: #000000;
    border-top: 1px solid #1e2939;
    padding: 30px 6%;
    box-sizing: border-box;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.copyright {
    color: #99a1af;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: #99a1af;
    font-size: 14px;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #ff6900;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .location-card {
        border-right: 1px solid #1e2939;
        border-bottom: 1px solid #1e2939;
    }

    .location-card:nth-child(2) {
        border-right: none;
    }

    .location-card:nth-child(3) {
        border-bottom: none;
    }
    
    .location-card:nth-child(4) {
        border-right: none;
        border-bottom: none;
    }
}

@media (max-width: 992px) {
    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-main {
        gap: 30px;
    }
    
    .footer-col {
        min-width: 45%;
    }
}

@media (max-width: 768px) {
    .site-footer .footer-cta .cta-title {
        font-size: 32px;
    }
    
    .footer-col {
        min-width: 100%;
    }

    .footer-locations {
        grid-template-columns: minmax(0, 1fr);
    }

    .location-card {
        border-right: none;
        border-bottom: 1px solid #1e2939;
    }

    .location-card:last-child {
        border-bottom: none;
    }

    .location-card:nth-child(4) {
        border-top: 1px solid #1e2939;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}