/* =====================================================
   ORIGINAL REDES — Global + Mobile Responsive CSS
   v1.2
   ===================================================== */

/* ── Base / Global (previously in <style> block) ──── */
body { font-family: 'Open Sans', sans-serif; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }
a { text-decoration: none !important; }

/* Bootstrap container override — desktop paddings */
.container {
  max-width: 1320px !important;
  padding-left: 60px ;
  padding-right: 60px ;
  
}

/* Google G gradient text */
.g-gradient {
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC04, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fan transforms for services gallery */
.fan-1 { transform: rotate(-5deg)   translateY(20px); }
.fan-2 { transform: rotate(-2.5deg) translateY(8px);  }
.fan-3 { transform: translateY(0);                    }
.fan-4 { transform: rotate( 2.5deg) translateY(8px);  }
.fan-5 { transform: rotate( 5deg)   translateY(20px); }

/* ── Mobile nav overlay ─────────────────────────────────
   Always styled so it works at any width where the
   hamburger is visible (up to lg: 1024px).
   Visibility is toggled via JS adding/removing .is-open
   ───────────────────────────────────────────────────── */
#mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  flex-direction: column;
  padding: 20px 24px 32px;
  /* Hidden by default via inline style="display:none"
     JS switches to display:flex via .is-open class */
}

#mobile-nav-overlay.is-open {
  display: flex !important;
}

#mobile-nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
  flex: 1;
}

#mobile-nav-overlay ul li a {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1E293B;
}

#mobile-nav-overlay .mobile-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #22C55E;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 9999px;
  margin-top: 20px;
}


/* ── TABLET (≤ 1024px) ───────────────────────────────── */
@media (max-width: 1024px) {
  .container {
    padding-left: 24px ;
    padding-right: 24px ;
    overflow-x: hidden;
  }



}


/* ── MOBILE (≤ 767px) ────────────────────────────────── */
@media (max-width: 767px) {

  /* ── Global ── */
  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 14px  !important;
    padding-right: 14px  !important;
  }

  /* ── Hero heading ── */
  h1.hero-heading,
  .hero-heading {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  /* Hero image grid — tighter padding */
  .col-6 {
    padding: 4px !important;
  }

  /* ── Why Us (blue card) ── */
  .why-us-card {
    padding: 28px 20px !important;
  }

  /* ── Testimonials carousel ── */
  .reviews-wrapper {
    overflow: visible !important;
  }

  #reviews-carousel {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  #reviews-carousel::-webkit-scrollbar {
    display: none;
  }

  /* 1 card + 32px peek */
  #reviews-carousel > div {
    flex: 0 0 calc(100% - 40px) !important;
    min-width: calc(100% - 40px) !important;
    scroll-snap-align: start;
  }

  /* Hide desktop prev/next nav buttons */
  .reviews-nav-buttons {
    display: none !important;
  }

  /* ── Products carousel ── */
  .products-carousel-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0 !important;
  }

  .products-carousel-row::-webkit-scrollbar {
    display: none;
  }

  .products-carousel-row > div {
    flex: 0 0 calc(100% - 100px) !important;
    min-width: calc(100% - 100px) !important;
    scroll-snap-align: start;
    padding-left: 0 ;
    padding-right: 0;
    margin-right: 12px;
  }

  .products-carousel-row > div:last-child {
    margin-right: 0;
  }


  /* ── Services gallery ── */
  .services-fan-strip {
    display: none !important;
  }

  .services-mobile-scroll {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 8px;
    height: auto !important;
    align-items: stretch;
  }

  .services-mobile-scroll::-webkit-scrollbar {
    display: none;
  }

  .services-mobile-scroll-item {
    flex: 0 0 240px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .services-mobile-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ── Security Quality card ── */
  .security-quality-card {
    padding: 24px !important;
  }

  /* ── Footer ── */
  footer .container > div {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: center;
  }

  /* ── Vertical spacing ── */
  .py-20 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .py-16 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* ── Generic heading size reduction ── */
  .font-heading.text-4xl {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
}

/* ── Reach Us — CF7 form styling ── */
.reach-us-cf7 .wpcf7-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.reach-us-cf7 .wpcf7-form p {
  margin: 0 !important;
}

.reach-us-cf7 .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

.reach-us-cf7 .wpcf7-form-control {
  display: block !important;
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: 'Open Sans', sans-serif !important;
  color: #334155 !important;
  background-color: #ffffff !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

.reach-us-cf7 .wpcf7-form-control::placeholder {
  color: #94a3b8 !important;
}

.reach-us-cf7 .wpcf7-form-control:focus {
  border-color: #2563EB !important;
  box-shadow: none !important;
  outline: none !important;
}

.reach-us-cf7 .wpcf7-submit {
  background-color: #2563EB !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 6px -1px rgba(37,99,235,0.3) !important;
  transition: background-color 0.2s, transform 0.2s !important;
  margin-top: 4px !important;
}

.reach-us-cf7 .wpcf7-submit:hover {
  background-color: #1E3A8A !important;
  transform: translateY(-2px) !important;
}

.reach-us-cf7 .wpcf7-not-valid-tip {
  font-size: 12px !important;
  color: #ef4444 !important;
  margin-top: 4px !important;
}

.reach-us-cf7 .wpcf7-response-output {
  font-size: 13px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  margin-top: 8px !important;
}

.reach-us-cf7 .wpcf7-mail-sent-ok {
  border-color: #22c55e !important;
  color: #15803d !important;
  background: #f0fdf4 !important;
}

.reach-us-cf7 .wpcf7-mail-sent-ng,
.reach-us-cf7 .wpcf7-validation-errors {
  border-color: #ef4444 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
}
