/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { direction: rtl; }
body {
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, Arial, sans-serif;
  background: #ffffff;
  color: #1f1f1f;
  line-height: 1.8;
}

/* Layout */
.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

main .container { padding:  25px 0 25px ; }
.page { padding: 56px 0; }
.page-head { padding: 40px 0 26px; }
.page-head h1 { font-size: 34px; margin-bottom: 8px; }
.page-head p { color: #555; }

main .container.intro {
  padding: 25px 0 0;
}
/* Header */
.transparent-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 10;
}
.solid-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4%; /* ایجاد فاصله ایمن از چپ و راست صفحه */
  gap: 18px;
}

.brand { text-align: left; color: #fff; }
.brand.dark { color: #111; }
.brand-title { font-weight: 800; letter-spacing: 2px; font-size: 18px; }
.brand-sub { font-size: 12px; opacity: 0.9; }

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
  transition: .2s;
}
.nav.dark a { color: #111; opacity: 0.9; }
.nav a:hover { opacity: 0.7; }
.nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.languages{display: flex; gap: 22px; text-align: left;  align-items: center;}
.languages a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
  transition: .2s;
}
.languages.dark a { color: #111; opacity: 0.9; }
.languages a:hover { opacity: 0.7; }
.languages a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
/* Hero Banner */
.hero-banner {
  height: 55vh;
  min-height: 320px;

  background-image: url("../images/banner-bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;

  background-color: #ffffff; /* pure white */

  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}

.hero-actions {
  position: relative;
  z-index: 2;
}

/* Button */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #ff6a00;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  transition: .2s;
}
.btn-primary:hover { filter: brightness(1.06); }

/* Home sections */
.intro {
  padding: 40px 0 0px ;
  text-align: center;
  display: grid;
  gap: 10px;
  grid-template-columns:1fr  1fr;
  /* align-items: flex-start;
  justify-content: space-between; */
}
.intro h2 { font-size: 30px; margin-bottom: 12px; }
.intro p { max-width: 860px; margin: 0 auto; color: #444; direction: rtl;text-align: right;}
.intro-text,
.intro-contact {
  flex: 1;
}

.intro-text {
  text-align: right;
}

.intro-text p {
  max-width: 860px;
  margin: 0;
  color: #444;
  direction: rtl;
  text-align: right;
}

.intro-contact {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: right;
}

.intro-contact h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.quick-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}
.quick-contact-form input,
.quick-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.quick-contact-form textarea {
  min-height: 40;
  height: 60px;
  resize: vertical;
}

/* Button Layout */
.contact-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.contact-actions button, 
.contact-actions a {
    flex: 1;
    padding: 12px 5px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Colors */
.btn-email { background-color: #34495e; } /* Dark Blue/Grey */
.btn-whatsapp { background-color: #25D366; } /* WA Green */
.btn-telegram { background-color: #0088cc; } /* TG Blue */

.contact-actions button:hover, 
.contact-actions a:hover {
    opacity: 0.8;
}
/* Styling for success and error messages */
.form-success, .form-error {
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 1px solid;
    direction: rtl; 
}

/* Success: Green Theme */
.form-success {
    background-color: #d4edda; /* Light green background */
    color: #155724;            /* Dark green text */
    border-color: #c3e6cb;     /* Green border */
}

/* Error: Red Theme */
.form-error {
    background-color: #f8d7da; /* Light red background */
    color: #721c24;            /* Dark red text */
    border-color: #f5c6cb;     /* Red border */
}
/* Responsive: Stack buttons on small phones */

.quick-contact-form button:hover {
  opacity: 0.9;
}
.features {
  padding: 10px 0 56px ;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: #FFE5CC;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px;position: relative; padding-right: 28px; color: #cc4e00; }
.feature p { color: #555; }
.feature h3::before {
  content: "✔";
  position: absolute;
  right: 0;
  top: 2px;

  color: #ff6a00; /* same orange as button */
  font-weight: bold;
  font-size: 18px;
}
/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.card h3 { padding: 14px 16px 6px; font-size: 18px; }
.card p { padding: 0 16px 16px; color: #555; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 56px;
}
.contact-card {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
}
.contact-form {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  outline: none;
  font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { border: none; cursor: pointer; }

.track-order-section {
  padding: 50px 0;
}

.track-order-box {
  max-width: 950px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: right;
}

.track-order-box h2 {
  margin-bottom: 24px;
  font-size: 15px;
  color: #1f2937;
  text-align: right;
}

.track-order-box p {
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 15px;
}

.track-order-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.track-order-form input {
  flex: 1 1 320px;
  max-width: 420px;
  padding: 13px 15px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  direction: rtl;
  text-align: right;
}

.track-order-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.track-order-form button {
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

.track-order-form button:hover {
  background: #1d4ed8;
}

.track-order-result {
  margin-top: 10px;
  padding: 24px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  
}
.track-order-result h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #111827;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
}

.status-label {
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

.status-value {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-value.done {
  background: #dcfce7;
  color: #166534;
}

.status-value.progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-value.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-value.waiting {
  background: #f3f4f6;
  color: #4b5563;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  padding: 18px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.95;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.footer-links a:hover { opacity: 1; }
.dot { padding: 0 10px; opacity: 0.6; }

/* Responsive */
@media (max-width: 400px) {
    .contact-actions {
        flex-direction: column;
    }
}
@media (max-width: 900px) {
  
  .intro {grid-template-columns: 1fr; gap: 20px}
  .intro-text,.intro-contact {width: 100%;}
  .form-row {flex-direction: column;;}
  .features { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-banner { height: 40vh; padding-bottom: 36px; min-height: 250px;}
  .footer-row{
    flex-direction: column;
    align-items: flex-start;
    gap:10px;
  }
}
@media (max-width: 768px) {
  .track-order-box {
    padding: 22px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-order-form {
    flex-direction: column;
    align-items: stretch;
     margin-bottom: 28px; 
  }

  .track-order-form input {
    height: 48px; 
    padding: 13px 15px;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 10px;
    flex: none; /* اطمینان از حذف خاصیت فلکس دسکتاپ */
    max-width: none; /* اطمینان از حذف محدودیت عرض */
    width: 100%;
    /* box-sizing: border-box; */
  }
  .track-order-form button {
    width: 100%;
    max-width: none; 
      height: 48px;
    padding: 0;
     font-size:16px;
    border-radius: 8px;
  }
   .nav-container {
    flex-direction: column; /* چیدمان ستونی منو و زبان‌ها */
    gap: 8px;
    padding: 10px 0;
  }
  
  .nav {
    justify-content: center;
    flex-wrap: wrap; /* در صورت زیاد بودن لینک‌ها در خط بعدی بشکنند */
    gap: 12px;
  }

  .languages {
    justify-content: center;
    gap: 12px;
  }
}


/* در صورت لزوم، در رزولوشن‌های متوسط فاصله لینک‌ها کمی کمتر شود */
@media (max-width: 1100px) {
  .nav {
    gap: 14px;
  }
  .languages {
    gap: 14px;
  }
}