/* =========================================================================
   Sdílené úpravy nad předkompilovaným Tailwindem (assets/main-*.css).
   Typografie, kontrast, mobil a přístupnost – platí pro všechny stránky.
   Načítá se až po main-*.css a gdpr.css.
   ========================================================================= */

:root {
  /* JetBrains Mono se nenačítá – systémové neproporcionální písmo */
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* ---------- Typografie ---------- */

/* Žádná osamělá slova na konci řádku */
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* Jedna velikost na úroveň nadpisu.
   Nadpis sekce (h2, i velké h3 na podstránkách): 32 px na mobilu → 52 px na desktopu.
   Výjimka: dvojice nadpisů v hero (lg:text-7xl). */
:is(h2, h3):is(.text-4xl, .text-5xl, .text-6xl, [class*="md:text-4xl"], [class*="md:text-5xl"], [class*="md:text-6xl"]):not([class*="lg:text-7xl"]),
h2.font-headline.text-3xl {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1.1;
}
/* Nadpis karty: 22 px */
h3:not(:is(.text-4xl, .text-5xl, .text-6xl, [class*="md:text-4xl"], [class*="md:text-5xl"], .text-xs)) {
  font-size: 1.375rem;
  line-height: 1.25;
}

/* Běžný text aspoň 16 px (karty, kontakt, patička) */
p.text-sm:not(.uppercase),
ul.text-sm,
li.text-sm {
  font-size: 1rem;
  line-height: 1.6;
}
/* Položky rozbalovacího menu */
nav .group a.text-xs { font-size: .875rem; }

/* Drobné verzálky: minimum 12 px, v patičce 14 px a menší prostrkání */
.text-\[10px\] { font-size: .75rem; }
footer .text-\[10px\] {
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: none;
}
footer .tracking-\[0\.3em\],
footer .tracking-\[0\.2em\],
footer .tracking-\[0\.15em\] { letter-spacing: .06em; }

/* ---------- Kontrast, odkazy, tlačítka ---------- */

@layer base {
  /* Odkazy v textu: vždy podtržené */
  p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

  /* Viditelný fokus při ovládání klávesnicí */
  :focus-visible { outline: 2px solid #00d1ff; outline-offset: 3px; border-radius: 4px; }
}

@layer utilities {
  /* Šedé texty na tmavém pozadí měly pod 4,5:1 → slate-400 (7:1) */
  .text-slate-500,
  .text-slate-600 { color: var(--color-slate-400); }

  /* Oranžová jako text: #E84A27 má na tmavých plochách 4,4:1 → o odstín světlejší (5,5:1) */
  .text-emergency-orange { color: #f2643f; }

  /* Tmavé písmo na oranžových a modrých tlačítkách (bílé mělo 3,9:1 a 1,8:1) */
  .text-on-primary-fixed,
  .text-on-tertiary-fixed,
  .bg-emergency-orange.text-white { color: #0b1326; }
}

/* ---------- Přístupnost ---------- */

/* Odkaz „Přeskočit na obsah“ – viditelný až po stisku Tab */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 10px;
  background: #00d1ff;
  color: #0b1326;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
#obsah { scroll-margin-top: 80px; }
#obsah:focus { outline: none; }

/* Tlačítko mobilního menu (dřív <span>) */
#mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  background: none;
  border: 0;
  color: inherit;
  font-size: 28px;
}
#mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

/* Rozbalovací menu se otevře i fokusem z klávesnice */
nav .group:focus-within > div.absolute {
  opacity: 1;
  translate: none;
  pointer-events: auto;
}

/* Šipka v menu (SVG místo ikonového písma) */
.nav-chevron { width: 14px; height: 14px; flex: none; }

/* Odkaz/tlačítko „Nastavení cookies“ v patičce */
button[data-gdpr-open] {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Obsah sekcí se odkrývá animací jen se zapnutým JS (třída reveal-on z <head>).
   Bez JS nebo s vypnutými animacemi je vidět hned. */
.reveal { opacity: 1; transform: none; }
html.reveal-on .reveal:not(.active) { opacity: 0; transform: translateY(30px); }

@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal:not(.active) { opacity: 1; transform: none; }
  .reveal { transition: none; }
  .animate-ping,
  .animate-pulse,
  .animate-float,
  .animate-float-delayed,
  .animate-float-fast,
  .animate-ekg { animation: none !important; }
  .animate-ping { opacity: .6; }
}

/* ---------- Mobil ---------- */

/* Dotykové plochy v patičce aspoň 44 px */
footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer ul li > div > a { display: flex; }
footer ul.space-y-4 > :not(:last-child) { margin-block-end: 0; }
footer ul.space-y-6 > :not(:last-child) { margin-block-end: .5rem; }
footer .flex-wrap > :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer .flex-wrap.gap-6 { column-gap: 1.25rem; row-gap: 0; }

/* Úvodní dělené hero na homepage */
@media (max-width: 767px) {
  .hero-split > div { padding: 2.5rem 1.5rem; }
  .hero-split > div:first-child { padding-top: 6.5rem; } /* pod fixní lištou menu */
  .hero-split h2 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1rem; }
  .hero-split p { font-size: 1.0625rem; margin-bottom: 1.5rem; }
  .hero-split a[href] { padding-top: 1rem; padding-bottom: 1rem; }
  .hero-split .inline-flex.rounded-full { margin-bottom: 1rem; }
}

/* Dekorativní záře v hero podstránek přesahovala vpravo – na mobilu pak stránka byla širší
   než displej a fixní lišty (cookies, menu) se ořezávaly. */
html, body { overflow-x: clip; }

/* Plovoucí karty vedle hero na podstránkách: pod 1024 px by spadly pod text
   a zabraly 600 px scrollování navíc – na mobilu a tabletu je skrýváme. */
@media (max-width: 1023px) {
  .hero-visual { display: none; }
}

/* ---------- SEO audit 15. 11. 2026 ---------- */
/* Velký slogan v hero homepage je <p> (H1 je štítek „IT servis v Kyjově a okolí“) */
@media (max-width: 767px) {
  .hero-split p.hero-title { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1rem; }
  .hero-split p.hero-phone { font-size: 1rem; margin: 1rem 0 0; }
  .hero-split .hero-phone a { padding: 0; }
}
/* Telefon a pracovní doba pod tlačítky v hero */
.hero-phone { margin-top: 1.5rem; }
.hero-phone a { text-underline-offset: 4px; }
/* Obrázky s width/height: výška podle poměru stran */
.img-auto { height: auto; }

/* ---------- Obsah 15. 11. 2026: FAQ a postup na stránkách služeb, Poradna ---------- */
.faq-block { max-width: 72rem; margin: 0 auto 8rem; padding: 0 1.5rem; }
.faq-wrap { max-width: 56rem; }
.faq-label { font-size: .75rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: #f2643f; margin: 0 0 .75rem; }
.faq-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.15; margin: 0 0 2rem; }
.faq-steps { list-style: none; counter-reset: krok; padding: 0; margin: 0 0 4.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.faq-steps li { counter-increment: krok; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; padding: 1.5rem; color: #94a3b8; line-height: 1.6; }
.faq-steps li::before { content: counter(krok, decimal-leading-zero); display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #f2643f; margin-bottom: .75rem; }
.faq-steps strong { display: block; color: #fff; font-size: 1.125rem; margin-bottom: .5rem; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.25rem 3.5rem 1.25rem 1.5rem; position: relative; color: #fff; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); color: #f2643f; font-size: 1.5rem; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid #00d1ff; outline-offset: 2px; border-radius: 1rem; }
.faq-answer { padding: 0 1.5rem 1.25rem; color: #94a3b8; line-height: 1.7; }
.faq-answer p { margin: 0; }
.faq-answer a, .faq-steps a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-review { display: inline-block; margin-top: .5rem; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.gdpr-doc .poradna-card-title { margin: 0 0 8px; padding-top: 0; border-top: 0; font-size: 20px; }
.gdpr-doc .poradna-card-title a { color: var(--gdpr-heading); text-decoration: none; }
.gdpr-doc .poradna-card-title a:hover { color: var(--gdpr-link); }
.gdpr-doc table { margin-bottom: 16px; }
@media (max-width: 767px) { .faq-block { margin-bottom: 5rem; } }
/* Hlavní menu na tabletu (768–1023 px): 6 položek se nevešlo vedle loga */
@media (min-width: 768px) and (max-width: 1023px) {
  nav .md\:flex.gap-8 { gap: 1rem; letter-spacing: .06em; }
  nav .md\:flex.gap-8 > div:has(> a[href="/o-nas/"]) { display: none; }
}
/* Ceník pro domácnosti */
.faq-table-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; }
.faq-table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 34rem; }
.faq-table th { text-align: left; color: #fff; background: rgba(255,255,255,.04); padding: .875rem 1.25rem; font-weight: 700; }
.faq-table td { padding: .875rem 1.25rem; color: #94a3b8; border-top: 1px solid rgba(255,255,255,.06); }
.faq-table td:nth-child(2) { color: #fff; font-weight: 600; white-space: nowrap; }
.faq-table td:nth-child(3) { white-space: nowrap; }
.faq-note { color: #94a3b8; font-size: .9375rem; margin: 0 0 4.5rem; }
.faq-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
