/* ================================================
   Repartitoare Mobile Menu v1.1
   Floating Capsule TOP + Fullscreen Overlay
   Mobile Only (max-width: 991px)
   ================================================ */

* {
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    --rp-blue: #014288;
    --rp-blue-dark: #012d5c;
    --rp-blue-light: #0262c4;
    --rp-orange: #E8651A;
    --rp-orange-dark: #d45a15;
    /* Variante conforme WCAG AA (4.5:1) - doar unde exista text peste portocaliu */
    --rp-orange-cta: #FA7017;
    --rp-orange-cta-dark: #E06410;
    --rp-orange-text: #C04B0E;
    --rp-white: #ffffff;
    --rp-gray: #5a6a7a;
    --rp-transition: cubic-bezier(0.4, 0, 0.2, 1);
    --rp-transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================
   LOGIN BAR - Above capsule
   ================================================ */

.rp-login-bar {
    display: none;
}

@media (max-width: 991px) {
    .rp-login-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 28px;
        background: var(--rp-white);
        z-index: 100001;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 22px;
        box-sizing: border-box;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: all 0.4s var(--rp-transition-smooth);
    }

    .rp-login-bar.scroll-hidden {
        transform: translateY(-100%);
    }
}

.rp-login-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--rp-orange-text);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.rp-login-bar-link svg {
    flex-shrink: 0;
}

.rp-login-bar-link:hover {
    color: var(--rp-orange-dark);
}

/* ================================================
   FLOATING CAPSULE - TOP - Mobile Only
   ================================================ */

.rp-capsule {
    display: none;
}

@media (max-width: 991px) {
    .rp-capsule {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 32px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 44px);
        max-width: 480px;
        height: 64px;
        background: var(--rp-white);
        border-radius: 35px;
        border: 1px solid #E3E9F2;
        box-shadow: 0 4px 18px rgba(27, 37, 89, 0.08);
        padding: 8px 8px 8px 16px;
        z-index: 99999;
        transition: all 0.4s var(--rp-transition-smooth);
    }

    /* Hide capsule when menu is open */
    .rp-capsule.hidden {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
        pointer-events: none;
    }

    /* Logo in capsule - bigger */
    .rp-capsule-logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
    }

    .rp-capsule-logo img {
        height: 40px;
        width: auto;
        display: block;
    }

    /* Right side group: CTA + hamburger */
    .rp-capsule-right {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    /* CTA button in capsule */
    .rp-capsule-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 42px;
        padding: 0 20px;
        background: var(--rp-orange-cta);
        color: var(--rp-white) !important;
        border-radius: 25px;
        font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        transition: background 0.3s var(--rp-transition);
    }

    .rp-capsule-cta:hover,
    .rp-capsule-cta:active {
        background: var(--rp-orange-cta-dark);
        color: var(--rp-white) !important;
    }

    /* Hamburger button in capsule */
    .rp-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        min-width: 48px;
        background: var(--rp-blue);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
        z-index: 100001;
        position: relative;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        outline: none !important;
        -webkit-appearance: none;
        appearance: none;
        transition: all 0.4s var(--rp-transition);
    }

    .rp-hamburger:focus,
    .rp-hamburger:active,
    .rp-hamburger:hover {
        outline: none !important;
        background: var(--rp-blue);
        -webkit-tap-highlight-color: transparent !important;
    }

    .rp-hamburger-line {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--rp-white);
        border-radius: 1px;
        transition: all 0.4s var(--rp-transition);
        transform-origin: center;
    }

    .rp-hamburger-line:nth-child(1) {
        margin-bottom: 5px;
    }

    .rp-hamburger-line:nth-child(2) {
        width: 14px;
    }

    .rp-hamburger-line:nth-child(3) {
        margin-top: 5px;
    }

    /* Hamburger to X animation */
    .rp-hamburger.active {
        background: transparent;
    }

    .rp-hamburger.active .rp-hamburger-line {
        width: 20px;
        background: var(--rp-white);
    }

    .rp-hamburger.active .rp-hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .rp-hamburger.active .rp-hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .rp-hamburger.active .rp-hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ================================================
   FULLSCREEN OVERLAY
   ================================================ */

