/* ============================================
   سپیدار سازه | استایل نهایی
   فونت: وزیرمتن (فارسی) + Inter (انگلیسی)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
    --green-dark: #315d49;
    --brown-dark: #78250e;
    --cream: #F5F0E8;
    --white: #FFFFFF;
    --black: #1C2420;
    --gray: #6B7A74;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    background: var(--cream);
    color: var(--black);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}
h1, h2, h3, h4, .logo h1 {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ===== اسکرول‌بار ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 10px; }

/* ===== دکمه‌ها ===== */
.btn-primary {
    background: var(--green-dark);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
}
.btn-model {
    background: var(--green-dark);
    color: var(--white);
    padding: 6px 18px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
}
.btn-model:hover {
    background: var(--brown-dark);
}

/* ===== هدر ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--green-dark);
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 2px solid var(--brown-dark);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.logo h1 {
    font-size: 24px;
    color: var(--white);
    letter-spacing: 2px;
}
.logo h1 span { color: var(--cream); }
.logo p {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.menu {
    display: flex;
    list-style: none;
    gap: 28px;
}
.menu a {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--cream);
    transition: width 0.3s ease;
}
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a:hover, .menu a.active { color: var(--white); }
.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 6px 16px;
}
.header-contact a {
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.header-contact i { font-size: 14px; }
.header-contact:hover { background: rgba(255,255,255,0.2); }
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--white);
}

/* ===== هیرو جدید ===== */
.hero {
    height: 80vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1C3028 0%, #2D4A3E 50%, #3D6B5C 100%);
    margin-top: 70px;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}
.hero-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    font-weight: 300;
    letter-spacing: 1px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: var(--cream);
    color: var(--green-dark);
    padding: 12px 32px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-hero-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}
.btn-hero-outline {
    background: transparent;
    color: var(--white);
    padding: 12px 32px;
    border: 1.5px solid rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-hero-outline:hover {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
    transform: translateY(-2px);
}
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    letter-spacing: 2px;
}
.hero-scroll i {
    display: block;
    font-size: 14px;
    margin-top: 6px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== مزایا ===== */
.features {
    background: var(--green-dark);
    padding: 40px 0;
    border-bottom: 2px solid var(--brown-dark);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.feature {
    color: var(--white);
}
.feature i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}
.feature h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}
.feature p {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== معرفی کوتاه (عکس + متن) ===== */
.intro-section {
    padding: 60px 0;
    background: var(--cream);
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.intro-text .section-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--brown-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.intro-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
}
.intro-text p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}
.intro-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 28px;
}
.intro-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.intro-features li i {
    color: var(--green-dark);
    font-size: 18px;
}

/* ===== عکس معرفی (تنظیمات جدید) ===== */
.intro-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    transition: var(--transition);
}

.intro-image img:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: scale(1.01);
}

/* ===== خدمات تیکر چرخشی ===== */
.services-section {
    padding: 60px 0;
    background: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--brown-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}
.services-ticker-wrapper {
    width: 100%;
    background: var(--cream);
    border: 1px solid #ddd;
    padding: 20px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}
