/* ===============================
   Floating Menu
   =============================== */

.mh-floating {
    position: fixed;
    left: 8px;
    bottom: 30px;
    z-index: 9999;
    width: 42px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
    overflow: visible;
    direction: ltr;
}

.mh-floating .menu-item {
    position: relative;
    width: 42px !important;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
    background: #ffffff;
    color: #c40000;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: width 0.28s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.mh-floating .menu-item i {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #c40000;
    transition: color 0.2s ease;
}

.mh-floating .menu-item span {
    opacity: 0 !important;
    width: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    transition: opacity 0.2s ease, width 0.28s ease;
}

.mh-floating .menu-item:hover {
    width: 160px !important;
    background: #c40000 !important;
    box-shadow: 0 6px 16px rgba(196, 0, 0, 0.28);
    z-index: 20;
}

.mh-floating .menu-item:hover i {
    color: #ffffff !important;
}

.mh-floating .menu-item:hover span {
    opacity: 1 !important;
    width: 110px !important;
    color: #ffffff !important;
}

/* موبایل - منوی شناور */
@media (max-width: 600px) {
    .mh-floating {
        width: 38px;
        bottom: 16px;
        gap: 5px;
        padding: 6px 0;
    }
    .mh-floating .menu-item {
        width: 38px !important;
        height: 38px;
    }
    .mh-floating .menu-item i {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .mh-floating .menu-item:hover {
        width: 145px !important;
    }
    .mh-floating .menu-item:hover span {
        width: 100px !important;
        font-size: 11px;
    }
}

/* ===============================
   دکمه برگشت به بالا (سمت راست)
   =============================== */
body.rtl a.sp-scroll-up,
body.helix-ultimate a.sp-scroll-up,
a.sp-scroll-up {
    left: auto !important;
    right: 25px !important;
    bottom: 30px !important;
}


body.itemid-152 #sp-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: transparent !important;
    margin: 0 !important;
}


/* بالا کشیدن Hero در خانه آزمایشی */
body.itemid-152 #sp-main-body {
    margin-top: -80px !important;
    padding-top: 0 !important;
}

body.itemid-152 #sp-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: transparent !important;
    margin: 0 !important;
}

/* ظاهر منوی روی Hero - فقط خانه آزمایشی */
body.itemid-152 #sp-header .sp-megamenu-parent > li > a {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* ظاهر ظریف Header روی Hero - فقط خانه آزمایشی */
body.itemid-152 #sp-header {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* کاهش ارتفاع منوی اصلی */
body.itemid-152 #sp-header .sp-megamenu-parent > li > a {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

body.itemid-152 #sp-main-body .container,
body.itemid-152 #sp-main-body .container-fluid {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hero تمام عرض فقط در خانه آزمایشی */
body.itemid-152 #sp-main-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hero کاملاً Full Width - فقط خانه آزمایشی */

body.itemid-152 .sppb-section,
body.itemid-152 .sppb-row-container,
body.itemid-152 .sppb-container {
    width: 100% !important;
    max-width: 100% !important;
}

body.itemid-152 .sppb-row-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.itemid-152 .sppb-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.itemid-152 .sppb-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ================================
   Hero Slider - خانه آزمایشی
   ================================ */

body.itemid-152 #sp-main-body {
    position: relative !important;
}

/* محفظه اسلایدها */
body.itemid-152 .hero-slider {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* تمام اسلایدها روی هم */
body.itemid-152 .hero-slide {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

/* اسلاید فعال */
body.itemid-152 .hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative !important;
}

body.itemid-152 #sp-main-body {
    min-height: 100vh !important;
}

.nurmek-test-css {
    background: #111;
    color: #fff;
    padding: 50px;
    margin: 50px auto;
    max-width: 1000px;
    text-align: center;
    border-right: 8px solid #f36b21;
}

.nurmek-test-css h1 {
    color: #f36b21;
    font-size: 40px;
}

/* =========================================================
   NURMEK | ABOUT PAGE
   RED INDUSTRIAL PREMIUM
   ========================================================= */

.nurmek-about-page {

    --red: #c62828;
    --red-light: #e53935;
    --red-dark: #8e1b1b;

    --black: #101214;
    --dark: #191c1f;
    --dark-2: #23272b;

    --light: #f5f5f3;
    --gray: #6b7075;

    direction: rtl;

    color: var(--black);

    overflow: hidden;
}

.nurmek-about-page * {
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.nurmek-about-hero {

    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        url('/images/nurmek/about/nurmek-factory.jpg')
        center center / cover no-repeat;

    color: white;

    overflow: hidden;
}

.nurmek-about-hero-overlay {

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10,11,12,.78),
            rgba(10,11,12,.35),
            rgba(10,11,12,.78)
        );

    z-index: 1;
}


/* RED LIGHT */

