/* Footer Styles */

/* Scroll-to-top button */
.scroll-to-top-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-to-top-btn:hover {
    background-color: #00A4EB;
    border-color: #00A4EB;
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 164, 235, 0.35);
}

.scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transition: transform 0.25s ease;
}

.scroll-to-top-btn:hover svg {
    transform: translateY(-2px);
}

/* 1. Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    position: relative;
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.footer-column ul li a:hover {
    color: #00A4EB;
}

/* Footer Services Submenu Hover Flyout */
.footer-services-col {
    position: relative;
}

.footer-has-submenu {
    position: relative;
}

.footer-main-service {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.footer-sub-arrow {
    stroke: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s ease, stroke 0.25s ease;
    flex-shrink: 0;
    margin-left: 6px;
}

.footer-has-submenu:hover > .footer-main-service {
    color: #00A4EB;
}

.footer-has-submenu:hover > .footer-main-service .footer-sub-arrow {
    stroke: #00A4EB;
    transform: translateX(4px);
}

/* Desktop Flyout Submenu */
@media (min-width: 1025px) {
    .footer-submenu {
        position: absolute;
        left: 100%;
        top: -10px;
        min-width: 250px;
        background: #0d1e33;
        border: 1px solid rgba(0, 164, 235, 0.35);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
        padding: 14px 18px !important;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 9999;
        pointer-events: none;
    }

    .footer-has-submenu:hover .footer-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    .footer-submenu li {
        margin-bottom: 10px !important;
    }

    .footer-submenu li:last-child {
        margin-bottom: 0 !important;
    }

    .footer-submenu li a {
        font-size: 14px !important;
        color: #d1d8e0 !important;
        white-space: nowrap;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .footer-submenu li a:hover {
        color: #00A4EB !important;
        transform: translateX(4px);
    }
}

/* Mobile Submenu accordion */
@media (max-width: 1024px) {
    .footer-submenu {
        display: none;
        padding: 8px 0 8px 16px !important;
        border-left: 2px solid rgba(0, 164, 235, 0.4);
        margin: 8px 0 12px 0;
    }

    .footer-has-submenu.sub-open .footer-submenu {
        display: block !important;
    }

    .footer-has-submenu.sub-open .footer-sub-arrow {
        transform: rotate(90deg);
        stroke: #00A4EB;
    }

    .footer-submenu li a {
        font-size: 14px !important;
        color: #cccccc !important;
        padding: 4px 0;
    }
}

/* 2. Dividers & Office Section */
.footer-divider-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.footer-divider-line.thin {
    margin: 20px 0;
}

.footer-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-offices-two {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-offices-two .footer-office-card {
    width: 100%;
}

.office-card h5,
.footer-office-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-office-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-office-col h4 {
    margin-bottom: 20px;
}

.office-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 300;
}

.office-type img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.office-address {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 300;
    opacity: 0.9;
}

.office-phone {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.office-phone:hover {
    color: #00A4EB;
}

.see-more-offices {
    text-align: right;
    margin-top: 10px;
}

.see-more-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.see-more-link:hover {
    gap: 12px;
}

/* 3. Contact Row — title, phone, email all on one line */
.footer-contact-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    margin-bottom: 40px;
    position: relative;
}

.footer-contact-row .footer-section-title {
    margin-bottom: 0;
    white-space: nowrap;
}

.contact-methods {
    display: flex;
    align-items: center;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #00A4EB;
}

.contact-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.footer-asp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.footer-asp-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-asp-title {
    color: #0088cc !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
}

.footer-asp-img {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.footer-iso-badges-right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.footer-iso-img {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    background-color: #ffffff;
    padding: 2px;
}

/* 4. Bottom Bar */
#main-footer {
    background: linear-gradient(to bottom, #0F1D2C 0%, #0B1622 40%, #070E17 100%);
    color: #ffffff;
}

.footer-bottom-strip {
    background-color: #060D15;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    margin-top: 40px;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.bottom-left-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-weight: 400;
}

.bottom-left-info a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Legal Links */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
    color: #00A4EB;
    text-decoration: none;
}

.footer-legal-links .legal-divider {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Social Links */
.footer-social-links,
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-links a,
.social-links a {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
    padding: 0;
    box-sizing: border-box;
}

.footer-social-links a:hover,
.social-links a:hover {
    background-color: #00A4EB;
    border-color: #00A4EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 164, 235, 0.35);
}

.footer-social-links a img,
.social-links a img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    display: block;
}

.footer-social-links a:hover img,
.social-links a:hover img {
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .offices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-office-col {
        grid-column: span 1 !important;
    }
}

@media (max-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 30px;
        padding-left: 0;
    }
    .footer-office-col {
        grid-column: 1 !important;
    }
    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .footer-column h4 {
        margin: 0;
        padding: 20px 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
    }
    .footer-column h4::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 1px solid #fff;
        border-bottom: 1px solid #fff;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-right: 5px;
    }
    .footer-column.active h4::after {
        transform: rotate(-135deg);
    }
    .footer-column ul {
        display: none;
        padding-bottom: 20px;
        text-align: left;
    }
    .footer-column ul li {
        text-align: left;
    }
    .footer-column ul li a {
        text-align: left;
    }
    .footer-column.active ul {
        display: block;
    }
    .footer-offices-two {
        display: none;
        padding-bottom: 20px;
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }
    .footer-column.active .footer-offices-two {
        display: flex;
    }
}

