/**
 * AASHAPURA CONSTRUCTION - Responsive Engineering & Breakpoints
 * 
 * Explicitly designed & calibrated for:
 * 1. Small mobile phones: 320–359px
 * 2. Standard mobile phones: 360–430px
 * 3. Large phones: 431–600px
 * 4. Tablets: 601–900px
 * 5. Small laptops: 901–1280px
 * 6. Standard laptops and desktops: 1281–1600px
 * 7. Large desktop displays: 1601–1920px
 * 8. Ultra-wide screens: >1920px
 */

/* ==========================================================================
   8. ULTRA-WIDE SCREENS (> 1920px)
   ========================================================================== */
@media (min-width: 1921px) {
  :root {
    --container-max: 1880px;
    --container-editorial: 1640px;
    --container-narrow: 1280px;
  }

  .hero-section {
    min-height: 92vh;
    height: 92vh;
  }

  .hero-headline {
    max-width: 1100px;
  }

  .featured-project-media {
    aspect-ratio: 24 / 10;
  }
}

/* ==========================================================================
   7. LARGE DESKTOP DISPLAYS (1601px – 1920px)
   ========================================================================== */
@media (min-width: 1601px) and (max-width: 1920px) {
  .hero-section {
    min-height: 95svh;
  }

  .featured-project-media {
    aspect-ratio: 22 / 10;
  }
}

/* ==========================================================================
   6. STANDARD LAPTOPS & DESKTOPS (1281px – 1600px)
   ========================================================================== */
@media (min-width: 1281px) and (max-width: 1600px) {
  .hero-section {
    min-height: 100svh;
  }
}

/* ==========================================================================
   5. SMALL LAPTOPS (901px – 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-contact-col {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .nav-links, .header-phone, .header-actions-divider {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .service-editorial-item,
  .service-editorial-item.reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-editorial-item.reversed .service-editorial-media {
    order: 0;
  }

  .service-editorial-item.reversed .service-editorial-content {
    order: 0;
  }

  .asymmetric-row,
  .asymmetric-row.reversed {
    grid-template-columns: 1fr;
  }

  .process-step-item {
    grid-template-columns: 60px 1fr;
  }

  .process-step-media {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. TABLETS (601px – 900px)
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --space-xl: 3.5rem;
    --space-2xl: 4.5rem;
  }

  .estimator-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-section {
    min-height: 90svh;
    height: auto;
    padding-top: 100px;
    padding-bottom: 3.5rem;
    align-items: center;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 4.8vw, 2.5rem);
  }

  .featured-project-media {
    aspect-ratio: 16 / 10;
  }

  .featured-project-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact-col {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
  }

  .grade-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   3. LARGE PHONES (431px – 600px)
   ========================================================================== */
@media (max-width: 600px) {
  .brand-logo {
    height: 26px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-sm {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .hero-section {
    min-height: auto;
    height: auto;
    padding-top: 80px;
    padding-bottom: 2rem;
  }

  .hero-brand-badge {
    padding: 0.3rem 0.65rem;
  }

  .hero-brand-badge-text {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .hero-headline {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.15;
  }

  .hero-supporting-text {
    font-size: 0.88rem !important;
    line-height: 1.5;
  }

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

  .hero-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-stat-value {
    font-size: 1.35rem;
  }

  .hero-stat-label {
    font-size: 0.64rem;
  }

  .process-step-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .process-step-number-wrap {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
  }

  .process-step-media {
    grid-column: span 1;
  }

  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .footer-contact-col {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .grade-options {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.5rem;
  }

  .estimator-wrapper {
    padding: 1.25rem 0.85rem !important;
  }

  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   2. STANDARD MOBILE PHONES (360px – 430px)
   ========================================================================== */
@media (max-width: 430px) {
  :root {
    --container-padding: 1rem;
  }

  .brand-logo {
    height: 24px;
  }

  .hero-headline {
    font-size: clamp(1.22rem, 5.6vw, 1.45rem) !important;
    line-height: 1.18;
  }

  .hero-supporting-text {
    font-size: 0.84rem !important;
    line-height: 1.48;
  }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
  }

  .hero-stat-value {
    font-size: 1.25rem;
  }

  .hero-stat-label {
    font-size: 0.6rem;
  }

  .featured-project-media {
    aspect-ratio: 4 / 3;
  }

  .featured-project-title {
    font-size: 1.25rem;
  }

  .featured-specs-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   1. SMALL MOBILE PHONES (320px – 359px)
   Zero overflow, comfortable tap targets, optimized typography
   ========================================================================== */
@media (max-width: 359px) {
  :root {
    --container-padding: 0.85rem;
  }

  .brand-logo {
    height: 21px;
  }

  .hero-brand-badge {
    padding: 0.25rem 0.5rem;
  }

  .hero-brand-badge-text {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }

  .hero-headline {
    font-size: 1.12rem !important;
    line-height: 1.2;
  }

  .hero-supporting-text {
    font-size: 0.78rem !important;
    line-height: 1.42;
  }

  .hero-stat-value {
    font-size: 1.1rem;
  }

  .hero-stat-label {
    font-size: 0.54rem;
  }

  .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.75rem;
  }

  .service-number {
    font-size: 1.5rem;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .process-step-number {
    font-size: 1.75rem;
  }
}
