/*
Theme Name: سایان پژوهان - قالب ساده
Theme URI: https://sayanpajoohan.com
Author: سایان پژوهان
Author URI: https://sayanpajoohan.com
Description: قالب ساده و سبک برای نمایش محصولات و خدمات سایان پژوهان
Version: 1.0.0
License: GPL v2 or later
Text Domain: sayan-theme
Domain Path: /languages
Tags: responsive, rtl, persian, products, business
*/

/* Fonts */
@font-face {
  font-family: "YekanBakhBlack";
  src: url("assets/fonts/YekanBakh/YekanBakhFaNum-ExtraBlack.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "YekanBakh";
  src: url("assets/fonts/YekanBakh/YekanBakh.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Yekan";
  src: url("assets/fonts/YekanBakh/YekanBakhFaNum-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* RTL Support */
body {
  direction: rtl;
  text-align: right;
  font-family: "YekanBakh", Tahoma, Arial, sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-branding {
  padding: 15px 0;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.site-description {
  color: #666;
  font-size: 14px;
}

/* Navigation */
.main-navigation {
  background: #f8f9fa;
  padding: 10px 0;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  color: #333;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.main-navigation a:hover {
  background: #007bff;
  color: white;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  margin-top: 50px;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .main-navigation ul {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    padding: 0 10px;
  }
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.product-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-price {
  color: #28a745;
  font-size: 20px;
  font-weight: bold;
  margin: 15px 0;
}

.btn-primary {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #0056b3;
}

/* Banner Section */
.banner-section {
  margin: 30px 0;
  text-align: center;
}

.banner-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
}

/* Features Section */
.features-section {
  background: #f8f9fa;
  padding: 40px 0;
  margin: 30px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 48px;
  color: #007bff;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid #ddd;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  text-align: center;
}

.contact-icon {
  font-size: 24px;
  color: #007bff;
  margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* RTL Fixes */
.form-control {
  direction: rtl;
}

.input-group {
  direction: ltr;
}

.input-group .form-control {
  direction: rtl;
}