.nurmek-about-hero::after {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background:
        rgba(198,40,40,.18);

    filter:
        blur(100px);

    left: -150px;
    bottom: -180px;
}


/* HERO CONTENT */

.nurmek-about-hero-content {

    position: relative;

    z-index: 3;

    text-align: center;

    padding: 30px;
}

.nurmek-about-kicker {

    color:
        var(--red-light);

    font-size:
        14px;

    font-weight:
        800;

    letter-spacing:
        5px;

    margin-bottom:
        20px;

    direction:
        ltr;
}

.nurmek-about-hero h1 {

    font-size:
        clamp(52px,7vw,90px);

    font-weight:
        900;

    margin:
        0;

    line-height:
        1.1;

    text-shadow:
        0 10px 40px rgba(0,0,0,.55);
}

.nurmek-about-hero-line {

    width:
        140px;

    height:
        3px;

    margin:
        28px auto 20px;

    background:
        linear-gradient(
            90deg,
            var(--red-dark),
            var(--red-light)
        );

    border-radius:
        20px;
}

.nurmek-about-hero p {

    margin:
        0;

    font-size:
        19px;

    color:
        rgba(255,255,255,.82);
}

.nurmek-about-hero p strong {

    color:
        var(--red-light);
}


/* =========================================================
   INTRO
   ========================================================= */

.nurmek-about-intro {

    max-width:
        1250px;

    margin:
        100px auto;

    padding:
        0 30px;

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        80px;

    align-items:
        center;
}

.nurmek-about-intro-image {

    position:
        relative;
}

.nurmek-about-intro-image::before {

    content:
        "";

    position:
        absolute;

    inset:
        -15px;

    border:
        2px solid var(--red);

    border-radius:
        14px;

    opacity:
        .65;
}

.nurmek-about-intro-image img {

    position:
        relative;

    z-index:
        1;

    width:
        100%;

    height:
        420px;

    object-fit:
        cover;

    border-radius:
        12px;

    display:
        block;

    box-shadow:
        0 25px 60px rgba(0,0,0,.15);
}

.nurmek-about-section-label {

    display:
        inline-block;

    color:
        var(--red);

    font-size:
        13px;

    font-weight:
        800;

    letter-spacing:
        2px;

    margin-bottom:
        15px;
}

.nurmek-about-intro-content h2 {

    font-size:
        clamp(34px,4vw,55px);

    line-height:
        1.35;

    margin:
        0 0 25px;

    font-weight:
        900;
}

.nurmek-about-intro-content h2 strong {

    display:
        block;

    color:
        var(--red);
}

.nurmek-about-intro-content p {

    color:
        var(--gray);

    line-height:
        2.2;

    font-size:
        16px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.nurmek-about-btn {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        15px;

    margin-top:
        20px;

    padding:
        13px 25px;

    color:
        white !important;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    border:
        1px solid rgba(255,255,255,.1);

    border-radius:
        9px;

    text-decoration:
        none !important;

    font-weight:
        700;

    box-shadow:
        0 10px 25px rgba(198,40,40,.20);

    transition:
        all .3s ease;
}

.nurmek-about-btn:hover {

    transform:
        translateY(-3px);

    background:
        linear-gradient(
            135deg,
            var(--red-light),
            var(--red)
        );

    box-shadow:
        0 15px 35px rgba(198,40,40,.30);
}


/* =========================================================
   STATS
   ========================================================= */

.nurmek-about-stats {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    background:
        var(--black);

    border-top:
        3px solid var(--red);

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.nurmek-about-stat {

    min-height:
        185px;

    padding:
        30px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    align-items:
        center;

    text-align:
        center;

    border-left:
        1px solid rgba(255,255,255,.08);

    transition:
        background .3s ease;
}

.nurmek-about-stat:hover {

    background:
        rgba(198,40,40,.08);
}

.nurmek-about-stat strong {

    color:
        var(--red-light);

    font-size:
        40px;

    font-weight:
        900;

    margin-bottom:
        10px;

    direction:
        ltr;
}

.nurmek-about-stat span {

    color:
        rgba(255,255,255,.65);

    font-size:
        14px;
}


/* =========================================================
   CAPABILITIES
   ========================================================= */

.nurmek-about-capabilities {

    max-width:
        1250px;

    margin:
        110px auto;

    padding:
        0 30px;
}

.nurmek-about-heading {

    text-align:
        center;

    margin-bottom:
        60px;
}

.nurmek-about-heading h2 {

    font-size:
        clamp(35px,4vw,55px);

    font-weight:
        900;

    margin:
        0;
}

.nurmek-about-heading h2 strong {

    color:
        var(--red);
}

.nurmek-about-capability-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        18px;
}

.nurmek-about-capability {

    padding:
        35px;

    min-height:
        245px;

    background:
        white;

    border:
        1px solid #e5e5e5;

    border-radius:
        14px;

    position:
        relative;

    overflow:
        hidden;

    transition:
        all .3s ease;
}

.nurmek-about-capability::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    right:
        0;

    width:
        4px;

    height:
        0;

    background:
        linear-gradient(
            var(--red),
            var(--red-light)
        );

    transition:
        height .3s ease;
}

