/* =============================================
   Rapid Care RX – Mobile Menu  |  menu.css
   ============================================= */

/* ── CSS Variables (overridden by Elementor controls) ── */
:root {
    --rcrx-primary:   #b91c1c;
    --rcrx-secondary: #1e3a8a;
    --rcrx-white:     #ffffff;
    --rcrx-bg:        #ffffff;
    --rcrx-text:      #1a1a1a;
    --rcrx-muted:     #999999;
    --rcrx-border:    #f0f0f0;
    --rcrx-radius:    14px;
    --rcrx-font-head: 'Montserrat', sans-serif;
    --rcrx-font-body: 'Lato', sans-serif;
}

/* ── Hamburger Trigger ── */
.rcrx-trigger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--rcrx-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 9990;
    position: relative;
}
.rcrx-trigger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through to button */
}
.rcrx-trigger:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.rcrx-trigger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rcrx-trigger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rcrx-trigger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Full-screen Overlay ── */
.rcrx-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.rcrx-overlay.is-open {
    visibility: visible;
    opacity: 1;
}
/* Dark backdrop */
.rcrx-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Sliding Panel ── */
.rcrx-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    min-height: 100vh;
    background: var(--rcrx-bg);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -8px 0 40px rgba(0,0,0,0.25);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.rcrx-overlay.is-open .rcrx-panel {
    transform: translateX(0);
}

