/* =========================================================
   LFaudio, home.css
   Styly specifické pro úvodní stránku (index.html):
   hero, pás značek, o nás, služby, servis/proces, galerie, kontakt.
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 75% 15%, rgba(var(--accent-rgb), .13), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(var(--accent-rgb), .06), transparent 60%),
    var(--bg);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .04;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
}
.hero-grid { display: grid; justify-items: center; width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 1.18rem; color: var(--muted); max-width: 680px; margin-bottom: 32px; }
.hero-visual { display: grid; justify-items: center; gap: 32px; width: min(100%, 820px); position: relative; z-index: 1; }
.hero-text { display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta-center { justify-content: center; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--text); }
.hero-stats .stat .l { font-size: 0.85rem; color: var(--muted); letter-spacing: .02em; }
.hero-logo-frame { display: block; width: min(100%, var(--hero-logo-w)); }
.hero-logo-frame img { width: auto; max-width: 100%; height: auto; object-fit: contain; display: block; }
.hero-logo-frame img.logo-light { display: none; }
:root[data-theme="light"] .hero-logo-frame img.logo-dark { display: none; }
:root[data-theme="light"] .hero-logo-frame img.logo-light { display: block; }
/* Stejný důvod jako u .brand-logo: bílá kresba potřebuje tmavý podklad, jinak
   ve světlém motivu splyne s pozadím (vlastní logo pro světlý motiv ho nepotřebuje: .plain). */
:root[data-theme="light"] .hero-logo-frame:not(.plain) {
  background: var(--logo-plate);
  padding: clamp(14px, 4vw, 26px) clamp(18px, 5vw, 32px);
  border-radius: calc(var(--radius) * 1.25);
  box-shadow: var(--shadow);
  /* content-box: padding se přičte navíc k width, takže obrázek uvnitř zůstane
     stejně velký jako v tmavém motivu (jinak by border-box padding ukrajoval
     z max. šířky 420px a logo by se opticky zmenšilo). Padding škáluje dolů
     na úzkých obrazovkách, aby destička nepřetekla mimo hero sekci. */
  box-sizing: content-box;
}

/* ---------- Marquee brands ---------- */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; background: var(--bg-2); overflow: hidden; }
/* boční odsazení 56 px = místo pro tlačítko pauzy (34 px + okraj), popisek se nikdy nedostane pod ně a na úzkém displeji se zalomí */
.brands .label { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; padding: 0 56px; }
.brands { position: relative; }
.marquee { display: flex; width: max-content; animation: scrollx var(--marquee-s) linear infinite; }
.marquee-set { display: flex; gap: 48px; flex: 0 0 auto; padding-right: 48px; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--muted); opacity: .65; white-space: nowrap; }
.marquee span.dot { color: var(--accent); opacity: .4; }
.marquee-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* pozastavení: tlačítkem (.paused), najetím myší (jen zařízení s myší, na dotyku zůstává hover „přilepený“) a fokusem z klávesnice (ne po klepnutí na tlačítko);
   ruční „Spustit“ (.playing) má přednost, jinak by pás po stisku dál stál, dokud je tlačítko vybrané nebo je nad ním kurzor */
