/* Migrated free-service promotion styles, scoped to new UI; main performance CSS is unchanged. */
/* Nav Free Service Pill Badge */
.nav-link-free-service {
    padding: 0.25rem 0.4rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-link-free-service .nav-free-badge {
    background: linear-gradient(135deg, rgba(123, 96, 251, 0.18), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #c084fc !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box;
    line-height: 1.35;
    gap: 0;
    white-space: nowrap;
    animation: freeServiceBorderGlow 3.6s ease-in-out infinite;
}

/* Animate only the pill outline/glow; no sizing changes or layout shifts. */
@keyframes freeServiceBorderGlow {
    0%, 100% {
        border-color: rgba(168, 85, 247, 0.48);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
    50% {
        border-color: rgba(209, 164, 255, 0.98);
        box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.16),
                    0 0 12px rgba(168, 85, 247, 0.22);
    }
}

.nav-link-free-service:focus-visible .nav-free-badge {
    outline: 2px solid #c084fc;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link-free-service .nav-free-badge {
        animation: none !important;
    }
}

.nav-link-free-service .nav-free-badge i {
    font-size: 13px !important;
    color: #eab308 !important; /* Elegant gold icon */
}

.nav-link-free-service:hover .nav-free-badge {
    background: linear-gradient(135deg, #7b60fb, #9f8eff);
    color: #ffffff !important;
    border-color: #7b60fb;
    box-shadow: 0 4px 12px rgba(123, 96, 251, 0.35);
    transform: translateY(-1px);
}

.nav-link-free-service:hover .nav-free-badge i {
    color: #ffffff !important;
}

/* Light mode overrides for Navbar Pill */
body.light-mode .nav-link-free-service .nav-free-badge {
    background: #f3e8ff;
    border: 1px solid #c084fc;
    color: #7b60fb !important;
}

body.light-mode .nav-link-free-service .nav-free-badge i {
    color: #7b60fb !important;
}

body.light-mode .nav-link-free-service:hover .nav-free-badge {
    background: #7b60fb;
    color: #ffffff !important;
    border-color: #7b60fb;
}

body.light-mode .nav-link-free-service:hover .nav-free-badge i {
    color: #ffffff !important;
}

/* ========================================================
   Hero Free Service Button (Bulletproof - Never turns white)
======================================================== */
.btn-free-service-hero,
.btn-free-service-hero:visited {
    background: linear-gradient(135deg, #7b60fb, #9f8eff) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 12px 26px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(123, 96, 251, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    cursor: pointer !important;
    outline: none !important;
    user-select: none !important;
}

/* Strictly disable ANY pseudo-element background animation */
.btn-free-service-hero::before,
.btn-free-service-hero::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.btn-free-service-hero:hover {
    background: linear-gradient(135deg, #9f8eff, #7b60fb) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(123, 96, 251, 0.55) !important;
}

/* Prevent whiteout on focus / active / clicked */
.btn-free-service-hero:focus,
.btn-free-service-hero:active {
    background: linear-gradient(135deg, #7b60fb, #6848f5) !important;
    color: #ffffff !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(123, 96, 251, 0.4) !important;
    outline: none !important;
}

.btn-free-service-hero i {
    font-size: 17px !important;
    color: #ffd700 !important;
    transition: transform 0.3s ease;
}

.btn-free-service-hero:hover i {
    transform: scale(1.15) rotate(-8deg);
}

/* Light mode overrides for Hero Button */
body.light-mode .btn-free-service-hero,
body.light-mode .btn-free-service-hero:visited {
    background: linear-gradient(135deg, #7b60fb, #6848f5) !important;
    color: #ffffff !important;
    border-color: #7b60fb !important;
}

body.light-mode .btn-free-service-hero:hover {
    background: linear-gradient(135deg, #6848f5, #7b60fb) !important;
    color: #ffffff !important;
}

body.light-mode .btn-free-service-hero:focus,
body.light-mode .btn-free-service-hero:active {
    background: #5b21b6 !important;
    color: #ffffff !important;
}

/* Hero Action Buttons Layout & Mobile Symmetry */
.hero-btns-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.hero-main-btns {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.hero-free-btn-wrap {
    display: inline-flex !important;
}

/* Mobile Alignment: Two symmetrical 50% buttons on Row 1, Full-width button on Row 2 */
@media (max-width: 576px) {
    .hero-btns-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .hero-main-btns {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .hero-main-btns .btn-consultation-hero,
    .hero-main-btns .btn-outline-light-custom {
        flex: 1 1 50% !important;
        width: 50% !important;
        min-width: 0 !important;
        padding: 11px 4px !important;
        font-size: 13px !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .hero-main-btns .btn-consultation-hero i {
        font-size: 15px !important;
    }

    .hero-free-btn-wrap {
        width: 100% !important;
        display: block !important;
    }

    .btn-free-service-hero {
        width: 100% !important;
        padding: 12px 18px !important;
        font-size: 14.5px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}

/* Mobile Quick Button in Header Bar */
.btn-free-nav-mobile {
    background: linear-gradient(135deg, rgba(123, 96, 251, 0.35), rgba(168, 85, 247, 0.45));
    border: 1px solid #a855f7;
    color: #ffffff !important;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.btn-free-nav-mobile:hover {
    background: linear-gradient(135deg, #a855f7, #7b60fb);
    color: #ffffff !important;
}

body.light-mode .btn-free-nav-mobile {
    background: #7b60fb;
    color: #ffffff !important;
    border-color: #7b60fb;
}

/* Fullscreen Menu Highlight Link */
.menu-link-free-highlight {
    color: #c084fc !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.menu-link-free-highlight:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   Free Service Promo Modal (Main Site)
   ========================================================================== */

body.free-promo-open {
    overflow: hidden !important;
}

.free-promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
}

.free-promo-overlay.active {
    opacity: 1;
    visibility: visible;
}

.free-promo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 20, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.free-promo-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: auto;
}

.free-promo-card {
    position: relative;
    background: linear-gradient(145deg, #18122f 0%, #0d0a1b 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 32px 28px 26px;
    box-shadow: 0 25px 60px -10px rgba(123, 96, 251, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: "Tajawal", sans-serif !important;
}

.free-promo-card * {
    font-family: "Tajawal", sans-serif !important;
}

.free-promo-overlay.active .free-promo-card {
    transform: scale(1) translateY(0);
}

.free-promo-glow-top {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.free-promo-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 5;
}

.free-promo-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg);
}

.free-promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.free-promo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.free-promo-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(123, 96, 251, 0.25), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(123, 96, 251, 0.35);
    animation: freePromoFloat 3s ease-in-out infinite alternate;
}

@keyframes freePromoFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-5px) rotate(3deg); }
}

.free-promo-emoji {
    font-size: 32px;
    line-height: 1;
}

.free-promo-badge {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.free-promo-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 12px;
    color: #ffffff;
}

.free-promo-highlight {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.free-promo-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: #cbd5e1;
    margin: 0 0 18px;
    text-align: center;
}

.free-promo-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 22px;
}

.free-promo-feature-item {
    background: rgba(123, 96, 251, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    text-align: right;
    box-sizing: border-box;
}

.free-promo-feature-item i {
    color: #a855f7;
    font-size: 15px;
    flex-shrink: 0;
}

.free-promo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.free-promo-btn-primary {
    background: linear-gradient(135deg, #7b60fb 0%, #a855f7 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 13px 24px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(123, 96, 251, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.free-promo-btn-primary:hover {
    background: linear-gradient(135deg, #8b72ff 0%, #b86bfc 100%);
    box-shadow: 0 12px 30px rgba(123, 96, 251, 0.6);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.free-promo-btn-primary i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.free-promo-btn-primary:hover i {
    transform: translateX(-4px);
}

.free-promo-btn-secondary {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease;
}

.free-promo-btn-secondary:hover {
    color: #f1f5f9;
}

/* Light Mode Overrides */
body.light-mode .free-promo-backdrop {
    background: rgba(15, 23, 42, 0.6);
}

body.light-mode .free-promo-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf8ff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 60px -10px rgba(123, 96, 251, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

body.light-mode .free-promo-title {
    color: #0f172a;
}

body.light-mode .free-promo-desc {
    color: #475569;
}

body.light-mode .free-promo-feature-item {
    background: #f8fafc;
    border-color: rgba(123, 96, 251, 0.15);
    color: #334155;
}

body.light-mode .free-promo-close {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

body.light-mode .free-promo-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

body.light-mode .free-promo-btn-secondary {
    color: #64748b;
}

body.light-mode .free-promo-btn-secondary:hover {
    color: #0f172a;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .free-promo-card {
        padding: 26px 18px 20px;
        border-radius: 20px;
    }

    .free-promo-icon-box {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .free-promo-emoji {
        font-size: 26px;
    }

    .free-promo-title {
        font-size: 18px;
    }

    .free-promo-desc {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .free-promo-feature-item {
        font-size: 12.5px;
        padding: 8px 12px;
    }

    .free-promo-btn-primary {
        font-size: 14.5px;
        padding: 12px 18px;
    }
}




/* Current optimized homepage uses direct links rather than the legacy nested hero actions. */
.hero-btns-wrapper { display:flex; flex-wrap:wrap; gap:12px; align-items:stretch; }
.hero-btns-wrapper > .btn { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; text-align:center; }
.menu-close-btn { border:0; cursor:pointer; background:transparent; }
@media (max-width:576px) {
 .hero-btns-wrapper { display:flex!important; flex-direction:row!important; flex-wrap:wrap!important; justify-content:center!important; gap:10px!important; }
 .hero-btns-wrapper > .btn { flex:1 1 calc(50% - 5px)!important; max-width:calc(50% - 5px)!important; white-space:normal!important; }
 .hero-btns-wrapper > .btn-free-service-hero { flex-basis:100%!important; max-width:100%!important; }
}
@media (prefers-reduced-motion:reduce) { .free-promo-card,.free-promo-overlay,.nav-free-badge { transition:none!important; animation:none!important; } }


/* Final hero/nav treatment: moving rounded gradient border, centered labels, equal heights. */
@property --free-cta-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@keyframes freeCtaBorderRotate {
    to { --free-cta-angle: 360deg; }
}
@keyframes freeCtaBorderGlow {
    0%,100% { box-shadow: 0 0 0 rgba(174,110,255,0),0 4px 12px rgba(123,96,251,.2); }
    50% { box-shadow: 0 0 0 2px rgba(174,110,255,.3),0 0 16px rgba(174,110,255,.48); }
}

/* Shared moving gradient border, with distinct inner fills. */
.nav-link-free-service .nav-free-badge,
.nav-link-free-service:hover .nav-free-badge {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
    border: 2px solid transparent !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg,#312044,#48245d) padding-box,
        conic-gradient(from var(--free-cta-angle),#8654fb,#f8e4ff,#fff,#a16cff,#8654fb) border-box !important;
    animation: freeCtaBorderRotate 3.2s linear infinite, freeCtaBorderGlow 3.2s ease-in-out infinite !important;
    color: #edceff !important;
    white-space: nowrap;
    box-sizing: border-box;
}
body.light-mode .nav-link-free-service .nav-free-badge,
body.light-mode .nav-link-free-service:hover .nav-free-badge {
    background:
        linear-gradient(135deg,#f3e8ff,#eee4ff) padding-box,
        conic-gradient(from var(--free-cta-angle),#8654fb,#bd86ff,#fff,#a16cff,#8654fb) border-box !important;
    color: #6b36b9 !important;
}

/* All three hero CTAs use identical sizing and vertical centering. */
.hero .hero-btns-wrapper > a.btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 21px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
    white-space: nowrap;
}
.hero .hero-btns-wrapper > a.btn-free-service-hero,
.hero .hero-btns-wrapper > a.btn-free-service-hero:visited,
.hero .hero-btns-wrapper > a.btn-free-service-hero:hover,
.hero .hero-btns-wrapper > a.btn-free-service-hero:focus,
body.light-mode .hero .hero-btns-wrapper > a.btn-free-service-hero {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border: 2px solid transparent !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg,#714cda,#9673f7) padding-box,
        conic-gradient(from var(--free-cta-angle),#8754f8,#e8caff,#fff,#a16cff,#8754f8) border-box !important;
    color: white !important;
    animation: freeCtaBorderRotate 3.2s linear infinite, freeCtaBorderGlow 3.2s ease-in-out infinite !important;
    transform: none !important;
}
.hero .hero-btns-wrapper > a.btn-free-service-hero::before,
.hero .hero-btns-wrapper > a.btn-free-service-hero::after {
    content: none !important;
    display: none !important;
}
.hero .hero-btns-wrapper > a.btn-free-service-hero:focus-visible {
    outline: 2px solid #e9d0ff !important;
    outline-offset: 3px !important;
}
@media(max-width:576px) {
    .hero .hero-btns-wrapper > a.btn {
        height: 46px !important;
        min-height: 46px !important;
        padding-inline: 10px !important;
        font-size: clamp(11px,3.3vw,13px) !important;
    }
}
@media(prefers-reduced-motion:reduce) {
    .nav-link-free-service .nav-free-badge,
    .hero .hero-btns-wrapper > a.btn-free-service-hero {
        animation: none !important;
    }
}
