/**
 * TWOJA STRONA — Reguły Responsywności (RWD) & Menu Mobilne
 * Przetestowane na rozdzielczościach od 320px do 2560px
 * Czysty CSS3
 */

/* ==========================================================================
   MENU ROZWIJANE MOBILNE (DRAWER & OVERLAY)
   ========================================================================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 19, 24, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

.mobile-menu-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-xs);
  color: var(--text-main);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--accent-soft);
  color: var(--accent-primary);
}

.drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   BREAKPOINT: Max-Width 1120px (Laptopy & Tablety Poziomo)
   ========================================================================== */
@media (max-width: 1120px) {
  .brand-pillars-composition {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

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

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

/* ==========================================================================
   BREAKPOINT: Max-Width 1240px (Mniejsze laptopy i tablety)
   ========================================================================== */
@media (max-width: 1320px) and (min-width: 1241px) {
  .nav-link {
    padding: 0.4rem 0.48rem;
    font-size: 13.5px;
  }

  .nav-link::after {
    left: 0.48rem;
    right: 0.48rem;
  }
}

@media (max-width: 1240px) {
  .site-nav {
    display: none;
  }

  .hamburger-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   BREAKPOINT: Max-Width 880px (Tablety Pionowo)
   ========================================================================== */
@media (max-width: 880px) {

  .hero-layout-flow {
    text-align: left;
  }

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

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

  .bonus-editorial-grid {
    grid-template-columns: 1fr;
  }

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

  .event-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   BREAKPOINT: Max-Width 640px (Smartfony)
   ========================================================================== */
@media (max-width: 640px) {
  .header-actions {
    gap: 0.35rem;
  }

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

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .brand-logo-img {
    height: 22px;
    max-width: 135px;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .hero-subtitle {
    font-size: 0.98rem;
  }

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

  .editorial-pricing-container {
    grid-template-columns: 1fr;
  }

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

  .configurator-wrapper {
    padding: 1.25rem;
  }

  .contact-form-card {
    padding: 1.25rem;
  }

  .barter-form-card {
    padding: 1.25rem;
  }

  .about-editorial-card {
    padding: 1.25rem;
  }

  .modal-window {
    max-height: 95vh;
  }

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

  .modal-body {
    padding: 1.25rem;
  }

  .modal-footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-footer button {
    width: 100%;
  }

  .admin-tabs-nav {
    padding: 0 0.5rem;
  }

  .admin-tab-btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
  }

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

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

@media (max-width: 420px) {
  .hero-title {
    font-size: 1.85rem !important;
    overflow-wrap: break-word;
  }

  .section-title {
    font-size: 1.55rem;
    overflow-wrap: break-word;
  }
}