.brands.paused .marquee { animation-play-state: paused; }
@media (hover: hover) { .brands:hover .marquee { animation-play-state: paused; } }
.brands:has(:focus-visible) .marquee { animation-play-state: paused; }
.brands.playing .marquee { animation-play-state: running; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee-toggle {
  position: absolute; right: 14px; top: 10px; width: 34px; height: 34px; border-radius: calc(var(--radius) * 0.5625); border: 1px solid var(--line);
  background: var(--bg-3); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.marquee-toggle[hidden] { display: none; }
.marquee-toggle:hover { border-color: var(--accent); color: var(--accent-2); }
.marquee-toggle svg { width: 14px; height: 14px; }
.marquee-toggle .ico-play, .brands.paused .marquee-toggle .ico-pause { display: none; }
.brands.paused .marquee-toggle .ico-play { display: block; }
/* Při omezeném pohybu se značky nehýbou, ale zalamují do řádků */
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-set { flex-wrap: wrap; justify-content: center; padding: 0 22px; gap: 10px 28px; }
  .marquee-set[aria-hidden="true"], .marquee-toggle { display: none; }
  .marquee-mask { -webkit-mask-image: none; mask-image: none; }
}
/* totéž, když jsou animace vypnuté v administraci (<html data-motion="off">) */
:root[data-motion="off"] .marquee { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
:root[data-motion="off"] .marquee-set { flex-wrap: wrap; justify-content: center; padding: 0 22px; gap: 10px 28px; }
:root[data-motion="off"] .marquee-set[aria-hidden="true"], :root[data-motion="off"] .marquee-toggle { display: none; }
:root[data-motion="off"] .marquee-mask { -webkit-mask-image: none; mask-image: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 50px; align-items: center; }
.about-media { position: relative; }
.about-media .frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media .stat-chip {
  position: absolute; bottom: -22px; right: -10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.875); padding: 16px 20px; box-shadow: var(--shadow); text-align: center;
}
.about-media .stat-chip .n { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--accent-2); }
.about-media .stat-chip .l { font-size: .78rem; color: var(--muted); }
.about-points { display: grid; gap: 16px; margin-top: 26px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .pc { width: 40px; height: 40px; border-radius: calc(var(--radius) * 0.6875); background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: 0 0 auto; }
.about-point .pc svg { width: 20px; height: 20px; }
.about-point h3 { font-family: var(--display); font-size: 1.02rem; margin-bottom: 2px; letter-spacing: normal; }
.about-point p { color: var(--muted); font-size: .93rem; }

/* ---------- Services ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(var(--lift)); border-color: var(--accent); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: calc(var(--radius) * 0.8125); display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-2);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.step { position: relative; padding: 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--accent-2); opacity: .35; line-height: 1; }
.step h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; }
.servis-note { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 26px; }
.servis-note .ni { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.servis-note .ni b { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; font-family: var(--display); }
.servis-note .ni b svg { width: 18px; height: 18px; color: var(--accent-2); }
.servis-note .ni p { color: var(--muted); font-size: .9rem; }

/* ---------- Gallery ---------- */
/* Pevný poměr stran dlaždic: stránka se při líném načítání obrázků nepřeskládává a kotvy (#kontakt) sedí. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.gallery figure {
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  position: relative; border: 1px solid var(--line); background: var(--bg-3);
}
.gallery figure a { display: block; width: 100%; height: 100%; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,0)); transition: background .3s; pointer-events: none; }
.gallery figure:hover img, .gallery figure:focus-within img { transform: scale(1.06); }
.gallery figure:hover::after, .gallery figure:focus-within::after { background: linear-gradient(transparent 50%, rgba(8,9,12,.72)); }
/* popisek je vždy bílý (leží na ztmavené fotce, v obou motivech); na dotykových zařízeních bez „hover“ je vidět stále */
.gallery figure .cap { position: absolute; bottom: 10px; left: 12px; right: 12px; z-index: 2; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.65); font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(6px); transition: .3s; pointer-events: none; }
.gallery figure:hover .cap, .gallery figure:focus-within .cap { opacity: 1; transform: none; }
@media (hover: none) {
  .gallery figure::after { background: linear-gradient(transparent 55%, rgba(8,9,12,.6)); }
  .gallery figure .cap { opacity: 1; transform: none; }
}
.gallery-actions { display: flex; justify-content: center; margin-top: 28px; }
.gallery-actions[hidden], #galleryMore[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,9,12,.94); z-index: 250; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { width: auto; height: auto; max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.lb-close { top: 22px; right: 22px; width: 46px; height: 46px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.6rem; }
.lb-nav.prev { left: 22px; } .lb-nav.next { right: 22px; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lb-close svg { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; margin-top: 50px; }
.contact-grid.contact-single { grid-template-columns: minmax(0, 960px); justify-content: center; margin-top: 40px; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.info-item .ic { width: 42px; height: 42px; border-radius: calc(var(--radius) * 0.6875); background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: 0 0 auto; }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item .t { font-size: .8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.info-item .v { font-weight: 600; }
.info-item .v a:hover { color: var(--accent-2); }
.info-link { display: inline-block; margin-top: 4px; font-size: .88rem; font-weight: 600; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Orientační ceník ---------- */
.price-list { list-style: none; margin-top: 40px; max-width: 860px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list .pr-name b { display: block; font-weight: 600; }
.price-list .pr-name small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.price-list .pr-price { font-family: var(--display); font-weight: 800; color: var(--accent-2); white-space: nowrap; text-align: right; }
.price-note { margin-top: 14px; color: var(--muted); font-size: .9rem; max-width: 860px; }
/* ceník je celý vycentrovaný (nadpis, seznam i poznámka) */
.pricing .sec-head { text-align: center; }
.pricing .sec-head .section-lead { margin-left: auto; margin-right: auto; }
.pricing .price-list { margin-left: auto; margin-right: auto; }
.pricing .price-note { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Reference ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; margin-top: 44px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.review blockquote { position: relative; color: var(--text); line-height: 1.6; }
.review blockquote::before { content: "„"; display: block; font-family: var(--display); font-size: 3rem; line-height: .6; color: var(--accent-2); margin-bottom: 8px; }
.review figcaption { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .9rem; color: var(--muted); }
.review figcaption b { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .grid-cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media .stat-chip { right: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .servis-note { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: var(--section-pad-sm) 0; }
  .grid-cards, .steps { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
  .hero-stats { gap: 24px; }
  /* pás značek na mobilu: čitelnější popisek i názvy (větší kontrast a písmo) */
  .brands { padding: 20px 0; }
  .brands .label { font-size: .82rem; letter-spacing: .1em; line-height: 1.5; color: var(--muted); }
  .marquee span { font-size: 1.3rem; opacity: .92; }
  .marquee span.dot { opacity: .75; }
}
