/* Global Header & Footer Styles for SyncLync */

/* ==========================================================================
   Header Styles
   ========================================================================== */
.header-synclync {
    background-color: transparent;
    padding: 0;
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none;
}

.header-synclync .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--sync-white, #ffffff);
    padding: 15px 40px;
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--sync-navy, #042E3D);
    letter-spacing: -0.5px;
}

.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 40px;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav ul li {
    position: relative;
    list-style: none;
}

.header-nav>nav>ul>li>a {
    text-decoration: none;
    color: var(--sync-navy, #042E3D);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header-nav>nav>ul>li>a:hover {
    color: var(--sync-orange, #FF6828);
}

/* Add Down Arrow for Items With Children */
.header-nav>nav>ul>li.menu-item-has-children>a::after {
    content: "\25BE";
    /* Unicode downward-pointing small triangle */
    font-size: 14px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Optional: Rotate arrow on hover */
.header-nav>nav>ul>li.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.header-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: var(--sync-white, #ffffff);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Soft dropdown shadow */
    padding: 10px 0;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Show Dropdown on Hover */
.header-nav>nav>ul>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual Dropdown Links */
.header-nav .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--sync-navy, #042E3D);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav .sub-menu li a:hover {
    background-color: #f7f9fa;
    /* Very subtle hover grey */
    color: var(--sync-orange, #FF6828);
}

.header-cta .btn-orange {
    background-color: var(--sync-orange, #FF6828);
    color: var(--sync-white, #ffffff);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.header-cta .btn-orange:hover {
    background-color: #e55a1d;
}

/* Mobile Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--sync-navy, #042E3D);
    transition: transform 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer-synclync {
    background-color: var(--sync-navy, #042E3D);
    color: var(--sync-white, #ffffff);
    padding: 60px 0 30px 0;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-menus {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.menu-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--sync-white, #ffffff);
    border-bottom: 2px solid var(--sync-orange, #FF6828);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-menu-col ul,
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-col li,
.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-col a,
.footer-menu-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu-col a:hover,
.footer-menu-list a:hover {
    color: var(--sync-white, #ffffff);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--sync-orange, #FF6828);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* Responsive Header & Footer */
@media screen and (max-width: 991px) {
    .hidden-mobile {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hide Navigation by default on Mobile */
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--sync-white, #ffffff);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    /* Show Navigation when toggled via JS */
    .header-nav.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .header-nav>nav>ul>li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header-nav>nav>ul>li>a {
        padding: 15px 0;
        justify-content: center;
    }

    /* Adjust Mobile Dropdowns */
    .header-nav .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #f7f9fa;
        display: none;
        /* Handled by hover or separate click on mobile */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .header-nav>nav>ul>li:hover>.sub-menu {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-menus {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .footer-menus {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}