/* ==================================================
   طراحی اختصاصی جرثقیل غرب تهران
   Joomla 6 + Cassiopeia + SP Page Builder
   ================================================== */

/* ---------- فونت ایران‌سنس ---------- */

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/Iranian%20Sans.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- رنگ‌های اصلی ---------- */

:root {
    --crane-navy: #142b45;
    --crane-blue: #203e5e;
    --crane-yellow: #ffc400;
    --crane-light: #f4f6f8;
    --crane-text: #333333;
}

/* ---------- تنظیمات عمومی و فونت ---------- */

html {
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif !important;
}

body {
    direction: rtl;
    color: var(--crane-text);
    background: #ffffff;
    font-size: 16px;
    line-height: 2;
}

/* ---------- تیترهای کل سایت ---------- */

h1, h2, h3, h4, h5, h6,
.sppb-addon-title {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.8;
    color: var(--crane-navy);
}

h1 { font-size: 32px; }
h2 { font-size: 27px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
h6 { font-size: 16px; }

a {
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- متن مطالب جوملا ---------- */

.com-content-article__body,
.com-content-article__body p,
.item-page,
.item-page p,
.article-body,
.article-body p {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 2 !important;
}

.com-content-article__body h1,
.com-content-article__body h2,
.com-content-article__body h3,
.item-page h1,
.item-page h2,
.item-page h3 {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
}

/* ---------- دکمه‌ها ---------- */

.sppb-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 7px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sppb-btn:hover {
    transform: translateY(-3px);
}

/* ---------- بنر اصلی ---------- */

.hero-crane {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    padding: 90px 30px;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-crane::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 25, 43, 0.35),
        rgba(10, 25, 43, 0.84)
    );
    z-index: 0;
    pointer-events: none;
}

.hero-crane > .sppb-row-container,
.hero-crane .sppb-container,
.hero-crane .sppb-row {
    position: relative;
    z-index: 1;
}

.hero-crane h1,
.hero-crane .sppb-addon-title {
    color: #ffffff !important;
    font-size: 42px;
    font-weight: 900 !important;
    line-height: 1.8;
    margin-bottom: 20px;
}

.hero-crane p {
    color: #ffffff !important;
    font-size: 18px;
    line-height: 2.2;
}

.hero-crane .sppb-btn {
    background: var(--crane-yellow) !important;
    border: 2px solid var(--crane-yellow) !important;
    color: var(--crane-navy) !important;
    font-size: 17px;
    padding: 14px 32px;
}

.hero-crane .sppb-btn:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

/* ---------- بخش خدمات ---------- */

.crane-services {
    background: var(--crane-light);
    padding: 40px 20px 25px;
    margin: 0;
}

.crane-services .sppb-addon {
    background: #ffffff;
    padding: 28px 20px;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    box-shadow: 0 6px 24px rgba(20, 43, 69, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.crane-services .sppb-addon:hover {
    transform: translateY(-8px);
    border-color: var(--crane-yellow);
    box-shadow: 0 12px 30px rgba(20, 43, 69, 0.15);
}

.crane-services .sppb-addon-title {
    color: var(--crane-navy);
    font-size: 20px;
    font-weight: 900 !important;
    margin-bottom: 15px;
}

.crane-services .sppb-addon p {
    color: #555555;
    font-size: 14px;
    line-height: 2.1;
}

/* ---------- انواع جرثقیل ---------- */

.crane-types {
    background: #ffffff;
    padding: 25px 20px 50px;
    margin: 0;
}

.crane-types .sppb-addon {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.crane-types .sppb-addon:hover {
    transform: translateY(-6px);
}

.crane-types .sppb-addon-title {
    color: var(--crane-navy);
    font-size: 20px;
    font-weight: 900 !important;
}

.crane-card-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 10px;
    display: block;
}

/* ---------- درباره مجموعه ---------- */

.crane-about {
    background: var(--crane-light);
    padding: 65px 20px;
    margin: 0;
}

.crane-about h2 {
    font-size: 29px;
    color: var(--crane-navy);
}

.crane-about p {
    line-height: 2.2;
    font-size: 16px;
}

/* ---------- تماس ---------- */

.crane-contact {
    background: var(--crane-navy);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.crane-contact h2,
.crane-contact h3,
.crane-contact p {
    color: #ffffff !important;
}

.crane-contact .sppb-btn {
    background: var(--crane-yellow) !important;
    border-color: var(--crane-yellow) !important;
    color: var(--crane-navy) !important;
}

.sppb-section {
    position: relative;
}

/* ---------- منوی اصلی ---------- */

.container-header {
    background: #10243e !important;
    background-image: none !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.container-header .mod-menu a {
    color: #ffffff !important;
    font-family: 'IRANSans', Tahoma, sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px !important;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.container-header .mod-menu a:hover {
    background: #f5c400 !important;
    color: #10243e !important;
}

.container-header .mod-menu li.active > a {
    background: #f5c400 !important;
    color: #10243e !important;
}

.container-header .mod-menu {
    gap: 8px;
}

/* ---------- لپ‌تاپ و دسکتاپ ---------- */

@media (min-width: 769px) {
    .hero-crane {
        min-height: 560px !important;
    }

    .crane-services {
        min-height: 350px !important;
    }

    .crane-types {
        min-height: 450px !important;
    }

    .crane-about {
        min-height: 550px !important;
    }

    .crane-contact {
        min-height: 250px !important;
    }
}

/* ---------- موبایل ---------- */

@media (max-width: 768px) {
    .hero-crane {
        min-height: 420px !important;
        padding: 50px 15px;
        background-position: center center !important;
    }

    .hero-crane h1,
    .hero-crane .sppb-addon-title {
        font-size: 27px;
        line-height: 1.8;
    }

    .hero-crane p {
        font-size: 15px;
    }

    .hero-crane .sppb-btn {
        font-size: 15px;
        padding: 11px 22px;
    }

    .crane-services,
    .crane-types,
    .crane-about,
    .crane-contact {
        padding: 35px 15px;
    }

    .crane-services {
        min-height: 850px !important;
    }

    .crane-types {
        min-height: 1100px !important;
    }

    .crane-about {
        min-height: 800px !important;
    }

    .crane-contact {
        min-height: 300px !important;
    }

    .crane-services .sppb-addon {
        margin-bottom: 15px;
    }

    .crane-card-image img {
        height: 200px !important;
    }

    .container-header .mod-menu a {
        display: block;
        padding: 12px 15px !important;
    }

    .container-header .mod-menu {
        gap: 4px;
    }

    h1 { font-size: 27px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}


/* تصاویر داخل مطالب: عرض ۹۰٪ و ارتفاع متناسب */
.item-page .item-image img,
.item-page .article-content img,
.item-page .com-content-article__body img,
.article-content img,
.com-content-article__body img,
.com-content-article img {
    width: 90% !important;
    max-width: 90% !important;
    height: auto !important;
    display: block;
    margin: 15px auto !important;
    object-fit: contain;
}
