/* =========================
   NEXUS SERVICES - FINAL CSS
   Full Width + Luxury Minimal UI
   ========================= */

/* خنثی‌سازی محدودیت‌های رایج قالب‌ها */
body.nexus-full-width-page,
body.nexus-full-width-page .site,
body.nexus-full-width-page .site-content,
body.nexus-full-width-page .content-area,
body.nexus-full-width-page #primary,
body.nexus-full-width-page main,
body.nexus-full-width-page .entry-content,
body.nexus-full-width-page .page-content,
body.nexus-full-width-page .container,
body.nexus-full-width-page .container-fluid,
body.nexus-full-width-page .ast-container,
body.nexus-full-width-page .ast-article-single,
body.nexus-full-width-page .elementor-section-wrap,
body.nexus-full-width-page .elementor-widget-theme-post-content,
body.nexus-full-width-page .wp-block-group__inner-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.nexus-full-width-page .entry-content > *:not(.nexus-services-full-container) {
    max-width: 100% !important;
}

body.nexus-full-width-page {
    background: #fafafa;
    overflow-x: hidden;
}

/* ریست سبک */
.nexus-services-wrapper,
.nexus-services-full-container {
    box-sizing: border-box;
    font-family: "IRANSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    direction: rtl;
    color: #418174;
}

/* کانتینر فول‌ویدث اصلی */
.nexus-services-full-container {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* بستر اصلی صفحه */
.nexus-page-bg {
    background-color: #fafafa;
    min-height: 100vh;
    width: 100%;
    padding: 40px 0 56px;
}

/* کانتینر مرکزی محتوا */
.nexus-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}

/* انیمیشن‌های کلی */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 rgba(65,129,116,0.0);
    }
    50% {
        box-shadow: 0 0 32px rgba(65,129,116,0.25);
    }
    100% {
        box-shadow: 0 0 0 rgba(65,129,116,0.0);
    }
}

@keyframes softSlide {
    0% {
        opacity: 0;
        transform: translateX(32px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spinOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* کارت‌های گلسی */
.nexus-card {
    position: relative;
    border-radius: 26px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(65,129,116,0.10);
    box-shadow: 0 14px 40px rgba(15,51,45,0.10);
    padding: 26px 24px;
    margin-bottom: 28px;
    overflow: hidden;
    animation: fadeUp 0.6s ease-out both;
}

.nexus-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(65,129,116,0.14), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(65,129,116,0.10), transparent 50%);
    opacity: 0.75;
    pointer-events: none;
}

/* تایتل‌ها */
.nexus-section-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(65,129,116,0.65);
    margin-bottom: 10px;
}

.nexus-heading-xl {
    font-size: 28px;
    font-weight: 800;
    color: #13332D;
    margin-bottom: 6px;
    line-height: 1.6;
}

.nexus-heading-md {
    font-size: 20px;
    font-weight: 700;
    color: #13332D;
    margin-bottom: 8px;
    line-height: 1.7;
}

.nexus-subtitle {
    font-size: 14px;
    color: rgba(19,51,45,0.72);
    line-height: 1.95;
}

/* دکمه‌ها */
.nexus-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nexus-button-primary {
    background: linear-gradient(135deg, #418174, #2c5a4e);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(65,129,116,0.35);
    animation: glowPulse 2.8s ease-in-out infinite;
}

.nexus-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(65,129,116,0.50);
    color: #ffffff;
}

.nexus-button-ghost {
    background: rgba(241,243,244,0.72);
    color: #418174;
}

.nexus-button-ghost:hover {
    background: rgba(226,229,230,0.95);
    color: #2c5a4e;
}

/* HERO */
.nexus-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.nexus-hero-main {
    animation: fadeUp 0.7s ease-out both;
}

.nexus-hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nexus-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(65,129,116,0.07);
    color: rgba(19,51,45,0.8);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nexus-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #418174;
}

/* HERO گرافیکی */
.nexus-hero-aside {
    position: relative;
    min-height: 220px;
    animation: softSlide 0.75s ease-out both;
}

