/* ==========================================================================
   HUP Meble - Responsive Stylesheet
   Sprawdzone dla: 320, 360, 390, 430, 768, 1024, 1280, 1440 i 1920 px
   ========================================================================== */

/* 1. Ekrany do 1200px (Laptopy i mniejsze desktopy) */
@media (max-width: 1200px) {
  .container,
  .container-wide,
  .header-container {
    width: 78%;
    margin-left: 11%;
    margin-right: 11%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .products-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-logo,
  .header-cta {
    flex: 0 0 auto;
  }

  .nav-list {
    gap: 25px;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.70rem;
    letter-spacing: 0.08em;
  }
}

/* 2. Ekrany do 992px (Tablety poziomo / małe ekrany) */
@media (max-width: 992px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .container-wide,
  .header-container {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--color-charcoal-deep);
    border-left: 1px solid var(--color-gold-line);
    padding: calc(var(--header-height) + 1.25rem) 1.75rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    z-index: 1005;
    flex: none;
  }
  
  .main-nav.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.15rem;
    width: 100%;
  }
  
  .nav-link {
    font-size: 0.92rem;
    padding: 0.4rem 0;
    width: 100%;
  }
  
  .has-dropdown {
    width: 100%;
  }
  
  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0.65rem 0 0.5rem 0.75rem;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .has-dropdown.mobile-open .mega-menu {
    display: block;
  }
  
  .mega-menu-col h3 {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
  }
  
  .mega-menu-list a {
    font-size: 0.82rem;
    padding: 0.3rem 0;
  }
  
  .header-cta .btn {
    display: none;
  }
  
  .mobile-cta-wrap {
    margin-top: 1.75rem;
    width: 100%;
    display: block;
  }
  
  .mobile-cta-wrap .btn {
    width: 100%;
  }

  .slider-arrow,
  .slider-arrow-prev,
  .slider-arrow-next {
    display: none !important;
  }

  /* Slider marginesy ze wszystkich stron po 10% */
  .hero-slider-section .slide-content {
    position: absolute !important;
    top: 10% !important;
    bottom: 10% !important;
    left: 10% !important;
    right: 10% !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .hero-slider-section .slider-dots {
    bottom: 3.5% !important;
  }
  
  .about-grid,
  .wood-showcase-grid,
  .showroom-grid,
  .product-single-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  
  .wood-showcase-image {
    order: -1;
  }
  
  .showroom-map {
    height: 290px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item.span-2 {
    grid-column: span 1;
  }
}

/* 3. Ekrany do 768px (Tablety pionowo / telefony) */
@media (max-width: 768px) {
  .container,
  .container-wide,
  .header-container {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }

  .section-padding {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
  
  .hero-slider-section {
    min-height: 520px;
  }
  
  .slide-text {
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .collections-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid,
  .products-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
  
  .cta-banner {
    padding: 2.75rem 1.25rem;
  }
  
  .cta-banner .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-banner .btn {
    width: 100%;
  }

  .product-card-footer {
    gap: 0.4rem;
  }

  .product-card-footer .btn {
    width: 100%;
  }
  
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-select {
    width: 100%;
  }
}

/* 4. Małe ekrany do 480px / 360px / 320px (Smartfony) */
@media (max-width: 480px) {
  .container,
  .container-wide,
  .header-container {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    width: 100%;
  }
  
  .brand-logo img {
    height: 34px;
  }
  
  .slide-badge {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }
  
  .wood-features-list {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1.15rem;
  }
}

/* Responsive form row helper for contact form */
@media (max-width: 576px) {
  .form-row-2 {
    grid-template-columns: 1fr !important;
  }
}


/* Responsive dopasowanie nowoczesnych dekoracji zdjęć */
@media (max-width: 576px) {
  .photo-showcase-wrapper {
    gap: 0.85rem;
  }
  .photo-decor-top .decor-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .photo-decor-top .decor-line {
    max-width: 40px;
  }
  .photo-badge-card {
    padding: 0.75rem 0.9rem;
    gap: 0.65rem;
  }
  .photo-badge-content strong {
    font-size: 0.80rem;
  }
  .photo-badge-content span {
    font-size: 0.72rem;
  }
  .photo-frame-corner {
    width: 16px;
    height: 16px;
  }
}


/* ==========================================================================
   RESPONSYWNOŚĆ: SEKCJA REKLAMOWA RENOWACJA MEBLI
   ========================================================================== */
@media (max-width: 992px) {
  .bento-item-1 {
    grid-column: span 12 !important;
    height: 280px !important;
  }
  .bento-item-2 {
    grid-column: span 6 !important;
    height: 220px !important;
  }
  .bento-item-3 {
    grid-column: span 6 !important;
    height: 220px !important;
  }
  .bento-item-4 {
    grid-column: span 6 !important;
    height: 220px !important;
  }
  .bento-item-5 {
    grid-column: span 6 !important;
    height: 220px !important;
  }
}

@media (max-width: 768px) {
  .renowacja-ad-card {
    padding: 1.6rem 1.1rem !important;
  }
  .renowacja-ad-lead {
    font-size: 0.90rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.4rem !important;
  }
  .renowacja-chips {
    flex-direction: column !important;
    gap: 0.45rem !important;
    margin-bottom: 1.5rem !important;
  }
  .renowacja-chip {
    font-size: 0.76rem !important;
    padding: 0.4rem 0.65rem !important;
    width: 100% !important;
  }
  .renowacja-ad-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-bottom: 2rem !important;
  }
  .renowacja-ad-actions .btn,
  .renowacja-phone-pill {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .renowacja-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .bento-item-1,
  .bento-item-2,
  .bento-item-3,
  .bento-item-4,
  .bento-item-5 {
    grid-column: span 1 !important;
    height: 210px !important;
  }
  .bento-zoom-btn {
    opacity: 0.9 !important;
    transform: scale(0.9) !important;
  }
}
