/* ==========================================================================
   HOPTOP CONTRACTING - RESPONSIVE STYLESHEET
   Mobile-first, fully tested responsive layout
   ========================================================================== */

/* ─── Global overflow fix ─── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ─── Hero Slider Base ─── */
#heroSlider,
#heroSlider .carousel-inner,
#heroSlider .carousel-item {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

#heroSlider .carousel-item {
  min-height: 100vh;
  height: 100vh;
}

#heroSlider .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#heroSlider .slide-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
}

/* ─── Navbar ─── */
.navbar-ag {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* ─── Laptop adjustments ─── */
@media (max-width: 1200px) {
  .hero-slide-title {
    font-size: 3.5rem;
  }
}

/* ─── Tablet + Mobile Navbar ─── */
@media (max-width: 991px) {

  /* Navbar always has white background on mobile */
  .navbar-ag {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }

  /* Show hamburger */
  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
  }

  /* Mobile nav drawer - slides in from right */
  .nav-menu-ag {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 85vw);
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 8px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu-ag.mobile-open {
    right: 0;
  }

  .nav-link-ag {
    font-size: 1.15rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #F3F4F6;
    color: #101828 !important;
  }

  .nav-link-ag::after {
    display: none;
  }

  .navbar-cta {
    margin-top: 20px;
    width: 100%;
  }

  .navbar-brand img {
    height: 28px;
  }

  /* Hero Slider tablet */
  #heroSlider .carousel-item,
  #heroSlider .slide-content {
    min-height: 90vh;
  }

  .hero-slide-title {
    font-size: 2.8rem !important;
  }

  .hero-slide-desc {
    font-size: 1rem;
  }

  /* Carousel controls smaller */
  #heroSlider .carousel-control-prev,
  #heroSlider .carousel-control-next {
    width: 38px;
    height: 38px;
    margin: 0 10px;
  }

  /* Section padding */
  .section-padding {
    padding: 70px 0;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process grid */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Contact grid responsive stack */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  /* Checkbox grid single column on smaller screens */
  .checkbox-grid-ag {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {

  /* Prevent any horizontal scroll */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Hero */
  #heroSlider .carousel-item,
  #heroSlider .slide-content {
    min-height: 85vh;
  }

  .hero-slide-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2;
  }

  .hero-slide-desc {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .hero-slide-tag {
    font-size: 0.75rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.7rem;
  }

  .section-padding {
    padding: 55px 0;
  }

  /* Service cards */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Stats row stacks */
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  /* About offset image - remove complex positioning on mobile */
  .about-image-wrapper {
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 40px;
  }

  .about-img-floating {
    display: none;
  }

  /* Process steps */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Industry chips */
  .industry-chip {
    font-size: 0.85rem;
    padding: 12px 10px;
  }

  /* CTA box */
  .cta-box {
    padding: 50px 20px;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-ag {
    padding: 50px 0 20px;
  }

  /* WhatsApp popup - smaller on mobile */
  .wa-chat-popup {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 80px;
  }

  /* Back to top & WA float - ensure visible */
  .back-to-top {
    right: 15px;
    bottom: 80px;
  }

  .whatsapp-float {
    right: 15px;
    bottom: 20px;
  }

  /* FAQ items */
  .faq-item {
    margin-bottom: 10px;
  }

  /* Contact info */
  .contact-form-wrapper,
  .contact-card-info {
    padding: 24px;
  }

  /* Timeline wrapper on mobile */
  .timeline-wrapper {
    padding-left: 20px;
  }
}

/* ─── Small Mobile ─── */
@media (max-width: 576px) {

  .hero-slide-title {
    font-size: 1.75rem !important;
  }

  /* All grids → single column */
  .services-grid,
  .process-grid,
  .team-grid,
  .pricing-grid,
  .blog-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Cards full width */
  .col-6 {
    width: 100%;
  }

  /* Stats boxes on home */
  .stat-box-home {
    width: 100%;
  }

  /* Slider controls hidden on tiny screens */
  #heroSlider .carousel-control-prev,
  #heroSlider .carousel-control-next {
    display: none;
  }

  /* Section title smaller */
  .section-title {
    font-size: 1.5rem;
  }

  /* Prevent img overflow */
  img {
    max-width: 100%;
  }

  /* About split offset image - hide on very small */
  [style*="position: absolute; top: 40px; left: 40px"] {
    display: none !important;
  }
}

/* ─── Utility: overlay for mobile nav ─── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.mobile-nav-overlay.active {
  display: block;
}

/* ─── Industry chip consistent style ─── */
.industry-chip {
  background: #F4F6F8;
  color: #101828;
  border: 1px solid #E5E7EB;
  padding: 16px 12px;
  border-radius: 4px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  cursor: default;
  text-align: center;
}

.industry-chip:hover {
  background: #A7073D;
  color: #FFF;
  border-color: #A7073D;
}
