/* ==========================================================================
   Custom Floating Header — Responsive Pill Menu
   Ramirez Adventures
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. MAIN HEADER (pill bar)
   ----------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 8px 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 99999 !important;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

/* -----------------------------------------------------------------------
   2. DESKTOP THREE-COLUMN LAYOUT
   ----------------------------------------------------------------------- */
.header-left,
.header-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

/* -----------------------------------------------------------------------
   3. LOGO
   ----------------------------------------------------------------------- */
.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-logo-img {
    height: 62px;
    width: 62px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: block;
}

.site-logo-link:hover .site-logo-img {
    transform: scale(1.08) rotate(3deg);
}

/* -----------------------------------------------------------------------
   4. DESKTOP MENU LINKS
   ----------------------------------------------------------------------- */
.header-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0c2340;
    text-decoration: none;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 0.8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.header-menu-link i {
    font-size: 0.82rem;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.header-menu-link:hover {
    color: #0d9488;
    background: rgba(13,148,136,0.07);
}

.header-menu-link:hover i {
    opacity: 1;
}

/* -----------------------------------------------------------------------
   5. BOOK NOW BUTTON (desktop)
   ----------------------------------------------------------------------- */
.header-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0c2340;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 30px;
    text-decoration: none;
    margin-left: 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(12,35,64,0.25);
    white-space: nowrap;
}

.header-book-btn i {
    font-size: 0.82rem;
}

.header-book-btn:hover {
    background: #f97316;
    box-shadow: 0 6px 20px rgba(249,115,22,0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* -----------------------------------------------------------------------
   6. HAMBURGER BUTTON
   ----------------------------------------------------------------------- */
.ra-hamburger {
    display: none;            /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

.ra-hamburger:hover {
    background: rgba(12,35,64,0.07);
}

.ra-ham-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #0c2340;
    border-radius: 4px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1),
                opacity   0.25s ease,
                width     0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.ra-hamburger.is-open .ra-ham-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.ra-hamburger.is-open .ra-ham-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.ra-hamburger.is-open .ra-ham-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* -----------------------------------------------------------------------
   7. MOBILE NAV OVERLAY (slide-in from right)
   ----------------------------------------------------------------------- */
.ra-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #0c2340;
    z-index: 999998;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ra-mobile-nav.is-open {
    transform: translateX(0);
}

.ra-mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 40px 28px 48px;
    min-height: 100%;
    gap: 0;
}

/* Logo inside mobile nav */
.ra-mobile-nav-logo {
    margin-bottom: 36px;
    display: flex;
    justify-content: center;
}

.ra-mobile-nav-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
}

/* Nav links */
.ra-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ra-mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.ra-mobile-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}

.ra-mobile-link:hover,
.ra-mobile-link:focus {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.ra-mobile-link:hover i {
    color: #f97316;
}

/* Book Now CTA in mobile */
.ra-mobile-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 14px;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(249,115,22,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ra-mobile-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249,115,22,0.45);
    color: #ffffff !important;
}

/* Contact info at bottom of mobile nav */
.ra-mobile-contacts {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ra-mobile-contacts a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s;
    word-break: break-all;
}

.ra-mobile-contacts a:hover {
    color: rgba(255,255,255,0.85);
}

.ra-mobile-contacts i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    color: #f97316;
}

/* -----------------------------------------------------------------------
   8. BACKDROP
   ----------------------------------------------------------------------- */
.ra-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}

.ra-nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* -----------------------------------------------------------------------
   9. HIDE DEFAULT NAV
   ----------------------------------------------------------------------- */

/* Hide default hello elementor nav */
.site-navigation {
    display: none;
}

/* -----------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------- */

/* Tablet (≤ 900px): shrink links a bit */
@media (max-width: 900px) {
    .header-menu-link {
        font-size: 0.78rem;
        padding: 5px 8px;
    }
    .header-book-btn {
        padding: 10px 16px;
        font-size: 0.78rem;
    }
    .site-logo-img {
        height: 54px;
        width: 54px;
    }
}

/* Mobile (≤ 768px): show hamburger, hide desktop links */
@media (max-width: 768px) {
    .site-header {
        top: 12px;
        padding: 6px 14px;
        border-radius: 50px;
    }

    /* Hide desktop nav groups */
    .header-left,
    .header-right {
        display: none;
    }

    /* Show hamburger */
    .ra-hamburger {
        display: flex;
    }

    /* Make header a simple logo + hamburger layout */
    .site-branding {
        flex: 1;
        justify-content: flex-start;
    }

    .site-logo-img {
        height: 48px;
        width: 48px;
    }

    /* No body padding needed — nav is absolute, not fixed */
}

/* Small mobile (≤ 400px) */
@media (max-width: 400px) {
    .site-header {
        width: 92%;
    }
}
