@charset "UTF-8";
/* ============================================
   REVVED UP CARS - HEADER STYLES
   Custom header replacing legacy theme
   ============================================ */

/* CSS Variables */
:root {
    --revved-accent: #C5D631;
    --revved-accent-dark: #9eb029;
    --revved-dark: #1E1E1E;
    --revved-white: #ffffff;
    --revved-gray: #666666;
    --revved-light-gray: #f5f5f5;
}

/* ============================================
   HEADER BASE
   ============================================ */
.revved-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--revved-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.revved-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.revved-header-inner {
    width: 100%;
}

.revved-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.revved-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ============================================
   LOGO
   ============================================ */
.revved-logo {
    flex-shrink: 0;
}

.revved-logo a {
    display: block;
}

.revved-logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */
.revved-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.revved-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    position: relative;
}

.revved-menu > li {
    position: relative;
}

.revved-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 18px 16px;
    color: #1E1E1E;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
    position: relative;
}

/* Animated Gradient Underline */
.revved-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #C5D631 0%, #9eb029 50%, #C5D631 100%);
    background-size: 200% 100%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

/* Show underline on hover */
.revved-menu > li > a:hover::before {
    width: 100%;
    animation: gradientSlide 2s ease infinite;
}

/* Current page underline - but hide when menu is being hovered */
.revved-menu > li.current-menu-item > a::before,
.revved-menu > li.current_page_item > a::before {
    width: 100%;
    animation: gradientSlide 2s ease infinite;
}

/* Hide current underline when hovering other items */
.revved-menu:hover > li.current-menu-item > a::before,
.revved-menu:hover > li.current_page_item > a::before {
    width: 0;
    animation: none;
}

/* But show it back if hovering the current item itself */
.revved-menu > li.current-menu-item:hover > a::before,
.revved-menu > li.current_page_item:hover > a::before {
    width: 100%;
    animation: gradientSlide 2s ease infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.revved-menu > li > a:hover {
    color: #9eb029;
}

.revved-menu > li.current-menu-item > a,
.revved-menu > li.current_page_item > a {
    color: #9eb029;
}

/* Dropdown Arrow - Unicode Character */
.revved-menu > li.menu-item-has-children > a::after {
    content: "\25BC" !important;
    display: inline-block !important;
    font-size: 8px !important;
    margin-left: 6px !important;
    color: inherit !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
    line-height: 1 !important;
}

.revved-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
    color: #9eb029 !important;
}

/* ============================================
   DROPDOWN SUBMENU
   ============================================ */
.revved-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 9999;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

.revved-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.revved-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #1E1E1E;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.revved-menu .sub-menu li a:hover {
    background: #f5f5f5;
    color: #9eb029;
    padding-left: 25px;
}

/* ============================================
   HEADER SEARCH
   ============================================ */
.revved-header-search {
    flex-shrink: 0;
}

.revved-search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.revved-search-form:focus-within {
    border-color: #C5D631;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 214, 49, 0.15);
}

.revved-search-input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 13px;
    width: 180px;
    outline: none;
}

.revved-search-input::placeholder {
    color: #999;
}

.revved-search-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
    transition: color 0.25s ease;
}

.revved-search-btn:hover {
    color: #9eb029;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.revved-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1E1E1E;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #C5D631;
    color: #1E1E1E;
    padding: 10px 20px;
    z-index: 99999;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .revved-menu-toggle {
        display: flex;
    }
    
    .revved-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9998;
    }
    
    .revved-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .revved-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .revved-menu > li > a {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    
    .revved-menu > li > a::before {
        display: none;
    }
    
    .revved-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f9f9f9;
        border-radius: 0;
    }
    
    .revved-menu .sub-menu li a {
        padding: 10px 15px;
    }
    
    .revved-search-input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .revved-header-content {
        padding: 10px 0;
    }
    
    .revved-logo img {
        max-height: 35px;
    }
    
    .revved-search-input {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .revved-header-search {
        display: none;
    }
}

