/* ==========================================================================
   Custom Responsive Overrides
   Additive stylesheet — loaded after the theme CSS. Does not modify any
   existing theme file; only enhances nav styling and fixes responsive
   layout for image / gallery sections on mobile.
   ========================================================================== */

/* --------------------------------------------------------------------
   Hero slider — small dependency-free crossfade slider (replaces
   Revolution Slider, which positioned every caption via JS-computed
   inline pixel offsets that kept fighting responsive CSS). Plain
   flexbox centering here means the content is centered by construction
   at every screen size, no JS position math involved.
   -------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  z-index: 1;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background-color: #10142c;
}

/* The info-card row overlaps the slider via a negative margin-top; without
   its own stacking context it renders BEHIND the slider's absolutely
   positioned children (arrows/dots/content, z-index up to 4), since
   positioned elements always paint above static siblings regardless of
   DOM order. */
#home-boxes {
  position: relative;
  z-index: 10;
}

.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 14, 40, 0.55) 0%, rgba(10, 14, 40, 0.32) 45%, rgba(10, 14, 40, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 0 20px;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 30px;
  background: rgba(20, 25, 65, 0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  font-size: 16px;
}

.hero-title {
  display: inline-block;
  margin: 0;
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 48px;
  line-height: 1.15;
  max-width: 900px;
  padding: 14px 34px;
  border-radius: 40px;
  background: rgba(26, 60, 130, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-desc {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 34px;
  }
  .hero-desc {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    height: 60vh;
    min-height: 380px;
  }
  .hero-content {
    gap: 14px;
    padding: 0 20px;
  }
  .hero-badge {
    font-size: 13px;
    padding: 8px 18px;
  }
  .hero-title {
    font-size: 24px;
    padding: 10px 20px;
    border-radius: 30px;
  }
  .hero-desc {
    font-size: 14px;
  }
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(242, 38, 19, 0.85);
}

.hero-arrow-prev {
  left: 20px;
}

.hero-arrow-next {
  right: 20px;
}

@media (max-width: 600px) {
  .hero-arrow {
    display: none;
  }
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: #F22613;
  transform: scale(1.2);
}

/* Hero caption CTA buttons ("Get Quote" / "Call Now") — always side by side */
.hero-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: center;
}

.hero-cta-group .btn {
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.hero-cta-group .btn:hover {
  transform: translateY(-1px);
}

/* Call Now — solid blue pill, distinct from the outlined Get Quote button */
.hero-cta-group .btn-callnow {
  background-color: #1a73e8 !important;
  border-color: #1a73e8 !important;
  color: #fff !important;
}

.hero-cta-group .btn-callnow:hover {
  background-color: #1558b3 !important;
  border-color: #1558b3 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .hero-cta-group {
    gap: 8px;
  }
  .hero-cta-group .btn {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------
   Navigation (menuzord) — more attractive & better aligned
   -------------------------------------------------------------------- */
.header-nav .header-nav-wrapper {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Flex alignment only applies on desktop — mobile keeps the theme's native
   float + show/hide drawer behavior so the hamburger toggle isn't disturbed */
@media (min-width: 901px) {
  #menuzord.menuzord {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  #menuzord .menuzord-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  #menuzord .menuzord-menu > li {
    float: none;
    flex-shrink: 0;
  }

  #menuzord .menuzord-menu > li > a {
    white-space: nowrap;
  }

  /* Mobile-only contact li must never take up flex space on desktop —
     menuzord's own JS sets an inline display style per <li>, which beats
     a non-important display:none, so it has to be forced here too. */
  #menuzord .menuzord-menu > li.menuzord-mobile-contact {
    display: none !important;
  }

  #menuzord > ul.pull-right {
    display: flex;
    align-items: center;
    margin-left: 25px;
  }
}

#menuzord .menuzord-menu > li > a {
  /* padding: 22px 18px; */
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.25s ease, background-color 0.25s ease;
  position: relative;
}

#menuzord .menuzord-menu > li.active > a,
#menuzord .menuzord-menu > li:hover > a {
  color: #F22613 !important;
}

#menuzord .menuzord-menu .dropdown {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border-top: 2px solid #F22613;
}

#menuzord .menuzord-menu .dropdown li a {
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

#menuzord .menuzord-menu .dropdown li a:hover {
  padding-left: 22px;
}

