/*
Theme Name: Avada Child
Description: Child theme for Avada - Planet Motors
Author: Spider Tech Consulting LLC
Template: Avada
Version: 1.0.0
Text Domain: Avada
*/

/* ============================================
   PLANET MOTORS — HEADER STYLES
   Design System: Light, clean, modern automotive
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --pm-navy: #0f172a;
    --pm-teal: #06b6d4;
    --pm-white: #ffffff;
    --pm-slate: #334155;
    --pm-gray: #94a3b8;
    --pm-ice: #f1f5f9;
    --pm-green: #10b981;
    --pm-amber: #f59e0b;
    --pm-coral: #f43f5e;
}

/* --- Utility Bar (Top Bar) --- */
.pm-utility-bar {
    background: var(--pm-navy);
    padding: 6px 0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pm-utility-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pm-utility-bar a:hover {
    color: var(--pm-teal);
}

.pm-utility-bar .pm-util-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pm-utility-bar .pm-util-separator {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.2);
    margin: 0 14px;
    vertical-align: middle;
}

.pm-utility-bar .pm-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    margin-left: 6px;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}

.pm-utility-bar .pm-social-links a:hover {
    background: var(--pm-teal);
    color: #fff;
}

/* --- Main Header Bar --- */
.pm-main-header {
    background: var(--pm-white);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    z-index: 100;
}

.pm-main-header .pm-logo img {
    max-height: 52px;
    width: auto;
    transition: opacity 0.2s ease;
}

.pm-main-header .pm-logo img:hover {
    opacity: 0.85;
}

/* --- Navigation Styling --- */
.pm-main-header .fusion-menu > ul > li > a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pm-slate) !important;
    padding: 18px 16px !important;
    transition: color 0.2s ease !important;
}

.pm-main-header .fusion-menu > ul > li > a:hover,
.pm-main-header .fusion-menu > ul > li.current-menu-item > a {
    color: var(--pm-teal) !important;
}

/* Active indicator line */
.pm-main-header .fusion-menu > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--pm-teal);
    transition: transform 0.25s ease;
}

.pm-main-header .fusion-menu > ul > li > a:hover::after,
.pm-main-header .fusion-menu > ul > li.current-menu-item > a::after {
    transform: translateX(-50%) scaleX(1);
}

/* --- Dropdown Menus --- */
.pm-main-header .fusion-menu ul.sub-menu {
    background: var(--pm-white) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    padding: 8px 0 !important;
    min-width: 220px !important;
    margin-top: 0 !important;
}

.pm-main-header .fusion-menu ul.sub-menu li a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: var(--pm-slate) !important;
    padding: 10px 20px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.pm-main-header .fusion-menu ul.sub-menu li a:hover {
    background: var(--pm-ice) !important;
    color: var(--pm-teal) !important;
}

/* --- CTA Button in Header --- */
.pm-header-cta .fusion-button {
    background: var(--pm-green) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(16,185,129,0.25);
    transition: all 0.2s ease !important;
}

.pm-header-cta .fusion-button:hover {
    background: #0ea271 !important;
    box-shadow: 0 4px 12px rgba(16,185,129,0.35) !important;
    transform: translateY(-1px);
}

/* --- Phone Number in Header --- */
.pm-header-phone a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--pm-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.pm-header-phone a:hover {
    color: var(--pm-teal);
}

.pm-header-phone .fa-phone {
    font-size: 14px;
    color: var(--pm-teal);
}

/* --- Sticky Header --- */
.fusion-header-wrapper.fusion-is-sticky .pm-main-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Mega Menu Styles --- */
.pm-mega-menu-makes {
    padding: 24px 20px;
}

.pm-mega-menu-makes .pm-make-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.pm-mega-menu-makes .pm-make-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    border-radius: 10px;
    background: var(--pm-ice);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pm-mega-menu-makes .pm-make-card:hover {
    background: var(--pm-white);
    border-color: var(--pm-teal);
    box-shadow: 0 4px 12px rgba(6,182,212,0.12);
    transform: translateY(-2px);
}

.pm-mega-menu-makes .pm-make-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: grayscale(30%);
    transition: filter 0.2s ease;
}

.pm-mega-menu-makes .pm-make-card:hover img {
    filter: grayscale(0%);
}

.pm-mega-menu-makes .pm-make-card .pm-make-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--pm-slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pm-mega-menu-makes .pm-make-card .pm-make-count {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: var(--pm-gray);
    margin-top: 2px;
}

.pm-mega-menu-makes .pm-make-view-all {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--pm-teal);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--pm-ice);
    padding-top: 16px;
    transition: color 0.2s ease;
}

.pm-mega-menu-makes .pm-make-view-all:hover {
    color: var(--pm-navy);
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
    .pm-mega-menu-makes .pm-make-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .pm-utility-bar .pm-hours {
        display: none;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 640px) {
    .pm-utility-bar {
        padding: 4px 0;
        font-size: 12px;
    }

    .pm-utility-bar .pm-social-links,
    .pm-utility-bar .pm-address {
        display: none;
    }

    .pm-mega-menu-makes .pm-make-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .pm-mega-menu-makes .pm-make-card {
        padding: 10px 4px;
    }

    .pm-mega-menu-makes .pm-make-card img {
        width: 36px;
        height: 36px;
    }
}
