/* Marketing site fixes: hero visibility, RTL, responsive, SEO helpers */

/* ---- Hero: owl fadeIn/Out leaves slides stuck at opacity 0 ---- */
.main-slider-two .owl-item.active .main-slider-two__bg,
.main-slider-two .active .main-slider-two__bg {
  opacity: 1 !important;
  transform: translateX(0) scaleX(1) !important;
  filter: none !important;
  transition-delay: 0ms !important;
}

.main-slider-two .owl-item.active .main-slider-two__sub-title,
.main-slider-two .owl-item.active .main-slider-two__title,
.main-slider-two .owl-item.active .main-slider-two__text,
.main-slider-two .owl-item.active .main-slider-two__btn,
.main-slider-two .active .main-slider-two__sub-title,
.main-slider-two .active .main-slider-two__title,
.main-slider-two .active .main-slider-two__text,
.main-slider-two .active .main-slider-two__btn {
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0ms !important;
}

.main-slider-two__bg::before {
  background: linear-gradient(90deg, rgba(15, 53, 103, 0.92) 0%, rgba(15, 53, 103, 0.55) 55%, rgba(15, 53, 103, 0.25) 100%);
}

html[dir="rtl"] .main-slider-two__bg::before {
  background: linear-gradient(270deg, rgba(15, 53, 103, 0.92) 0%, rgba(15, 53, 103, 0.55) 55%, rgba(15, 53, 103, 0.25) 100%);
}

/* ---- Header overflow / CTA clipping ---- */
.main-header--two .main-header__inner {
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 10px;
}

.main-header--two .main-header__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-header--two .main-menu__list {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
}

.main-header--two .main-header__right {
  flex-shrink: 0;
  gap: 10px;
}

.main-header--two .main-header__btn {
  white-space: nowrap;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 14px;
}

.main-header--two .main-header__logo img {
  max-width: 140px;
  height: auto;
}

@media (max-width: 1199px) {
  .main-header--two .main-header__btn {
    display: none;
  }
}

@media (max-width: 991px) {
  .hero-service-two__inner {
    margin-top: -60px;
  }

  .main-slider-two__item {
    padding-top: 100px;
    padding-bottom: 140px;
  }

  .main-slider-two__title {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 575px) {
  .topbar-one--two {
    display: none;
  }

  .main-header--two .main-header__info {
    display: none;
  }

  .main-slider-two__item {
    padding-top: 80px;
    padding-bottom: 120px;
  }

  .main-slider-two__title {
    font-size: 28px !important;
  }

  .main-slider-two__text {
    font-size: 15px;
  }

  .hero-service-two__inner {
    margin-top: -40px;
  }

  .pricing-two__price {
    font-size: 32px;
  }
}

/* ---- Arabic / RTL ---- */
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: "Cairo", "Rubik", sans-serif;
}

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[dir="rtl"] .main-slider-two__title,
html[dir="rtl"] .sec-title__title {
  font-family: "Cairo", "Rajdhani", sans-serif;
}

html[dir="rtl"] .main-slider-two__sub-title {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .main-menu__list > li + li {
  margin-left: 0;
  margin-right: 35px;
}

@media (max-width: 1399px) {
  html[dir="rtl"] .main-menu__list > li + li {
    margin-right: 22px;
  }
}

/* Keep phone/email LTR so + stays on the correct side */
.topbar-one__info__item a[href^="tel:"],
.topbar-one__info__item a[href^="mailto:"],
.footer-widget__address__content a[href^="tel:"],
.footer-widget__address__content a[href^="mailto:"],
.mobile-nav__contact a[href^="tel:"],
.mobile-nav__contact a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

html[dir="rtl"] .about-two__list li i {
  margin-left: 10px;
  margin-right: 0;
}

html[dir="rtl"] .sec-title.text-start {
  text-align: right !important;
}

/* Language switcher */
.main-header__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--handyfix-base, #0F3567);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.main-header__lang:hover {
  background: var(--handyfix-primary, #018BF8);
  color: #fff;
}

/* Pricing cards */
.pricing-two__item {
  background: #fff;
  border-radius: 16px;
  padding: 40px 28px;
  height: 100%;
  border: 1px solid rgba(15, 53, 103, 0.08);
  box-shadow: 0 12px 36px rgba(15, 53, 103, 0.06);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-two__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(15, 53, 103, 0.12);
}

.pricing-two__item--featured {
  border-color: var(--handyfix-primary, #018BF8);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
}

.pricing-two__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--handyfix-primary, #018BF8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-two__price {
  font-size: 40px;
  font-weight: 700;
  color: var(--handyfix-base, #0F3567);
  margin: 12px 0 8px;
  line-height: 1.1;
}

.pricing-two__price span {
  font-size: 16px;
  font-weight: 500;
  color: #616670;
}

.pricing-two__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  text-align: start;
}

.pricing-two__list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 53, 103, 0.06);
  color: #616670;
}

.pricing-two__list li i {
  color: var(--handyfix-secondary, #36DB9F);
  margin-inline-end: 8px;
}

/* ---- Alternating section bands ---- */
.section-band--white {
  background: #ffffff !important;
}

.section-band--mist {
  background: #edf8fe !important;
}

.section-band--soft {
  background: #eef3f9 !important;
}

/* Sticky header offset so sections don't look flush when jumped-to */
html {
  scroll-padding-top: 110px;
}

#about,
#services,
#pricing,
#contact,
#features {
  scroll-margin-top: 110px;
}

.pricing-two.section-space,
.contact-two.section-space {
  padding-top: 150px !important;
  padding-bottom: 130px !important;
}

