/* شركة الفاضل للمقاولات والاستثمار العقاري - Al Fadhel Group */
/* Color scheme from logo: Dark Blue, Gold, Light Blue */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --primary-dark: #1a2a4a;
  --primary-blue: #2d4a6f;
  --gold: #c9a227;
  --gold-light: #e6c04a;
  --light-blue: #4a90d9;
  --light-blue-bg: #e8f4fc;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #6c757d;
  --text-dark: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26, 42, 74, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(26, 42, 74, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
  padding: 5px 0;
}

.nav-menu a:hover {
  color: var(--gold);
}

.lang-switch {
  display: flex;
  gap: 8px;
  list-style: none;
}

.lang-btn {
  padding: 8px 16px;
  border: 2px solid var(--primary-dark);
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-dark);
  color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hero / Cover Sections */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Page Cover */
.page-cover {
  height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
}

.page-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.page-cover h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

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

/* Stats Section - تحت حول الشركة */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 50px 0 60px;
}

.stat-box {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(26, 42, 74, 0.08);
  transition: all 0.3s;
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26, 42, 74, 0.12);
}

.stat-box:hover::before {
  transform: scaleX(1);
}

.stat-box .stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  animation: stat-icon-pulse 2s ease-in-out infinite;
}

@keyframes stat-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.stat-box .stat-number {
  display: inline;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.stat-box .stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-inline-start: 2px;
}

.stat-box .stat-label {
  display: block;
  color: var(--gray);
  font-size: 1rem;
  margin-top: 10px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-section {
    grid-template-columns: 1fr;
    margin: 30px 0 40px;
  }
}

/* Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(26, 42, 74, 0.08);
  transition: all 0.3s;
  border-top: 4px solid var(--gold);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(26, 42, 74, 0.12);
}

.info-card h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.info-card p {
  color: var(--gray);
  line-height: 1.8;
}

/* Animated Icons - Centered in Card */
.info-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--white);
}

.icon-vision {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  animation: icon-pulse 2s ease-in-out infinite;
}

.icon-mission {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  animation: icon-bounce 2s ease-in-out infinite;
}

.icon-goal {
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  animation: icon-rotate 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 42, 74, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(26, 42, 74, 0); }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes icon-rotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Who We Are - Plain Text */
.who-we-are-content {
  margin-top: 60px;
  padding: 40px 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.who-we-are-content h3 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.who-we-are-content p {
  color: var(--text-dark);
  font-size: 1.15rem;
  line-height: 2;
}

/* Marketing Section */
.marketing-section {
  background: var(--light-blue-bg);
  padding: 80px 20px;
}

.marketing-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.marketing-text h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 2rem;
}

.marketing-text p {
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.9;
}

.marketing-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(26, 42, 74, 0.15);
}

/* من زبائننا - Clients Showcase */
.clients-showcase {
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid rgba(26, 42, 74, 0.1);
}

.clients-showcase-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 45px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  width: 100%;
}

.clients-showcase-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.clients-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.client-logo-item {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue-bg) 100%);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(26, 42, 74, 0.06);
  transition: all 0.4s ease;
  overflow: hidden;
}

.client-logo-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(26, 42, 74, 0.12);
}

.client-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.4s ease;
}

.client-logo-item:hover img {
  filter: grayscale(0%);
}

@media (max-width: 992px) {
  .clients-logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 576px) {
  .clients-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .client-logo-item {
    max-width: 120px;
    padding: 20px;
  }

  .clients-showcase {
    margin-top: 50px;
    padding-top: 45px;
  }
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
}

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

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

/* Logos Grid */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.logos-grid img {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all 0.3s;
}

.logos-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 42, 74, 0.08);
  transition: all 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(26, 42, 74, 0.12);
}

.team-member .placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.team-member h4 {
  padding: 20px 15px 5px;
  color: var(--primary-dark);
}

.team-member p {
  padding: 0 15px 20px;
  color: var(--gray);
  font-size: 0.95rem;
}

/* Contact Form */
.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  background: var(--light-blue-bg);
  padding: 40px;
  border-radius: 12px;
}

.contact-info h3 {
  color: var(--primary-dark);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info .info-item .icon {
  width: 45px;
  height: 45px;
  background: var(--gold);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(26, 42, 74, 0.08);
}

.contact-form h3 {
  color: var(--primary-dark);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--gold);
}

.footer-about p {
  opacity: 0.9;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--gold);
}

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

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
  display: block;
  margin-bottom: 10px;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.footer-contact p {
  opacity: 0.9;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

/* Carousel for hero */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-carousel .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
  .marketing-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .logo-text {
    font-size: 1rem;
  }

  .logo img {
    height: 45px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    gap: 20px;
  }

  .nav-menu.active {
    right: 0;
  }

  body.rtl .nav-menu {
    right: auto;
    left: -100%;
  }

  body.rtl .nav-menu.active {
    left: 0;
  }

  .lang-switch {
    flex-direction: column;
  }

  .section {
    padding: 60px 20px;
  }

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

  .social-icons {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }

  body.rtl .whatsapp-float {
    right: auto;
    left: 20px;
  }
}
