/* ========================================================= */
/*                GLOBAL BASE STYLING                        */
/* ========================================================= */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

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

h1, h2, h3 {
  margin: 0;
}

.image-text-section:first-of-type {
  margin-top: 5rem !important;
}

/* ========================================================= */
/*                        NAVBAR                             */
/* ========================================================= */

.navbar {
  width: 100%;
  padding: 0.9rem 2rem;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
  box-sizing: border-box;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.nav-links a.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-logo-img {
  height: 48px;
  object-fit: contain;
}

/* DESKTOP FIX — only switch to mobile at < 768px */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* ========================================================= */
/*                IMAGE + TEXT SECTIONS                      */
/* ========================================================= */

.image-text-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.image-text-section.reverse {
  flex-direction: row-reverse;
}

.img-side img {
  width: 480px;
  max-width: 100%;
  border-radius: 16px;
}

/* ========================================================= */
/*      SECTION 1 — TWO VERTICAL IMAGES (FIXED SIZE)         */
/* ========================================================= */

.two-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 340px;
  max-width: 100%;
}

.two-images img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* ========================================================= */

.text-side {
  max-width: 520px;
}

.text-side h2 {
  margin-bottom: 0.7rem;
  font-size: 2rem;
  font-weight: 600;
}

.text-side h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #334155;
}

.text-side p {
  line-height: 1.7;
  color: #475569;
  font-size: 1.05rem;
}

/* MOBILE FIX — use 768px */
@media (max-width: 768px) {
  .image-text-section {
    flex-direction: column !important;
    text-align: center;
  }

  .img-side img,
  .two-images {
    width: 100%;
  }
}

/* ========================================================= */
/*                        SEPARATOR                          */
/* ========================================================= */

.separator {
  width: 100%;
  height: 1px;
  background: #cbd5e1;
  margin: 2rem auto;
  max-width: 1200px;
}

/* ========================================================= */
/*                        SLIDESHOW                          */
/* ========================================================= */

.slideshow-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.dots {
  text-align: center;
  padding-top: 10px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 3px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.active-dot {
  background: #333;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  user-select: none;
  transition: background 0.2s ease;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev { left: 12px; }
.next { right: 12px; }

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================================= */
/*                     SERVICES PAGE                         */
/* ========================================================= */

.service-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.service-section.reverse {
  flex-direction: row-reverse;
}

.service-text {
  max-width: 550px;
}

.service-text h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.service-text p {
  color: #475569;
  line-height: 1.7;
}

.service-img img {
  width: 480px;
  border-radius: 16px;
}

.multi-img {
  display: flex;
  gap: 10px;
}

.multi-img img {
  width: 48%;
  border-radius: 12px;
}

/* MOBILE FIX — use 768px */
@media (max-width: 768px) {
  .service-section {
    flex-direction: column !important;
    text-align: center;
  }

  .service-img img,
  .multi-img img {
    width: 100%;
  }

  .multi-img {
    flex-direction: column !important;
    width: 100%;
  }

  .multi-img img {
    width: 100% !important;
  }
}

/* ========================================================= */
/*                    FOOTER CONTACT BLOCK                   */
/* ========================================================= */

.footer-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #e2e8f0;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  border-radius: 12px;
}

.footer-half {
  width: 50%;
}

.footer-half h2 {
  margin-bottom: 1rem;
}

.contact-buttons {
  margin-top: 15px;
  text-align: center;
}

.call-btn,
.whatsapp-btn {
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  color: white;
  margin-right: 10px;
  display: inline-block;
}

.call-btn { background: #2563eb; }
.whatsapp-btn { background: #22c55e; }

/* MOBILE FIX — use 768px */
@media (max-width: 768px) {
  .footer-sections {
    flex-direction: column;
    text-align: center;
  }

  .footer-half {
    width: 100%;
  }

  .call-btn,
  .whatsapp-btn {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
}

/* ========================================================= */
/*                           FOOTER                          */
/* ========================================================= */

footer {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

/* ========================================================= */
/*                     CONTACT PAGE LAYOUT                   */
/* ========================================================= */

.contact-page-wrapper {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f1f5f9;
  border-radius: 12px;
}

.contact-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.contact-photo img {
  width: 380px;
  max-width: 100%;
  border-radius: 16px;
}

.contact-info {
  max-width: 600px;
}

.contact-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0.7rem;
}

.map-container {
  margin-top: 20px;
}

/* MOBILE FIX — use 768px */
@media (max-width: 768px) {
  .contact-flex {
    flex-direction: column;
    text-align: center;
  }

  .contact-buttons a {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
}

/* ========================================================= */
/*                  RTL FIXES FOR ARABIC PAGES               */
/* ========================================================= */

html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .navbar {
  direction: rtl;
}

html[lang="ar"] .nav-links {
  flex-direction: row-reverse;
  gap: 1.5rem;
}

html[lang="ar"] p,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: "Cairo", "Tahoma", "Arial", system-ui;
  letter-spacing: 0;
}
