/* ==========================================================================
   AQUASCAPE STUDIO - ULTIMATE RESPONSIVE STYLES (MOBILE AUDIT & PERFECTION)
   Breakpoints:
     - Ultrawide: 1441px+
     - Desktop / Laptop: 1025px - 1440px
     - Tablet: 768px - 1024px
     - Mobile Large: 481px - 767px
     - Mobile Small / Portrait: 320px - 480px
   ========================================================================== */

/* Global Overflow Protection */
html, body {
  width: 100%;
  overflow-x: hidden !important;
}

/* 1. Large Desktop & Ultrawide (>1440px) */
@media (min-width: 1441px) {
  .container {
    max-width: 1480px;
  }

  .before-after-box {
    max-width: 1200px;
    height: 60vh;
  }
}

/* 2. Desktop & Laptops (1025px - 1440px) */
@media (max-width: 1440px) {
  .collection-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
  }

  .accessories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 1240px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .accessories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-links {
    gap: 2rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }
}

/* 3. Tablet Landscape & Portrait (768px - 1024px) */
@media (max-width: 1024px) {
  .section-padding {
    padding: 80px 0;
  }

  .fullvh-section {
    min-height: auto;
    padding: 90px 0;
  }

  .hero-floating-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

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

  .story-img-wrapper img {
    height: 420px;
  }

  .services-spotlight-wrapper {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

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

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

  .accessories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .before-after-box {
    height: 50vh;
    min-height: 380px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

/* 4. Mobile Devices (<768px) - Full Mobile Perfection */
@media (max-width: 767px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 55px 0;
  }

  .fullvh-section {
    min-height: auto;
    padding: 65px 0;
  }

  /* Header & Navigation Mobile Drawer */
  .site-header {
    height: 68px;
  }

  .nav-wrapper {
    padding: 0 1.25rem;
  }

  .brand-logo {
    font-size: 1.2rem;
  }

  .brand-logo i {
    font-size: 1.35rem;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(3, 10, 14, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 10px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  /* Section Typography Mobile */
  .heading-xl {
    font-size: clamp(2.1rem, 7.5vw, 3.2rem);
  }

  .heading-lg {
    font-size: clamp(1.75rem, 5.5vw, 2.4rem);
  }

  .subheading-tag {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 1rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header p {
    font-size: 0.95rem;
    margin-top: 0.6rem;
  }

  /* Section 1: Hero Mobile */
  .hero-section {
    padding-top: 80px;
    min-height: calc(100vh - 68px);
  }

  .hero-container {
    padding: 20px 0.5rem 40px 0.5rem;
  }

  .hero-description {
    font-size: 0.98rem;
    margin: 1.2rem auto 1.8rem auto;
    line-height: 1.6;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
  }

  .hero-cta-group .btn-primary, .hero-cta-group .btn-secondary {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .hero-floating-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.9rem 0.4rem;
  }

  .stat-card .stat-num {
    font-size: 1.4rem;
  }

  .stat-card .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0;
  }

  /* Section 2: Story Mobile */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-img-wrapper img {
    height: 280px;
  }

  .story-badge {
    bottom: 15px;
    right: 15px;
    padding: 0.8rem 1.2rem;
  }

  .story-badge h4 {
    font-size: 1.5rem;
  }

  .story-timeline {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* Section 3: Services Spotlight Mobile */
  .services-spotlight-card {
    padding: 1.6rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .spotlight-num {
    font-size: 2.2rem;
  }

  .spotlight-icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    border-radius: 14px;
  }

  .spotlight-title {
    font-size: 1.35rem;
  }

  .spotlight-desc {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }

  .spotlight-features {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .spotlight-feature-item {
    font-size: 0.85rem;
  }

  .service-video-wrapper {
    height: 180px;
    border-radius: var(--radius-md);
  }

  .service-video-overlay {
    bottom: 10px;
    left: 12px;
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .service-list-item {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
  }

  .service-list-num {
    font-size: 0.95rem;
  }

  .service-list-info h4 {
    font-size: 0.95rem;
  }

  .service-list-info p {
    font-size: 0.75rem;
  }

  /* Section 4 & 5: Products Grids Mobile */
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card-product-img {
    height: 210px;
  }

  .card-product-body {
    padding: 1.2rem;
  }

  .card-product-body h3 {
    font-size: 1.15rem;
  }

  .product-price {
    font-size: 1.15rem;
  }

  /* Section: Before & After Mobile Box (Exact 60vh scaling) */
  .before-after-box {
    height: 48vh;
    min-height: 280px;
    max-height: 380px;
    border-radius: var(--radius-lg);
  }

  .ba-before img {
    height: 100%;
  }

  .ba-label {
    font-size: 0.68rem;
    padding: 5px 12px;
    top: 12px;
  }

  .ba-label-before {
    left: 12px;
  }

  .ba-label-after {
    right: 12px;
  }

  .ba-handle-button {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  /* Section 6: Gallery Mobile */
  .gallery-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .gallery-item {
    height: 260px;
    border-radius: var(--radius-md);
  }

  .gallery-caption {
    padding: 1.2rem;
  }

  .gallery-caption h4 {
    font-size: 1.1rem;
  }

  /* Section 7: Accessories 2-Column Mobile Grid */
  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .accessories-grid .card-product-img {
    height: 130px;
  }

  .accessories-grid .card-product-body {
    padding: 0.8rem;
  }

  .accessories-grid h4 {
    font-size: 0.9rem !important;
  }

  .accessories-grid p {
    font-size: 0.72rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .accessories-grid .product-price {
    font-size: 0.95rem !important;
  }

  .accessories-grid .btn-inquire-sm {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  /* Section 8: Why Choose Us Mobile */
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 1.8rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3.5rem;
  }

  .stat-box .count {
    font-size: 2.2rem;
  }

  .stat-box p {
    font-size: 0.8rem;
  }

  .feature-box {
    padding: 1.8rem 1.2rem;
  }

  /* Section 9: Testimonials Mobile */
  .testimonial-card {
    padding: 1.8rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .testimonial-text {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
  }

  /* Section 10: Contact Us & Footer Mobile */
  .contact-form {
    padding: 1.6rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .contact-form form > div {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .form-control {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .direct-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-footer {
    padding: 50px 0 20px 0;
    margin-top: 60px;
  }

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

  /* Modal Mobile Window */
  .modal-container {
    padding: 1.8rem 1.2rem;
    width: 94%;
  }
}

/* 5. Ultra Small Mobile Screens (<380px) */
@media (max-width: 380px) {
  .hero-floating-cards {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .stats-banner {
    grid-template-columns: 1fr;
  }
}
