/* SHARED HEADER AND FOOTER STYLES */

/* HEADER */
header {
    background: #E8E8E5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border: none;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header.scrolled {
    top: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    border-radius: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    gap: 50px;
    max-width: 1320px;
    margin: 0 auto;
}

.header-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo img {
    height: 48px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 48px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    color: #0B0B0B;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.header-nav a:hover {
    color: #E36A13;
}

.dropdown-arrow {
    display: inline-block;
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.nav-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    min-width: 220px;
    border-radius: 6px;
    padding: 12px 0;
    margin-top: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-item:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 10px 18px;
    color: #0B0B0B;
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.submenu a:hover {
    background-color: rgba(227, 106, 19, 0.15);
    color: #E36A13;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-login {
    color: #0B0B0B;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.header-login:hover {
    color: #E36A13;
}

.header-search {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.header-search:hover {
    opacity: 0.7;
}

.header-search svg {
    stroke: #0B0B0B;
    width: 20px;
    height: 20px;
}

/* Menu burger */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.menu-burger span {
    width: 24px;
    height: 2.5px;
    background-color: #0B0B0B;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.menu-burger.active span:nth-child(2) {
    opacity: 0;
}

.menu-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* FOOTER */
footer {
    background-color: #0B0B0B;
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
}

footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #E36A13;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-section ul li a:hover {
    color: #E36A13;
}

.footer-logo {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #E36A13;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social a:hover {
    background-color: #0F6B32;
    transform: translateY(-3px);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    max-width: 1320px;
    margin: 0 auto;
}

footer .footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

footer .footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

footer .footer-links a:hover {
    color: #E36A13;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    header .container {
        gap: 30px;
    }

    .header-nav {
        gap: 30px;
    }

    footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
    }

    header.scrolled {
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }

    header .container {
        padding: 10px 20px;
        gap: 20px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: white;
        padding: 20px;
        margin-top: 10px;
    }

    .header-nav.active {
        display: flex;
    }

    .menu-burger {
        display: flex;
    }

    .submenu {
        position: static;
        display: none;
        background: #F4F4F4;
        border: none;
        box-shadow: none;
        padding: 10px 0;
        margin: 10px 0 0 0;
    }

    .nav-item:hover .submenu {
        display: none;
    }

    .nav-item.active .submenu {
        display: block;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
    }

    footer .footer-bottom {
        padding: 20px 20px;
    }

    footer .footer-links {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .header-nav {
        padding: 15px;
    }

    .header-nav a {
        font-size: 13px;
    }

    footer .footer-content {
        padding: 0 20px 30px;
        gap: 30px;
    }

    footer .footer-bottom {
        padding: 15px 20px;
    }
}