.nurmek-about-capability:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(198,40,40,.25);

    box-shadow:
        0 20px 45px rgba(0,0,0,.10);
}

.nurmek-about-capability:hover::before {

    height:
        100%;
}

.nurmek-about-capability-icon {

    color:
        var(--red);

    font-size:
        38px;

    margin-bottom:
        25px;
}

.nurmek-about-capability h3 {

    font-size:
        19px;

    margin:
        0 0 12px;
}

.nurmek-about-capability p {

    color:
        var(--gray);

    font-size:
        14px;

    line-height:
        2;
}


/* =========================================================
   ENGINEERING
   ========================================================= */

.nurmek-about-engineering {

    position:
        relative;

    padding:
        100px 8%;

    color:
        white;

    background:
        linear-gradient(
            135deg,
            #101214,
            #202428
        );

    overflow:
        hidden;
}

.nurmek-about-engineering::before {

    content:
        "";

    position:
        absolute;

    width:
        600px;

    height:
        600px;

    border-radius:
        50%;

    background:
        rgba(198,40,40,.13);

    filter:
        blur(100px);

    left:
        -250px;

    bottom:
        -250px;
}

.nurmek-about-engineering-content {

    position:
        relative;

    z-index:
        2;

    max-width:
        750px;

    margin-bottom:
        60px;
}

.nurmek-about-engineering-content h2 {

    font-size:
        clamp(35px,5vw,60px);

    line-height:
        1.35;

    margin:
        0 0 20px;

    font-weight:
        900;
}

.nurmek-about-engineering-content h2 strong {

    display:
        block;

    color:
        var(--red-light);
}

.nurmek-about-engineering-content p {

    color:
        rgba(255,255,255,.65);

    line-height:
        2.2;
}

.nurmek-about-engineering-steps {

    position:
        relative;

    z-index:
        2;

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        16px;
}

.nurmek-about-engineering-steps > div {

    min-height:
        220px;

    padding:
        30px;

    background:
        rgba(255,255,255,.045);

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:
        12px;

    transition:
        all .3s ease;
}

.nurmek-about-engineering-steps > div:hover {

    background:
        rgba(198,40,40,.12);

    border-color:
        rgba(229,57,53,.35);

    transform:
        translateY(-6px);
}

.nurmek-about-engineering-steps span {

    color:
        var(--red-light);

    font-size:
        32px;

    font-weight:
        900;

    direction:
        ltr;

    display:
        block;

    margin-bottom:
        20px;
}

.nurmek-about-engineering-steps h3 {

    margin:
        0 0 10px;
}

.nurmek-about-engineering-steps p {

    color:
        rgba(255,255,255,.55);

    font-size:
        13px;

    line-height:
        1.9;
}


/* =========================================================
   MISSION / VISION
   ========================================================= */

.nurmek-about-mission-vision {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;
}

.nurmek-about-mission,
.nurmek-about-vision {

    min-height:
        430px;

    padding:
        75px 10%;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    border-radius:
        0;
}

.nurmek-about-mission {

    color:
        white;

    background:
        linear-gradient(
            135deg,
            #101214,
            #1d2023
        );
}

.nurmek-about-vision {

    background:
        #f5f5f3;
}

.nurmek-about-mission > span,
.nurmek-about-vision > span {

    color:
        var(--red);

    font-size:
        13px;

    font-weight:
        800;

    margin-bottom:
        18px;
}

.nurmek-about-mission h2,
.nurmek-about-vision h2 {

    font-size:
        clamp(32px,4vw,50px);

    line-height:
        1.35;

    margin:
        0 0 20px;

    font-weight:
        900;
}

.nurmek-about-mission h2 strong,
.nurmek-about-vision h2 strong {

    display:
        block;

    color:
        var(--red);
}

.nurmek-about-mission p,
.nurmek-about-vision p {

    line-height:
        2.1;

    max-width:
        600px;
}

.nurmek-about-mission p {

    color:
        rgba(255,255,255,.62);
}

.nurmek-about-vision p {

    color:
        var(--gray);
}


/* =========================================================
   CTA
   ========================================================= */

.nurmek-about-cta {

    position:
        relative;

    min-height:
        400px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    padding:
        80px 25px;

    background:
        linear-gradient(
            135deg,
            var(--red-dark),
            var(--red)
        );

    overflow:
        hidden;
}

