/* ==========================================================================
   PROSTAKTIV NORDIC — STRICT RESPONSIVE OPTIMIZATIONS
   Tested on: 320px, 360px, 375px, 390px, 414px, 430px, 768px, 1024px+
   Rule: Zero horizontal scroll, touch targets >= 44px, graceful text flow
   ========================================================================== */

/* Large Tablets & Small Desktops (<= 1100px) */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-image-wrapper {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-overlay-card {
    left: 10px;
    bottom: -15px;
  }

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

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

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

/* Tablets (<= 900px) */
@media (max-width: 900px) {
  .nav-menu,
  .nav-actions .btn-secondary {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

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

  .kost-split-grid {
    grid-template-columns: 1fr;
  }

  .timeline-detail-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }

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

  .hero-section {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

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

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    min-height: 48px;
  }

  .hero-overlay-card {
    position: static;
    margin-top: 1rem;
    width: 100%;
    min-width: auto;
    box-sizing: border-box;
  }

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

  .kropp-card {
    padding: 1.5rem;
  }

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

  .motion-card {
    height: 300px;
  }

  .kost-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .timeline-step-btn {
    flex: 0 0 135px;
    scroll-snap-align: start;
    min-height: 48px;
  }

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

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .articles-preview-grid {
    grid-template-columns: 1fr;
  }

  .mag-card-body {
    padding: 1.35rem;
  }

  .btn {
    min-height: 48px;
  }
}

/* Small screens (<= 375px e.g. iPhone SE, 320px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .brand-logo-main {
    font-size: 1rem;
  }

  .brand-logo-sub {
    font-size: 0.68rem;
  }

  .data-panel {
    padding: 1.5rem 1.25rem;
  }

  .timeline-detail-box {
    padding: 1.25rem;
  }
}
