/*
 * ماشین‌سازی شاه‌آبادی — ظاهر تمیز و مدرن (۱۴۰۵/۰۷/۲۶)
 * فقط ظاهر. آخرین فایل CSS است و روی قالب و polish.css می‌نشیند. فونت: Vazirmatn (فایل خودمان).
 */
@font-face { font-family: 'Vazirmatn'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); }

:root {
    --m-green: #2f7d45;
    --m-green-dark: #1f5a31;
    --m-green-soft: #eaf3ec;
    --m-ink: #1f2a24;
    --m-text: #3d4a43;
    --m-muted: #6b7a72;
    --m-line: #e4eae6;
    --m-bg: #f6f8f6;
    --m-radius: 14px;
    --m-font: 'Vazirmatn', Tahoma, sans-serif;
}

html, body { overflow-x: hidden; max-width: 100%; }
body, h1, h2, h3, h4, h5, h6, p, a, li, span, input, textarea, select, button,
.nav-link, .form-control, .product-box .pro-txt, .section-title-2 h2, .section-title-2 h5,
.btn-theme-primary, .btn-theme-outline, .aboutus, a.lm, .blog-card-date, .blog-card-more {
    font-family: var(--m-font) !important;
}
.fas, .far { font-family: 'Font Awesome 5 Free' !important; }
.fab { font-family: 'Font Awesome 5 Brands' !important; }
.fa { font-family: FontAwesome !important; }
body { background: #fff; color: var(--m-text); line-height: 1.9; font-size: 15.5px; letter-spacing: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--m-ink); font-weight: 700; line-height: 1.5; letter-spacing: 0; }
a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.container { max-width: 1180px; padding-right: 20px; padding-left: 20px; }

/* ---------- هدر: سفید و ساده ---------- */
header.header-style-2 { background: #fff !important; box-shadow: 0 1px 0 var(--m-line); }
header.header-style-2 .navbar { background: #fff !important; min-height: 72px; padding: 0 20px; }
header.header-style-2 .navbar-brand { background: transparent !important; margin: 0 0 0 24px; padding: 8px 0; min-width: 0; }
header.header-style-2 .navbar-brand img { height: 52px; max-height: 52px; width: auto; }
.header-style-2 .navbar-expand-lg .navbar-nav .nav-link {
    color: var(--m-ink) !important; font-size: 15px; font-weight: 500; padding: 26px 14px; position: relative; background: transparent !important;
}
.header-style-2 .navbar-expand-lg .navbar-nav .nav-link:hover,
.header-style-2 .navbar-expand-lg .navbar-nav .nav-item.active .nav-link { color: var(--m-green) !important; }
.header-style-2 .navbar-expand-lg .navbar-nav .nav-link:after {
    content: ""; position: absolute; right: 14px; left: 14px; bottom: 16px; height: 2px; background: var(--m-green);
    transform: scaleX(0); transition: transform .2s ease;
}
.header-style-2 .navbar-expand-lg .navbar-nav .nav-link:hover:after { transform: scaleX(1); }
.header-style-2 .navbar-nav li.nav-item:after { display: none !important; }
.header-search-wrapper .form-control {
    background: var(--m-bg) !important; border: 1px solid var(--m-line); height: 42px; border-radius: 21px; font-size: 14px;
}
.header-search-wrapper .form-control:focus { border-color: var(--m-green); box-shadow: 0 0 0 3px rgba(47, 125, 69, .12); outline: 0; }
header.header-style-2 .dropdown-menu { border: 1px solid var(--m-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .08); padding: 6px; }
header.header-style-2 .dropdown-item { border-radius: 8px; font-size: 14px; padding: 8px 14px; }
header.header-style-2 .navbar-toggler { background: var(--m-green-soft) !important; color: var(--m-green-dark) !important; border: 0; }

/* ---------- صفحهٔ اول ---------- */
.home-hero { background: #fff; padding: 20px 20px 0; line-height: 0; }
.home-hero img { max-width: 1180px; margin: 0 auto; border-radius: 20px; height: clamp(220px, 46vw, 520px); object-position: center 30%; }
.home2-about.p100 { padding: 72px 0; }
.h2-about-txt h3 { color: var(--m-ink) !important; font-size: 28px; margin-bottom: 16px; }
.h2-about-txt p { color: var(--m-text); line-height: 2.1; font-size: 15.5px; text-align: justify; }
.home2-about .video-img img { border-radius: 18px; box-shadow: 0 10px 30px rgba(31, 42, 36, .08); }
.online-shop.p80 { background: var(--m-bg); padding: 72px 0 80px; }
.section-title-2 h5 { color: var(--m-green) !important; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.section-title-2 h2 { font-size: 30px; }
.section-title-2 h2:after, .section-title-2 h2:before { display: none !important; }
.section-title-2 { margin-bottom: 36px; }

/* ---------- دکمه‌ها ---------- */
.aboutus, a.lm, .btn-theme-primary, .blog-card-more {
    background: var(--m-green) !important; color: #fff !important; border: 0; border-radius: 12px; padding: 0 28px;
    line-height: 46px; height: 46px; display: inline-block; font-weight: 500; font-size: 14.5px; text-decoration: none; box-shadow: none;
}
.btn-theme-primary { padding: 0 28px; display: inline-flex; align-items: center; gap: 8px; }
.aboutus:hover, a.lm:hover, .btn-theme-primary:hover, .blog-card-more:hover { background: var(--m-green-dark) !important; color: #fff !important; }
.btn-theme-outline { border: 1.5px solid var(--m-green) !important; color: var(--m-green) !important; border-radius: 12px; background: transparent; line-height: 43px; padding: 0 24px; display: inline-block; }
.btn-theme-outline:hover { background: var(--m-green-soft); }

/* ---------- کارت محصول ---------- */
.product-grid > [class*="col-"] { padding-right: 10px; padding-left: 10px; margin-bottom: 20px; }
.product-box { background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-radius); box-shadow: none; }
.product-box:hover { box-shadow: 0 12px 28px rgba(31, 42, 36, .09); transform: translateY(-3px); border-color: #d3dfd6; }
.product-box .pro-thumb { background: #fff; }
.product-box .pro-thumb > a { display: none !important; }
.product-box .pro-txt { padding: 14px 16px 18px; }
.product-box .pro-txt h6 { font-size: 15px; font-weight: 500; line-height: 1.8; }
.product-box .pro-txt h6 a { color: var(--m-ink); }
.product-box .pro-txt h6 a:hover { color: var(--m-green); }
.product-box .pro-txt p.pro-price { color: var(--m-green) !important; font-weight: 700; font-size: 14.5px; }
.pro-price-contact a { color: var(--m-muted); font-size: 13px; font-weight: 500; }

/* ---------- سربرگ صفحه‌های داخلی ---------- */
.inner-header { background: var(--m-green-soft) !important; padding: 40px 0 34px; border-bottom: 1px solid var(--m-line); }
.inner-header h1 { color: var(--m-ink) !important; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.inner-header .breadcrumb-nav li, .inner-header .breadcrumb-nav a { color: var(--m-muted) !important; font-size: 13.5px; }
.inner-header .breadcrumb-nav li:last-child { color: var(--m-green-dark) !important; }
.page-content { padding: 48px 0 72px; }

/* ---------- صفحهٔ محصول ---------- */
.pro-large { border-radius: var(--m-radius); border-color: var(--m-line); }
.product-thumbs img { border: 1px solid var(--m-line) !important; border-radius: 10px; }
.product-info { border-radius: var(--m-radius); border-color: var(--m-line); box-shadow: none; padding: 28px; }
.product-info .pro-title h2 { font-size: 24px; color: var(--m-ink); }
.product-info h4 { font-size: 17px; margin-bottom: 10px; }
.product-detail-price { color: var(--m-green) !important; font-size: 24px; font-weight: 700; }
.product-contact-phone { color: var(--m-green-dark); font-weight: 700; }
.product-info .about-txt { color: var(--m-text); }

/* ---------- تماس و فرم ---------- */
.contact-info, .contact-form { background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 28px; height: 100%; }
.contact-info h3, .contact-form h3 { font-size: 20px; margin-bottom: 18px; }
.contact-info .quick-links { list-style: none; padding: 0; margin: 0; }
.contact-info .quick-links li { padding: 8px 0; border-bottom: 1px dashed var(--m-line); color: var(--m-text); }
.contact-info .quick-links li:last-child { border-bottom: 0; }
.contact-info a { color: var(--m-green-dark); }
.contact-info-label { color: var(--m-muted); font-weight: 500; }
.form-control { border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-bg); min-height: 46px; padding: 10px 14px; font-size: 14.5px; box-shadow: none; }
textarea.form-control { min-height: 130px; }
.form-control:focus { background: #fff; border-color: var(--m-green); box-shadow: 0 0 0 3px rgba(47, 125, 69, .12); }

/* ---------- گالری، صفحه‌بندی، وبلاگ ---------- */
.instagram.p80 { padding: 64px 0; }
.theme-964-pagination .page-link { color: var(--m-green); border-radius: 8px; margin: 0 3px; border: 1px solid var(--m-line); }
.theme-964-pagination .page-item.active .page-link { background: var(--m-green); border-color: var(--m-green); color: #fff; }
.blog-card { border-radius: var(--m-radius); border-color: var(--m-line); }
.blog-card-title a:hover { color: var(--m-green); }

/* ---------- فوتر: آرام و تیره ---------- */
.footer { background: #17261d !important; color: #c9d6cd; }
.footer-overlay { display: none !important; }
.footer .footer-top { background: transparent !important; padding: 56px 0 20px; }
.footer .footer-top.custom-footer { display: none; }
.footer-widget h4 { color: #fff !important; font-size: 17px; font-weight: 700; margin-bottom: 16px; padding-bottom: 0; }
.footer-widget h4:after, .footer-widget h4:before { display: none !important; }
ul.quick-links { list-style: none; padding: 0; margin: 0; }
ul.quick-links li { line-height: 2.2; color: #c9d6cd; padding: 0; }
.footer ul.quick-links li a, .footer ul.quick-links li span { color: #c9d6cd; font-size: 14.5px; }
.footer ul.quick-links li a:hover { color: #fff; }
.footer ul.quick-links li a:before { display: none !important; }
.footer ul.quick-links li .contact-info-label { color: #8fa597; }
.footer-copyr { background: #111d16 !important; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-copyr p { color: #9db0a4; font-size: 13px; }
.footer-copyr p a { color: #d4e2d9; }

/* ---------- تبلت و موبایل ---------- */
@media (max-width: 991.98px) {
    header.header-style-2 .navbar { min-height: 62px; padding: 0 16px; }
    header.header-style-2 .navbar-brand { padding: 6px 0; margin: 0; }
    header.header-style-2 .navbar-brand img { height: 46px; max-height: 46px; }
    header.header-style-2 .navbar-collapse { background: #fff !important; margin: 0 -16px; padding: 4px 20px 16px; border-top: 1px solid var(--m-line); }
    .header-style-2 .navbar-expand-lg .navbar-nav .nav-link { padding: 12px 2px; border-bottom: 1px solid var(--m-line) !important; }
    .header-style-2 .navbar-expand-lg .navbar-nav .nav-link:after { display: none; }
    header.header-style-2 .dropdown-menu { box-shadow: none; border: 0; padding: 0 12px; }
    .home-hero { padding: 12px 12px 0; }
    .home-hero img { border-radius: 14px; }
}
@media (max-width: 767.98px) {
    body { font-size: 15px; }
    .container { padding-right: 16px; padding-left: 16px; }
    .home-hero img { height: clamp(180px, 56vw, 320px); }
    .home2-about.p100 { padding: 44px 0; }
    .h2-about-txt h3, .section-title-2 h2 { font-size: 23px; }
    .online-shop.p80 { padding: 44px 0 52px; }
    .product-grid > [class*="col-"] { padding-right: 6px; padding-left: 6px; margin-bottom: 12px; }
    .product-box .pro-txt h6 { font-size: 14px; }
    .inner-header { padding: 28px 0 24px; }
    .inner-header h1 { font-size: 22px; }
    .page-content { padding: 30px 0 48px; }
    .product-info, .contact-info, .contact-form { padding: 20px 16px; }
    .contact-info { margin-bottom: 16px; }
    .footer .footer-top { padding: 40px 0 8px; }
}

/* ---------- اصلاح‌های تکمیلی ---------- */
.pro-title { background: none !important; padding: 0 !important; margin: 0 0 8px !important; }
.pro-title h2 { color: var(--m-ink) !important; }
.contact-info { margin-top: 0 !important; }
.contact-info ul.quick-links li { line-height: 1.9; }
.contact-info ul.quick-links li a, .contact-info ul.quick-links li span { color: var(--m-text); font-size: 15px; font-weight: 500; }
.contact-info ul.quick-links li a { color: var(--m-green-dark); }
.contact-info ul.quick-links li a:before, .contact-info ul.quick-links li:before, .contact-info ul.quick-links li:after { display: none !important; content: none !important; }
.contact-info .fab { display: none; }
.contact-info .contact-info-label { color: var(--m-muted); }
.contact-form { float: none; }
.product-info .product-code { margin: 0 0 6px; }
.product-info .product-detail-price { margin: 12px 0 18px; }

/* ---------- بنر اصلی: افکتِ آرام و حرفه‌ای ---------- */
.home-hero {
    position: relative; overflow: hidden; isolation: isolate; line-height: 0;
    width: calc(100% - 40px); max-width: 1180px; margin: 20px auto 0; padding: 0;
    border-radius: 22px; background: var(--m-green-dark);
    box-shadow: 0 30px 60px -20px rgba(15, 40, 24, .45), 0 12px 24px -12px rgba(15, 40, 24, .3);
    animation: hero-in .9s cubic-bezier(.2, .7, .2, 1) both;
}
.home-hero picture { display: block; will-change: transform; transform: translate3d(0, var(--hero-py, 0px), 0); }
.home-hero img {
    max-width: none; width: 100%; margin: 0; border-radius: 0; display: block;
    height: clamp(240px, 46vw, 520px); object-fit: cover; object-position: center 30%;
    transform-origin: 60% 40%; animation: hero-kb 22s ease-in-out infinite alternate; will-change: transform;
}
/* گرادیانِ تیره از پایین با اندکی سبزِ برند */
.home-hero:before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(to top, rgba(15, 40, 24, .62) 0%, rgba(31, 90, 49, .22) 38%, rgba(31, 90, 49, 0) 70%),
        linear-gradient(120deg, rgba(47, 125, 69, .12), rgba(47, 125, 69, 0) 50%);
}
/* خطِ نورِ ملایمِ لبه */
.home-hero:after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -40px 60px -40px rgba(255, 255, 255, .12);
}
@keyframes hero-kb { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 991.98px) {
    .home-hero { width: calc(100% - 24px); margin-top: 12px; border-radius: 16px; box-shadow: 0 14px 28px -14px rgba(15, 40, 24, .4); }
    .home-hero picture { transform: none; will-change: auto; }
    .home-hero img { animation-duration: 30s; }
}
@media (max-width: 767.98px) {
    .home-hero img { height: clamp(180px, 56vw, 320px); }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero, .home-hero img { animation: none !important; }
    .home-hero picture { transform: none !important; will-change: auto; }
}

/* ---------- حالتِ کاتالوگ: فهرستِ محصولات زیرِ هم ---------- */
header.header-style-2 a[href*="cart"], header.header-style-2 a[href*="login"] { display: none !important; }
.catalog-list { display: flex; flex-direction: column; gap: 18px; max-width: 980px; margin: 0 auto; }
.catalog-row {
    display: flex; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-radius);
    overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
.catalog-row:hover { box-shadow: 0 12px 28px rgba(31, 42, 36, .09); border-color: #d3dfd6; }
.catalog-thumb { flex: 0 0 240px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; border-left: 1px solid var(--m-line); }
.catalog-thumb img { width: 100%; height: 200px; object-fit: contain; display: block; }
.catalog-body { flex: 1; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; }
.catalog-body h3 { font-size: 19px; margin: 0 0 8px; }
.catalog-body h3 a { color: var(--m-ink); }
.catalog-body h3 a:hover { color: var(--m-green); }
.catalog-summary { color: var(--m-muted); font-size: 14.5px; line-height: 1.95; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.catalog-price { color: var(--m-green); font-weight: 700; font-size: 15px; }
.catalog-price-contact { color: var(--m-muted); font-weight: 500; }
a.catalog-more {
    background: var(--m-green-soft); color: var(--m-green-dark) !important; border-radius: 10px; padding: 0 20px; line-height: 40px; height: 40px;
    font-size: 14px; font-weight: 500; display: inline-block;
}
a.catalog-more:hover { background: var(--m-green); color: #fff !important; }
.online-shop .section-title-2 h5 { display: none; }

/* ---------- صفحهٔ محصول: استعلام به‌جای خرید ---------- */
.inquiry-box { background: var(--m-green-soft); border-radius: 12px; padding: 18px 20px; margin: 4px 0 8px; }
.inquiry-box p { margin: 0 0 12px; color: var(--m-green-dark); font-weight: 500; line-height: 1.9; }
.inquiry-box .btn-theme-primary, .inquiry-box .btn-theme-outline { margin: 0 0 8px 8px !important; }
.product-info .about-txt { font-size: 15px; line-height: 2.1; }
.product-info .about-txt img { max-width: 100%; height: auto; border-radius: 10px; }
.product-info .about-txt table { width: 100%; display: block; overflow-x: auto; }

@media (max-width: 767.98px) {
    .catalog-row { flex-direction: column; }
    .catalog-thumb { flex: none; border-left: 0; border-bottom: 1px solid var(--m-line); padding: 10px; }
    .catalog-thumb img { height: 190px; }
    .catalog-body { padding: 16px 16px 18px; }
    .catalog-body h3 { font-size: 17px; }
    .catalog-meta { flex-direction: row; }
    .inquiry-box .btn-theme-primary, .inquiry-box .btn-theme-outline { width: 100%; justify-content: center; text-align: center; margin: 0 0 8px !important; }
}

/* ---------- «درباره ما» در صفحهٔ اول: خلاصه با امکانِ باز کردن ---------- */
.about-clip { position: relative; overflow: hidden; }
.js-about .about-clip { transition: max-height .5s ease; }
.js-about .about-clip.is-collapsed { max-height: calc(2.1em * 6); }
.js-about .about-clip:after {
    content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 3.2em; pointer-events: none;
    background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0)); opacity: 0; transition: opacity .3s ease;
}
.js-about .about-clip.is-collapsed:after { opacity: 1; }
.about-clip p { margin-bottom: 0 !important; }
.about-toggle { border: 0; cursor: pointer; margin-top: 18px; font-family: var(--m-font) !important; }
.about-toggle[hidden] { display: none; }
@media (max-width: 767.98px) { .js-about .about-clip.is-collapsed { max-height: calc(2em * 3); } }
@media (prefers-reduced-motion: reduce) { .js-about .about-clip, .js-about .about-clip:after { transition: none; } }
