/* استایل اصلی سایت */
html, body {
    height: 100%; /* تنظیم ارتفاع برای html و body به 100% */
    margin: 0;
    padding: 0; /* حذف پدینگ پیش‌فرض */
}

body {
    font-family: 'Vazir', sans-serif;
    line-height: 1.8;
    color: #222;
    background-color: #f9f9f9;
    direction: rtl;
    text-align: right;
    
    background-size: cover; /* تصویر به طور کامل پس‌زمینه را پوشش دهد */
    background-position: center; /* تصویر در مرکز صفحه قرار گیرد */
    background-attachment: fixed; /* تصویر هنگام اسکرول صفحه ثابت باشد */
    min-height: 100vh; /* حداقل ارتفاع صفحه را به 100vh (ارتفاع کل صفحه نمایش) تنظیم می‌کند */
    display: flex;
    flex-direction: column;
}

/* استایل هدر */
header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-image: url("https://www.etehadomranpars.com/mehran-image/slide1.webp");
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 1rem;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem;
    border-radius: 5px;
}

.nav-list a:hover, .nav-list a.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: #005f73;
}

/* استایل بخش Hero */
.hero {
    background:black;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: #0a9396;
    color: #fff;
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #94d2bd;
    transform: scale(1.05);
}

/* استایل بخش خدمات */
.services {
    padding: 4rem 0;
    background: #f0f0f0;
    text-align: center;
}

.services-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.service-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    flex: 1 1 calc(30% - 2rem);
    max-width: calc(30% - 2rem);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #e0f7fa; /* تغییر رنگ پس زمینه هنگام هاور */
    cursor: pointer; /* تغییر کرسر به دست */
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #005f73;
}

.service-item p {
    color: #555;
    font-size: 1rem;
}

/* استایل فوتر */
footer {
    background: #005f73;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 1rem;
    border-top: 5px solid #0a9396;
}

/* استایل ویجت تماس با ما */
.contact-widget {
    position: fixed;
    bottom: 20px; /* فاصله از پایین صفحه */
    right: 20px; /* فاصله از سمت راست */
    background-color: #0a9396;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    color: white;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-widget i {
    font-size: 2rem;
}

/* حالت هاور */
.contact-widget:hover {
    transform: scale(1.1);
}

/* محتوای پنجره تماس */
.contact-widget-content {
    display: none;
    background-color: #004e5f;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 60px; /* فاصله از دکمه */
    right: 0;
    width: 250px;
    z-index: 1001;
}

.contact-widget.open .contact-widget-content {
    display: block;
}

.contact-widget-content a {
    color: white;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.contact-widget-content a:hover {
    text-decoration: underline;
}

/* استایل آیکون‌ها */
.contact-widget-content i {
    margin-left: 10px;
}

.about-us {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.about-us h2 {
    font-size: 28px;
    color: #2C3E50;
    margin-bottom: 20px;
}

.about-us p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    text-align: right;
}
/* استایل بخش تاریخچه */
.history {
    background: #f4f4f4; /* پس‌زمینه خاکی روشن */
    padding: 50px 0;
    text-align: center;
    color: #333; /* رنگ متن تیره برای خوانایی بیشتر */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    border-radius: 15px;
    text-align: right;
}

.history h2 {
    font-size: 32px; /* سایز بزرگتر برای عنوان */
    margin-bottom: 20px;
    font-family: 'Tahoma', sans-serif;
    text-transform: uppercase; /* بزرگ کردن حروف */
    letter-spacing: 1px; /* فاصله بین حروف */
    color: #FF6347; /* رنگ قرمز ملایم برای عنوان */
    font-weight: bold;
    text-align: center;
}

.history p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 900px;
    color: #555; /* رنگ خاکی تیره برای متن */
    margin-bottom: 30px;
}

