/* ==========================================================
   استایل‌های اختصاصی صفحه خدمات
   متغیرهای رنگی از فایل style.css به ارث می‌رسد
   ========================================================== */

   :root {
    --primary: #0F3D6E;
    --secondary: #082340;
    --accent: #F47A20;
    --bg-light: #F8FAFC;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.60);
    --glass-border: rgba(255, 255, 255, 0.35);
    --shadow-lg: 0 25px 50px -12px rgba(8, 35, 64, 0.20);
    --shadow-xl: 0 40px 80px -16px rgba(8, 35, 64, 0.25);
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* هدر پیش‌فرض سایت که توسط header.php رندر می‌شود را در این صفحه پنهان می‌کنیم
   چون هیرو اختصاصی صفحه خدمات را خودمان می‌سازیم */
.about_header {
    display: none !important;
}

/* ==========================================================
   هیرو صفحه خدمات
   ========================================================== */
.services_hero {
    position: relative;
    width: 100%;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 150px 20px 60px;
    background-color: var(--secondary);
}
.services_hero_overlay {
    position: absolute;
    inset: 0;
    background: url('../images/header_services.jpg') center/cover no-repeat;
    z-index: 1;
}
.services_hero .video-overlay {
    background: linear-gradient(180deg, rgba(8, 35, 64, 0.82) 0%, rgba(8, 35, 64, 0.70) 50%, rgba(8, 35, 64, 0.92) 100%);
    z-index: 2;
}
.content_services_hero {
    position: relative;
    z-index: 3;
    width: 80%;
    max-width: 1000px;
    margin: auto;
}
.badge_services {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    background-color: #f478204f;
    border: solid var(--accent) 1px;
    color: var(--accent);
    font-weight: bold;
    font-size: 13px;
}
.content_services_hero h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.5;
}
.subtitle_services {
    color: rgba(255, 255, 255, 0.886);
    font-size: 15px;
    line-height: 1.9;
}


/* ردیف آمار هیرو */
.services_hero_stats {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 60px auto 0;
}
.stat_box_hero {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 15px;
    color: #fff;
    transition: var(--transition);
    height: 100%;
}
.stat_box_hero:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-6px);
    border-color: rgba(244, 122, 32, 0.4);
}
.stat_box_hero i {
    font-size: 26px;
    color: var(--accent);
}
.stat_box_hero small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

/* ==========================================================
   بخش طیف خدمات
   ========================================================== */
.services_main_section {
    background-color: #fff;
}
.service_card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: var(--transition);
    text-align: right;
}
.service_card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(244, 122, 32, 0.3);
}
.service_img {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}
.service_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}
.service_card:hover .service_img img {
    transform: scale(1.06);
}
.service_card h5 {
    font-size: 1.02rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.service_card p {
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 10px;
}
.link_service {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s;
    padding: 0;
}
.link_service:hover {
    color: var(--primary) !important;
}
.link_service i {
    margin-right: 6px;
    transition: 0.3s;
}
.link_service:hover i {
    transform: translateX(-4px);
}

/* کارت ویژه سمت راست */
.featured_service_card {
    background: linear-gradient(180deg, #0a2a52 0%, #082340 100%);
    border-radius: 28px;
    padding: 20px 20px 8px;
    height: 100%;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(8, 35, 64, 0.35);
    transition: var(--transition);
}
.featured_service_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 60px -12px rgba(8, 35, 64, 0.5);
}

/* تصویر بالای کارت */
.featured_service_image {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #10305a;
}
.featured_service_image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(120, 170, 240, 0.18) 0%, rgba(8, 35, 64, 0.45) 100%);
    pointer-events: none;
    z-index: 2;
}
.featured_service_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.6s;
    filter: saturate(0.75) brightness(1.05);
}
.featured_service_card:hover .featured_service_image img {
    transform: scale(1.06);
}

/* بدنه متنی کارت */
.featured_service_body {
    padding: 26px 8px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
}

/* بج نارنجی */
.featured_badge {
    display: inline-block;
    padding: 7px 20px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    align-self: flex-start;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(244, 122, 32, 0.35);
}

