/* تنظیمات پایه */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

/* ================================================================
   بخش اصلی (Hero Section) 
   ================================================================
*/
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    
    /* عکس پس‌زمینه لاستیک */
    background-image: url('../img/hero.png'); 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* لایه تاریک روی عکس */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ================================================================
   بخش تصویر پس‌زمینه منو (نوار رنگی مورب)
   ================================================================
*/
.menu-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 160px;
    z-index: 2;
    background-image: url('../img/menubg.webp');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
}

/* کانتینر منو - تنظیم شده برای چسبیدن به بالای صفحه */
.navbar-container {
    position: fixed; /* کلید اصلی: ثابت شدن نسبت به صفحه */
    top: 0;
    left: 0;
    right: 0; /* برای اینکه با margin auto وسط‌چین کار کند */
    z-index: 1000; /* اطمینان از اینکه روی همه لایه‌ها (حتی نوار قرمز) باشد */
    
    max-width: 1280px; 
    margin: 0 auto; /* وسط چین کردن افقی */
    
    padding-top: 95px; /* کمی فاصله از سقف برای زیبایی در دسکتاپ */
    transition: padding 0.3s ease; /* انیمیشن نرم در صورت تغییر */
}

/* نوار سرمه‌ای */
.navbar {
    background-color: #1a2b5e;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative; /* برای پوزیشن‌دهی منوی موبایل */
}

/* لوگو */
.logo {
    font-style: italic;
    font-weight: 900;
    font-size: 26px;
    color: #e0e0e0;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000, 3px 3px 5px rgba(255,255,255,0.3);
    margin-right: auto;
    letter-spacing: 1px;
}