/* Extra specific dropdown arrow using ID */
#primary-menu > li.menu-item-has-children > a::after,
ul.revved-menu > li.menu-item-has-children > a::after {
    content: "\25BC" !important;
    display: inline-block !important;
    font-size: 8px !important;
    margin-left: 6px !important;
    color: inherit !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
}

#primary-menu > li.menu-item-has-children:hover > a::after,
ul.revved-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
    color: #9eb029 !important;
}

/* ============================================
   DROPDOWN FIX - Extra specificity
   ============================================ */
.revved-header .revved-nav .revved-menu > li {
    position: relative !important;
}

.revved-header .revved-nav .revved-menu .sub-menu,
.revved-header .revved-nav ul.revved-menu > li > ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 220px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    border-radius: 0 0 12px 12px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.25s ease !important;
    z-index: 99999 !important;
    padding: 12px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    display: block !important;
}

.revved-header .revved-nav .revved-menu > li:hover > .sub-menu,
.revved-header .revved-nav ul.revved-menu > li:hover > ul.sub-menu,
.revved-header .revved-nav .revved-menu > li.menu-item-has-children:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.revved-header .revved-nav .revved-menu .sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.revved-header .revved-nav .revved-menu .sub-menu li a {
    display: block !important;
    padding: 12px 24px !important;
    color: #1E1E1E !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.revved-header .revved-nav .revved-menu .sub-menu li a:hover {
    background: #f5f5f5 !important;
    color: #9eb029 !important;
    padding-left: 28px !important;
}

/* Dark mode dropdown */
[data-theme="dark"] .revved-header .revved-nav .revved-menu .sub-menu {
    background: #2a2a2a !important;
    border-color: #3a3a3a !important;
}

[data-theme="dark"] .revved-header .revved-nav .revved-menu .sub-menu li a {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .revved-header .revved-nav .revved-menu .sub-menu li a:hover {
    background: #333333 !important;
    color: #C5D631 !important;
}

/* Dropdown arrow indicator */
.revved-header .revved-nav .revved-menu > li.menu-item-has-children > a::after {
    content: "" !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 5px solid currentColor !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease !important;
}

.revved-header .revved-nav .revved-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
}

/* Hamburger to X Animation */
.revved-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.revved-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.revved-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   ADMIN BAR SEARCH FIX
   Hide the intrusive admin bar search button
   ============================================ */
#wpadminbar .adminbar-button,
#wpadminbar input.adminbar-button,
#wpadminbar #adminbar-search .adminbar-button {
    display: none !important;
}

/* Hide admin bar search form completely on frontend */
#wpadminbar #adminbarsearch,
#wpadminbar .ab-top-secondary #adminbarsearch {
    display: none !important;
}

/* ============================================
   HEADER SEARCH - CLEAN MODERN STYLE
   ============================================ */
.revved-header-search {
    position: relative;
    flex-shrink: 0;
}

.revved-search-form {
    display: flex;
    align-items: center;
    background: rgba(26, 31, 26, 0.8);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 214, 49, 0.2);
    transition: all 0.25s ease;
}

.revved-search-form:focus-within {
    border-color: #C5D631;
    background: rgba(26, 31, 26, 0.95);
    box-shadow: 0 0 0 3px rgba(197, 214, 49, 0.15);
}

.revved-search-input {
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 13px;
    width: 160px;
    outline: none;
    color: #fff;
}

.revved-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.revved-search-btn {
    background: #C5D631;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    color: #1a1f1a;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.revved-search-btn:hover {
    background: #d4e342;
}

.revved-search-btn i,
.revved-search-btn svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .revved-search-input {
        -webkit-appearance: none;
        appearance: none;
    }
    
    .revved-search-input::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .revved-search-input {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .revved-header-search {
        display: none;
    }
}