/* عنوان کارت */
.featured_service_body h4 {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
}

/* متن توضیحات */
.featured_desc {
    color: rgba(210, 225, 245, 0.82);
    font-size: 14px;
    line-height: 2.1;
    margin-bottom: 26px;
    flex-grow: 1;
}

/* لینک پایین کارت */
.featured_link {
    color: var(--accent) !important;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    transition: 0.3s;
    align-self: flex-start;
}
.featured_link:hover {
    color: #ffa050 !important;
    gap: 14px;
}
.featured_link i {
    transition: 0.3s;
    font-size: 16px;
}
.featured_link:hover i {
    transform: translateX(-4px);
}

/* باکس مشاوره رایگان */
.consult_box {
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: right;
}
.consult_icon {
    font-size: 26px;
    color: var(--accent);
    background: rgba(244, 122, 32, 0.10);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.consult_box span {
    font-size: 15px;
    color: var(--primary);
}

/* ==========================================================
   بخش چرا پولاد پارس
   ========================================================== */
.why_services_section {
    background: url(../images/why-polad-pars.jpg);
    background-size: cover;
    position: relative;
}
.why_services_section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}
.why_services_section .header_section {
    position: relative;
    z-index: 2;
}
.why_services_section .subtitle_why {
    color: rgba(255, 255, 255, 0.80);
}
.why_services_section .row {
    position: relative;
    z-index: 2;
}
.why_service_card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    text-align: right;
    color: #fff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.why_service_card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: var(--transition);
}
.why_service_card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(244, 122, 32, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.why_service_card:hover::before {
    height: 100%;
}
.why_service_card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(244, 122, 32, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 18px;
    transition: var(--transition);
}
.why_service_card:hover .icon-wrap {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}
.why_service_card h5 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.why_service_card p {
    font-size: 13.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

/* ==========================================================
   بخش فرآیند کار
   ========================================================== */
.process_section {
    background-color: #fff;
}
.process_wrapper {
    padding: 20px 10px 0;
}
.process_step {
    position: relative;
    padding: 10px;
    transition: var(--transition);
}
.process_step .step_num {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 10px;
}
.process_step .step_icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(244, 122, 32, 0.10);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid transparent;
    transition: var(--transition);
}
.process_step:hover .step_icon {
    background: var(--accent);
    color: #fff;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 35px -10px rgba(244, 122, 32, 0.5);
}
.process_step h6 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: 14px;
    margin-bottom: 4px;
}
.process_step small {
    font-size: 12px;
}
/* خطوط اتصال دسکتاپ */
@media (min-width: 992px) {
    .process_step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 85px;
        left: calc(50% - 35px);
        width: calc(100% - 70px);
        left: -6px;
        height: 2px;
        border-top: 2px dashed #cbd5e1;
        z-index: 0;
        display: none;
    }
    .featured_service_card {
        min-height: 480px;
    }
    .featured_service_image {
        height: 240px;
    }
    .featured_service_body h4 {
        font-size: 1.2rem;
    }
}

/* ==========================================================
   بخش آمار و ماشین‌آلات
   ========================================================== */
.stats_services_section {
    position: relative;
    padding: 90px 20px;
    overflow: hidden;
    background-color: var(--secondary);
}
.stats_services_overlay {
    position: absolute;
    inset: 0;
    background: url('../images/factory-section-in-services.jpg') center/cover no-repeat;
    z-index: 1;
}
.stats_services_section .video-overlay {
    background: linear-gradient(180deg, rgba(8, 35, 64, 0.92), rgba(8, 35, 64, 0.85));
    z-index: 2;
}
.content_stats_services {
    position: relative;
    z-index: 3;
}
.stats_services_box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 26px 18px;
    color: #fff;
    transition: var(--transition);
    height: 100%;
}
.stats_services_box:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 122, 32, 0.4);
    background: rgba(255, 255, 255, 0.10);
}
.stats_services_box i {
    font-size: 30px;
    color: var(--accent);
}
.stats_services_box small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

/* ==========================================================
   بخش پروژه‌ها
   ========================================================== */