/* اضافه کردن افکت انیمیشن برای متن */
.history p {
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* دکمه فراخوانی به اقدام (CTA) */
.history .cta-btn {
    display: inline-block;
    background-color: #FF6347; /* قرمز ملایم برای دکمه */
    color: #fff; /* رنگ سفید برای متن دکمه */
    font-size: 18px;
    padding: 12px 25px;
    margin-top: 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #FF6347; /* قرمز ملایم برای حاشیه دکمه */
}

.history .cta-btn:hover {
    background-color: #fff;
    color: #FF6347; /* تغییر رنگ متن و پس‌زمینه هنگام هاور */
}

/* استایل موبایل */
@media screen and (max-width: 768px) {
    .history h2 {
        font-size: 26px;
    }

    .history p {
        font-size: 16px;
    }

    .history .cta-btn {
        font-size: 16px;
    }
}



/* استایل برای موبایل */
@media (max-width: 768px) {
    .contact-widget-content {
        width: 200px;
    }
}

/* بخش شیشه‌های دو جداره */
.double-glazing {
    background-color: #ffffff;
    padding: 50px 0;
    text-align: right; /* تغییر به راست‌چین */
}

.double-glazing h2 {
    font-size: 36px;
    color: #333;
}

.intro-text {
    font-size: 20px;
    color: #444;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* طراحی جدول قیمت‌ها */
.price-table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.price-table th,
.price-table td {
    padding: 20px;
    text-align: right;
    font-size: 18px;
    border-bottom: 2px solid #ddd; /* خط پایین پررنگ‌تر */
}

.price-table th {
    background-color: #f4a261;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.price-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.price-table tbody tr:hover {
    background-color: #f4f4f4;
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}

.price-table td {
    font-weight: bold;
    color: #333;
}

.faq-section {
    margin: 20px;
    background-color: #f9f9f9; /* رنگ پس‌زمینه بخش */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* سایه برای جذابیت بیشتر */
   

}

.faq-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

/* استایل سوالات */
.faq-question {
    background-color: #4CAF50; /* رنگ پس‌زمینه سوالات */
    color: white;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* تغییر رنگ هنگام هاور */
.faq-question:hover {
    background-color: #45a049;
}

/* استایل علامت + و - */
.faq-question .toggle {
    font-size: 20px;
    font-weight: bold;
}

/* استایل پاسخ‌ها */
.faq-answer {
    padding: 15px;
    background-color: #f1f1f1; /* رنگ پس‌زمینه پاسخ‌ها */
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: none;
}

.faq-answer p {
    margin: 0;
    color: #555;
    font-size: 16px;
}

/* استایل زمانی که سوال باز می‌شود */
.faq-item.open .faq-answer {
    display: block;
}

/* استایل زمانی که سوال باز است */
.faq-item.open .faq-question .toggle {
    transform: rotate(45deg);
}
.window-gallery {
    padding: 40px 0;
    background-color: #ffffff;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 ستون */
    gap: 20px; /* فاصله بین آیتم‌ها */
}

.gallery-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.window-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px; /* اضافه کردن فاصله بین عکس و متن */
}

.window-details {
    padding: 15px;
}

.window-details h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.window-details p {
    font-size: 14px;
    color: #555;
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: #27ae60;
    margin-top: 10px;
}
.styled-paragraph {
    background: linear-gradient(135deg, #ffffff 50%, #f8f9fa 50%);
    padding: 15px;
    margin: 20px 0;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    color: #333;
}
/* استایل گالری پنجره‌های ترمال بریک */
.thermal-break-gallery .gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 ستون */
    gap: 30px;
    margin-top: 40px;
}

.thermal-break-gallery .gallery-item {
    background-color: #fafafa;
    border: 2px solid #aaa;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.thermal-break-gallery .gallery-item:hover {
    transform: translateY(-10px); /* حرکت به بالا */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.thermal-break-gallery .window-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
    transition: transform 0.3s ease;
}

.thermal-break-gallery .gallery-item:hover .window-image {
    transform: scale(1.05);
}


/* سایر استایل‌ها مشترک */


/* استایل فوتر */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;

}

.price-warning {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    z-index: 9999; /* اطمینان از نمایش در بالای محتوا */
}

.article-archive {
    padding: 50px 0;
    background-color: #f4f4f4;
}

.article-archive h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.article-item {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-10px);
}

.article-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-item p {
    font-size: 14px;
    color: #555;
}

.article-item a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

.article-item a:hover {
    text-decoration: underline;
}




