﻿
/* ========== فونت ========== */
@font-face {
    font-family: 'YekanBakh';
    src: url('fonts/YekanBakh.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========== Reset پایه ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'YekanBakh', Tahoma, Geneva, sans-serif;
    direction: rtl;
    line-height: 1.6;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    font-weight: 400;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ========== متغیرها ========== */
:root {
    --bg: #0f172a;
    --accent: #2563eb;
    --accent-soft: #1e40af;
    --text: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
}

/* ========== Utility ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.min-vh-100 {
    min-height: 100vh;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-fill {
    flex: 1;
}

.text-center {
    text-align: center;
}
/* ========== Logo ========== */
.logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    display: inline-block; /* یا block، بسته به ساختار */
}
/* درخشان کردن لوگو در فوترهای تاریک و منوی موبایل */
.footer-logo-invert {
    filter: brightness(0) invert(1); /* تبدیل کامل بخش‌های تیره و روشن به سفید خالص و یکدست */
    opacity: 0.95;
    transition: all 0.3s ease;
}

    .footer-logo-invert:hover {
        filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
        opacity: 1;
    }

/* تقویت کنتراست لوگو در هدر دسکتاپ (زمینه روشن) */
.header-logo-enhance {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}

.logo-hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}
/* ========== Navbar ========== */
.main-nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    /*    position: relative;*/
    z-index: 1002;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

/* لوگو - راست */
.brand {
    flex-shrink: 0;
    margin-left: 0;
}

.brand-logo {
    height: 50px;
    width: auto;
}

/* منوی دسکتاپ - چپ */
.desktop-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

    .desktop-menu a {
        color: var(--text);
        font-weight: 400;
        font-size: 0.95rem;
        padding: 8px 4px;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
    }

        .desktop-menu a:hover,
        .desktop-menu a.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

/* دکمه موبایل */
.menu-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--text);
    padding: 8px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

    .menu-btn:hover {
        transform: scale(1.05);
    }

/* ----- منوی موبایل (اسلاید از راست با انیمیشن نرم) ----- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    padding: 5px 0 2rem 0;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1003;
    overflow-y: auto;
    border-left: 1px solid #f0f0f0;
}

    .mobile-menu.open {
        right: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 14px 24px;
        color: #1e293b;
        font-weight: 400;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }

        .mobile-menu a:last-child {
            border-bottom: none;
        }

        .mobile-menu a:hover,
        .mobile-menu a.active {
            background: #f8fafc;
            color: var(--accent);
            padding-right: 30px;
        }

/* پوشش تیره پشت منو */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
}

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ========== Hero ========== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 40px 0;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

    .btn-primary:hover {
        background: var(--accent-soft);
        border-color: var(--accent-soft);
    }

.btn-outline-secondary {
    background: transparent;
    color: var(--text);
    border-color: #cbd5e1;
}

    .btn-outline-secondary:hover {
        background: #f1f5f9;
    }

/* ========== Cards ========== */
.cards {
    padding: 25px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    }

    .card img {
        width: 48px;
        height: 48px;
        margin: 0 auto 1rem;
    }

    .card h3 {
        margin-bottom: 0.5rem;
        color: var(--accent);
        font-size: 1.1rem;
    }

    .card p {
        color: var(--muted);
        font-size: 0.9rem;
        line-height: 1.7;
    }

/* ========== Stats ========== */
.stats {
    background: var(--bg);
    padding: 40px 0;
    color: #fff;
}

    .stats .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats .card {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: none;
    }

        .stats .card:hover {
            background: rgba(255,255,255,0.08);
        }

    .stats strong {
        font-size: 2.8rem;
        display: block;
        color: #60a5fa;
        margin-bottom: 0.5rem;
    }

    .stats span {
        font-size: 0.95rem;
        opacity: 0.8;
    }

/* ========== Section Titles ========== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-title h2 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .section-title h3 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .section-title p {
        color: var(--muted);
    }

.title-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Banner ========== */
.banner {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

    .banner h2 {
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .banner p {
        color: var(--muted);
    }

/* ========== Footer ========== */
.site-footer {
    background: var(--bg);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

    .site-footer small {
        opacity: 0.6;
    }

/* ========== Responsive - Mobile ========== */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
        gap: 1.5rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats .cards-grid {
        grid-template-columns: 1fr;
    }

    .banner {
        padding: 2rem 1rem;
    }
}

/* استایل دکمه تماس در هدر */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #2f6fed;
    color: #2f6fed;
    background-color: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: sans-serif;
}

    .contact-btn:hover {
        background-color: #2f6fed;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(47, 111, 237, 0.2);
    }

    .contact-btn:active {
        transform: scale(0.97);
    }

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 5px 5px;
    background-color: #f0fdf4;
    border-radius: 15px;
    color: #2e7d32;
    font-weight: 500;
    border: 1px solid #c8e6c9;
    transition: all 0.2s;
}

    .call-btn:hover {
        background-color: #2e7d32;
        color: white;
        border-color: #2e7d32;
    }

.demoRegister-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 5px;
    background-color: #f0fdf4;
    border-radius: 15px;
    color: #2e7d32;
    font-weight: 500;
    border: 1px solid #c8e6c9;
    transition: all 0.2s;
}

    .demoRegister-btn:hover {
        background-color: #2e7d32;
        color: white;
        border-color: #2e7d32;
    }