.nurmek-about-cta::before {

    content:
        "NURMEK";

    position:
        absolute;

    font-size:
        180px;

    font-weight:
        900;

    color:
        rgba(255,255,255,.045);

    direction:
        ltr;

    white-space:
        nowrap;
}

.nurmek-about-cta > div {

    position:
        relative;

    z-index:
        2;

    max-width:
        850px;
}

.nurmek-about-cta > div > span {

    color:
        rgba(255,255,255,.65);

    font-size:
        12px;

    letter-spacing:
        4px;

    direction:
        ltr;
}

.nurmek-about-cta h2 {

    color:
        white;

    font-size:
        clamp(35px,5vw,60px);

    line-height:
        1.35;

    margin:
        15px 0;

    font-weight:
        900;
}

.nurmek-about-cta h2 strong {

    display:
        block;
}

.nurmek-about-cta p {

    color:
        rgba(255,255,255,.72);

    line-height:
        2;
}

.nurmek-about-cta-btn {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        15px;

    margin-top:
        20px;

    padding:
        14px 28px;

    color:
        var(--black) !important;

    background:
        white;

    border-radius:
        9px;

    text-decoration:
        none !important;

    font-weight:
        800;

    transition:
        all .3s ease;
}

.nurmek-about-cta-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.20);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .nurmek-about-intro {
        grid-template-columns: 1fr;
    }

    .nurmek-about-capability-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .nurmek-about-engineering-steps {
        grid-template-columns: repeat(2,1fr);
    }

    .nurmek-about-stats {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 700px) {

    .nurmek-about-hero {
        min-height: 480px;
    }

    .nurmek-about-hero h1 {
        font-size: 52px;
    }

    .nurmek-about-intro {
        padding: 0 20px;
        margin: 70px auto;
        gap: 50px;
    }

    .nurmek-about-intro-image img {
        height: 300px;
    }

    .nurmek-about-capabilities {
        padding: 0 20px;
    }

    .nurmek-about-capability-grid {
        grid-template-columns: 1fr;
    }

    .nurmek-about-engineering {
        padding: 70px 25px;
    }

    .nurmek-about-engineering-steps {
        grid-template-columns: 1fr;
    }

    .nurmek-about-mission-vision {
        grid-template-columns: 1fr;
    }

    .nurmek-about-mission,
    .nurmek-about-vision {
        min-height: 380px;
        padding: 65px 25px;
    }

    .nurmek-about-cta::before {
        font-size: 90px;
    }
}

/* =========================================================
   NURMEK ENGLISH LTR — merged additions
   Existing custom.css rules above are preserved.
   ========================================================= */
/* =========================================================
   NURMEK ENGLISH PAGE — LTR MENU OVERRIDES
   Applied only when html has .nm-english-page
   ========================================================= */

html.nm-english-page {
    direction: ltr !important;
}

/* Main desktop menu: items flow left-to-right */
@media (min-width: 992px) {
    html.nm-english-page #sp-header .sp-megamenu-parent {
        direction: ltr !important;
    }

    html.nm-english-page #sp-header .sp-megamenu-parent > li {
        direction: ltr !important;
        float: none !important;
    }

    html.nm-english-page #sp-header .sp-megamenu-parent > li > a,
    html.nm-english-page #sp-header .sp-megamenu-parent > li > span {
        direction: ltr !important;
        text-align: left !important;
    }

    /* First-level dropdown opens from its own item */
    html.nm-english-page #sp-header .sp-megamenu-parent > li > .sp-dropdown {
        left: 0 !important;
        right: auto !important;
        direction: ltr !important;
        text-align: left !important;
    }

    /* Dropdown content */
    html.nm-english-page #sp-header .sp-dropdown,
    html.nm-english-page #sp-header .sp-dropdown .sp-dropdown-inner,
    html.nm-english-page #sp-header .sp-dropdown ul,
    html.nm-english-page #sp-header .sp-dropdown li {
        direction: ltr !important;
        text-align: left !important;
    }

    html.nm-english-page #sp-header .sp-dropdown li > a,
    html.nm-english-page #sp-header .sp-dropdown li > span {
        direction: ltr !important;
        text-align: left !important;
        justify-content: flex-start !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Nested dropdowns open to the right in LTR layout */
    html.nm-english-page #sp-header .sp-dropdown .sp-dropdown {
        left: 100% !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-left: 2px solid #d52b2b !important;
        border-right: 1px solid rgba(255,255,255,.16) !important;
    }

    html.nm-english-page #sp-header .sp-dropdown li.sp-has-child > a::after {
        transform: rotate(180deg) !important;
    }
}

/* Search field direction on the English page */
html.nm-english-page #sp-header input,
html.nm-english-page #sp-header textarea {
    direction: ltr !important;
    text-align: left !important;
}

/* Keep English page content direction independent from Persian pages */
html.nm-english-page body {
    direction: ltr;
}