@media (max-width: 810px) {
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .office-card h5 {
        font-size: 15px;
    }
    .office-type {
        font-size: 13px;
    }
    .office-address,
    .office-phone {
        font-size: 13px;
    }
    .footer-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    .footer-asp-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-asp-left {
        flex-wrap: wrap;
        gap: 16px;
    }
    .footer-iso-badges-right {
        margin-left: 0;
        flex-wrap: wrap;
        gap: 16px;
    }
    .footer-contact-row .footer-section-title {
        white-space: normal;
    }
    .contact-methods {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .contact-item {
        font-size: 14px;
        font-weight: 400;
        gap: 8px;
    }
    .contact-item img {
        width: 16px;
        height: 16px;
    }
    .footer-divider-line {
        display: none !important;
    }
    .scroll-to-top-btn {
        position: static;
        transform: none;
        margin-top: 10px;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
    }
    .scroll-to-top-btn:hover {
        transform: translateY(-2px);
    }
    .footer-bottom-bar {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-bottom-right {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .office-card h5 {
        font-size: 14px;
    }
    .office-type {
        font-size: 13px;
        flex-wrap: wrap;
    }
    .office-address,
    .office-phone {
        font-size: 13px;
    }
}

/* Consultation Form & Send Message Button Styles in Footer */
.book-consultation-section .form-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.book-consultation-section .submit-btn {
    flex-shrink: 0;
    width: auto !important;
    min-width: 170px !important;
    background: #00A4EB !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 34px !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 164, 235, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    letter-spacing: 0.3px;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.book-consultation-section .submit-btn:hover {
    background: #0088c6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 164, 235, 0.45) !important;
    color: #ffffff !important;
}

.book-consultation-section .submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 164, 235, 0.25) !important;
}

.book-consultation-section .privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555555;
    white-space: nowrap;
}

.book-consultation-section .nda-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.book-consultation-section .nda-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #00A4EB;
    cursor: pointer;
}

.book-consultation-section .nda-checkbox label {
    font-size: 14px;
    color: #444444;
    cursor: pointer;
    line-height: 1.4;
}

.book-consultation-section .whatsapp-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 20px;
    background: #f2f2f2;
    font-size: 14px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.book-consultation-section .whatsapp-contact-link:hover {
    background: #e6e6e6;
    color: #000000;
}