@media (max-width: 991px) {
  .pricing-two.section-space,
  .contact-two.section-space {
    padding-top: 110px !important;
    padding-bottom: 100px !important;
  }
}

.hero-service-two {
  background: linear-gradient(180deg, #edf8fe 0%, #ffffff 100%) !important;
  padding-bottom: 80px;
}

.service-two.section-band--mist .service-two__item {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 53, 103, 0.06);
}

/* ---- Newsletter CTA form (theme-matched) ---- */
.cta-two {
  background: linear-gradient(135deg, #0f3567 0%, #018bf8 55%, #36db9f 140%) !important;
  padding: 100px 0 !important;
}

.cta-two .sec-title__tagline {
  color: rgba(255, 255, 255, 0.85) !important;
}

.cta-two .sec-title__title {
  color: #fff !important;
}

.cta-two__form {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  height: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(8, 30, 60, 0.22);
  overflow: hidden;
}

.cta-two__form__icon {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto;
  margin-inline-start: 14px;
  margin-inline-end: 10px;
  color: var(--handyfix-primary, #018BF8) !important;
  font-size: 18px;
}

.cta-two__form input[type="email"],
.cta-two__form input[type="text"] {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 56px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 8px !important;
  font-size: 16px;
  color: #0f3567;
}

.cta-two__form input[type="email"]::placeholder,
.cta-two__form input[type="text"]::placeholder {
  color: #8a93a3;
}

.cta-two__btn {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  border-radius: 10px !important;
  background: var(--handyfix-base, #0F3567) !important;
  color: #fff !important;
  white-space: nowrap;
  min-height: 52px;
  padding-inline: 22px !important;
}

.cta-two__btn:hover {
  background: var(--handyfix-primary, #018BF8) !important;
}

html[dir="rtl"] .cta-two__form {
  flex-direction: row;
}

/* ---- Dark professional footer ---- */
.main-footer.main-footer--two {
  background: linear-gradient(180deg, #0b2749 0%, #071c36 100%) !important;
  padding-top: 90px !important;
  color: rgba(255, 255, 255, 0.78);
}

.main-footer--two .main-footer__middle {
  padding-bottom: 50px !important;
}

.main-footer--two .footer-widget__logo {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 18px;
}

.main-footer--two .footer-widget__text {
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.7;
}

.main-footer--two .footer-widget__title {
  color: #ffffff !important;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.main-footer--two .footer-widget__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--handyfix-primary, #018BF8);
}

html[dir="rtl"] .main-footer--two .footer-widget__title::after {
  left: auto;
  right: 0;
}

.main-footer--two .footer-widget__links a,
.main-footer--two .footer-widget__address__content,
.main-footer--two .footer-widget__address__content a,
.main-footer--two .footer-widget__address__content p {
  color: rgba(255, 255, 255, 0.72) !important;
}

.main-footer--two .footer-widget__links a:hover,
.main-footer--two .footer-widget__address__content a:hover {
  color: #36db9f !important;
}

.main-footer--two .footer-widget__address__icon {
  color: var(--handyfix-primary, #018BF8);
}

.main-footer--two .footer-widget__social a {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-footer--two .footer-widget__social a:hover {
  background: var(--handyfix-primary, #018BF8) !important;
  transform: translateY(-2px);
}

.main-footer--two .footer-widget__newsletter {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}

.main-footer--two .footer-widget__newsletter input[type="email"],
.main-footer--two .footer-widget__newsletter input[type="text"] {
  width: 100%;
  height: 52px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff !important;
  padding-inline: 16px 56px;
  font-size: 15px;
}

.main-footer--two .footer-widget__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.main-footer--two .footer-widget__newsletter button[type="submit"] {
  background: var(--handyfix-primary, #018BF8);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  position: absolute;
  top: 50%;
  inset-inline-end: 2px;
  transform: translateY(-50%);
  right: auto;
}

html[dir="ltr"] .main-footer--two .footer-widget__newsletter button[type="submit"] {
  right: 2px;
}

html[dir="rtl"] .main-footer--two .footer-widget__newsletter button[type="submit"] {
  left: 2px;
  right: auto;
  border-radius: 10px;
}

.main-footer--two .footer-widget__newsletter button[type="submit"]:hover {
  background: #36db9f;
}

/* Bottom bar: visually separated from footer body */
.main-footer--two .main-footer__bottom {
  background: #061627 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 10px;
}

.main-footer--two .main-footer__bottom__inner {
  padding: 18px 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.main-footer--two .main-footer__copyright,
.main-footer--two .main-footer__bottom__links a {
  color: rgba(255, 255, 255, 0.62) !important;
  margin: 0;
}

.main-footer--two .main-footer__bottom__links a:hover {
  color: #fff !important;
}

.main-footer--two .main-footer__bottom__links {
  gap: 22px !important;
  margin: 0;
}

/* Contact form polish on soft band */
.contact-two .contact-two__form {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(15, 53, 103, 0.08);
  border: 1px solid rgba(15, 53, 103, 0.06);
}

.contact-two__image-box img {
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(15, 53, 103, 0.1);
}

/* Reduce horizontal scroll from decorative transforms */
.page-wrapper,
body {
  overflow-x: hidden;
}

@media (max-width: 767px) {
  .cta-two__form {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
  }

  .cta-two__form__icon {
    display: none;
  }

  .cta-two__form input[type="email"],
  .cta-two__form input[type="text"] {
    width: 100% !important;
    height: 48px !important;
    padding-inline: 4px !important;
  }

  .cta-two__btn {
    width: 100%;
  }

  .main-footer.main-footer--two {
    padding-top: 70px !important;
  }
}

