/* style.css */
:root {
  --color-primary: #ff6600; /* orange/gold */
  --color-secondary: #003366; /* navy */
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f5f5;
  --color-text: #333333;
  --font-main: "Cairo", sans-serif;
  --spacing-unit: 1rem;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  direction: rtl;
  text-align: right;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-unit);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: padding 0.3s;
}

.navbar.shrink {
  padding: 0.2rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
}

/* القائمة الرئيسية */
.nav-menu > ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-primary);
}

/* القائمة المنسدلة (Dropdown) */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0.6rem;
  min-width: 210px;
  z-index: 1000;
  border-radius: 6px;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content li {
  width: 100%;
  margin: 0;
}

.dropdown-content a {
  color: var(--color-text);
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
}

.dropdown-content a.active::after {
  display: none;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-secondary);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 80vh;
  background: url("../images/hero/sandwich-panel-projects-riyadh.webp") center/cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-buttons .btn {
  margin: 0.3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-main);
  transition:
    background 0.3s,
    opacity 0.3s;
  text-decoration: none;
  color: #fff;
}

.btn.primary {
  background: var(--color-primary);
}

.btn.secondary {
  background: var(--color-secondary);
}

.btn.whatsapp {
  background: #25d366;
}

.btn:hover {
  opacity: 0.9;
}

/* Sections & Grids */
.section {
  padding: 4rem 0;
  background: var(--color-bg);
}

.section:nth-of-type(even) {
  background: var(--color-bg-secondary);
}

.section h2,
.section h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.grid {
  display: grid;
  gap: var(--spacing-unit);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
}

.two-columns {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid {
  gap: 1.5rem;
}

/* Text & Image Blocks */
.feature-list {
  margin: 1rem 1.5rem 1.5rem 0;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.section-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.image-block img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card,
.service-card,
.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
  padding-bottom: var(--spacing-unit);
  height: 100%;
  will-change: transform;
}

.feature-card {
  padding: 1.5rem 1rem;
}

.icon-primary {
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.card img,
.service-card img,
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3,
.service-card h3,
.project-card h4 {
  margin: 0.8rem 0 0.4rem;
  color: var(--color-secondary);
  padding: 0 0.5rem;
}

.card p,
.service-card p,
.project-card p {
  padding: 0 var(--spacing-unit);
  color: #555;
  font-size: 0.95rem;
}

.card .btn,
.service-card .btn {
  margin-top: 0.8rem;
}

.card:hover,
.service-card:hover,
.project-card:hover {
  transform: translateY(-5px);
}

/* Filter Buttons */
.filter-buttons {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  margin: 0.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: background 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-primary);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.step-item {
  background: #fff;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.step-item i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: right;
  background: var(--color-secondary);
  color: #fff;
  padding: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-main);
  font-size: 1rem;
}

.accordion-content {
  display: none;
  padding: 1rem;
  background: #fff;
}

/* Contact Form */
.quote-form {
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.submit-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.9rem;
}

/* =================================================================
   PROFESSIONAL FOOTER & SOCIAL ICONS
   ================================================================= */
.footer {
  background: var(--color-secondary);
  color: #fff;
  padding: 4rem 0 1.5rem;
  text-align: right;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer h3 {
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  text-align: right;
}

.footer-about p,
.footer-contact p {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition:
    color 0.3s,
    padding-right 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-right: 8px; /* تأثير حركة لطيف */
}

/* --- تصميم أيقونات السوشيال ميديا الاحترافية --- */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-icons .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08); /* لون خلفية خفيف */
  color: #fff;
  border-radius: 50%; /* شكل دائري بالكامل */
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.4s ease; /* نعومة في الحركة */
  border: 1px solid rgba(255, 255, 255, 0.15); /* إطار رقيق */
}

.social-icons .social-btn:hover {
  transform: translateY(-5px); /* ترتفع للأعلى عند تمرير الماوس */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* ظل احترافي */
}

/* ألوان التطبيقات الرسمية عند التمرير */
.social-icons .fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-icons .ig:hover {
  /* تدرج الإنستغرام الشهير */
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border-color: #dc2743;
}

.social-icons .tt:hover {
  background: #010101;
  border-color: #69c9d0;
  text-shadow: 2px 2px 0px #ee1d52; /* لمسة إضاءة النيون للتيك توك */
}
/* --------------------------------------------------- */

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* Engineers Contact Button & Dropdown */
.engineers-contact-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 0.5rem;
}

.outline-btn {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.outline-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.engineers-list {
  display: none;
  position: absolute;
  bottom: 115%;
  right: 0;
  background: #fff;
  color: var(--color-text);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 1.2rem;
  min-width: 250px;
  z-index: 100;
  flex-direction: column;
  gap: 1rem;
}

.engineers-list.show {
  display: flex;
  animation: fadeInDown 0.3s ease;
}

.engineer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 1rem;
}

.engineer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.eng-wa {
  color: #25d366;
  font-size: 1.6rem;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.eng-wa:hover {
  transform: scale(1.15);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Buttons & Back to Top */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
}

.call-float {
  position: fixed;
  bottom: 90px;
  left: 20px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  bottom: 160px;
  left: 27px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: transform, opacity;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

/* Slider (testimonials) */
.slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  min-height: 140px;
}

.slider .testimonial-card {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.slider .testimonial-card.active {
  opacity: 1;
  position: relative;
}

.slider .testimonial-card h4 {
  margin-top: 0.8rem;
  color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu > ul {
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-bg);
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: none;
    gap: 0.5rem;
  }

  .nav-menu.show > ul {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    padding: 0.3rem 1rem 0 0;
    display: none;
    min-width: 100%;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: flex;
  }

  .hero-section {
    min-height: 60vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .two-columns,
  .three-columns {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