/* ========== استایل‌های اختصاصی صفحه درباره ما ========== */
.hero-section {
    background: linear-gradient(135deg, #1f3b4c 0%, #2c5a6e 100%);
    color: white;
    padding: 5rem 0;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.5px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        gap: 6px;
    }
}
.hero-product {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1f2937;
}
.hero-brand {
    font-size: 1.9rem;
    font-weight: 700;
}
.hero-sub {
    font-weight: 400;
    border-right: 4px solid #ffb347;
    padding-right: 1rem;
    display: inline-block;
}

.card-feature {
    border: none;
    border-radius: 2rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03), 0 6px 6px rgba(0,0,0,0.05);
    height: 100%;
}

    .card-feature:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
    }

.icon-circle {
    background: #eef2f5;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    color: #2c5a6e;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    transition: all 0.2s;
}

.card-feature:hover .icon-circle {
    background: #ffb34720;
    color: #c7522a;
}

.section-title {
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -10px;
        right: 0;
        width: 70px;
        height: 4px;
        background: #ffb347;
        border-radius: 5px;
    }

.bg-soft {
    background-color: #f1f5f9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f3b4c;
}

.badge-cement {
    background: #e9ecef;
    color: #1f3b4c;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
}

.btn-outline-gold {
    border: 2px solid #ffb347;
    color: #ffb347;
    border-radius: 50px;
    padding: 0.5rem 1.8rem;
    font-weight: 600;
    transition: 0.2s;
}

    .btn-outline-gold:hover {
        background: #ffb347;
        color: #1f3b4c;
        border-color: #ffb347;
    }

.text-gold {
    color: #ffb347;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }
}

.text-justify {
    text-align: justify;
}

/* ========== Siman Payesh Title ========== */
.text-gradient-green {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* ========== Foloat Call btn ========== */
.float-phone-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #2e7d32;
    color: white;
    border-radius: 50px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    border: none;
    font-family: inherit;
    animation: gentleShake 3s ease-in-out 1s infinite;
}

    .float-phone-btn .phone-icon {
        font-size: 1.4rem;
        line-height: 1;
    }

    .float-phone-btn .phone-number {
        display: inline-block;
    }

@media (max-width: 576px) {
    .float-phone-btn .phone-number {
        display: none;
    }

    .float-phone-btn {
        border-radius: 50%;
        padding: 14px;
        background-color: #2e7d32;
        gap: 0;
    }

        .float-phone-btn .phone-icon {
            font-size: 1.8rem;
            margin: 0;
        }
}

@media (min-width: 577px) {
    .float-phone-btn:hover {
        background-color: #1b5e20;
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }
}

@keyframes gentleShake {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    90% {
        transform: translate(0, 0) rotate(0deg);
    }

    93% {
        transform: translate(-2px, 0) rotate(-2deg);
    }

    96% {
        transform: translate(2px, 0) rotate(2deg);
    }

    99% {
        transform: translate(-1px, 0) rotate(-1deg);
    }
}
/* ========== Module Baner ========== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #1e5f3a 0%, #2e8b57 100%);
}

.text-gradient-green {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fs-md-1 {
    font-size: 2rem;
}

.fs-md-3 {
    font-size: 3rem;
}

.fs-md-5 {
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .fs-md-1 {
        font-size: 2.5rem;
    }

    .fs-md-3 {
        font-size: 3.5rem;
    }

    .fs-md-5 {
        font-size: 1.2rem;
    }
}
/* ========== Cement Show Case ========== */
.cement-showcase {
    width: 100%;
    max-width: 600px;
    height: 500px;
    margin: 0 auto;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 2rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cement-card {
    text-align: center;
    padding: 2rem;
    max-width: 90%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(2px);
    border-radius: 1.5rem;
}

.cement-icon {
    color: #2e7d32;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-left: auto;
    margin-right: auto;
}

    .cement-icon svg {
        width: 48px;
        height: 48px;
    }

.cement-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0.5rem 0 0;
    background: linear-gradient(135deg, #1e4620, #4caf50);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.cement-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #4caf50, #a5d6a7);
    margin: 1.2rem auto;
    border-radius: 2px;
}

.cement-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #2c3e2f;
    margin: 0.5rem 0 0;
    letter-spacing: 0.5px;
}

.cement-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 2rem;
}

    .cement-dots span {
        width: 6px;
        height: 6px;
        background: #2e7d32;
        border-radius: 50%;
        opacity: 0.5;
    }

        .cement-dots span:nth-child(2) {
            width: 8px;
            height: 8px;
            opacity: 0.8;
        }

/* برای نمایش صحیح در موبایل (اگر عرض پدر کوچک‌تر شد) */
@media (max-width: 640px) {
    .cement-showcase {
        height: auto;
        min-height: 400px;
        border-radius: 1.5rem;
    }

    .cement-title {
        font-size: 2.2rem;
    }

    .cement-subtitle {
        font-size: 1.1rem;
    }
}
/* ========== Vision - Mision ========== */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,0.08) !important;
    }

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1.25rem 2rem rgba(0, 0, 0, 0.1) !important;
    }
/* ========== گاه شمار ========== */
.bg-white.rounded-circle {
    transition: all 0.2s ease;
}

    .bg-white.rounded-circle:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
/* ========== Text Justify ========== */
.text-justify {
    text-align: justify;
}

/*.text-right {
    text-align: right;
}*/
/* ========== Module Title in Presentation Page ========== */
.text-gradient-green {
    background: linear-gradient(45deg, #198754, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-red {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-warning {
    background: linear-gradient(45deg, #ffca2c, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