/* Flush, full-height CTA block at the right edge of the nav (no pill / no
   floating shadow) */
#menuzord .btn-colored.bs-modal-ajax-load {
  border-radius: 0;
  letter-spacing: 0.4px;
  box-shadow: none;
  margin: 0 !important;
  transition: background-color 0.2s ease;
}

#menuzord .btn-colored.bs-modal-ajax-load:hover {
  box-shadow: none;
}

@media (min-width: 901px) {
  #menuzord > ul.pull-right {
    align-self: stretch;
  }
  #menuzord > ul.pull-right li {
    display: flex;
    align-items: stretch;
  }
  #menuzord .btn-colored.bs-modal-ajax-load {
    display: flex;
    align-items: center;
    height: 100%;
  }
}

/* Mobile toggle button styling */
#menuzord .showhide {
  border-radius: 6px;
  margin: 10px 0;
}

@media (max-width: 900px) {
  #menuzord .menuzord-menu > li > a {
    padding: 14px 18px;
  }
  #menuzord > ul.pull-right {
    width: 100%;
    justify-content: center;
    padding: 10px 0;
  }

  /* Hamburger toggle stays on the right (theme default), just tidy the size */
  .menuzord .showhide {
    float: right;
  }
}

/* --------------------------------------------------------------------
   Mobile header: hide the top utility bar + contact widgets, collapse
   header-middle to a slim bar with the logo on the left; move the phone,
   email and location details to the bottom of the hamburger drawer.
   -------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Hide the red top bar (Home | FAQ | Contact Us + social icons) */
  .header-top {
    display: none !important;
  }

  /* Collapse header-middle into a slim bar, logo only, aligned left */
  .header-middle {
    padding: 0 !important;
  }
  .header-middle .row {
    display: flex;
    align-items: center;
  }
  .header-middle .header-logo-col {
    text-align: left !important;
    float: none;
  }
  .header-middle .header-logo-col .menuzord-brand {
    margin: 8px 0 !important;
    float: none !important;
    display: inline-block;
  }
  .header-middle .header-logo-col .menuzord-brand img {
    max-height: 42px;
    width: auto;
  }
  /* Hide "Mail Us Today / Company Location / Phone" widgets — moved into the drawer */
  .header-middle .header-contact-info {
    display: none !important;
  }
}

/* Phone / email / location footer inside the mobile drawer menu */
.menuzord-mobile-contact {
  display: none !important;
}

@media (max-width: 900px) {
  .menuzord-mobile-contact {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both;
  }
  .menuzord-mobile-contact .mobile-contact-inner {
    background-color: #232a4d;
    border-top: 2px solid #F22613;
    padding: 15px 20px;
  }
  .menuzord-mobile-contact .mobile-contact-inner a,
  .menuzord-mobile-contact .mobile-contact-inner span {
    display: block;
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
  }
  .menuzord-mobile-contact .mobile-contact-inner i {
    color: #F22613;
    width: 18px;
    display: inline-block;
    text-align: center;
    margin-right: 6px;
  }
}
/* --------------------------------------------------------------------
   Image sections — 2 columns on mobile instead of full-width stacking
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .about-images-row [class*="col-"] {
    width: 50%;
    float: left;
    padding-left: 8px;
    padding-right: 8px;
  }
  .about-images-row [class*="col-"]:nth-child(odd) {
    clear: left;
  }
  .about-images-row .img-fullwidth {
    height: 140px;
    object-fit: cover;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .about-images-row [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  .about-images-row .img-fullwidth {
    height: 110px;
  }
}

/* --------------------------------------------------------------------
   Gallery — reliable responsive grid (avoids isotope overlap on mobile)
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  #gallery .gallery-isotope {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    position: static !important;
    height: auto !important;
  }
  #gallery .gallery-isotope .gallery-item {
    position: static !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    float: none !important;
    padding: 0 !important;
  }
}

@media (max-width: 479px) {
  #gallery .gallery-isotope {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* --------------------------------------------------------------------
   Service detail pages (page.blade.php — shared by every
   "*-on-rent-in-delhi" page) — the uploaded image is shown at its raw
   size via .img-fullwidth (width:100%, no height cap), so a large
   source photo renders huge. Cap the height and crop to fill instead.
   -------------------------------------------------------------------- */
.single-service > img.img-fullwidth {
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .single-service > img.img-fullwidth {
    height: 100px;
  }
}
