/* ========== HEADER STYLES ==========*/
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--off-white);
    backdrop-filter: blur(20px);
    padding: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

nav {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 70px;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-decoration: none;
    order: 1;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.logo:hover {
    color: var(--primary-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    order: 3;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    order: 2;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.75rem 1rem;
}

nav ul li a:hover {
    color: var(--primary-orange);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--dark-orange));
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ========== DROPDOWN STYLES - DESKTOP ==========*/
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -750px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0.75rem;
    width: 900px;
    max-width: calc(100vw - 3rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    grid-column: 1 / -1;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-footer {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-footer a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.92rem;
}

.dropdown-footer a:hover {
    background: rgba(255, 140, 66, 0.08);
    color: var(--primary-orange);
}

.product-col {
    padding: 0;
}

.dropdown-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.dropdown-product:hover {
    background: rgba(255, 140, 66, 0.08);
    color: var(--primary-orange);
}

.product-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 8px;
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.product-info {
    flex: 1;
    width: 100%;
}

.product-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

/* ========== END DROPDOWN STYLES ==========*/

/* ========== FOOTER STYLES ==========*/
footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1a1a);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    border-top: 2px solid var(--primary-orange);
    width: 100vw; /* Full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
}

.footer-grid h4 {
    font-size: 1.1rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid ul li {
    margin-bottom: 0.8rem;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-grid a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-3px);
}

footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

footer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-orange);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ========== MOBILE RESPONSIVE HEADER/FOOTER ==========*/
@media (max-width: 1024px) {
    .dropdown-menu {
        width: 700px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        height: 60px;
        padding: 0 1rem;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--primary-orange);
    }

    .logo-old {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 0;
        align-items: flex-start;
    }

    nav ul.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(255, 140, 66, 0.05);
        border-radius: 0;
        width: 100%;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 0;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-header {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }

    .product-col {
        width: 100%;
    }

    .dropdown-product {
        flex-direction: row;
        text-align: left;
        padding: 0.75rem 1.5rem;
        gap: 1rem;
        border-radius: 0;
    }

    .product-icon {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
        font-size: 0.95rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-desc {
        font-size: 0.75rem;
    }

    .dropdown-footer {
        padding: 0.5rem 0;
    }

    .dropdown-footer a {
        padding: 0.75rem 1.5rem;
        border: none;
        border-top: 1px solid rgba(255, 140, 66, 0.1);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    nav {
        height: 56px;
        padding: 0 0.75rem;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--primary-orange);
    }

    .logo-old {
        font-size: 1rem;
    }

    nav ul {
        top: 56px;
    }

    nav ul li a {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .dropdown-product {
        padding: 0.6rem 1.25rem;
        gap: 0.75rem;
    }

    .product-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-desc {
        font-size: 0.7rem;
    }

    .dropdown-header {
        padding: 0.6rem 1.25rem;
        font-size: 0.75rem;
    }

    .dropdown-footer a {
        padding: 0.6rem 1.25rem;
    }
}