/* ================================================
   PRESTIGE GROWTH MEDIA - HEADER CSS
   ================================================ */

/* ---- Variables ---- */
:root {
    --red: #e31e24;
    --red-dark: #b81419;
    --black: #111111;
    --dark: #1a1a1a;
    --white: #ffffff;
    --header-height: 80px;
}

/* ---- Header Base ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

/* ---- Logo ---- */
.header-logo .logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* ---- Navigation ---- */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--red);
}

.nav-list > li > a.active {
    border-bottom: 2px solid var(--red);
    border-radius: 0;
}

.nav-list > li > a i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.nav-list > li.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    min-width: 260px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px 0;
    list-style: none;
    margin: 0;
    z-index: 100;
    border-top: 3px solid var(--red);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu li a i {
    width: 20px;
    color: var(--red);
    font-size: 13px;
}

.dropdown-menu li a:hover {
    background: #fff5f5;
    color: var(--red);
    padding-left: 25px;
}

/* ---- CTA Button ---- */
.header-cta {
    flex-shrink: 0;
}

/* ---- Mobile Toggle ---- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.3s ease;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid #f0f0f0;
    /* padding: 10px 0 20px; */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 600px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 20px;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.3s ease;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > a.active {
    color: var(--red);
}

.mobile-has-dropdown > a i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.mobile-has-dropdown.open > a i {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    list-style: none;
    padding: 5px 0 10px 15px;
    margin: 0;
}

.mobile-dropdown.open {
    display: block;
}

.mobile-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-dropdown li a i {
    color: var(--red);
    width: 18px;
    font-size: 13px;
}

.mobile-dropdown li a:hover {
    color: var(--red);
}

.mobile-cta {
    display: block !important;
    text-align: center;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .header-nav,
    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 576px) {
    .header-logo .logo-img {
        height: 44px;
    }
    :root {
        --header-height: 65px;
    }
}
