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

:root {
  --green-dark: #1a5c1a;
  --green-main: #2d8a2d;
  --green-light: #4caf50;
  --green-pale: #e8f5e9;
  --gold: #d4a017;
  --gold-light: #f5e6a3;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #666;
  --gray-dark: #333;
  --black: #000;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--white);
}

body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
.header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.header-top a {
  color: rgba(255,255,255,0.85);
}

.header-top a:hover {
  color: var(--gold);
}

.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-switch {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: var(--transition);
}

.lang-switch:hover {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 6px 16px;
  border-radius: 10px;
}

.logo img {
  height: 55px;
  width: auto;
}

.logo-text h1 {
  font-size: 1.4rem;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.3;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--gray);
}

/* === Navigation === */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-list a {
  color: var(--white);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255,255,255,0.15);
  color: var(--gold-light);
}

.nav-list .dropdown {
  position: relative;
}

.nav-list .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: 8px 0;
}

body[dir="ltr"] .nav-list .dropdown-menu {
  right: auto;
  left: 0;
}

.nav-list .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-dark);
  font-size: 0.9rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, rgba(26,92,26,0.92) 0%, rgba(45,138,45,0.88) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero h2 span {
  color: var(--gold-light);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-green {
  background: var(--green-main);
  color: var(--white);
  border-color: var(--green-main);
}

.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 15px;
}

/* === About Preview === */
.about-preview {
  background: var(--gray-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 15px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--green-dark);
}

.about-feature i {
  color: var(--gold);
  font-size: 1.2rem;
}

/* === Products Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-card-icon {
  height: 180px;
  background: linear-gradient(135deg, var(--green-pale), #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-icon i {
  font-size: 4rem;
  color: var(--green-dark);
}

.product-card-body {
  padding: 25px;
}

.product-card-body h3 {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.product-card-body p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.product-card-body a {
  color: var(--green-main);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-card-body a:hover {
  color: var(--gold);
}

/* === Stats === */
.stats {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
  color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 1rem;
  opacity: 0.9;
}

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

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.85;
}

/* === Footer === */
.footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}

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

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

body[dir="ltr"] .footer-col h3::after {
  right: auto;
  left: 0;
}

.footer-col p {
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold);
  padding-right: 5px;
}

body[dir="ltr"] .footer-col ul a:hover {
  padding-right: 0;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.contact-info i {
  color: var(--gold);
  margin-top: 5px;
}

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

/* === Page Header (inner pages) === */
.page-header {
  background: linear-gradient(135deg, rgba(26,92,26,0.93) 0%, rgba(45,138,45,0.9) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  padding: 120px 0 60px;
  color: var(--white);
  text-align: center;
}

.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

/* === About Page === */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.value-card i {
  font-size: 3rem;
  color: var(--green-main);
  margin-bottom: 15px;
}

.value-card h3 {
  color: var(--green-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.value-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* === Products Page === */
.products-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 10px 24px;
  border: 2px solid var(--green-main);
  border-radius: 50px;
  background: transparent;
  color: var(--green-main);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--green-main);
  color: var(--white);
}

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

.product-detail-card:hover {
  box-shadow: var(--shadow-hover);
}

.product-detail-card .card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--green-pale), #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-card .card-img i {
  font-size: 4rem;
  color: var(--green-dark);
}

.product-detail-card .card-body {
  padding: 25px;
}

.product-detail-card .card-body h3 {
  color: var(--green-dark);
  margin-bottom: 10px;
}

.product-detail-card .card-body p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.product-detail-card .card-body ul {
  margin-bottom: 15px;
}

.product-detail-card .card-body ul li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail-card .card-body ul li i {
  color: var(--green-main);
  font-size: 0.8rem;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--green-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--gray-light);
}

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

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card i {
  font-size: 1.5rem;
  color: var(--green-main);
  margin-top: 3px;
}

.info-card h3 {
  color: var(--green-dark);
  margin-bottom: 5px;
  font-size: 1rem;
}

.info-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

.map-container {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 992px) {
  .header-top {
    display: none;
  }

  .header-main {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    padding: 15px 0;
  }

  .nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 12px 18px;
  }

  .nav-list .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    min-width: auto;
    border-radius: 8px;
    margin-top: 5px;
  }

  .dropdown-menu a {
    color: rgba(255,255,255,0.85);
    padding: 8px 30px;
  }

  .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--gold-light);
  }

  .hero h2 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .lang-mobile {
    display: block;
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 70vh;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
