/* =============================================================================
   Z BROTHERS INTERIOR DECORATORS — KARACHI, PAKISTAN
   RESPONSIVE DESIGN SYSTEM — ZERO OVERLAP SPECIFICATION
   Tested at 320px, 375px, 390px, 430px, 768px, 1024px, 1280px, 1440px, 1920px
   ============================================================================= */

/* --- LARGE DESKTOP (1440px+) --- */
@media (min-width: 1440px) {
  .hero-home {
    min-height: 86vh;
  }
  .container {
    max-width: 1360px;
  }
}

/* --- DESKTOP (1200px to 1439px) --- */
@media (max-width: 1439px) {
  .nav-desktop {
    gap: 20px;
  }
  .nav-desktop-link {
    font-size: 0.8125rem;
  }
}

/* --- TRANSITION BREAKPOINT: 1080px (HIGHEST PRIORITY) ---
   Switch seamlessly to mobile navigation before any desktop element overlaps! */
@media (max-width: 1080px) {
  .nav-desktop {
    display: none !important;
  }
  
  .nav-toggle-btn {
    display: inline-flex !important;
  }
  
  .header-cta-btn {
    display: none; /* Accessible in the off-canvas menu */
  }

  .header-topbar .topbar-left .topbar-hours {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .service-editorial-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .service-editorial-row.reverse {
    direction: ltr;
  }
  
  .service-editorial-media img {
    height: 340px;
  }
}

/* --- TABLET BREAKPOINT (768px to 1024px) --- */
@media (max-width: 1024px) {
  .section {
    padding: 70px 0;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .services-grid,
  .materials-grid,
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }
  
  .before-after-container {
    height: 380px;
  }
}

/* --- MOBILE LANDSCAPE & PHONES (Under 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-main-height: 72px;
  }

  .section {
    padding: 55px 0;
  }

  .header-topbar {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .header-topbar .topbar-email,
  .header-topbar .topbar-location {
    display: none;
  }

  .site-logo img {
    height: 42px;
  }

  .hero-home {
    min-height: 75vh;
    padding: 60px 0 75px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .services-grid,
  .materials-grid,
  .portfolio-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .service-card-media {
    height: 200px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-wrapper {
    padding: 26px 20px;
  }

  .contact-info-panel {
    padding: 30px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .process-timeline::before {
    left: 24px;
  }

  .process-step {
    gap: 16px;
  }

  .process-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .process-step-body {
    padding: 20px 18px;
  }

  .process-step-title {
    font-size: 1.2rem;
  }

  .before-after-container {
    height: 280px;
  }

  .floating-whatsapp {
    bottom: 18px;
    right: 16px;
  }

  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }
}

/* --- SMALL MOBILE (320px to 390px: iPhone SE, Galaxy, etc.) --- */
@media (max-width: 390px) {
  .site-logo img {
    height: 36px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.8125rem;
  }

  .portfolio-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

