/* 
 * PRISHA ENTERPRISE - Responsive Stylesheet
 * Handles layout adaptations from ultra-wide desktops to touch-optimized smartphones.
 */

/* ==========================================================================
   1. Large Devices & Desktops (Min 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
  .mega-menu-content {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   2. Medium Desktops & Tablets (Max 991px)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Navigation */
  .main-navbar {
    padding: 10px 0;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  /* Dropdowns on Mobile/Tablet */
  .dropdown-menu {
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding: 10px;
    margin-top: 5px !important;
    background-color: var(--light-bg);
  }
  
  .dropdown-submenu > .dropdown-menu {
    left: 0;
    top: auto;
    margin-top: 0 !important;
    margin-left: 15px;
  }
  
  /* Mega Menu on Mobile */
  .mega-menu-content {
    padding: 15px !important;
    border-radius: 12px !important;
  }
  
  .mega-menu-title {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 0.8rem;
  }
  
  /* Hero Carousel Layout */
  .hero-slide {
    height: auto;
    min-height: 550px;
    padding: 80px 0 160px 0;
  }
  
  .hero-slide-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-floating-stats {
    bottom: -80px;
    position: relative;
    padding: 20px 0;
  }
  
  /* About US Floating Image */
  .about-img-floating {
    position: relative;
    width: 100%;
    height: 200px;
    bottom: auto;
    right: auto;
    border: none;
    margin-top: 20px;
  }
  
  .experience-badge-stamp {
    width: 90px;
    height: 90px;
  }
  
  .experience-badge-stamp .number {
    font-size: 1.3rem;
  }
  
  /* Working Process Steps Shift to Vertical on Tablets/Mobile */
  .timeline-steps-container {
    padding: 20px 0;
  }
  
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 30px;
    right: auto;
    width: 4px;
    height: 100%;
  }
  
  .process-step-node {
    text-align: left !important;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .process-step-node:last-child {
    margin-bottom: 0;
  }
  
  .step-number-circle {
    margin: 0 !important;
    flex-shrink: 0;
  }
  
  .step-desc {
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   3. Portrait Tablets & Mobile Devices (Max 767.98px)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Topbar Hide Elements */
  .top-bar-left, .top-bar-divider {
    display: none !important;
  }
  
  .top-bar-right {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  
  /* Typography Scale */
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-slide-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-slide-content p {
    font-size: 1rem;
  }
  
  /* Padding Adjustments */
  .section-header {
    margin-bottom: 40px;
  }
  
  section {
    padding: 60px 0 !important;
  }
  
  /* Services Filters */
  .service-filter-pill {
    flex-wrap: wrap;
    border-radius: 12px;
    padding: 10px;
    justify-content: center;
    width: 100%;
  }
  
  .service-filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    width: 45%;
  }
  
  /* Gallery Filter Scale */
  .gallery-filter-pill {
    flex-wrap: wrap;
    border-radius: 12px;
    padding: 10px;
    justify-content: center;
    width: 100%;
  }
  
  .gallery-filter-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
    width: 45%;
  }
  
  /* Stat Counters grid scaling */
  .counter-number {
    font-size: 2.4rem;
  }
  
  /* Testimonial adjustments */
  .testimonial-slide-card {
    padding: 25px;
    margin: 10px 0;
  }
  
  .testimonial-quote-icon {
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
  }
  
  /* Form Box spacing */
  .calculator-card {
    padding: 25px;
  }
}

/* ==========================================================================
   4. Mini Mobile Devices (Max 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.25rem;
  }
  
  .brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  
  .logo-icon-svg {
    width: 40px;
    height: 40px;
  }
  
  .hero-slide-content h1 {
    font-size: 1.9rem;
  }
  
  .btn-primary-gradient, .btn-outline-blue {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
  }
  
  .btn-outline-blue {
    margin-bottom: 0;
  }
  
  .service-filter-btn, .gallery-filter-btn {
    width: 100%;
  }
  
  /* Back to Top and WhatsApp button scaling */
  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    left: 20px;
  }
}
