/* PPDW-360-W5 — Route, Contact Header & Arabic Cairo Typography Closure */

/* Arabic only: enforce Cairo without changing English typography */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .menu-link,
html[lang="ar"] .top-links,
html[lang="ar"] .he-text,
html[lang="ar"] .page-title,
html[lang="ar"] .breadcrumb,
html[lang="ar"] .portfolio-desc,
html[lang="ar"] .fbox-content,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] button {
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

/* Preserve English Canvas-like rhythm */
html[lang="en"] body {
  font-family: "Roboto", "Source Sans Pro", Arial, sans-serif;
}

/* Header containment: prevent Arabic logo text area from expanding into contact blocks */
.ppdw-360-w #header .header-row {
  min-height: 92px;
}
.ppdw-360-w #logo {
  max-width: 360px;
  flex: 0 0 auto;
  overflow: hidden;
}
.ppdw-360-w #logo img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}
html[lang="ar"] .ppdw-360-w #logo {
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  text-align: right;
}
html[lang="en"] .ppdw-360-w #logo {
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  text-align: left;
}
.ppdw-360-w .header-extras {
  align-items: center;
  gap: 0;
}
.ppdw-360-w .header-extras li {
  min-width: 230px;
  max-width: 285px;
}
html[lang="ar"] .ppdw-360-w .header-extras li {
  direction: rtl;
  text-align: right;
}
.ppdw-360-w .header-extras .he-text span {
  white-space: normal;
  line-height: 1.6;
}

/* Internal page title: no demo index.html artifact, cleaner Canvas-compatible hierarchy */
.ppdw-360-w .ppdw-inner-title {
  padding: 58px 0 54px !important;
  background: #fff !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(20,28,38,.10) !important;
}
.ppdw-360-w .ppdw-inner-title .page-title-row {
  justify-content: center;
  text-align: center;
}
.ppdw-360-w .ppdw-inner-title .page-title-content {
  width: 100%;
}
.ppdw-360-w .ppdw-inner-title h1 {
  margin: 0 0 12px;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.ppdw-360-w .ppdw-inner-title span {
  display: block;
  color: #667085;
  font-size: 18px;
  margin-bottom: 22px;
}
.ppdw-360-w .ppdw-inner-breadcrumb {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: transparent;
}
.ppdw-360-w .ppdw-inner-breadcrumb .breadcrumb-item,
.ppdw-360-w .ppdw-inner-breadcrumb a {
  color: #334155;
  font-size: 14px;
}
.ppdw-360-w .ppdw-inner-breadcrumb .breadcrumb-item::before {
  color: #94a3b8;
}
.ppdw-360-w .ppdw-inner-breadcrumb .breadcrumb-item[data-ppdw-demo="index"],
.ppdw-360-w .ppdw-inner-breadcrumb .breadcrumb-item.ppdw-demo-index {
  display: none !important;
}

/* Contact page: premium intake card containment and spacing */
.ppdw-360-w .quick-contact-widget,
.ppdw-360-w .feature-box.media-box {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 22px 55px rgba(15,23,42,.08);
}
.ppdw-360-w .quick-contact-widget h4,
.ppdw-360-w .feature-box.media-box h3 {
  margin-bottom: 22px;
  font-weight: 700;
}
.ppdw-360-w .quick-contact-form {
  gap: 14px 0;
}
.ppdw-360-w .quick-contact-form .form-control {
  min-height: 48px;
  border-radius: 12px;
  border-color: #d8dee8;
  padding-inline: 16px;
}
.ppdw-360-w .quick-contact-form textarea.form-control {
  min-height: 160px;
  resize: vertical;
}
.ppdw-360-w .quick-contact-form .button {
  border-radius: 10px;
  padding: 12px 24px;
}
html[lang="ar"] .ppdw-360-w .quick-contact-widget,
html[lang="ar"] .ppdw-360-w .feature-box.media-box,
html[lang="ar"] .ppdw-360-w .quick-contact-form input,
html[lang="ar"] .ppdw-360-w .quick-contact-form textarea {
  direction: rtl;
  text-align: right;
}

/* Mobile containment */
@media (max-width: 991.98px) {
  .ppdw-360-w #header .header-row {
    min-height: 76px;
  }
  .ppdw-360-w #logo {
    max-width: calc(100vw - 110px);
  }
  .ppdw-360-w #logo img {
    max-height: 56px;
  }
  .ppdw-360-w .ppdw-inner-title {
    padding: 42px 0 38px !important;
  }
  .ppdw-360-w .ppdw-inner-title h1 {
    font-size: clamp(34px, 10vw, 54px);
  }
  .ppdw-360-w .ppdw-inner-title span {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .ppdw-360-w .quick-contact-widget,
  .ppdw-360-w .feature-box.media-box {
    padding: 22px;
    border-radius: 16px;
  }
}

@media (max-width: 575.98px) {
  .ppdw-360-w .ppdw-inner-breadcrumb {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}
