/* =========================================
   MOBILE MENU (Off-Canvas - Premium Slide-In)
   ========================================= */

/* 1. Hamburger Toggle (Hidden on Desktop) */
.wd-mobile-toggle {
    display: none;
    /* Desktop default */
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 60;
    /* Above overlay */
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.wd-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #111827;
    /* Dark Navy */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger to X Animation */
body.menu-is-open .wd-mobile-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-is-open .wd-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-is-open .wd-mobile-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 2. Off-Canvas Panel */
.wd-offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    /* Mobile width */
    max-width: 400px;
    /* Tablet max */
    height: 100vh;
    background: #ffffff;
    z-index: 55;
    /* Below toggle, above overlay */
    padding: 100px 32px 40px;
    /* Top padding clears logo area if needed */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    /* Hidden state */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth iOS-like curve */
    visibility: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

body.menu-is-open .wd-offcanvas-menu {
    transform: translateX(0);
    visibility: visible;
}

/* 3. Backdrop Overlay */
.wd-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    /* Dark dim */
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    /* Premium glass effect */
}

body.menu-is-open .wd-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* 4. Menu Items Styling */
.wd-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tighter stack */
    margin-bottom: 40px;
}

.wd-mobile-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    padding: 16px;
    /* Increased for better touch target (>44px) */
    border-radius: 12px;
    /* Softer radius */
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-bottom: 1px solid #f9fafb;
}

.wd-mobile-nav a:last-child {
    border-bottom: none;
}

.wd-mobile-nav a:hover,
.wd-mobile-nav a:focus {
    background: #f9fafb;
    color: #000;
    padding-left: 20px;
    /* Slide effect */
}

/* 5. Mobile Actions (Buttons) */
.wd-mobile-actions {
    margin-top: auto;
    /* Push to bottom if space permits, or just below nav */
}

.wd-btn-mobile-bundle {
    display: block;
    width: 100%;
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 99px;
    /* Pill */
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.wd-btn-mobile-bundle:hover {
    transform: scale(1.02);
    background: #000;
}

.wd-link-fiverr {
    display: block;
    text-align: center;
    color: #4b5563;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 6. Social Icons Row */
.wd-mobile-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #f3f4f6;
}

.wd-mobile-socials a img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wd-mobile-socials a:hover img {
    opacity: 1;
}

/* =========================================
   RESPONSIVE LOGIC
   ========================================= */
@media (max-width: 1024px) {

    /* Hide Desktop Nav */
    .main-navigation,
    .desk-cta {
        display: none !important;
    }

    /* Show Toggle */
    .wd-mobile-toggle {
        display: flex;
    }
}

/* Body Lock Helper */
body.no-scroll {
    overflow: hidden;
}