/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Max 1024px (Tablets Landscape & Small Desktops) */
@media (max-width: 1024px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-hero-img {
    height: 50vh;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .project-strip-item.large {
    grid-column: 1 / 3;
    grid-row: auto;
    height: 400px;
  }
  
  .split-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .split-img {
    min-height: 400px;
    margin-top: 2rem;
  }
  
  .masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
  .masonry-item {
    margin-bottom: 1.5rem;
  }
}

/* Max 768px (Tablets Portrait & Large Phones) */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
  }
  
  .section {
    padding: 3rem 0; /* Reduce padding on mobile */
  }

  /* Navigation */
  .nav-menu, .nav-actions {
    display: none; /* Mobile menu active */
  }
  .mobile-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--color-white);
  }

  /* Full screen mobile menu (to be toggled via JS) */
  .mobile-menu-active .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--color-bg-dark);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .mobile-menu-active .nav-actions {
    display: flex;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .trust-grid {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .trust-item {
    flex: 0 0 45%;
  }
  .trust-item::after {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .vastu-pills {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Logo text adjustments so it fits */
  .logo-icon {
    width: 60px;
    height: 60px;
  }
  .logo-text {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
  .logo-subtext {
    font-size: 0.55rem;
    letter-spacing: 6px;
    margin-right: -6px;
  }
}

/* Max 480px (Mobile Phones) */
@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0; /* Tighten up on phones */
  }

  .home-hero-content {
    padding: 2rem 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .project-strip-grid {
    grid-template-columns: 1fr;
  }
  .project-strip-item.large {
    grid-column: auto;
    height: 250px;
  }
  .project-strip-item {
    height: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-item {
    flex: 0 0 100%;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .home-hero-btns {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .home-hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
  }
  .logo-text {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .logo-subtext {
    font-size: 0.5rem;
    letter-spacing: 4px;
    margin-right: -4px;
  }

  /* Optimize images and grids for mobile */
  .masonry-grid {
    column-count: 1; /* Beautiful full-width images on mobile */
    column-gap: 0;
  }
  .masonry-item {
    margin-bottom: 1rem;
  }
  .masonry-item img {
    border-radius: 8px; /* Softer edges on mobile images */
  }

  .whatsapp-form {
    padding: 1.5rem !important; /* Decrease form padding on small screens */
  }

  /* Form adjustments */
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
  }
}

.whatsapp-fab { display: flex !important; bottom: 30px !important; right: 20px !important; z-index: 99999 !important; }
