/* ==========================================================
   DESIGNTECH - Complete Responsive Design System
   Pixel-Perfect Layouts from 320px Mobile up to 4K Displays
   ========================================================== */

/* ----------------------------------------------------------
   1. TABLETS & SMALL LAPTOPS (max-width: 1024px)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nav-menu,
  .nav-links {
    display: none !important;
  }

  .hamburger-btn,
  .mobile-toggle-btn {
    display: flex !important;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr !important;
    max-width: 500px;
    margin: 2.5rem auto 0;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }

  .contact-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr !important;
    gap: 2rem;
  }
}

/* ----------------------------------------------------------
   2. MEDIUM TABLETS & PHABLETS (max-width: 900px)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .agency-trust-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 1.75rem 1.5rem !important;
    gap: 1.5rem;
  }

  .trust-metric-item:nth-child(2)::after {
    display: none !important;
  }

  .estimator-container {
    padding: 2rem 1.5rem !important;
  }

  .estimator-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .tools-grid,
  .services-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
    max-width: 520px;
    margin: 0 auto;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

/* ----------------------------------------------------------
   3. SMALL TABLETS & LARGE SMARTPHONES (max-width: 768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  /* Typography Scaling */
  h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
  h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
  h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }

  .hero-section {
    padding: 3.5rem 0 4rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }

  /* Hero CTA Stack */
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.85rem !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    max-width: 380px !important;
    justify-content: center !important;
  }

  /* Hero Trust Pillars Mobile Stack */
  .hero-stats-row {
    flex-direction: column !important;
    border-radius: 20px !important;
    padding: 1.25rem 1.5rem !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 380px !important;
    align-items: stretch !important;
    margin-top: 2rem !important;
  }

  .stat-divider {
    display: none !important;
  }

  .stat-item {
    gap: 0.85rem !important;
  }

  /* Hero Mockup Media */
  .hero-media-wrapper {
    margin-top: 2.5rem !important;
  }

  .hero-canvas-mockup {
    padding: 1rem !important;
    border-radius: 18px !important;
  }

  /* Comparison Matrix Responsive */
  .comparison-section {
    padding: 4rem 0 !important;
  }

  .comparison-table-wrapper {
    margin: 2rem -0.5rem 0 !important;
    border-radius: 16px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .agency-comp-table th,
  .agency-comp-table td {
    padding: 0.95rem 1rem !important;
    font-size: 0.8rem !important;
  }

  /* Final CTA Banner */
  .agency-cta-banner {
    padding: 3rem 1.5rem !important;
    border-radius: 20px !important;
  }

  .agency-cta-banner div[style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
  }

  .agency-cta-banner .btn {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }

  /* Service Detail Page Mobile */
  .service-detail-wrapper {
    padding: 2rem 0 3.5rem !important;
  }

  .service-featured-image-box {
    padding: 1.25rem !important;
    border-radius: 18px !important;
    margin-bottom: 2rem !important;
  }

  .service-content-block {
    padding: 1.75rem 1.25rem !important;
    border-radius: 18px !important;
    margin-bottom: 2.5rem !important;
  }

  .service-nine-lines-content {
    font-size: 0.975rem !important;
    line-height: 1.85 !important;
  }

  /* Process Steps on Services Page */
  .process-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .process-step-card {
    padding: 1.35rem 1.15rem !important;
  }
}

/* ----------------------------------------------------------
   4. STANDARD SMARTPHONES (max-width: 600px)
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  /* Compact Fixed Header */
  .navbar-container {
    padding: 0 1rem !important;
    gap: 0.65rem !important;
  }

  .brand-logo {
    font-size: 1.15rem !important;
    gap: 0.5rem !important;
  }

  .brand-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
  }

  .brand-icon-wrapper svg {
    width: 18px !important;
    height: 18px !important;
  }

  .nav-cta-btn {
    padding: 0.45rem 0.95rem !important;
    font-size: 0.775rem !important;
  }

  .hamburger-btn {
    width: 34px !important;
    height: 34px !important;
  }

  /* Single Column Trust Strip */
  .agency-trust-section {
    padding: 1rem 0 2.5rem !important;
  }

  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .agency-trust-strip {
    grid-template-columns: 1fr !important;
    padding: 1.35rem 1.15rem !important;
    gap: 1.25rem !important;
  }

  .trust-metric-item::after {
    display: none !important;
  }

  /* Services Grid Single Column */
  .tools-grid,
  .services-catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .tool-card,
  .service-agency-card {
    padding: 1.35rem 1.15rem !important;
  }

  /* Estimator on Mobile */
  .estimator-container {
    padding: 1.5rem 1.15rem !important;
    border-radius: 18px !important;
  }

  #estimatorServiceOptions {
    grid-template-columns: 1fr !important;
  }

  .velocity-options-grid {
    grid-template-columns: 1fr !important;
  }

  .estimator-summary-box {
    padding: 1.5rem 1.15rem !important;
    border-radius: 16px !important;
  }

  #calcEstimatedTotal {
    font-size: 2.75rem !important;
  }

  /* Pricing Cards Mobile Padding */
  .pricing-card {
    padding: 1.75rem 1.25rem !important;
  }

  .plan-price-num {
    font-size: 2.5rem !important;
  }

  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding-bottom: 2.5rem !important;
  }

  .footer-brand {
    grid-column: span 1 !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  .footer-bottom-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }
}

/* ----------------------------------------------------------
   5. ULTRA-SMALL PHONES (max-width: 380px)
   ---------------------------------------------------------- */
@media (max-width: 380px) {
  .container {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .navbar-container {
    padding: 0 0.75rem !important;
  }

  .brand-logo {
    font-size: 1.05rem !important;
  }

  .brand-icon-wrapper {
    width: 28px !important;
    height: 28px !important;
  }

  .nav-cta-btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.72rem !important;
  }

  .hamburger-btn {
    width: 30px !important;
    height: 30px !important;
  }

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

  .section-title {
    font-size: 1.5rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
}