.rp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    pointer-events: none;
    overflow: hidden;
}

.rp-overlay.active {
    pointer-events: all;
}

/* Background circle reveal - expands from TOP-RIGHT (capsule hamburger position) */
.rp-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--rp-blue) 0%, var(--rp-blue-dark) 100%);
    clip-path: circle(0% at calc(100% - 40px) 44px);
    transition: clip-path 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rp-overlay.active .rp-overlay-bg {
    clip-path: circle(150% at calc(100% - 40px) 44px);
}

/* Subtle radial gradient overlay */
.rp-overlay-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--rp-transition);
}

.rp-overlay.active .rp-overlay-bg::before {
    opacity: 1;
}

/* Close button */
.rp-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, background 0.3s ease;
    transition-delay: 0s;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.rp-close:focus,
.rp-close:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.rp-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rp-overlay.active .rp-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}

.rp-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--rp-white);
    border-radius: 1px;
}

.rp-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.rp-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Navigation - centered */
.rp-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 30px;
}

.rp-menu-primary,
.rp-menu-secondary {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Primary menu items */
.rp-menu-primary li {
    margin: 12px 0;
}

.rp-menu-primary li a {
    display: inline-block;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rp-white);
    text-decoration: none;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.rp-overlay.active .rp-menu-primary li a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger primary items */
.rp-overlay.active .rp-menu-primary li:nth-child(1) a { transition-delay: 0.3s; }
.rp-overlay.active .rp-menu-primary li:nth-child(2) a { transition-delay: 0.4s; }
.rp-overlay.active .rp-menu-primary li:nth-child(3) a { transition-delay: 0.5s; }

/* Hover underline on primary */
.rp-menu-primary li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--rp-orange);
    transform: translateX(-50%);
    transition: width 0.3s var(--rp-transition);
}

.rp-menu-primary li a:hover::after {
    width: 60%;
}

.rp-menu-primary li a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Separator */
.rp-separator {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 30px auto;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.5s ease-out;
}

.rp-overlay.active .rp-separator {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0.55s;
}

.rp-overlay.active .rp-separator:nth-of-type(2) {
    transition-delay: 0.85s;
}

/* Secondary menu */
.rp-menu-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.rp-menu-secondary li a {
    display: inline-block;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 14px 0;
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.rp-overlay.active .rp-menu-secondary li a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger secondary items */
.rp-overlay.active .rp-menu-secondary li:nth-child(1) a { transition-delay: 0.6s; }
.rp-overlay.active .rp-menu-secondary li:nth-child(2) a { transition-delay: 0.67s; }

.rp-menu-secondary li a:hover {
    color: var(--rp-white);
}

/* Buttons container in overlay */
.rp-overlay-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 220px;
    margin: 0 auto;
}

/* Shared button style */
.rp-overlay-cta,
.rp-overlay-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border-radius: 25px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, background 0.3s ease;
    box-sizing: border-box;
}

/* CTA in overlay */
.rp-overlay-cta {
    background: var(--rp-orange-cta);
    color: var(--rp-white) !important;
}

.rp-overlay.active .rp-overlay-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.85s;
}

.rp-overlay-cta:hover {
    background: var(--rp-orange-cta-dark);
    color: var(--rp-white) !important;
}

/* Login Portal button - faded blue */
.rp-overlay-login {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rp-overlay.active .rp-overlay-login {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.93s;
}

.rp-overlay-login:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--rp-white) !important;
}

/* Footer logo in overlay */
.rp-overlay-footer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.4s var(--rp-transition);
    transition-delay: 0s;
}

