/*
Theme Name: Enginir Child
Template: enginir
Version: 1.0.11
*/

/* Prevent the theme search overlay from flashing in page content before main CSS loads */
.cspt-header-search-form-wrapper:not(.open) {
  visibility: hidden !important;
}

/* Performance: show the first hero image before Slider Revolution initializes */
.cspt-slider-area {
  background-color: #e9e9e9;
  background-image: url("https://asf-egypt.com/wp-content/uploads/2019/06/power-main-header_590430404237709080f6df85caa9f015.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 767px) {
  .cspt-slider-area {
    background-image: url("https://asf-egypt.com/wp-content/uploads/2019/06/hero-mobile-900.jpg");
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 6 / 5;
    max-height: 400px;
    overflow: hidden !important;
    position: relative;
  }
  .cspt-slider-area sr7-module {
    display: none !important;
  }
  .cspt-slider-area::after {
    content: "Building Your Trust Since\A 1984";
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    color: #ffffff;
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
    white-space: pre-line;
    text-shadow: 0 2px 5px rgba(0,0,0,.45);
  }
}

/* Accessibility: improve contrast in the quote form */
.vc_custom_1561485966150 .cspt-ihbox-subheading h4 {
  color: #ff6b74 !important;
}
.wpcf7-form-control::placeholder {
  color: #666666 !important;
  opacity: 1;
}

/* Accessibility: distinguish links inside text content without relying on color */
.site-content-contain .wpb_text_column a:not(.cspt-btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  html[lang^="ar"] .cspt-slider-area::after {
    content: "نبني ثقتكم منذ عام\A 1984";
    left: auto;
    right: 18px;
    text-align: right;
    direction: rtl;
  }
}

/* Match Contact Form 7 telephone fields to the theme's underline inputs. */
.cspt-main-form.cspt-style-3 input.wpcf7-tel,
.cspt-main-form.cspt-style-3 input[type="tel"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: #848484;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.cspt-main-form.cspt-style-3 input.wpcf7-tel:focus,
.cspt-main-form.cspt-style-3 input[type="tel"]:focus {
  background: transparent !important;
  border-bottom-color: #ffffff !important;
  box-shadow: none !important;
}
.cspt-main-form.cspt-style-3 input.wpcf7-tel:-webkit-autofill,
.cspt-main-form.cspt-style-3 input.wpcf7-tel:-webkit-autofill:hover,
.cspt-main-form.cspt-style-3 input.wpcf7-tel:-webkit-autofill:focus {
  -webkit-text-fill-color: #848484;
  -webkit-box-shadow: 0 0 0 1000px #07182d inset !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Preserve the logo aspect ratio inside the desktop sticky header. */
.cspt-sticky-header .site-branding,
.cspt-sticky-header .cspt-logo-area,
.cspt-sticky-header .site-title > a {
  display: flex;
  align-items: center;
}
.cspt-sticky-header img.cspt-main-logo {
  width: 140px !important;
  height: auto !important;
  max-width: 140px !important;
  max-height: 100px !important;
  object-fit: contain !important;
  object-position: center !important;
  flex: 0 0 auto;
}
