/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0d47a1;
  --primary-dark: #002171;
  --primary-light: #5472d3;
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --text: #212121;
  --text-light: #616161;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.25s;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
}

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

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  font-size: 26px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-phone {
  font-weight: 600;
  color: var(--primary);
  background: #e3f2fd;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 90px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Features ===== */
.features {
  padding: 60px 0;
  margin-top: -40px;
}

.features .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 26px;
  color: var(--primary-dark);
}

.view-all {
  color: var(--accent);
  font-weight: 600;
}

.view-all:hover {
  text-decoration: underline;
}

/* ===== Products ===== */
.products-preview,
.products-page {
  padding: 50px 0 70px;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.product-img {
  height: 200px;
  background: #f0f4f8;
  overflow: hidden;
}

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.product-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-specs {
  list-style: none;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-light);
}

.product-specs li {
  padding: 3px 0;
  padding-right: 14px;
  position: relative;
}

.product-specs li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--accent);
}

.product-price {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 16px;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 24px;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
}

/* ===== About ===== */
.about-section {
  padding: 60px 0;
}

.about-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  color: var(--primary);
  margin: 28px 0 14px;
  font-size: 22px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 14px;
  color: var(--text-light);
}

.about-list {
  list-style: none;
  margin: 16px 0 24px;
}

.about-list li {
  padding: 8px 0 8px 0;
  padding-right: 24px;
  position: relative;
  color: var(--text-light);
}

.about-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ===== Contact ===== */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info h2,
.contact-form-box h2 {
  color: var(--primary-dark);
  margin-bottom: 28px;
  font-size: 22px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background: #e3f2fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: 15px;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form-box {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Footer ===== */
.footer {
  background: #1a237e;
  color: #c5cae9;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 17px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #c5cae9;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .features .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .header-phone {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 16px;
  }
  .features .container {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-content {
    padding: 24px;
  }
}

/* Mobile menu open state */
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  gap: 16px;
}
