/* ============================================================
   Shared Header — Compare Removal Companies
   ----------------------------------------------------------------
   Loaded by both WordPress and Laravel. Single source of truth
   for header visuals. Edit this file to change header look.
   ============================================================ */

.rcr-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    position: relative;
    z-index: 100;
}

.rcr-header-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* --- Brand lockup --- */
.rcr-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.rcr-header-logo {
    display: block;
    height: 70px;
    width: auto;
    max-width: 100%;
}

/* --- Mobile menu toggle (hidden on desktop) --- */
.rcr-header-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rcr-header-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #3D4C6A;
    border-radius: 1px;
}

/* --- Nav --- */
.rcr-header-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcr-header-nav-item {
    position: relative;
}

.rcr-header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    color: #5A6068;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.rcr-header-nav-link:hover,
.rcr-header-nav-link:focus {
    color: #1A1F2C;
    background: #F8F9FB;
}

.rcr-header-nav-caret {
    font-size: 9px;
    color: #8B8F96;
    line-height: 1;
}

/* --- Submenu (dropdown) --- */
.rcr-header-nav-submenu {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 200;
}

.rcr-header-nav-item.has-children:hover > .rcr-header-nav-submenu,
.rcr-header-nav-item.has-children:focus-within > .rcr-header-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rcr-header-nav-submenu li a {
    display: block;
    padding: 10px 14px;
    color: #1A1F2C;
    text-decoration: none;
    font-size: 14px;
}

.rcr-header-nav-submenu li a:hover,
.rcr-header-nav-submenu li a:focus {
    background: #F8F9FB;
}

/* ============================================================
   Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .rcr-header-inner {
        padding: 10px 16px;
    }

    .rcr-header-logo {
        height: 56px;
    }

    .rcr-header-toggle {
        display: flex;
    }

    .rcr-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 8px 16px 16px;
    }

    .rcr-header-nav.is-open {
        display: block;
    }

    .rcr-header-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .rcr-header-nav-link {
        padding: 12px 14px;
        width: 100%;
        justify-content: space-between;
    }

    .rcr-header-nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid #E5E7EB;
        margin: 4px 0 8px 14px;
        border-radius: 0;
    }
}

/* ============================================================
   Reduce gap between header and page content
   ============================================================ */
.separate-containers .inside-article {
    padding-top: 24px !important;
}

@media (max-width: 768px) {
    .separate-containers .inside-article {
        padding-top: 16px !important;
    }
}