.nexus-hero-orbit {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 0, rgba(65,129,116,0.38), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(20,48,43,0.65), transparent 70%);
    overflow: hidden;
}

.nexus-orbit-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(250,250,250,0.45);
    animation: spinOrbit 12s linear infinite;
}

.nexus-orbit-ring--outer {
    width: 94%;
    height: 76%;
    top: 12%;
    left: 3%;
}

.nexus-orbit-ring--inner {
    width: 64%;
    height: 48%;
    top: 26%;
    left: 18%;
    animation-duration: 18s;
}

.nexus-orbit-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #fafafa;
    box-shadow: 0 0 12px rgba(0,0,0,0.35);
}

.nexus-orbit-dot:nth-child(1) { top: 16%; left: 12%; }
.nexus-orbit-dot:nth-child(2) { top: 8%; right: 20%; }
.nexus-orbit-dot:nth-child(3) { bottom: 18%; left: 28%; }
.nexus-orbit-dot:nth-child(4) { bottom: 10%; right: 16%; }

.nexus-orbit-core {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(250,250,250,0.92);
    color: #13332D;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

/* نوار برندینگ */
.nexus-highlight-strip {
    margin: 26px 0 18px;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(90deg, rgba(65,129,116,0.12), rgba(65,129,116,0.02));
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: rgba(19,51,45,0.82);
    animation: fadeUp 0.6s ease-out both;
    overflow-x: auto;
}

.nexus-highlight-strip span {
    white-space: nowrap;
}

/* گرید خدمات */
.nexus-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nexus-feature-card {
    border-radius: 20px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(65,129,116,0.1);
    box-shadow: 0 10px 30px rgba(18,42,37,0.08);
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease-out both;
}

.nexus-feature-pill {
    font-size: 11px;
    color: rgba(65,129,116,0.8);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(65,129,116,0.06);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* مراحل کار */
.nexus-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nexus-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    animation: fadeUp 0.5s ease-out both;
}

.nexus-step-index {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: #418174;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* پلن‌ها */
.nexus-pricing-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nexus-plan {
    border-radius: 20px;
    padding: 18px 16px;
    background: #ffffff;
    border: 1px solid rgba(65,129,116,0.1);
    box-shadow: 0 10px 30px rgba(18,42,37,0.09);
    position: relative;
    animation: fadeUp 0.5s ease-out both;
}

.nexus-plan--primary {
    border-color: #418174;
    box-shadow: 0 18px 42px rgba(65,129,116,0.24);
}

.nexus-plan-price {
    font-size: 18px;
    font-weight: 800;
    color: #13332D;
    margin-bottom: 4px;
}

.nexus-plan-desc {
    font-size: 13px;
    color: rgba(19,51,45,0.75);
    margin-bottom: 12px;
}

.nexus-plan-list {
    font-size: 12px;
    color: rgba(19,51,45,0.82);
    padding: 0;
    margin: 0;
    list-style: none;
}

.nexus-plan-list li {
    margin-bottom: 6px;
}

/* افکت اسکرول */
.nexus-animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.nexus-animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ریسپانسیو */
@media (max-width: 991px) {
    .nexus-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .nexus-hero-aside {
        min-height: 180px;
        margin-top: 10px;
    }

    .nexus-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nexus-pricing-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nexus-page-bg {
        padding: 26px 0 40px;
    }

    .nexus-container {
        padding: 0 14px;
    }

    .nexus-heading-xl {
        font-size: 22px;
    }

    .nexus-heading-md {
        font-size: 18px;
    }

    .nexus-features-grid,
    .nexus-pricing-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .nexus-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .nexus-highlight-strip {
        border-radius: 18px;
    }

    .nexus-button {
        width: 100%;
    }

    .nexus-hero-badge-row {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .nexus-page-bg {
        padding: 20px 0 34px;
    }

    .nexus-container {
        padding: 0 12px;
    }

    .nexus-card {
        padding: 18px 14px;
    }

    .nexus-heading-xl {
        font-size: 20px;
    }

    .nexus-subtitle {
        font-size: 13px;
        line-height: 1.85;
    }
}
