/* 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 ; direction: ltr;text-align: left; }
.page { padding: 56px 0; }
.page-head { padding: 40px 0 26px;  direction: ltr;text-align: left;}
.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: 22px 0;
  gap: 18px;
}

.brand { text-align: left; color: #fff; }
.brand.dark { color: #111; }
.brand-title { font-weight: 800; letter-spacing: 2px; font-size: 18px; text-align: left}
.brand-sub { font-size: 12px; opacity: 0.9; text-align: left}

.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 15px ;
  text-align: center;
  display: grid;
  gap: 24px;
  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: ltr;text-align: left;}
.intro-text,
.intro-contact {
  flex: 1;
}

.intro-text {
  text-align: left;
}

.intro-text p {
  max-width: 860px;
  margin: 0;
  color: #444;
  direction: ltr;
  text-align: left;
}

.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: left;
}

.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: ltr; 
}

/* 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 */
@media (max-width: 400px) {
    .contact-actions {
        flex-direction: column;
    }
}
.quick-contact-form button:hover {
  opacity: 0.9;
}
.features {
  padding: 25px 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;
  direction: ltr;text-align: left;
}
.feature h3 { font-size: 18px; margin-bottom: 8px;position: relative; padding-left: 28px; color: #cc4e00; direction: ltr;text-align: left;}
.feature p { color: #555; direction: ltr;text-align: left;}
.feature h3::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  direction: ltr;text-align: left;
  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;
   direction: ltr;text-align: left;
}
.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;
  direction: ltr;text-align: left;
}
.contact-form {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
  direction: ltr;text-align: left;
}
.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; }

/* 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: 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;
  }
}

/* Intro + quick contact responsive layout */
/* .intro {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  text-align: right;
}

.intro-text {
  flex: 1 1 60%;
  min-width: 0;
}

.intro-contact {
  flex: 1 1 40%;
  min-width: 320px;
}

.quick-contact-form {
  width: 100%;
}

.quick-contact-form .form-row {
  display: flex;
  gap: 10px;
}

.quick-contact-form .form-row > * {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .intro {
    flex-direction: column;
  }

  .intro-text,
  .intro-contact {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .quick-contact-form .form-row {
    flex-direction: column;
  }
} */