/* إعدادات عامة */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f4f4f4;
  color: #111827;
}

/* حاوية عامة */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* روابط عامة */
a {
  text-decoration: none;
}

/* أزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background-color: #000000;
  border-color: #000000;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: #e5e7eb;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #111827;
}

.btn-light {
  background-color: #ffffff;
  color: #111827;
  border-color: #ffffff;
}

.btn-light:hover {
  background-color: #f9fafb;
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: #111827;
}

.btn-whatsapp {
  background-color: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
}

.btn-whatsapp:hover {
  background-color: #16a34a;
}

/* شريط التنقل */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* روابط النافبار */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: #111827;
}

/* زر القائمة للجوال */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 18px;
  background-color: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* الهيرو */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 6rem 0 4rem;
  background-color: #111827;
  background-image:
    linear-gradient(to left, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(148, 163, 184, 0.35), transparent),
    radial-gradient(circle at 80% 80%, rgba(15, 23, 42, 0.8), transparent);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.05rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* سهم النزول */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.hero-scroll-hint .arrow {
  margin: 0.25rem auto 0;
  width: 22px;
  height: 22px;
  border-right: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  transform: rotate(45deg);
  animation: bounce 1.3s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(4px) rotate(45deg); }
}

/* الأقسام العامة */
.section {
  padding: 5rem 0;
}

.section-light {
  background-color: #f9fafb;
}

.section-grey {
  background-color: #f3f4f6;
}

.section-dark {
  background-color: #111827;
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: #6b7280;
}

.section-header-light h2 {
  color: #ffffff;
}

.section-header-light p {
  color: #d1d5db;
}

/* من نحن */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.15);
  background-color: #e5e7eb;
}

.about-image {
  width: 100%;
  padding-top: 100%;
  background-image: url("assets/about.jpg");
  background-size: cover;
  background-position: center;
}

/* لو لم توجد صورة about.jpg سيكون لون فقط */
.about-content h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.about-text {
  color: #4b5563;
  margin-bottom: 1.85rem;
}

.about-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.about-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.about-feature p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* بطاقات المنتجات (الفئات) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.product-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 40%);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.product-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
}

/* يمكن استبدال الخلفيات بصور حقيقية لاحقاً */
.product-card-1 {
  background-image: url("assets/door1.jpg");
}
.product-card-2 {
  background-image: url("assets/door2.jpg");
}
.product-card-3 {
  background-image: url("assets/door3.jpg");
}
.product-card-4 {
  background-image: url("assets/door4.jpg");
}

/* لماذا نحن */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.why-card {
  padding: 1.75rem 1.5rem;
  border-radius: 22px;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background-color: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.why-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* بانر دعوة للتواصل */
.cta-banner {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border-radius: 999px;
  background: linear-gradient(to left, #0f172a, #111827);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.cta-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* تواصل معنا */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background-color: #1f2937;
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  text-align: right;
}

.contact-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.contact-card p {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background-color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.contact-icon-whatsapp {
  background-color: #22c55e;
}

/* الخريطة */
.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(249, 250, 251, 0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* الفوتر */
.footer {
  background-color: #111827;
  color: #d1d5db;
  padding-top: 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 360px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-end;
}

.footer-nav,
.footer-social {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a,
.footer-social a {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding: 0.75rem 0 1.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* زر واتساب عائم */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background-color: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.5);
  z-index: 60;
}

/* استجابات الجوال */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    max-height: 240px;
    opacity: 1;
    transform: translateY(0);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
