/* ═══════════════════════════════════════════════════════
   RESPONSIVE.CSS — Media Queries
   CHCI TELEVIZI — Premium TV Installation, Prague
═══════════════════════════════════════════════════════ */

/* ── TABLET & SMALL DESKTOP ── */
@media (max-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Pricing carousel: 2 karty + náhled další */
  .pricing-card {
    flex-basis: calc((100% - 2 * var(--gap) - var(--peek)) / 2);
  }

}

/* ── NAV: SMALL DESKTOP / LARGE TABLET ── */
@media (max-width: 1180px) and (min-width: 901px) {
  #navbar { padding: 0 16px; gap: 1rem; }
  .nav-links { gap: 1.15rem; }
  .nav-links a,
  .nav-more-btn { font-size: .82rem; }
  .nav-logo img { height: 28px; }
  /* telefon jen jako ikona — číslo zůstává v patičce a mobilním menu */
  .nav-phone span { display: none; }
  .nav-phone { padding: 7px; }
  .nav-cta { padding: 8px 14px; font-size: .82rem; }
}

/* ── NAV: nejužší desktop před přepnutím na hamburger ── */
@media (max-width: 1050px) and (min-width: 901px) {
  #navbar { padding: 0 14px; gap: .75rem; }
  .nav-links { gap: .9rem; }
  .nav-links a,
  .nav-more-btn { font-size: .78rem; }
  /* telefon je v tomto rozpětí zbytečný – zůstává CTA */
  .nav-phone { display: none; }
  .nav-cta { padding: 8px 12px; font-size: .78rem; }
}

/* ── TABLET ── */
@media (max-width: 900px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-more-menu { display: none; }
  .nav-cta   { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero */
  #hero {
    grid-template-columns: 1fr;
    padding-top: calc(16px + var(--nav-h) + 48px);
    padding-bottom: 80px;
    text-align: center;
  }
  .hero-top { align-items: center; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-info {
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-content { align-items: center; }
  .hero-badge   { align-self: center; }
  .hero-sub     { max-width: 100%; }
  .hero-chips   { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-proof   { align-self: center; }
  .hero-pillars { grid-template-columns: 1fr; max-width: 100%; text-align: left; }
  .hero-pillar-label { justify-content: flex-start; }
  .hero-visual  { display: none; }

  /* Sections */
  section { padding: 90px 5vw; }

  /* Steps */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* O nás */
  #o-nas {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Poradenství */
  #poradenstvi {
    grid-template-columns: 1fr;
  }

  /* Kontakt */
  #kontakt {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  /* Na tabletu se desktopová mozaika (třídy gs-*) ruší a jede se na dva sloupce. */
  .gallery-grid .gallery-item { grid-column: span 1; grid-row: span 1; }
  /* Každá třetí fotka přes obě šířky – mozaika drží rytmus i tady. Bere i dvě
     řady, ať z ní není jen panoramatický pruh. Fotky na výšku vynecháváme,
     ořez na šířku by z nich ukrojil to podstatné. */
  .gallery-grid .gallery-item:nth-child(3n):not(.is-portrait-src) {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* Reviews */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  section { padding: 72px 5vw; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; }

  /* O nás */
  .about-stats { grid-template-columns: 1fr; }
  .about-stat-num { font-size: 2.1rem; }

  /* FAQ */
  .faq-q { font-size: .95rem; padding: 1.2rem 1.25rem; gap: .9rem; }
  .faq-a-inner { padding: 0 1.25rem 1.3rem; }

  /* Pricing carousel: 1 karta + náhled další, ovládání swipem */
  .pricing-carousel { --peek: 2.5rem; }
  .pricing-card {
    flex-basis: calc(100% - var(--gap) - var(--peek));
  }
  .pricing-arrow { display: none; }
  .pricing-fade { width: 32px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem 1.4rem; }
  .tarif-choice { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-grid .gallery-item { grid-column: 1; grid-row: span 1; }
  /* Fotka na výšku dostane dvojnásobnou výšku, ať z ní nezůstane jen pruh. */
  .gallery-grid .gallery-item.is-portrait-src { grid-row: span 2; }

  /* Lightbox */
  .lightbox-inner { max-width: 95vw; }

  /* Typography */
  .section-title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  h1 { font-size: clamp(2.4rem, 9vw, 3.8rem); }

  /* Nav logo */
  .nav-logo img { height: 28px; }
}

/* ── LARGE SCREENS ── */
@media (min-width: 1400px) {
  #hero {
    padding-left: max(5vw, calc((100vw - 1500px) / 2 + 5vw));
    padding-right: max(5vw, calc((100vw - 1500px) / 2 + 5vw));
  }
  section {
    padding-left: max(5vw, calc((100vw - 1500px) / 2 + 5vw));
    padding-right: max(5vw, calc((100vw - 1500px) / 2 + 5vw));
  }
  /* floating navbar handled by max-width + left:50% */
  footer {
    padding-left: max(5vw, calc((100vw - 1500px) / 2 + 5vw));
    padding-right: max(5vw, calc((100vw - 1500px) / 2 + 5vw));
  }
}
