/* Mazaya Design — site tweaks layered on top of the template's main.css */

/* ---- Locale shell and language controls ---- */
.site-shell[dir="rtl"] {
  font-family: "Noto Sans Arabic", "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  text-align: right;
}
.site-shell[dir="rtl"] h1,
.site-shell[dir="rtl"] h2,
.site-shell[dir="rtl"] h3,
.site-shell[dir="rtl"] h4,
.site-shell[dir="rtl"] h5,
.site-shell[dir="rtl"] h6,
.site-shell[dir="rtl"] .navmenu a,
.site-shell[dir="rtl"] .btn-get-started,
.site-shell[dir="rtl"] .cta-btn,
.site-shell[dir="rtl"] .section-title p,
.site-shell[dir="rtl"] .mz-work-caption span {
  font-family: "Noto Sans Arabic", "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
.site-shell[dir="rtl"] .hero h2,
.site-shell[dir="rtl"] .section-title p,
.site-shell[dir="rtl"] .navmenu a,
.site-shell[dir="rtl"] .btn-get-started,
.site-shell[dir="rtl"] .cta-btn,
.site-shell[dir="rtl"] .mz-work-caption span {
  text-transform: none;
}
.hero .container { text-align: center; }
.mz-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 16px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
}
.mz-language-link {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 3px;
}
.mz-language-link:hover,
.mz-language-link.active {
  color: #141a1c;
  background: #fff;
}
.mz-hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .btn-get-started.mz-btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.footer .mz-footer-cta {
  color: #fff;
  background: var(--accent-color, #ff4a17);
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 700;
}
.footer .mz-footer-cta:hover {
  color: #fff;
  background: color-mix(in srgb, var(--accent-color, #ff4a17), transparent 18%);
}

@media (max-width: 1200px) {
  .header .mz-language-switcher {
    order: 2;
    margin: 0 10px 0 0;
  }
  .header .cta-btn {
    order: 3;
  }
  .header .navmenu {
    order: 4;
  }
}

@media (max-width: 575px) {
  .header .logo h1 {
    font-size: 22px;
  }
  .header .cta-btn {
    display: none;
  }
  .mz-language-link {
    padding: 6px 7px;
  }
}

/* ---- RTL corrections for Bootstrap/template physical spacing ---- */
.site-shell[dir="rtl"] .header .logo {
  margin-right: 0 !important;
  margin-left: auto !important;
}
.site-shell[dir="rtl"] .header .cta-btn {
  margin: 0 30px 0 0;
}
.site-shell[dir="rtl"] .mz-language-switcher {
  margin-right: 16px;
  margin-left: 0;
}
@media (max-width: 1200px) {
  .site-shell[dir="rtl"] .header .cta-btn {
    margin: 0 0 0 15px;
  }
  .site-shell[dir="rtl"] .header .mz-language-switcher {
    margin: 0 0 0 10px;
  }
}
@media (min-width: 992px) {
  .site-shell[dir="rtl"] .about .content.ps-lg-5 {
    padding-right: 3rem !important;
    padding-left: 0 !important;
  }
}
.site-shell[dir="rtl"] .about .content ul li {
  padding: 0 30px 10px 0;
}
.site-shell[dir="rtl"] .about .content ul i {
  right: 0;
  left: auto;
}
.site-shell[dir="rtl"] .stats .stats-item i {
  margin-right: 0;
  margin-left: 20px;
}
.site-shell[dir="rtl"] .features .nav-link i {
  padding-right: 0;
  padding-left: 15px;
}
.site-shell[dir="rtl"] .features .tab-pane ul i {
  padding-right: 0;
  padding-left: 4px;
}
.site-shell[dir="rtl"] .services-2 .service-item .icon {
  margin-right: 0;
  margin-left: 30px;
}
.site-shell[dir="rtl"] .footer .footer-links ul i {
  padding-right: 0;
  padding-left: 3px;
  transform: rotate(180deg);
}
.site-shell[dir="rtl"] .php-email-form .error-message {
  text-align: right;
}
.site-shell[dir="rtl"] .php-email-form .loading:before {
  margin: 0 0 -6px 10px;
}
.site-shell[dir="rtl"] .mz-lightbox-close {
  right: auto;
  left: 26px;
}
.site-shell[dir="rtl"] .scroll-top {
  right: auto;
  left: 15px;
}

/* ---- Hero montage (real work behind a dark overlay, replaces stock photo) ---- */
.hero { position: relative; min-height: 100vh; }
.hero .hero-montage {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  overflow: hidden;
}
.hero .hero-montage img {
  position: static; /* override template's `.hero img { position:absolute }` */
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(1.05);
}
@media (max-width: 768px) {
  .hero .hero-montage {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }
}
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 26, 28, 0.86) 0%, rgba(20, 26, 28, 0.78) 50%, rgba(20, 26, 28, 0.92) 100%);
}
.hero .container { position: relative; z-index: 3; }

