/**
 * Header, Logo, ReserveBtn & Floating Navbar Styles - Custom Agency
 * Matches React Navbar.jsx, Logo.jsx, ReserveBtn.jsx
 */

/* Rolling Text Animation (Matches React revbtn.css exactly) */
.link-line {
    display: inline-block !important;
    width: auto !important;
    height: 1.25rem !important;
    min-height: 1.25rem !important;
    line-height: 1.25rem !important;
    position: relative !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.rev-top {
    margin-top: -1.12rem !important;
}

.rev-link {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    will-change: transform;
}

.group:hover .link-line .rev-link.rev-top,
.link-line:hover .rev-link.rev-top {
    transform: translateY(19px) !important;
}

.group:hover .link-line .rev-link:not(.rev-top),
.link-line:hover .rev-link:not(.rev-top) {
    transform: scale(1.1) translateY(20px) !important;
}

/* A single, non-animated label prevents duplicate/overlapping CTA copy. */
.site-header-cta-label {
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 639px) {
    .site-header-cta-label { font-size: 11px; }
    .site-header-cta { padding-left: .625rem !important; padding-right: .625rem !important; }
}

/* Floating Logo Pill - Sticky on mobile, unsticky (scrolls with page) on desktop */
.site-header-logo-pill {
    position: fixed !important;
    top: 1rem;
    left: 1rem;
    z-index: 45;
}

@media (min-width: 640px) {
    .site-header-logo-pill {
        top: 1.5rem;
        left: 1.5rem;
    }
}

@media (min-width: 768px) {
    .site-header-logo-pill {
        position: absolute !important;
        top: 2rem;
        left: 2rem;
        z-index: 40;
    }
}

@media (min-width: 1024px) {
    .site-header-logo-pill {
        left: 3rem;
    }
}

.header-logo-img {
    height: 1.75rem;
    max-height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 640px) {
    .header-logo-img {
        height: 2rem;
    }
}

/* Floating Reserve Button Pill - Sticky on mobile, unsticky (scrolls with page) on desktop */
.site-header-cta-pill {
    position: fixed !important;
    top: 1rem;
    right: 1rem;
    z-index: 45;
}

@media (min-width: 640px) {
    .site-header-cta-pill {
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .site-header-cta-pill {
        position: absolute !important;
        top: 2rem;
        right: 2rem;
        z-index: 40;
    }
}

@media (min-width: 1024px) {
    .site-header-cta-pill {
        right: 3rem;
    }
}

/* Floating Nav Trigger Pill at Bottom */
.nav-trigger-pill {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 50;
    height: 2.5rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    background-color: #f4efe7;
    border-radius: 9999px;
    border: 1px solid rgba(42, 39, 37, 0.15);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    user-select: none;
    cursor: pointer;
    touch-action: pan-y;
}

@media (min-width: 640px) {
    .nav-trigger-pill {
        bottom: 2rem;
    }
}

/* Menu Modal Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.nav-overlay.is-open {
    display: flex !important;
}

.nav-dialog {
    background-color: #181717;
    border: 1px solid rgba(177, 166, 150, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
    max-width: 32rem;
    width: 100%;
    color: #f4efe7;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-dialog::-webkit-scrollbar {
    display: none;
}
