/* ============================================================ */
/* PERFECT MOBILE RESPONSIVE CSS - ALL SECTIONS                 */
/* ============================================================ */

/* ========================================
   NAVBAR - BIGGER LOGO + BEAUTIFUL LIST
   ======================================= */
@media (max-width: 768px) {
  .nav-container {
    height: 70px;
    padding: 0 20px;
  }

  .nav-logo {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-logo img {
    height: 62px !important;
    width: auto !important;
    max-height: 100% !important;
  }

  .menu-button {
    font-size: 24px;
    padding: 8px;
    z-index: 1001;
  }

  .nav-menu {
    right: 20px !important;
    top: 80px !important;
    width: 280px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 0 !important;
  }

  .nav-menu.active {
    max-height: 450px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 20px !important;
  }

  .nav-menu ul li a {
    display: block !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #2f4f2f !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    margin: 4px 0 !important;
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(47,79,62,0.1) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    text-decoration: none !important;
  }

  .nav-menu ul li a:hover {
    background: rgba(47,79,62,0.08) !important;
    transform: translateX(6px) !important;
    box-shadow: 0 8px 25px rgba(47,79,62,0.15) !important;
  }
}

/* ========================================
   BANNER - PERFECT NAVBAR GAP + TIGHT BOTTOM
   ======================================= */
@media (max-width: 768px) {
  .about-banner {
    padding-top: 110px !important;
    padding-bottom: 10px !important;
  }

  .about-image {
    position: relative;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
  }

  .about-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .about-image h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
    z-index: 2;
  }
}

/* ========================================
   SERVICES SECTION - FINAL BUTTON FIX
   ======================================= */
@media (max-width: 768px) {
  .service-section {
    padding: 10px 0 30px !important; 
  }

  /* Fixed container to ensure "Interior Designing" has a left gutter */
  .service-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding: 10px 20px 20px 25px !important; /* Increased left padding to 25px */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .service-tabs::-webkit-scrollbar {
    display: none;
  }

  .service-tab {
    flex: 0 0 auto !important; 
    white-space: nowrap !important;
    font-size: 15px !important;
    padding: 12px 22px !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
  }

  .service-tab.active {
    background: #5f7f4a !important; 
    color: #fff !important;
    border-color: #5f7f4a !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(95, 127, 74, 0.25) !important;
  }

  .service-content {
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    text-align: center !important;
  }

  .service-image img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    border-radius: 20px !important;
  }

  .service-text h2 {
    font-size: 26px !important;
    margin-bottom: 12px !important;
    color: #2f4f3e !important;
  }

  .service-text p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #666 !important;
  }
}

/* ========================================
   SHOWCASE SECTION - SLIDER FIX
   ======================================= */
@media (max-width: 768px) {
  .showcase {
    padding: 20px 0 40px !important; 
  }

  .section-heading {
    font-size: 32px !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    padding: 0 20px !important;
  }

  .tabs-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 20px 20px 20px !important; 
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-header::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
  }

  .tabs-content, .image-grid {
    padding: 0 20px !important;
  }
}

/* ========================================
   STATS + CONTACT - TIGHT SPACING
   ======================================= */
@media (max-width: 768px) {
  .stats {
    flex-direction: column !important;
    gap: 30px !important;
    padding: 30px 20px !important;
  }

  .contact-section {
    padding: 20px 25px 40px !important;
  }

  .contact-container {
    flex-direction: column !important;
    gap: 35px !important;
  }

  .contact-left h2 {
    font-size: 32px !important;
    margin-bottom: 18px !important;
  }

  .contact-form-card {
    padding: 40px 30px !important;
    border-radius: 25px !important;
  }
}

/* ========================================
   FINAL FOOTER MOBILE MICRO FIXES
   ======================================== */
@media (max-width: 768px) {
  .footer-social img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .footer-social a {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-social {
    gap: 14px !important;
    margin-top: 15px !important;
  }

  .footer-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .footer-col.links,
  .footer-col.useful,
  .footer-col:nth-child(2) {
    padding-left: 60px !important;
  }

  .allRights {
    margin-top: 0px !important;
    margin-bottom: 7px !important;
    padding-top: 0px !important;
    padding-bottom: 4px !important;
    line-height: 1 !important;
  }
}

/* ========================================
   ULTRA SMALL MOBILE - 480px & BELOW
   ======================================= */
@media (max-width: 480px) {
  .about-banner {
    padding-top: 100px !important;
    padding-bottom: 8px !important;
  }

  .about-image img {
    height: 240px;
  }

  .about-image h1 {
    font-size: 34px !important;
  }

  .service-section {
    padding: 10px 0 25px !important;
  }

  .service-tab {
    font-size: 13px !important;
    padding: 10px 18px !important;
  }

  .service-tabs {
    gap: 10px !important;
    padding: 10px 0px 20px 0px !important; /* Forces breathing room for the first button */
  }

  .service-text h2 {
    font-size: 24px !important;
  }

  .contact-section {
    padding: 15px 20px 30px !important;
  }

  .showcase {
    padding: 15px 0 30px !important;
  }
}