.services-ticker-box {
    width: 100%;
    max-width: 900px;
    text-align: center;
    position: relative;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ticker-item {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 18px;
    font-weight: 500;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 20px;
    background: var(--white);
    border: 1px solid #ddd;
    white-space: nowrap;
}
.ticker-item i {
    color: var(--green-dark);
    font-size: 22px;
}
.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== کلبه‌های آماده / مدل‌ها / پروژه‌ها ===== */
.models-section {
    padding: 60px 0;
    background: var(--cream);
}
.models-grid-vertical,
.projects-grid-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.model-card-vertical,
.project-card-vertical {
    background: var(--white);
    border: 1px solid #ddd;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.model-card-vertical:hover,
.project-card-vertical:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.model-card-vertical img,
.project-card-vertical img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-body-vertical {
    padding: 16px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body-vertical h3 {
    font-size: 18px;
    margin-bottom: 4px;
}
.card-body-vertical .specs {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.card-body-vertical .specs i { width: 16px; }
.card-body-vertical .price {
    font-size: 16px;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 10px;
}
.card-body-vertical .tag {
    display: inline-block;
    background: var(--brown-dark);
    color: white;
    padding: 2px 12px;
    font-size: 11px;
    font-weight: 600;
    align-self: center;
}
.card-body-vertical .btn-model {
    background: var(--green-dark);
    color: white;
    padding: 6px 18px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 13px;
    align-self: center;
    margin-top: 8px;
}
.card-body-vertical .btn-model:hover {
    background: var(--brown-dark);
}

/* ===== CTA ===== */
.cta {
    background: var(--brown-dark);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}
.cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}
.cta p {
    opacity: 0.8;
    margin-bottom: 24px;
}
.cta .btn-primary {
    background: var(--cream);
    color: var(--brown-dark);
    padding: 14px 40px;
    font-size: 16px;
}
.cta .btn-primary:hover {
    background: var(--white);
}

/* ===== فوتر ===== */
footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-about h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 12px;
}
.footer-about h3 span { color: var(--cream); }
.footer-about p { font-size: 13px; line-height: 1.7; }
.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--cream); }
.footer-contact p {
    font-size: 13px;
    margin-bottom: 8px;
}
.footer-contact i { width: 24px; color: var(--cream); }
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}
.social-links a {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    transition: var(--transition);
}
.social-links a:hover { color: var(--cream); transform: translateY(-2px); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

/* ===== دکمه شناور ===== */
.floating-buttons {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-call, .float-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.float-call { background: var(--green-dark); }
.float-call:hover { background: var(--brown-dark); transform: scale(1.04); }
.float-whatsapp { background: #25D366; }
.float-whatsapp:hover { background: #1fad54; transform: scale(1.04); }

/* =========================================================
   ===== ریسپانسیو کامل (یکپارچه و بدون تداخل) =====
   ========================================================= */

/* تبلت و موبایل بزرگ */
@media (max-width: 992px) {
    .container { padding: 0 24px; }
    
    /* منو همیشه باز */
    nav .menu {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
        background: transparent;
        position: static;
        width: auto;
        box-shadow: none;
        padding: 8px 0;
    }
    
    nav .menu li {
        display: inline-block;
        margin: 0;
    }
    
    nav .menu li a {
        font-size: 0.8rem;
        padding: 4px 10px;
        color: #1e293b;
        border-bottom: none;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .header-contact {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 4px;
        width: 100%;
        order: 3;
    }
    
    header .container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .logo {
        width: 100%;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    nav {
        width: 100%;
        order: 2;
    }
}

/* موبایل متوسط */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    
    .hero-title { font-size: 28px; }
    .hero-icon { width: 120px; height: 120px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; }
    
    .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature i { font-size: 24px; }
    .feature h3 { font-size: 15px; }
    .feature p { font-size: 11px; }
    
    .intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .intro-text h2 { font-size: 26px; }
    
    /* ===== تنظیم عکس برای موبایل ===== */
    .intro-image img {
        height: 250px;
        border-radius: 12px;
    }
    
    .ticker-item { 
        font-size: 13px; 
        padding: 4px 12px; 
        gap: 6px; 
        white-space: normal; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .services-ticker-box { height: 80px; }
    
    .models-grid-vertical, .projects-grid-vertical { 
        grid-template-columns: 1fr; 
    }
    
    .section-title { font-size: 28px; }
    
    .cta h2 { font-size: 26px; }
    .cta .btn-primary { padding: 12px 28px; font-size: 14px; }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 13px; }
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 22px; }
    
    nav .menu li a {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    
    /* ===== عکس در موبایل کوچک ===== */
    .intro-image img {
        height: 200px;
        border-radius: 10px;
    }
}

/* ===== کارت‌های موبایل کوچک‌تر ===== */
@media (max-width: 600px) {
    .features-grid,
    .services-grid,
    .projects-grid,
    .catalog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .feature,
    .service-item,
    .project-item,
    .catalog-item {
        padding: 12px 8px !important;
        font-size: 0.8rem !important;
    }
    
    .feature i,
    .service-item i,
    .project-item i {
        font-size: 1.4rem !important;
    }
    
    .feature h3,
    .service-item h4,
    .project-item h4 {
        font-size: 0.8rem !important;
    }
    
    .feature p,
    .service-item p,
    .project-item p {
        font-size: 0.7rem !important;
    }
    
    .intro-features {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    
    .intro-features li {
        font-size: 0.75rem;
        padding: 3px 8px;
        background: #f1f5f9;
        border-radius: 16px;
        white-space: nowrap;
    }
    
    .intro-features li i {
        font-size: 0.65rem;
    }
}

/* ===== کارت اینستاگرام ===== */
.insta-card {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
    margin: 16px 0;
}
.insta-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--brown-dark);
}
.insta-card-content i {
    font-size: 32px;
    color: #E4405F;
    margin-bottom: 6px;
    display: block;
}
.insta-card-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--black);
}
.insta-card-content p {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}
.btn-insta {
    display: inline-block;
    background: #E4405F;
    color: white;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-insta:hover {
    background: #C13584;
    transform: scale(1.02);
}