/* ════════════════════════════════════════════════════════
   Mobile & Touch Enhancement — sdílené pro celý web
   Načítá se na všech stránkách přes <link>
   ════════════════════════════════════════════════════════ */

/* ── TOUCH DEVICES (bez hover) ──────────────────────────── */
@media (hover: none) {
  /* Vypnout bubble hover efekt — na touchu vypadá těžkopádně */
  .btn-white::before,
  .btn-primary::before,
  .btn-cta-main::before {
    display: none !important;
  }
  /* Press-down efekt při tapnutí — okamžitá vizuální odezva */
  .btn-white:active,
  .btn-primary:active,
  .btn-cta-main:active,
  .btn-model:active,
  .nav-cta:active,
  .panel-catalog:active {
    transform: scale(.97);
    transition: transform .08s ease, background .15s ease, color .15s ease;
  }
  .btn-white:active {
    background: var(--accent) !important;
    color: #fff !important;
  }
  .btn-primary:active,
  .btn-cta-main:active {
    background: var(--accent) !important;
  }
  .nav-cta:active {
    background: var(--accent) !important;
  }
  /* Cards: lehký press-down místo hover-lift */
  .product-card:active,
  .project-card:active,
  .model-card:active {
    transform: scale(.99);
    transition: transform .08s ease;
  }
}

/* ── MOBILE (≤ 600px) — UX vylepšení ────────────────────── */
@media (max-width: 600px) {
  /* Touch targets 44×44 px (Apple HIG minimum) */
  .nav-cta {
    height: 44px !important;
    padding: 0 18px !important;
    font-size: .7rem !important;
  }
  .nav-menu-btn {
    height: 44px !important;
    padding: 0 14px !important;
    font-size: .7rem !important;
  }
  .btn-primary,
  .btn-white,
  .btn-cta-main {
    min-height: 44px;
  }
  .filter-btn {
    min-height: 40px;
    padding: .55rem 1rem;
  }
  .carousel-btn {
    width: 40px !important;
    height: 40px !important;
  }

  /* ── FULLSCREEN MENU (mobile pattern) ─────────────────── */
  .nav-dropdown {
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    padding: 1.5rem 1.2rem !important;
    background: rgba(255,255,255,.98) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    overflow-y: auto !important;
    gap: 14px !important;
    box-shadow: none !important;
  }
  .panel-link {
    padding: 20px 24px !important;
    font-size: .92rem !important;
    letter-spacing: .04em !important;
    min-height: 56px;
    align-items: center;
  }
  .panel-link svg {
    width: 16px;
    height: 16px;
  }
  .panel-newsletter,
  .panel-catalog {
    padding: 18px 20px !important;
  }
  .panel-catalog .cat-name {
    font-size: .88rem !important;
  }
  /* Overlay zůstane průhledný (menu je už solid) */
  .nav-overlay.active {
    background: rgba(0,0,0,0) !important;
  }

  /* ── ČITELNĚJŠÍ METADATA NA MALÝCH FONTECH ────────────── */
  .tag,
  .mtag,
  .prod-tag {
    font-size: .68rem !important;
  }
  .product-badge,
  .model-badge {
    font-size: .65rem !important;
  }
  .ft-label,
  .param-label,
  .hstat-label {
    font-size: .64rem !important;
  }
  .product-desc,
  .model-tagline,
  .feature-row-desc {
    font-size: .88rem !important;
    line-height: 1.6;
  }
  .footer-bottom {
    font-size: .78rem !important;
    line-height: 1.6;
  }
  .breadcrumb {
    font-size: .68rem !important;
  }

  /* Lepší klikatelnost ve footru */
  .footer-col ul a {
    padding: .5rem 0;
    display: inline-block;
    min-height: 32px;
  }
}

/* ── VELMI MALÉ TELEFONY (≤ 380px) ──────────────────────── */
@media (max-width: 380px) {
  .nav-cta {
    padding: 0 14px !important;
    font-size: .66rem !important;
  }
  .nav-menu-btn .menu-label-wrap {
    width: 36px;
  }
  .panel-link {
    padding: 18px 20px !important;
    font-size: .88rem !important;
  }
}

/* ── PREVENT iOS ZOOM PŘI FOCUS VSTUPU (font ≥ 16px) ───── */
input[type=text],
input[type=email],
input[type=tel],
input[type=search],
textarea,
select {
  font-size: max(16px, 1em);
}

/* ── BODY SCROLL LOCK KDYŽ JE MENU OTEVŘENÉ ──────────── */
body.nav-open {
  overflow: hidden;
}

/* ── QUICK CONTACT CTAs (v menu, viditelné jen na mobilu) ── */
.nav-quick-cta {
  display: none;
}
@media (max-width: 600px) {
  .nav-quick-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 1.2rem;
  }
  .nqc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1rem .6rem;
    background: #1a5fa8;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    transition: background .2s, transform .12s ease;
    min-height: 72px;
    justify-content: center;
  }
  .nqc-btn:active {
    background: #0f4080;
    transform: scale(.97);
  }
  .nqc-btn svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
  }
  /* Druhý a třetí jiná barva pro vizuální rozlišení */
  .nqc-btn:nth-child(2) {
    background: #2b2d35;
  }
  .nqc-btn:nth-child(2):active {
    background: #000;
  }
  .nqc-btn:nth-child(3) {
    background: #525a66;
  }
  .nqc-btn:nth-child(3):active {
    background: #353c47;
  }
}
