/* ==========================================================================
   THE VERDANT TERRACES - RESPONSIVE STYLESHEET
   Tested Breakpoints: 320px, 375px, 576px, 768px, 992px, 1200px, 1440px
   Mobile-first compositions, touch targets, zero overflow
   ========================================================================== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
  }
}

/* Standard Desktop to Laptop (1200px to 1439px) */
@media (max-width: 1399px) {
  .hero-editorial-grid {
    gap: 2.5rem;
  }
  .overview-composition {
    gap: 3.5rem;
  }
}

/* Tablet Landscape / Medium Desktop (992px to 1199px) */
@media (max-width: 1199px) {
  :root {
    --header-height: 80px;
  }

  .nav-desktop-menu {
    gap: 1.25rem;
  }

  .nav-link-item {
    font-size: 0.8125rem;
  }

  .hero-headline {
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  }

  .amenity-card {
    grid-column: span 6 !important;
  }

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

  .footer-col-rera {
    grid-column: span 3;
  }
}

/* Tablet Portrait & Mobile Devices (Below 992px) */
@media (max-width: 991px) {
  :root {
    --header-height: 74px;
  }

  .nav-desktop-menu,
  .header-contact-link {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Hero Section Mobile Recomposition */
  .hero-section {
    padding: 2rem 0 3.5rem;
    min-height: auto;
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual-col {
    order: -1;
  }

  .hero-image-frame {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  .hero-floating-stat-card {
    bottom: -16px;
    left: 16px;
    padding: 0.9rem 1.25rem;
  }

  /* Overview Section */
  .overview-composition {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .overview-img-inset {
    bottom: -20px;
    right: 0;
    width: 48%;
  }

  /* Configurations Section */
  .config-card {
    grid-template-columns: 1fr;
  }

  .config-card-media {
    min-height: 320px;
    max-height: 360px;
  }

  .config-card-body {
    padding: 2rem 1.5rem;
  }

  /* Location Section */
  .location-quick-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .location-landmarks-col,
  .location-map-col {
    height: auto;
    min-height: 480px;
  }

  .location-map-embed-box {
    min-height: 380px;
  }

  /* Developer Section */
  .developer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .developer-media {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }

  /* Enquiry Section */
  .enquiry-container-box {
    padding: 2.5rem 1.75rem;
  }

  .enquiry-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Highlights Grid */
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Gallery Grid */
  .gallery-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .gallery-item {
    aspect-ratio: 16 / 11;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

/* Small Tablets / Phablets (Below 768px) */
@media (max-width: 767px) {
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
  }

  .amenity-card {
    grid-column: span 12 !important;
    min-height: 320px;
  }

  .form-grid-2col {
    grid-template-columns: 1fr;
  }

  .developer-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .overview-badges-grid {
    grid-template-columns: 1fr;
  }

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

  .config-meta-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .plans-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .plan-toggle-btn {
    text-align: center;
  }

  .floating-contact-bar {
    bottom: 16px;
    left: 16px;
  }

  .floating-action-pill span {
    display: none;
  }

  .floating-action-pill {
    padding: 0.75rem;
    border-radius: 50%;
  }

  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
  }
}

/* Mobile Devices (Below 576px) */
@media (max-width: 575px) {
  .hero-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn-verdant-primary,
  .hero-cta-group .btn-verdant-outline {
    width: 100%;
  }

  .config-actions-row {
    flex-direction: column;
  }

  .config-actions-row .btn-verdant-primary,
  .config-actions-row .btn-verdant-outline {
    width: 100%;
  }

  .enquiry-form-card {
    padding: 2rem 1.25rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .location-quick-stats-strip {
    grid-template-columns: 1fr;
  }

  .location-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .loc-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gallery-masonry-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
  }

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

  .footer-col-brand,
  .footer-col-rera {
    grid-column: span 1;
  }

  .plans-viewer-wrap {
    padding: 1.25rem;
  }

  .plan-viewport-frame {
    min-height: 320px;
    padding: 0.75rem;
  }

  .modal-header-bar {
    padding: 1rem 1.25rem;
  }

  .modal-body-content {
    padding: 1.25rem;
  }
}

/* Very Small Mobile Displays (320px to 375px) */
@media (max-width: 375px) {
  .hero-headline {
    font-size: 2rem;
  }

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

  .hero-floating-stat-card {
    position: static;
    margin-top: 1rem;
  }

  .overview-img-inset {
    display: none; /* prevent overlap on extreme narrow screens */
  }

  .config-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

