/* الأنماط الرئيسية لموقع د. شعراوي وود */

/* إعادة تعيين عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* متغيرات CSS */
:root {
  --primary-color: #8b5a2b;
  --secondary-color: #d4b78f;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --success-color: #28a745;
  --error-color: #dc3545;
}

/* الخط والاتجاه الأساسي */
body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
  direction: rtl;
  text-align: right;
}

/* الحاويات */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

/* الرأس */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  float: right;
  margin-right: 20px;
}

.logo img {
  max-height: 60px;
}

/* قائمة التنقل */
nav {
  float: right;
  margin-right: 30px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* القسم الرئيسي */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

/* أقسام المنتجات */
.products {
  padding: 40px 0;
}

.products h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-info p {
  color: var(--dark-color);
  margin-bottom: 15px;
}

/* قسم من نحن */
.about {
  padding: 60px 0;
  background-color: #fff;
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1;
  padding-left: 30px;
}

.about-image {
  flex: 1;
}

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

/* قسم الاتصال */
.contact {
  padding: 60px 0;
}

.contact h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

.form-group textarea {
  height: 150px;
}

/* التذييل */
footer {
  background: var(--dark-color);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 300px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  background: #222;
  padding: 10px 0;
  text-align: center;
  margin-top: 20px;
}

/* معرض الصور */
.gallery {
  padding: 40px 0;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* الاستجابة للشاشات المختلفة */
@media (max-width: 768px) {
  nav {
    float: none;
    margin-right: 0;
    text-align: center;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .logo {
    float: none;
    text-align: center;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    padding-left: 0;
    margin-bottom: 30px;
  }
  
  .footer-content {
    flex-direction: column;
  }
}