.rp-overlay.active .rp-overlay-footer {
    opacity: 0.3;
    transition-delay: 1s;
}

.rp-overlay-footer img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ================================================
   BODY LOCK
   ================================================ */

body.rp-menu-open {
    overflow: hidden;
}

/* ================================================
   DESKTOP: Hide everything
   ================================================ */

@media (min-width: 992px) {
    .rp-capsule,
    .rp-overlay {
        display: none !important;
    }
}

/* ================================================
   RESPONSIVE - Small phones
   ================================================ */

@media (max-width: 380px) {
    .rp-capsule {
        width: calc(100% - 20px);
        padding: 6px 6px 6px 16px;
        height: 58px;
    }

    .rp-capsule-logo img {
        height: 34px;
    }

    .rp-capsule-cta {
        height: 38px;
        padding: 0 14px;
        font-size: 11px;
    }

    .rp-hamburger {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .rp-overlay-bg {
        clip-path: circle(0% at calc(100% - 34px) 40px);
    }

    .rp-overlay.active .rp-overlay-bg {
        clip-path: circle(150% at calc(100% - 34px) 40px);
    }
}

@media (max-width: 480px) {
    .rp-menu-primary li a {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .rp-menu-secondary li a {
        font-size: 20px;
        letter-spacing: 2px;
        padding: 12px 0;
    }

    .rp-separator {
        margin: 22px auto;
    }

    .rp-overlay-cta {
        height: 48px;
        padding: 0 30px;
        font-size: 14px;
    }
}

/* Short screens (landscape) */
@media (max-height: 650px) {
    .rp-menu-primary li {
        margin: 2px 0;
    }

    .rp-menu-primary li a {
        font-size: 26px;
    }

    .rp-separator {
        margin: 15px auto;
    }

    .rp-menu-secondary li a {
        padding: 8px 0;
        font-size: 14px;
    }

    .rp-overlay-cta {
        height: 44px;
        font-size: 13px;
    }

    .rp-overlay-footer {
        bottom: 20px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .rp-capsule {
        max-width: 520px;
        height: 68px;
    }

    .rp-capsule-logo img {
        height: 44px;
    }

    .rp-capsule-cta {
        height: 44px;
        padding: 0 24px;
        font-size: 14px;
    }

    .rp-hamburger {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .rp-menu-primary li a {
        font-size: 48px;
    }

    .rp-menu-secondary li a {
        font-size: 18px;
        padding: 18px 0;
    }

    .rp-overlay-cta {
        height: 56px;
        padding: 0 40px;
        font-size: 16px;
    }
}

/* ================================================
   CAPSULE SCROLL BEHAVIOR
   Hide capsule on scroll down, show on scroll up
   ================================================ */

.rp-capsule.scroll-hidden {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
    pointer-events: none;
}

/* ================================================
   SCROLL TO TOP BUTTON
   ================================================ */

.rp-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    width: 38px;
    height: 38px;
    background: var(--rp-white);
    color: var(--rp-blue);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--rp-transition);
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.rp-scroll-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.rp-scroll-top:active {
    transform: translateX(-50%) scale(0.9);
}

/* ===== CONTRAST WCAG AA - 8 aug 2026. Sterge acest bloc pentru a reveni. ===== */
.elementor-element-3c1e7b0 .elementor-button { background-color: #C44F11 !important; }
span[style*="808080"] { color: #5F5F5F !important; }
.elementor-element-31e3f08 a { color: #5F5F5F !important; }
@media (max-width: 1024px) {
    .elementor-element-445ed0b .elementor-heading-title,
    .elementor-element-accf28d .elementor-heading-title,
    .elementor-element-1524323 .elementor-heading-title,
    .elementor-element-0d4cc8a .elementor-heading-title,
    .elementor-element-88b36ae .elementor-heading-title,
    .elementor-element-d3bd8e5 .elementor-heading-title { color: #0B72CE !important; }
}