/* لینک‌های منو */
.nav-links {
    list-style: none;
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    align-items: center;
    margin-right: 20px;
    z-index: 10;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

/* استایل دکمه Home */
.nav-links li.active a {
    background-color: #ea3834;
}

.nav-links li:hover a {
    color: #ffb74d;
}

.nav-links li.active:hover a {
    color: white;
    background-color: #d6302c;
}

/* باکس جستجو */
.search-box {
    display: flex;
    align-items: center;
    height: 32px;
}

.search-box input {
    height: 100%;
    border: none;
    padding: 0 10px;
    outline: none;
    font-size: 14px;
    width: 140px;
    background-color: #f2f2f2;
}

.search-box button {
    height: 32px;
    width: 35px;
    background-color: #ea3834;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button svg {
    fill: white;
    width: 16px;
    height: 16px;
}

/* استایل دکمه همبرگری (به صورت پیش‌فرض مخفی) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* محتوای وسط صفحه */
.hero-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    width: 90%;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 45px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.btn-view-more {
    background-color: #ea3834;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-view-more:hover {
    background-color: #c42b27;
}

/* ================================================================
   استایل‌های بخش درباره ما (About Section)
   ================================================================ */
.about-section {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.section-header-wrapper {
    text-align: center;
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.watermark-text {
    font-size: 80px;
    font-weight: 900;
    color: #f2f2f2;
    letter-spacing: 10px;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    user-select: none;
}

.line-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.dashed-line {
    flex-grow: 1;
    border-top: 2px dashed #d1d1d1;
    height: 1px;
}

.red-icon-circle {
    width: 30px;
    height: 30px;
    background-color: #ea3834;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    box-shadow: 0 0 0 4px #fff;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 50px;
}

.about-image-col {
    flex: 1;
    max-width: 500px;
}

.about-image-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-content-col {
    flex: 1.2;
    text-align: left;
}

.sub-title {
    color: #ea3834;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-title {
    color: #1a2b5e;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.highlight-text {
    color: #1a2b5e;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.description {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.btn-learn-more {
    background-color: #1a2b5e;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-learn-more:hover {
    background-color: #ea3834;
}

/* ================================================================
   استایل‌های بنر قرمز (Contact Banner)
   ================================================================ */
.contact-banner-section {
    position: relative;
    width: 100%;
    background-image: url('../img/secbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    color: white;
    display: flex;
    align-items: center;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.banner-text-col {
    flex: 1;
    padding-right: 50px;
    max-width: 650px;
}

.banner-text-col h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.banner-text-col p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

.banner-info-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 250px;
}

.phone-number {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
    display: block;
}

.brand-name-large {
    font-size: 38px;
    font-weight: 400;
    margin: 0 0 25px 0;
    text-transform: uppercase;
}

.btn-contact-white {
    background-color: white;
    color: #333;
    border: none;
    padding: 12px 35px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.btn-contact-white:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

/* ================================================================
   استایل‌های بخش برندها (Brands Grid)
   ================================================================ */
.brands-section {
    padding: 60px 0;
    background-color: #fff;
}

.brands-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px;
    padding: 0 20px;
    align-items: center;
    justify-items: center;
}

.brand-item {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none; 
}

.brand-item img {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease; 
    cursor: pointer;
}

.brand-item:hover img {
    transform: scale(1.15);
}

/* ================================================================
   استایل‌های بخش فوتر (Footer)
   ================================================================ */
.footer-section {
    width: 100%;
    background-image: url('../img/footerbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    color: white;
    font-size: 14px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 40px;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.footer-logo {
    font-style: italic;
    font-weight: 900;
    font-size: 52px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000, 3px 3px 4px rgba(255,255,255,0.3);
    margin-bottom: 15px;
    display: inline-block;
}

.company-name-footer {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links li a {
    text-decoration: none;
    color: #ccc;
    font-weight: bold;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: white;
}

.footer-right {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.address-line {
    margin-bottom: 10px;
    color: #ddd;
}

.contact-line {
    margin-bottom: 5px;
    color: #ddd;
}

/* ================================================================
   RESPONSIVE DESIGN (موبایل و تبلت)
   ================================================================ */
@media (max-width: 768px) {
    /* 1. تنظیمات هدر و منوی همبرگری */
    .navbar-container {
        padding-top: 0; /* در موبایل فاصله از سقف حذف شود تا جای بیشتری باشد */
        width: 100%;    /* عرض کامل */
    }

    .hamburger {
        display: block; /* نمایش دکمه همبرگری */
        z-index: 20;
    }

    /* انیمیشن تبدیل شدن به ضربدر */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* منوی کشویی */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0; /* چسبیده به بالای صفحه */
        gap: 0;
        flex-direction: column;
        background-color: #1a2b5e; /* رنگ سرمه‌ای */
        width: 100%;
        height: auto; /* ارتفاع محتوا */
        padding-top: 80px; /* فاصله برای اینکه زیر لوگو نیفتد */
        padding-bottom: 20px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        left: 0; /* باز شدن منو */
    }

    .nav-links li {
        width: 100%;
        display: block;
        margin: 10px 0;
        height: auto;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        font-size: 18px;
    }

    .search-box {
        display: none; /* در موبایل سرچ باکس را مخفی می‌کنیم تا شلوغ نشود (اختیاری) */
    }

    /* 2. Hero Section */
    .hero-content h1 {
        font-size: 32px; /* فونت کوچکتر برای موبایل */
    }
    .hero-content p {
        font-size: 14px;
    }

    /* 3. About Section */
    .about-container {
        flex-direction: column; /* چینش ستونی */
        text-align: center;
    }
    
    .watermark-text {
        font-size: 50px;
    }
    
    .main-title {
        font-size: 26px;
    }

    .about-content-col {
        text-align: center; /* وسط‌چین کردن متن در موبایل */
    }
    
    .description {
        text-align: center; /* یا justify */
    }

    /* 4. Contact Banner */
    .banner-container {
        flex-direction: column;
        text-align: center;
    }

    .banner-text-col {
        padding-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .banner-text-col h2 {
        font-size: 26px;
    }

    .banner-info-col {
        width: 100%;
        align-items: center; /* وسط‌چین کردن اطلاعات */
    }

    /* 5. Brands */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ستون در تبلت/موبایل */
        gap: 20px;
    }

    /* 6. Footer */
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .footer-right {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap; /* اگر لینک‌ها زیاد بود بروند خط بعد */
    }
}

@media (max-width: 480px) {
    /* تنظیمات مخصوص موبایل‌های کوچک */
    .brands-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 ستون در موبایل کوچک */
    }
    
    .footer-logo {
        font-size: 36px;
    }
}