/* Subtle top decoration */
.rcrx-panel::before {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(185,28,28,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── Header ── */
.rcrx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 22px 18px;
    border-bottom: 1px solid var(--rcrx-border);
    flex-shrink: 0;
}
.rcrx-brand-name {
    font-family: var(--rcrx-font-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--rcrx-secondary);
    line-height: 1;
    letter-spacing: 0.01em;
}
.rcrx-brand-name span,
.rcrx-brand-name em {
    color: var(--rcrx-primary);
    font-style: normal;
}
.rcrx-brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
}
.rcrx-brand-logo img {
    display: block;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.rcrx-brand-sub {
    font-size: 8px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rcrx-muted);
    font-weight: 700;
    margin-top: 4px;
    font-family: var(--rcrx-font-body);
}
.rcrx-close {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #444;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.rcrx-close:hover { background: #eee; transform: rotate(90deg); }
.rcrx-close svg {
    width: 15px;
    height: 15px;
    stroke: currentColor !important;
    display: block;
}

/* ── Navigation Items ── */
.rcrx-nav {
    padding: 20px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rcrx-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: var(--rcrx-radius);
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: var(--rcrx-text);
}
.rcrx-nav-item,
.rcrx-nav-item * {
    text-decoration: none !important;
}
.rcrx-nav-item:hover { background: #f8f8f8; }
.rcrx-nav-item.active {
    background: linear-gradient(135deg, var(--rcrx-primary) 0%, color-mix(in srgb, var(--rcrx-primary) 80%, #ff4444) 100%);
    box-shadow: 0 6px 20px rgba(185,28,28,0.35);
}
.rcrx-nav-left {
    display: flex;
    align-items: center;
    gap: 13px;
}
.rcrx-nav-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(185,28,28,0.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--rcrx-primary);
    transition: background 0.2s;
}
.rcrx-nav-item.active .rcrx-nav-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.rcrx-nav-icon svg,
.rcrx-nav-icon i,
.rcrx-nav-icon .elementor-icon {
    width: 19px; height: 19px;
    display: block;
}
.rcrx-nav-icon i,
.rcrx-nav-icon .elementor-icon {
    font-size: 19px;
}
.rcrx-nav-label {
    font-family: var(--rcrx-font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--rcrx-text);
}
.rcrx-nav-item.active .rcrx-nav-label { color: #fff; }
.rcrx-nav-chip {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(185,28,28,0.1); color: var(--rcrx-primary);
    padding: 3px 8px; border-radius: 20px; margin-left: 6px;
}
.rcrx-nav-item.active .rcrx-nav-chip { background: rgba(255,255,255,0.22); color: #fff; }
.rcrx-nav-arrow {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    color: #ccc;
}
.rcrx-nav-item.active .rcrx-nav-arrow { background: rgba(255,255,255,0.2); color: #fff; }
.rcrx-nav-arrow svg { width: 13px; height: 13px; }

/* ── Divider ── */
.rcrx-divider {
    margin: 20px 18px 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e8e8e8, transparent);
    flex-shrink: 0;
}

/* ── CTA Buttons ── */
.rcrx-cta-section {
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rcrx-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 20px;
    border-radius: 16px; border: none; cursor: pointer;
    font-family: var(--rcrx-font-head);
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative; overflow: hidden;
}
.rcrx-btn,
.rcrx-btn:hover,
.rcrx-btn:focus,
.rcrx-btn:active,
.rcrx-btn:visited,
.rcrx-btn * {
    text-decoration: none !important;
}
.rcrx-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.rcrx-btn-primary {
    background: linear-gradient(135deg, var(--rcrx-primary) 0%, color-mix(in srgb, var(--rcrx-primary) 75%, #ff4444) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(185,28,28,0.38);
}
.rcrx-btn-secondary {
    background: linear-gradient(135deg, var(--rcrx-secondary) 0%, color-mix(in srgb, var(--rcrx-secondary) 70%, #4477ff) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(30,58,138,0.32);
}
.rcrx-btn:hover { transform: translateY(-2px); }
.rcrx-btn::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s;
}
.rcrx-btn:hover::after { left: 150%; }

/* ── Contact Card ── */
.rcrx-contact-card {
    margin: 18px 18px 0;
    background: linear-gradient(135deg, #f0f5ff, #e8f0ff);
    border: 1px solid rgba(30,58,138,0.12);
    border-radius: 18px;
    padding: 15px 17px;
    display: flex; align-items: center; gap: 13px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rcrx-contact-card,
.rcrx-contact-card:hover,
.rcrx-contact-card:focus,
.rcrx-contact-card:active,
.rcrx-contact-card:visited,
.rcrx-contact-card * {
    text-decoration: none !important;
}
.rcrx-contact-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,58,138,0.15); }
.rcrx-contact-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rcrx-secondary), color-mix(in srgb, var(--rcrx-secondary) 70%, #4477ff));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30,58,138,0.32);
}
.rcrx-contact-icon svg { width: 20px; height: 20px; }
.rcrx-contact-info { display: flex; flex-direction: column; gap: 2px; }
.rcrx-contact-label {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--rcrx-muted);
    font-family: var(--rcrx-font-body);
}
.rcrx-contact-num {
    font-family: var(--rcrx-font-head);
    font-size: 15px; font-weight: 800; color: #111; letter-spacing: 0.02em;
}
.rcrx-call-badge {
    margin-left: auto;
    background: var(--rcrx-primary); color: #fff;
    font-size: 8px; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 20px;
    white-space: nowrap;
    font-family: var(--rcrx-font-head);
    box-shadow: 0 3px 10px rgba(185,28,28,0.35);
}

/* ── Social Row ── */
.rcrx-social-row {
    margin: 16px 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rcrx-social-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ccc;
    margin-right: 2px;
    font-family: var(--rcrx-font-body);
}
.rcrx-s-btn {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.rcrx-s-btn,
.rcrx-s-btn * {
    visibility: visible !important;
    opacity: 1 !important;
}
.rcrx-s-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}
.rcrx-s-btn:hover {
    transform: translateY(-3px);
}

/* Platform Colors - Using !important to override */
.rcrx-fb { background: #1877f2 !important; box-shadow: 0 4px 12px rgba(24,119,242,0.35); }
.rcrx-ig { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%) !important; box-shadow: 0 4px 12px rgba(221,42,123,0.35); }
.rcrx-twitter { background: #000000 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.rcrx-linkedin { background: #0077b5 !important; box-shadow: 0 4px 12px rgba(0,119,181,0.35); }
.rcrx-youtube { background: #ff0000 !important; box-shadow: 0 4px 12px rgba(255,0,0,0.35); }
.rcrx-tiktok { background: #000000 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.rcrx-snapchat { background: #fffc00 !important; box-shadow: 0 4px 12px rgba(255,252,0,0.35); }
.rcrx-pinterest { background: #e60023 !important; box-shadow: 0 4px 12px rgba(230,0,35,0.35); }
.rcrx-whatsapp { background: #25d366 !important; box-shadow: 0 4px 12px rgba(37,211,102,0.35); }
.rcrx-telegram { background: #0088cc !important; box-shadow: 0 4px 12px rgba(0,136,204,0.35); }
.rcrx-email { background: #ea4335 !important; box-shadow: 0 4px 12px rgba(234,67,53,0.35); }
.rcrx-website { background: #5f6368 !important; box-shadow: 0 4px 12px rgba(95,99,104,0.35); }
.rcrx-custom { background: #5f6368 !important; box-shadow: 0 4px 12px rgba(95,99,104,0.35); }

/* ── Hours Pill ── */
.rcrx-hours-pill {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,160,0,0.08);
    border: 1px solid rgba(0,160,0,0.2);
    padding: 6px 12px; border-radius: 20px;
}
.rcrx-h-dot {
    width: 7px; height: 7px;
    border-radius: 50%; background: #16a34a;
    animation: rcrx-pulse 2s infinite;
}
@keyframes rcrx-pulse {
    0%,100%{ opacity:1; transform:scale(1); }
    50%{ opacity:0.5; transform:scale(1.4); }
}
.rcrx-h-text {
    font-size: 10px; font-weight: 800; color: #16a34a;
    letter-spacing: 0.06em;
    font-family: var(--rcrx-font-body);
}

/* ── Footer ── */
.rcrx-footer {
    margin-top: auto;
    padding: 16px 18px 28px;
}
.rcrx-tagline {
    font-size: 10px; color: #ccc;
    letter-spacing: 0.04em;
    font-family: var(--rcrx-font-body);
}
.rcrx-tagline strong { color: var(--rcrx-primary); }

/* ── Scrollbar styling ── */
.rcrx-panel::-webkit-scrollbar { width: 3px; }
.rcrx-panel::-webkit-scrollbar-track { background: transparent; }
.rcrx-panel::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* ── Responsive: full width on very small screens ── */
@media (max-width: 380px) {
    .rcrx-panel { max-width: 100%; }
}

/* =============================================
   Elementor Editor Fixes
   ============================================= */

/* Ensure overlay is clickable in editor */
.elementor-editor-active .rcrx-overlay {
    pointer-events: none !important;
}

.elementor-editor-active .rcrx-overlay * {
    pointer-events: auto !important;
}

.elementor-editor-active .rcrx-trigger {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 999990 !important;
}

.elementor-editor-active .rcrx-panel {
    pointer-events: auto !important;
}

/* Ensure proper z-index in editor */
.elementor-editor-active .rcrx-overlay {
    z-index: 99999 !important;
}

/* Make sure trigger is above everything */
.elementor-editor-active .rcrx-trigger,
.elementor-editor-active .rcrx-trigger span {
    pointer-events: auto !important;
}

/* Fix for Elementor editor panel blocking */
.elementor-editor-active .rcrx-trigger {
    position: relative !important;
}
