/* responsive.css - RM Decorações Comprehensive Mobile, Tablet & Desktop Responsiveness */

/* ============================================================
   1. LAPTOPS & DESKTOPS (max-width: 1280px)
   ============================================================ */
@media (max-width: 1280px) {
  .nav-menu {
    gap: 1.1rem;
  }

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

  .header {
    padding: 1.1rem var(--container-padding);
  }

  .commercial-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   2. LAPTOPS / TABLETS (max-width: 1120px) -> DRAWER NAVIGATION
   ============================================================ */
@media (max-width: 1120px) {
  .nav-menu {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-header) + 2);
  }

  .mobile-menu-btn span {
    width: 26px;
    height: 2.5px;
    background-color: var(--color-text-main);
    transition: var(--transition-fast);
    transform-origin: center;
    border-radius: 2px;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

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

  .media-portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   3. TABLETS (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-gap: 4rem;
  }

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

  .comparator-room-stage {
    height: 380px;
  }

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

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

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

  .rm-carousel .carousel-slide {
    height: 440px;
  }
}

/* ============================================================
   4. MOBILE & SMALL TABLETS (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 3rem;
    --container-padding: 1.25rem;
    --header-height: 70px;
  }

  h1 { font-size: clamp(1.8rem, 6.5vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  h3 { font-size: clamp(1.15rem, 4vw, 1.5rem) !important; }

  /* Header Balance */
  .header {
    padding: 0.9rem var(--container-padding);
    height: var(--header-height);
  }

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

  .brand-logo svg {
    width: 24px;
    height: 24px;
  }

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

  /* Hero Section & Window Frame Spacing (No Overlap) */
  .hero-section {
    padding-top: calc(var(--header-height) + 1.2rem) !important;
    padding-bottom: 2.5rem !important;
    min-height: auto !important;
  }

  .window-frame-architecture {
    width: 100% !important;
    min-height: auto !important;
    max-height: none !important;
    border-width: 5px !important;
    border-radius: 14px !important;
    padding: 2rem 1.2rem !important;
  }

  .hero-content {
    padding: 0.2rem !important;
  }

  .hero-title {
    font-size: 1.7rem !important;
    margin-bottom: 0.8rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }

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

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.9rem 1.2rem !important;
    font-size: 0.88rem !important;
  }

  .curtain-prompt {
    padding: 1.8rem 1.2rem !important;
    width: 90% !important;
    text-align: center !important;
  }

  .curtain-prompt .btn-primary {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Carousels on Mobile */
  .rm-carousel {
    margin-top: 1.8rem !important;
    border-radius: var(--radius-md) !important;
  }

  .rm-carousel .carousel-slide {
    height: 320px !important;
  }

  .carousel-caption-overlay {
    padding: 1.5rem 1rem 1rem 1rem !important;
  }

  .carousel-caption-overlay h4 {
    font-size: 0.95rem !important;
  }

  .carousel-caption-overlay p {
    font-size: 0.8rem !important;
  }

  .carousel-btn-prev, .carousel-btn-next {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.9rem !important;
  }

  .carousel-btn-prev { left: 0.6rem !important; }
  .carousel-btn-next { right: 0.6rem !important; }

  /* Showroom Interativo */
  .comparator-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .comparator-content-col {
    display: contents;
  }

  .comparator-content-col .section-label,
  .comparator-content-col h2,
  .comparator-content-col p:not(#comparatorDescription) {
    order: 1;
  }

  .comparator-tabs-nav {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
    margin: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }

  .light-level-btn {
    flex: 1 0 auto;
    justify-content: center;
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .comparator-room-stage {
    order: 3;
    height: 280px !important;
    padding: 1rem;
    margin: 0.5rem 0;
  }

  .comparator-info-box {
    order: 4;
    padding: 1.4rem;
  }

  .color-swatches-grid {
    gap: 0.5rem !important;
    justify-content: center;
  }

  .swatch-item {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  /* Single Column Grids on Mobile */
  .commercial-products-grid,
  .services-grid,
  .variations-grid,
  .media-portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .commercial-card,
  .service-card,
  .variation-card,
  .media-portfolio-card {
    padding: 1.6rem 1.2rem !important;
  }

  .service-card .service-card-image-wrap,
  .service-card div[style*="height: 190px"] {
    margin: 0 -1.2rem 1.2rem -1.2rem !important;
    height: 170px !important;
  }

  .media-card-thumb-wrap {
    height: 240px !important;
  }

  /* Configurator Wizard */
  .wizard-card {
    padding: 1.6rem 1rem !important;
    margin-top: 1.5rem !important;
  }

  .options-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }

  .option-btn {
    padding: 1rem 0.8rem !important;
    font-size: 0.88rem !important;
  }

  /* Timeline */
  .timeline-wrapper {
    margin-top: 2rem;
  }

  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    text-align: left !important;
    padding-left: 2.2rem !important;
    margin-bottom: 2rem !important;
  }

  .timeline-svg-line {
    left: 0.6rem !important;
  }

  /* Footer on Mobile */
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

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

  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
    bottom: 1.2rem;
    right: 1.2rem;
  }

  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}

/* ============================================================
   5. EXTRA SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .btn-primary, .btn-secondary {
    padding: 0.85rem 1.1rem !important;
    font-size: 0.82rem !important;
  }

  .comparator-room-stage {
    height: 250px !important;
  }

  .rm-carousel .carousel-slide {
    height: 280px !important;
  }

  .window-frame-architecture {
    padding: 1.5rem 0.8rem !important;
  }

  .curtain-prompt {
    padding: 1.4rem 0.8rem !important;
  }

  .curtain-drag-hint {
    font-size: 0.75rem !important;
  }
}
