/* =========================================================
   RP SKY POOL HEADER
   Compact Corporate Header
========================================================= */

:root {
    --rp-navy: #061b33;
    --rp-blue: #2457a6;
    --rp-gold: #d09a3a;
    --rp-white: #ffffff;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.rp-header-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}


/* =========================================================
   TOP BAR
========================================================= */

.rp-topbar {
    height: 48px;
    background: var(--rp-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.rp-topbar .rp-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.rp-location,
.rp-contact {
    display: flex;
    align-items: center;
}

.rp-location {
    gap: 28px;
}

.rp-contact {
    gap: 24px;
}

.rp-topbar a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.rp-topbar a:hover {
    opacity: 0.75;
}

.rp-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rp-social a {
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.rp-main-header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.rp-nav-wrapper {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}


/* =========================================================
   LOGO
========================================================= */

.rp-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.rp-logo img {
    display: block;
    width: 155px;
    height: auto;
    max-height: 76px;
    object-fit: contain;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.rp-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    height: 100%;
    margin-left: auto;
}

.rp-navigation > a,
.rp-dropdown-link {
    position: relative;
    height: 108px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    color: #071d38;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}


/* Hover */

.rp-navigation > a:hover,
.rp-dropdown-link:hover {
    color: var(--rp-blue);
}


/* Active */

.rp-navigation > a.active {
    color: var(--rp-blue);
}


/* Gold active line */

.rp-navigation > a.active::after,
.rp-dropdown-link.active::after {
    content: "";
    position: absolute;
    left: 19px;
    right: 19px;
    bottom: 0;
    height: 3px;
    background: var(--rp-gold);
}


/* =========================================================
   DROPDOWNS
========================================================= */

.rp-nav-dropdown {
    position: relative;
    height: 108px;
    display: flex;
    align-items: center;
}

.rp-dropdown-link {
    gap: 7px;
}

.rp-dropdown-link span {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.rp-nav-dropdown:hover .rp-dropdown-link span {
    transform: rotate(180deg);
}


/* Dropdown panel */

.rp-dropdown-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 255px;
    padding: 10px 0;
    background: #ffffff;
    border-top: 3px solid var(--rp-gold);
    box-shadow: 0 18px 45px rgba(6, 27, 51, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

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

.rp-dropdown-menu a {
    display: block;
    padding: 11px 20px;
    color: #162b45;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.rp-dropdown-menu a:hover {
    background: #f7f9fc;
    color: var(--rp-blue);
    padding-left: 25px;
}


/* =========================================================
   HEADER CTA
========================================================= */

.rp-header-cta {
    height: 52px !important;
    margin-left: 16px;
    padding: 0 27px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background: var(--rp-gold);
    color: #ffffff !important;

    border-radius: 4px;
    font-size: 15px !important;
    font-weight: 700 !important;

    box-shadow: 0 8px 20px rgba(208, 154, 58, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rp-header-cta:hover {
    background: #bd882e;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(208, 154, 58, 0.22);
}

.rp-header-cta span {
    margin-left: 10px;
    font-size: 18px;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.rp-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.rp-mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--rp-navy);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.rp-mobile-menu {
    display: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .rp-header-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .rp-nav-wrapper {
        gap: 20px;
    }

    .rp-navigation > a,
    .rp-dropdown-link {
        padding-left: 13px;
        padding-right: 13px;
        font-size: 15px;
    }

    .rp-header-cta {
        margin-left: 8px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .rp-logo img {
        width: 140px;
    }
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 991px) {

    .rp-topbar {
        height: auto;
        min-height: 46px;
    }

    .rp-topbar .rp-header-container {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .rp-location {
        gap: 14px;
    }

    .rp-contact {
        gap: 12px;
    }

    .rp-navigation {
        display: none;
    }

    .rp-nav-wrapper {
        min-height: 82px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .rp-logo img {
        width: 140px;
        max-height: 68px;
    }

    .rp-mobile-toggle {
        display: block;
    }

    .rp-mobile-menu {
        display: none;
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .rp-mobile-menu.open {
        display: block;
    }

    .rp-mobile-menu > a,
    .rp-mobile-dropdown > button {
        width: 100%;
        min-height: 52px;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;

        border: 0;
        border-bottom: 1px solid #eeeeee;

        background: #ffffff;
        color: var(--rp-navy);

        font-family: inherit;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        text-align: left;
    }

    .rp-mobile-submenu {
        display: none;
        background: #f7f9fc;
    }

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

    .rp-mobile-submenu a {
        display: block;
        padding: 12px 35px;
        color: #34465b;
        font-size: 14px;
        text-decoration: none;
        border-bottom: 1px solid #e9edf2;
    }

    .rp-mobile-cta {
        margin: 15px 20px;
        justify-content: center !important;
        background: var(--rp-gold) !important;
        color: #ffffff !important;
        border-radius: 4px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .rp-header-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rp-location {
        width: 100%;
        justify-content: center;
        gap: 10px;
        font-size: 11px;
    }

    .rp-contact {
        display: none;
    }

    .rp-nav-wrapper {
        min-height: 72px;
    }

    .rp-logo img {
        width: 125px;
        max-height: 60px;
    }
}