.projects_services {
    background-color: #fff;
}
.project_card_services {
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: var(--transition);
    text-align: right;
}
.project_card_services:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(15, 61, 110, 0.25);
    border-color: rgba(244, 122, 32, 0.3);
}
.project_card_services img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: 0.6s;
}
.project_card_services:hover img {
    transform: scale(1.06);
}
.project_tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(244, 122, 32, 0.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}
.project_card_services h5 {
    font-size: 1.05rem;
    color: var(--primary);
}
.project_card_services p,
.project_card_services span {
    font-size: 13.5px;
    line-height: 1.8;
}

/* ==========================================================
   بخش محصولات
   ========================================================== */
.products_services {
    /* پس‌زمینه روشن */
}
.product_card_services {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.product_card_services:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(15, 61, 110, 0.25);
    border-color: rgba(244, 122, 32, 0.3);
}
.product_card_services img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.5s;
}
.product_card_services:hover img {
    transform: scale(1.06);
}
.product_card_services h6 {
    color: var(--primary);
    font-size: 0.92rem;
}
.product_card_services small {
    font-size: 12px;
}
.product_card_services .link_service {
    font-size: 12.5px;
}

/* ==========================================================
   بخش دعوت به اقدام
   ========================================================== */
.cta_services {
    position: relative;
    padding: 90px 20px;
    overflow: hidden;
    background-color: var(--secondary);
}
.cta_services_overlay {
    position: absolute;
    inset: 0;
    background: url(../images/cta-section.jpg);
    background-size: cover;
    z-index: 1;
}
.content_cta_services {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
}
.content_cta_services h2 {
    font-size: 28px;
    line-height: 1.6;
}
.content_cta_services span {
    font-size: 14px;
    line-height: 1.9;
}

/* ==========================================================
   حالت ریسپانسیو
   ========================================================== */
@media (max-width: 992px) {
    .content_services_hero h1 {
        font-size: 26px;
    }
    .featured_service_card {
        min-height: 380px;
    }
    .content_cta_services h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .services_hero {
        min-height: auto;
        padding: 130px 15px 50px;
    }
    .content_services_hero {
        width: 95%;
    }
    .content_services_hero h1 {
        font-size: 20px;
        line-height: 1.7;
    }
    .subtitle_services {
        font-size: 13px;
    }
    .badge_services {
        font-size: 11px;
        padding: 6px 16px;
    }
    .stat_box_hero i {
        font-size: 22px;
    }
    .stat_box_hero .h5 {
        font-size: 15px;
    }
    .stat_box_hero small {
        font-size: 11px;
    }
    .why_service_card {
        padding: 22px 18px;
    }
    .why_service_card h5 {
        font-size: 1rem;
    }
    .why_service_card p {
        font-size: 12.5px;
    }
    .process_step .step_icon {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }
    .process_step h6 {
        font-size: 0.82rem;
    }
    .process_step small {
        font-size: 11px;
    }
    .stats_services_section {
        padding: 60px 15px;
    }
    .stats_services_section h2 {
        font-size: 20px;
    }
    .stats_services_section > .container > div:first-child span {
        font-size: 13px;
    }
    .stats_services_box .h3 {
        font-size: 20px;
    }
    .stats_services_box i {
        font-size: 24px;
    }
    .stats_services_box small {
        font-size: 11.5px;
    }
    .project_card_services img {
        height: 200px;
    }
    .content_cta_services h2 {
        font-size: 17px;
    }
    .content_cta_services span {
        font-size: 12.5px;
    }
    .btn_accent_about,
    .btn_outline_light_about {
        padding: 10px 22px;
        font-size: 13px;
    }
    .featured_service_card {
        min-height: auto;
        padding: 16px 16px 6px;
        border-radius: 22px;
    }
    .featured_service_image {
        height: 220px;
        border-radius: 16px;
    }
    .featured_service_body {
        padding: 20px 4px 16px;
    }
    .featured_service_body h4 {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    .featured_desc {
        font-size: 13px;
        line-height: 1.95;
        margin-bottom: 20px;
    }
    .featured_badge {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 14px;
    }
    .featured_link {
        font-size: 13px;
    }
}