/* ---- Portfolio filter (React-driven) ---- */
.mz-filters {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 30px;
}
.mz-filters li {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--default-color, #444);
  background: color-mix(in srgb, var(--default-color, #444), transparent 92%);
  transition: all 0.2s;
}
.mz-filters li:hover,
.mz-filters li.active {
  color: #fff;
  background: var(--accent-color, #ff4a17);
}

/* ---- Work cards with always-visible captions ---- */
.mz-work-card {
  background: var(--surface-color, #fff);
  border: 1px solid var(--mz-line, #e6eaf0);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mz-work-card:hover {
  box-shadow: 0 14px 32px rgba(20, 40, 60, 0.12);
  transform: translateY(-4px);
}
.mz-work-img {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #11161a;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.mz-work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.mz-work-img:hover img { transform: scale(1.04); }
.mz-work-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(17, 22, 26, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.mz-work-img:hover .mz-work-zoom { opacity: 1; }
.mz-work-caption {
  padding: 16px 18px;
}
.mz-work-caption h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color, #273d4e);
}
.mz-work-caption span {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-color, #ff4a17);
}

/* ---- Lightbox ---- */
.mz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.mz-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.mz-lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.mz-lightbox-close:hover { opacity: 1; }

/* ---- Clients name grid ---- */
.clients .mz-client-card {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 22px 16px;
  font-weight: 600;
  color: var(--heading-color, #273d4e);
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.clients .mz-client-card:hover {
  border-color: var(--accent-color, #ff4a17);
  transform: translateY(-3px);
}
.clients .mz-client-card img {
  max-width: 100%;
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

/* ---- Process section ---- */
.process .mz-process-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  color: #6c757d;
  font-size: 16px;
  line-height: 1.7;
}
.process .mz-process-grid { margin-bottom: 24px; }
.process .mz-process-step {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.process .mz-process-step:hover {
  border-color: var(--accent-color, #ff4a17);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(39, 61, 78, 0.08);
}
.process .mz-process-num {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-color, #ff4a17);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 14px;
}
.process .mz-process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color, #273d4e);
  margin: 0 0 10px;
}
.process .mz-process-step p {
  font-size: 14px;
  line-height: 1.65;
  color: #6c757d;
  margin: 0;
}
.process .mz-process-validity {
  text-align: center;
  font-size: 13px;
  color: #8a96a3;
  margin: 24px 0 0;
  font-style: italic;
}

/* Services — four-pillar layout */
.services .mz-services-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
  color: #6c757d;
  font-size: 16px;
  line-height: 1.7;
}
.mz-pillar {
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 14px;
  padding: 30px 30px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(39, 61, 78, 0.04);
  display: flex;
  flex-direction: column;
}
.mz-pillar:hover {
  border-color: color-mix(in srgb, var(--accent-color, #ff4a17) 45%, #e9edf2);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(39, 61, 78, 0.1);
}
.mz-pillar-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eef1f5;
}
.mz-pillar-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #ff4a17), color-mix(in srgb, var(--accent-color, #ff4a17) 62%, #ff8a5c));
  color: #fff;
  font-size: 24px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-color, #ff4a17) 30%, transparent);
}
.mz-pillar-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color, #273d4e);
  margin: 0 0 3px;
}
.mz-pillar-head p {
  font-size: 13.5px;
  color: #8a96a3;
  margin: 0;
}
.mz-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}
.mz-pillar-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 10px;
  margin: 0 -10px;
  border-radius: 4px;
  transition: background 0.18s;
}
.mz-pillar-list li:hover {
  background: color-mix(in srgb, var(--accent-color, #ff4a17) 6%, #fff);
}
.mz-pillar-list li > i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color, #ff4a17) 10%, #fff);
  color: var(--accent-color, #ff4a17);
  font-size: 17px;
}
.mz-pillar-list h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-color, #273d4e);
  margin: 0 0 2px;
}
.mz-pillar-list span {
  font-size: 13px;
  line-height: 1.55;
  color: #6c757d;
  display: block;
}
.mz-pillar-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color, #ff4a17);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.mz-pillar-link:hover { gap: 10px; color: var(--accent-color, #ff4a17); }
.site-shell[dir="rtl"] .mz-pillar-link i { transform: scaleX(-1); }

/* Why-us feature tabs — round to match the card radius used site-wide */
.features .nav-link {
  border-radius: 14px;
}

/* Portfolio — visit-site link on live web work */
.mz-work-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color, #ff4a17);
  text-decoration: none;
}
.mz-work-link i { font-size: 12px; }
.mz-work-link:hover { text-decoration: underline; }

/* Coming soon / under-construction page */
.mz-coming-soon {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: #0b1622;
  overflow: hidden;
}
.mz-coming-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 20, 0.35) 0%, rgba(6, 12, 20, 0.55) 100%);
  z-index: 0;
}
.mz-coming-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
}
.mz-coming-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mz-coming-brand .sitename {
  color: #fff;
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: 22px;
  font-weight: 700;
}
.mz-coming-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
}
.mz-coming-soon .mz-language-switcher {
  display: flex;
  gap: 6px;
}
.mz-coming-soon .mz-language-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.mz-coming-soon .mz-language-link:hover,
.mz-coming-soon .mz-language-link.active {
  color: #0b1622;
  background: #fff;
  border-color: #fff;
}
.mz-coming-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 140px;
}
.mz-coming-content h1 {
  color: #fff;
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 48px);
  margin: 0 0 16px;
}
.mz-coming-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 2vw, 19px);
  max-width: 640px;
  margin: 0 0 12px;
}
.mz-coming-contact {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 0 0 36px;
}
.mz-coming-timer {
  display: flex;
  align-items: baseline;
  gap: 18px;
  color: #fff;
}
.mz-coming-days {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
}
.mz-coming-days strong {
  font-weight: 800;
  font-size: 1.15em;
  margin-inline-end: 6px;
}
.mz-coming-clock {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 576px) {
  .mz-coming-topbar {
    padding: 20px;
  }
  .mz-coming-timer {
    flex-direction: column;
    gap: 6px;
  }
}
