/* ———— متغیرهای رنگ ———— */
:root {
  --primary: #C40000;
  --primary-dark: #A00000;
  --light-gray: #F2F2F2;
  --soft-gray: #FAFAFA;
  --soft-red: #FFF5F5;
  --text-dark: #333;
  --whatsapp: #25D366;
  --telegram: #0088cc;
  --rubika: #4A6CF7;
}

/* ———— ریست ———— */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Vazirmatn', sans-serif; background: #fff; color: var(--text-dark); }

/* ———— هدر ———— */
.site-header {
  background: var(--primary);
  padding: 15px 20px;
  color: #fff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.logo { height: 60px; }

/* ———— منوی دسکتاپ ———— */
.desktop-menu {
  display: flex;
  gap: 25px;
}

.desktop-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.desktop-menu a:hover { color: #ffd4d4; }

/* ———— منوی موبایل ———— */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  margin-right: auto;
}

.mobile-nav {
  display: none;
  background: var(--primary);
  text-align: center;
}

.mobile-nav a {
  display: block;
  padding: 12px;
  color: #fff;
  border-top: 1px solid #ffffff33;
}

/* ———— اسلایدر ———— */
.slider {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 200%;
  height: 100%;
  animation: slide 8s infinite;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0%,45% { transform: translateX(0); }
  55%,100% { transform: translateX(-50%); }
}

/* ———— جداکننده‌های موجی رنگی ———— */
.wave {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-repeat: no-repeat;
}

.wave-top {
  background-image: url('https://i.imgur.com/0b2eX7C.png');
}

.wave-mid {
  background-image: url('https://i.imgur.com/5FJ8V0q.png');
}

.wave-bottom {
  background-image: url('https://i.imgur.com/8z8Q5pS.png');
}

/* ———— جداکننده گرادینت ———— */
.divider-gradient {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #c6c6c6, #c7c7c7, #ececec, #c7c7c7, #c6c6c6);
  margin: 0px 0;
  border-radius: 4px;
}

/* ———— بخش چرا فلکسی نوا ———— */
.why-section {
  text-align: center;
  padding: 40px;
}

.why-items {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.why-box {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.why-box img {
  width: 80px;
  margin-bottom: 10px;
}

/* ———— درباره ما ———— */
.about-section {
  display: flex;
  gap: 30px;
  background: var(--soft-gray);
  padding: 40px;
  border-radius: 10px;
}

.about-text { flex: 1; }
.about-image { flex: 1; }

.about-image img {
  width: 100%;
  border-radius: 10px;
}

/* ———— محصولات ———— */
.products-section {
  background: var(--soft-red);
  padding: 40px;
  border-radius: 10px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #eee;
}

.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ———— دکمه‌ها ———— */
button, .btn {
  font-family: 'Vazirmatn', sans-serif !important;
}

.btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--primary-dark); }

/* ———— کرکره مشخصات ———— */
.spec-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: #f9f9f9;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid #ddd;
  padding: 0 10px;
}

.spec-box.open { padding: 10px; }

/* ———— تماس با ما ———— */
.contact-section {
  background: var(--light-gray);
  padding: 40px;
  border-radius: 10px;
}

.contact-box {
  max-width: 500px;
  margin: auto;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* ———— فوتر ———— */
.site-footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 20px;
}

.footer-social a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  color: #fff;
  margin: 5px;
}

.whatsapp { background: var(--whatsapp); }
.telegram { background: var(--telegram); }
.rubika { background: var(--rubika); }

/* ———— ریسپانسیو ———— */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2,1fr); }
  .about-section { flex-direction: column; }
  .why-items { flex-direction: column; }
}

@media (max-width: 768px) {
  .desktop-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .products { grid-template-columns: 1fr; }
}
