/* A&V – spoločné vylepšenia použiteľnosti pre všetky stránky */

/* Kotvy (#kontakt…) sa nezasunú pod lepiacu lištu, plynulé posúvanie */
html { scroll-padding-top: 84px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Žiadne vodorovné posúvanie na mobile */
body { overflow-x: clip; }
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
  .section { padding: 64px 0; }
}

/* Viditeľný fokus pre ovládanie klávesnicou */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid #f39a3c; outline-offset: 3px; box-shadow: none;
}

/* Lišta: aktívna položka + sociálne ikony */
.navbar .nav-link { position: relative; }
.navbar .nav-link.active::after {
  content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .15rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #e8336d, #f39a3c, #fbd13a);
}
.nav-social { color: rgba(255,255,255,.8); font-size: 1.15rem; padding: .35rem .5rem; }
.nav-social:hover { color: #fff; }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: .75rem 0 1rem; }
  .navbar .nav-link { padding: .7rem 0; font-size: 1.05rem; }
  .navbar .nav-link.active::after { left: 0; right: auto; width: 32px; bottom: .3rem; }
}

/* Celé karty výrobkov klikateľné a s jasnou spätnou väzbou */
.card.product { transition: transform .2s, box-shadow .2s; }
.card.product:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.card.product:hover h5 { color: #e8336d; }

/* Tlačidlo späť hore */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #1c1b20; color: #fff; font-size: 1.2rem; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: #e8336d; }

/* Kontaktné karty */
.contact-options { display: grid; gap: 12px; }
.contact-opt {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.06); text-decoration: none; color: #1c1b20; transition: transform .15s, box-shadow .15s;
}
.contact-opt:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.1); color: #1c1b20; }
.contact-opt .ico { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.contact-opt .t { font-weight: 700; line-height: 1.2; }
.contact-opt .s { font-size: .85rem; color: #5d5b63; }
.contact-opt .bi-arrow-right { margin-left: auto; color: #e8336d; }
.ico-msg { background: #1877f2; }
.ico-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.ico-mail { background: #1c1b20; }

/* Svetelný box: väčšie dotykové šípky na mobile */
@media (max-width: 575.98px) { .lb-nav { width: 52px; height: 52px; } .lb-prev { left: 4px; } .lb-next { right: 4px; } }

/* ==========================================================
   TMAVÁ TÉMA „dielňa“ – prekrýva svetlé štýly všetkých stránok
   ========================================================== */
:root {
  --dk-bg: #121116;
  --dk-bg-2: #17161c;
  --dk-surface: #1d1c23;
  --dk-surface-2: #26252d;
  --dk-line: rgba(255,255,255,.08);
  --dk-text: #ecebf1;
  --dk-muted: #a5a2b0;
  --dk-glow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.45);
}
html { background: var(--dk-bg); }
body { background: var(--dk-bg); color: var(--dk-text); }
h1, h2, h3, h4, h5 { color: #fff; }
.text-muted-av, .text-muted-av a { color: var(--dk-muted) !important; }
.lead { color: var(--dk-muted); }
a { color: #f39a3c; }

/* Sekcie: jemná CAD mriežka namiesto prúžkov */
.bg-soft {
  background-color: var(--dk-bg-2) !important;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  border-top: 1px solid var(--dk-line); border-bottom: 1px solid var(--dk-line);
}

/* Lišta – priesvitná so sklom */
.navbar {
  background: rgba(18,17,22,.82) !important;
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--dk-line);
}

/* Úvod hlavnej stránky */
.hero { position: relative; overflow: hidden; padding: 120px 0 110px !important; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232,51,109,.28), rgba(243,154,60,.12) 55%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero h1 {
  background: linear-gradient(180deg, #fff 30%, #c9c6d3); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline { color: #f39a3c !important; letter-spacing: .02em; }
.hero-logo { filter: drop-shadow(0 20px 50px rgba(232,51,109,.35)); }

/* Tlačidlá */
.btn-av {
  background: linear-gradient(90deg, #e8336d, #f39a3c) !important; color: #fff !important;
  box-shadow: 0 8px 24px rgba(232,51,109,.3);
}
.btn-av:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline-dark { color: var(--dk-text) !important; border-color: rgba(255,255,255,.25) !important; background: transparent; }
.btn-outline-dark:hover { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.4) !important; }
.filters .btn.active, .lang-switch .btn.active {
  background: linear-gradient(90deg, #e8336d, #f39a3c) !important; border-color: transparent !important; color: #fff !important;
}

/* Karty a povrchy */
.card, .cat-card, .card.product, .fact, .tool-card, .exp, .contact-opt, .soon {
  background: var(--dk-surface) !important; color: var(--dk-text);
  border: 1px solid var(--dk-line) !important; box-shadow: var(--dk-glow) !important;
}
.card.product:hover, .cat-card:hover, .contact-opt:hover {
  border-color: rgba(243,154,60,.45) !important;
  box-shadow: 0 0 0 1px rgba(243,154,60,.25), 0 22px 46px rgba(0,0,0,.55) !important;
}
.card.product img, .gallery-item, .mosaic-item, .duo-img, .hero-img { background: #2a2930 !important; }
.fact .label { color: var(--dk-muted); }
.fact .value { color: #fff; }
.contact-opt { color: var(--dk-text) !important; }
.contact-opt .s { color: var(--dk-muted); }
.ico-mail, .tool-badge { background: var(--dk-surface-2) !important; border: 1px solid var(--dk-line); }
.tool-tags span { background: var(--dk-surface-2) !important; color: var(--dk-text); border: 1px solid var(--dk-line); }
.soon { border-style: dashed !important; border-color: rgba(255,255,255,.18) !important; }
.gallery-item.empty { border-color: rgba(255,255,255,.18) !important; color: var(--dk-muted) !important; }
.gallery-cap { color: var(--dk-muted) !important; }
.status { background: rgba(0,0,0,.6) !important; border: 1px solid rgba(255,255,255,.15); }
.badge-av { color: #1c1b20 !important; }

/* Zvýraznený box (RC, stav projektu) */
.rc-box { background: linear-gradient(135deg, #1f1e26, #2a1a24) !important; border: 1px solid var(--dk-line); }

/* Drobčeková navigácia */
.breadcrumb, .breadcrumb a { color: var(--dk-muted) !important; }
.breadcrumb-item.active { color: #fff !important; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3) !important; }

/* Video a svetelný box */
.video-wrap { border: 1px solid var(--dk-line); }
#lightbox .modal-content { background: transparent; }
.modal-backdrop.show { opacity: .9; }

/* Pätička */
footer { background: #0b0a0e !important; border-top: 1px solid var(--dk-line); }
footer hr { border-color: rgba(255,255,255,.1) !important; }

/* Tlačidlo späť hore */
.to-top { background: linear-gradient(135deg, #e8336d, #f39a3c); }

/* Jemné objavenie obsahu pri posúvaní */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }


/* ================= MASKOT VRSTVÍK ================= */
.mascot { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.mascot-float { animation: mascot-bob 3.2s ease-in-out infinite; }
@keyframes mascot-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bubble {
  position: relative; display: inline-block; background: #fff; color: #1c1b20; font-weight: 600; font-size: .92rem;
  padding: .65rem .95rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); line-height: 1.35;
}
.bubble::after { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.bubble.b-down::after { left: 28px; bottom: -6px; }
.bubble.b-left::after { left: -6px; top: 50%; margin-top: -8px; }
.bubble b { background: linear-gradient(90deg,#e8336d,#f39a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-visual { position: relative; display: inline-block; padding-right: 130px; }
.hero-visual .hero-logo { max-width: 260px; }
.hero-mascot { position: absolute; right: -20px; bottom: -30px; width: 170px; }
.hero-mascot .bubble { position: absolute; left: -10px; top: -58px; white-space: nowrap; }
@media (max-width: 991.98px) {
  .hero-visual { padding-right: 110px; }
  .hero-visual .hero-logo { max-width: 200px; }
  .hero-mascot { width: 130px; right: -6px; bottom: -24px; }
  .hero-mascot .bubble { font-size: .8rem; top: -48px; left: -20px; }
}
.contact-mascot { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; }
.contact-mascot .mascot { width: 92px; flex: 0 0 92px; }
.soon .mascot { width: 110px; margin: 0 auto 1rem; }

/* Vektorové logo v lište a pätičke */
.navbar-brand img, footer img[src*="logo-av"] { object-fit: contain; padding: 6px !important; }

/* Rozmery v HTML slúžia len na rezerváciu miesta (bez poskakovania), výšku riadi CSS */
:where(img[width][height]) { height: auto; max-width: 100%; }

/* Odkaz na Printables */
.printables-cta { display: flex; align-items: center; gap: 16px; max-width: 640px; margin-left: auto; margin-right: auto;
  padding: 16px 20px; border-radius: 18px; text-decoration: none; color: var(--dk-text);
  background: linear-gradient(135deg, rgba(232,51,109,.14), rgba(243,154,60,.10)); border: 1px solid rgba(243,154,60,.35); transition: transform .15s, border-color .15s; }
.printables-cta:hover { transform: translateY(-2px); border-color: rgba(243,154,60,.7); color: #fff; }
.printables-cta .ico { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg,#e8336d,#f39a3c); }
.printables-cta .t { font-weight: 700; }
.printables-cta .s { font-size: .88rem; color: var(--dk-muted); }
.printables-cta .bi-box-arrow-up-right { margin-left: auto; color: #f39a3c; }

/* Printables v lište, kontakte a pätičke */
.nav-pr { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem !important; font-weight: 600; border: 1px solid rgba(243,154,60,.5); border-radius: 40px; padding: .3rem .8rem !important; color: #fff !important; }
.nav-pr:hover { background: rgba(243,154,60,.15); }
.ico-pr { background: linear-gradient(135deg,#e8336d,#f39a3c); }
.footer-pr { display: inline-flex; align-items: center; vertical-align: middle; font-weight: 600; font-size: .95rem; border: 1px solid rgba(255,255,255,.2); border-radius: 40px; padding: .25rem .8rem; position: relative; top: -4px; }
.footer-pr:hover { border-color: #f39a3c; }
