/* ==========================================================================
   NEW SUPER FURNISHING — COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Supports: Ultra-Wide (1400px+), Laptops (1200px), Tablets (768px-991px),
             Mobiles (576px-767px), Small Mobiles (<575px), Foldables (<360px)
   ========================================================================== */

/* --- Global Viewport & Touch Safety --- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS auto-zoom on input focus */
@media screen and (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch manipulation safety */
button, .btn, a, input, select, textarea, .faq-tab, .faq-question, .slider-arrow {
  touch-action: manipulation;
}

/* ==========================================================================
   1. ULTRA WIDE SCREENS (1400px+)
   ========================================================================== */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ==========================================================================
   2. DESKTOPS & SMALL LAPTOPS (1024px - 1280px)
   ========================================================================== */
@media screen and (max-width: 1280px) {
  .container {
    max-width: 1140px;
  }

  .category-card.large {
    grid-column: span 12;
    height: 420px;
  }
  
  .category-card.medium,
  .category-card.small {
    grid-column: span 6;
  }

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

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

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

/* ==========================================================================
   3. TABLETS LANDSCAPE & SMALL LAPTOPS (992px - 1023px)
   ========================================================================== */
@media screen and (max-width: 1023px) {
  .section-padding {
    padding: 5rem 0;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .header-container {
    padding: 0.4rem 1rem;
    align-items: center;
  }

  .logo-img {
    height: 90px;
    max-width: 240px;
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
  }

  .header-cta .btn {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Two-column splits stack on tablet */
  .about-split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper img {
    height: 400px;
  }

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

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

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

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

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

  .gallery-item.large {
    grid-column: span 2;
    height: 360px;
  }

  /* Reviews slider shows 1 full card on tablet */
  .testimonial-card {
    min-width: 100%;
  }

  /* FAQ section 1-column layout */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .faq-info-panel {
    position: static;
    top: auto;
  }

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

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

/* ==========================================================================
   4. TABLETS PORTRAIT & LARGE MOBILES (768px - 991px)
   ========================================================================== */
@media screen and (max-width: 991px) {
  .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  }

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

  .stat-item {
    padding: 2rem 1.5rem;
  }

  .showcase-3d-center {
    max-width: 380px;
    padding: 1.35rem 1.25rem;
  }

  .showcase-3d-center h2 {
    font-size: 1.5rem;
  }

  .showcase-3d-card {
    width: 175px;
    height: 112px;
    top: -56px;
    left: -87px;
  }
}

/* ==========================================================================
   5. MOBILE DEVICES (576px - 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Header adjustments */
  .header-container {
    padding: 0.3rem 0.75rem;
    align-items: center;
  }

  .logo-img {
    height: 80px;
    max-width: 210px;
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .header-cta .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
  }

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

  .logo-tagline {
    font-size: 0.65rem;
  }

  /* Hero Section */
  .hero-section {
    min-height: 560px;
    padding: 6rem 0 4rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Category Grid & Tabs */
  .category-filter-tabs {
    gap: 0.4rem;
    margin-top: 1.5rem;
  }

  .cat-tab-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }

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

  .category-card.large,
  .category-card.medium,
  .category-card.small {
    grid-column: span 1;
    height: 350px;
  }

  .category-card-content {
    padding: 1.5rem;
  }

  .category-card-header {
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .category-title {
    font-size: 1.45rem !important;
  }

  /* Product & Why Grids */
  .product-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-card {
    padding: 2rem 1.5rem 1.75rem;
  }

  .gallery-item,
  .gallery-item.large {
    grid-column: span 1;
    height: 260px;
  }

  .product-checklist {
    grid-template-columns: 1fr;
  }

  /* Testimonials Responsive */
  .testimonials-section {
    padding: 5rem 0 4rem;
  }

  .testi-header {
    margin-bottom: 2.5rem;
  }

  .testi-deco {
    width: 50px;
    height: 50px;
  }
  .testi-deco--tl { top: 1rem; left: 1rem; }
  .testi-deco--tr { top: 1rem; right: 1rem; }
  .testi-deco--bl { bottom: 1rem; left: 1rem; }
  .testi-deco--br { bottom: 1rem; right: 1rem; }

  .testimonial-inner {
    padding: 1.85rem 1.35rem;
    border-radius: 14px;
  }

  .testi-card-top {
    gap: 0.75rem;
  }

  .testi-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .testi-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .testi-cta-btn {
    width: 100%;
    justify-content: center;
  }

  /* Mission & Vision Responsive */
  .mv-section {
    padding: 5rem 0;
  }

  .mv-card {
    padding: 2rem 1.5rem;
    border-radius: 14px;
  }

  .mv-corner {
    width: 45px;
    height: 45px;
  }
  .mv-corner--tl { top: 1rem; left: 1rem; }
  .mv-corner--tr { top: 1rem; right: 1rem; }
  .mv-corner--bl { bottom: 1rem; left: 1rem; }
  .mv-corner--br { bottom: 1rem; right: 1rem; }

  /* FAQ Section Responsive */
  .faq-section {
    padding: 5rem 0 4rem;
  }

  .faq-filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar for clean aesthetic */
    scrollbar-width: none;
  }
  .faq-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .faq-tab {
    flex-shrink: 0;
    padding: 0.55rem 1.15rem;
    font-size: 0.78rem;
  }

  .faq-question {
    padding: 1.15rem 1.25rem;
    gap: 0.75rem;
  }

  .faq-q-icon {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .faq-q-text {
    font-size: 0.95rem;
  }

  .faq-answer-inner {
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
    font-size: 0.92rem;
  }

  .faq-info-panel {
    padding: 1.75rem 1.25rem;
  }

  .faq-bottom-cta {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* 3D Showcase Section */
  .showcase-3d {
    min-height: 560px;
    height: 70vh;
  }

  .showcase-3d-center {
    max-width: 290px;
    padding: 1.1rem 0.95rem;
    border-radius: var(--radius-md);
  }

  .showcase-3d-center .eyebrow {
    font-size: 0.65rem;
  }

  .showcase-3d-center h2 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  .showcase-3d-center p {
    font-size: 0.78rem;
    margin-bottom: 0.85rem;
  }

  .showcase-3d-center-btn {
    padding: 0.48rem 1.1rem;
    font-size: 0.7rem;
  }

  .showcase-3d-card {
    width: 140px;
    height: 90px;
    top: -45px;
    left: -70px;
  }

  .showcase-card-title {
    font-size: 0.75rem;
  }

  .showcase-card-overlay {
    padding: 0.5rem;
  }

  .showcase-3d-hint {
    font-size: 0.65rem;
    padding: 0.3rem 0.85rem;
    bottom: 1rem;
  }

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

  .footer-trust-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

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

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

  /* Lightbox & Floating Elements */
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .cookie-banner {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    max-width: none;
    padding: 1.15rem 1.25rem;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 5.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   6. SMALL MOBILE SCREENS & FOLDABLES (<575px)
   ========================================================================== */
@media screen and (max-width: 575px) {
  h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  .btn {
    padding: 0.85rem 1.35rem;
    font-size: 0.78rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
  }

  .stats-section {
    padding: 4.5rem 0;
  }

  .stat-number {
    font-size: 3rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .why-card-top {
    margin-bottom: 1rem;
  }

  .why-number {
    font-size: 2.2rem;
  }

  .why-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* Extra Small Phones (<380px) */
@media screen and (max-width: 380px) {
  .logo-brand {
    font-size: 0.95rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .cta-banner {
    padding: 4rem 1.25rem;
  }

  .header-container {
    padding: 0.25rem 0.5rem;
  }

  .logo-img {
    height: 70px;
    max-width: 185px;
  }

  .header-cta {
    gap: 0.35rem;
  }

  .header-cta .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   7. HIGH DPI & RETINA DISPLAY FINE-TUNING
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}
