/* ===================================================
   ROYAL CREST INTERIOR & CONSTRUCTION
   Responsive Stylesheet
   =================================================== */

/* ===== TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-img-wrap img { height: 380px; }
  .map-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(1) { grid-column: span 12; height: 380px; }
  .project-card:nth-child(2), .project-card:nth-child(3) { grid-column: span 6; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  :root {
    --navbar-h: 68px;
  }
  .section { padding: 70px 0; }

  /* Navbar mobile */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    align-items: stretch;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    color: var(--text-dark) !important;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.9rem;
  }
  .nav-link::after { left: 24px; right: 24px; }
  .nav-cta { margin: 8px 24px 0; color: var(--white) !important; text-align: center; }

  /* Hero */
  .hero-content { padding: 0 20px; padding-top: var(--navbar-h); }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { display: flex; flex-direction: column; }
  .project-card { height: 260px !important; grid-column: unset !important; grid-row: unset !important; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; gap: 28px; }

  /* Testimonials */
  .testimonial-card { min-width: calc(100% - 0px); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Contact cards */
  .contact-cards { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 200px; }

  /* Values */
  .values-grid { grid-template-columns: 1fr; }

  /* BA */
  .ba-container { height: 320px; }

  /* Before-after */
  .map-embed { height: 280px; }

  /* Floats */
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.4rem; }

  /* Page hero */
  .page-hero { height: 280px; padding-bottom: 40px; }
}

/* ===== SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .container-wide { padding: 0 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}