/* =========================================
   HEADER & CONTACT INFO
========================================= */
:root {
    --orange: #ff6b00;
    --text-white: #ffffff;
}

.top-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px 8%;
    gap: 16px;
    z-index: 100;
}

.top-header .header-logo {
    position: absolute;
    left: 11%;
    top: 13px;
    width: 180px;
    height: auto;
    z-index: 1000;
    display: block;
}

@media (max-width: 992px) {
    .top-header .header-logo {
        position: relative;
        left: auto;
        top: auto;
        width: 160px;
        height: auto;
    }
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 10px;
    padding-right: 30px;
    letter-spacing: 1px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 260px);
}
.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   BURGER MENU BUTTON
========================================= */
.menu-btn {
    width: 35px;
    height: 40px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
    position: relative;
    flex-shrink: 0;
}

.burger-line {
    width: 20px;
    height: 2px;
    background-color: var(--orange);
    transition: 0.3s;
}

.menu-btn.active .burger-line:nth-child(1) {
    transform: translateY(7.2px) rotate(45deg);
}
.menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}
.menu-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7.2px) rotate(-45deg);
}

/* =========================================
   DROPDOWN MENU
========================================= */
.nav-dropdown {
    position: absolute;
    top: 60px; /* Below header */
    right: 8%; /* Adjust to align with menu button */
    width: min(250px, 92vw);
    background-color: #1a1a1a;
    border-radius: 4px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 992px) {
    .nav-dropdown {
        top: 65px;
        right: 5%;
    }
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-dropdown-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown-list li:last-child {
    border-bottom: none;
}

.nav-dropdown-list a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown-list a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--orange);
}

/* =========================================
   SIDE SOCIALS
========================================= */
.side-socials {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-left: 1px solid #777;
    border-top: 1px solid #777;
    border-bottom: 1px solid #777;
}

.icon-box {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e67e22;
    border-bottom: 1px solid #777;
    text-decoration: none;
    transition: 0.3s;
}
.icon-box:last-child {
    border-bottom: none;
}
.icon-box svg {
    width: 22px;
    height: 22px;
}
.icon-box:hover {
    background: #f0f0f0;
    color: #d35400;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .top-header {
        position: relative;
        width: 100%;
        padding: 20px 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 999;
        gap: 12px;
    }

    .top-header .header-logo {
        width: clamp(120px, 38vw, 160px);
    }

    .menu-btn {
        width: 45px;
        height: 45px;
        padding: 8px;
        border: 1px solid var(--orange);
    }

    .contact-info {
        display: none;
        flex-direction: column;
        gap: 15px;
        background-color: #151515;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        border-top: 1px solid #444;
        z-index: 100;
    }
    .contact-info.show-contact {
        display: flex;
    }

    .nav-dropdown {
        right: 5%;
        left: 5%;
        width: auto;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .side-socials {
        top: 45%;
        right: 0;
        border: none;
        z-index: 50;
    }
    .icon-box {
        width: 45px;
        height: 45px;
        border: 1px solid #444;
        border-right: none;
        margin-bottom: -1px;
        background-color: #fff;
        color: var(--orange);
    }

    /* Mobile overlay adjustments */
    .nav-right {
        display: none;
    }
    .nav-center {
        padding: 0;
    }
    .nav-left {
        width: 180px;
    }
    .nav-services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .nav-bg-text {
        font-size: 4rem;
    }
    .nav-body {
        padding: 80px 6% 80px;
        align-items: flex-start;
        gap: 30px;
        flex-direction: column;
        overflow-y: auto;
    }
    .nav-left {
        height: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 15px 5%;
    }
    .menu-btn {
        width: 40px;
        height: 40px;
    }
    .nav-overlay-inner {
        inset: 8px;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .top-header {
        padding: 8px 5%;
    }

    .top-header .header-logo {
        left: 5%;
        width: 155px;
    }

    .contact-info {
        gap: 12px;
        font-size: 9px;
        padding-right: 14px;
        max-width: calc(100% - 210px);
    }
}

/* show_All_Cars */

@keyframes fadeInSmooth {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-active {
    animation: fadeInSmooth 0.6s ease-out forwards;
}
