/* Princ — pracovní ochranné pomůcky · modernizace princ-safety.cz
   Barevný profil převzatý z původního webu a loga:
   #283a86  průměr modrých pixelů loga (logo.png)
   #003366  tmavá modrá z rámů původního webu (header/footer frame)
   #f3f7fd  světlé podkladové pole původní šablony
   Bez akcentové barvy — klient nechal oranžovou i zelenou odstranit;
   tlačítka jsou bílá s tmavě modrým textem, akcenty nese indigo. */

:root {
  --indigo: #283a86;
  --navy: #003366;
  --navy-ink: #10233f;      /* tmavý text — ztmavená brandová modrá */
  --bg: #ffffff;
  --bg-soft: #f3f7fd;
  --line: #d9e2f0;
  --muted: #51607a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 51, 102, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--navy-ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--indigo); color: #fff;
  padding: 0.6rem 1rem; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

/* ---------------------------------------------------------------- lišta */

.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand img { height: 40px; width: auto; }

.bar nav {
  display: flex; gap: 1.4rem; margin-left: auto;
}
.bar nav a {
  color: var(--navy-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.bar nav a:hover { color: var(--indigo); border-bottom-color: var(--indigo); }

/* ------------------------------------------------------------- tlačítka */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--navy-ink);
  font-weight: 800; text-decoration: none;
  padding: 0.7rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--line); cursor: pointer; font-size: 1rem; font-family: inherit;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 51, 102, 0.22); }

.btn--sm { padding: 0.5rem 1.05rem; font-size: 0.92rem; white-space: nowrap; }
.btn--big { padding: 0.85rem 1.7rem; font-size: 1.05rem; }

.btn--ghost {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor, 0 8px 20px rgba(0, 51, 102, 0.18); }

.btn svg { width: 1em; height: 1em; fill: currentColor; }

/* ----------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--navy) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}

.hero__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.eyebrow {
  display: inline-block;
  color: #9db4d8; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800;
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d7e2f5; font-style: italic;
  min-height: 1.7em;   /* psací animace nesmí hýbat layoutem */
}

/* psací animace — blikající kurzor jako na původním webu */
.cursor {
  display: inline-block; width: 3px; margin-left: 2px;
  background: #d7e2f5;
  animation: blink 1s infinite;
}
.cursor.typing { animation: none; }
@keyframes blink {
  0%, 49% { background: #d7e2f5; }
  50%, 100% { background: transparent; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero__cta .btn--ghost { color: #fff; }

.hero__note { margin-top: 1.2rem; font-size: 0.92rem; color: #b9c9e4; max-width: 42ch; }

.hero__img { position: relative; }
.hero__img img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto;
}

.rating {
  position: absolute; left: 1rem; bottom: -1.1rem;
  display: flex; align-items: center; gap: 0.55rem;
  background: #fff; color: var(--navy-ink);
  border-radius: 999px; padding: 0.5rem 1rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}
.rating strong { font-size: 1.15rem; color: var(--indigo); }
.rating .stars { color: var(--indigo); letter-spacing: 0.1em; }

/* ---------------------------------------------------------------- sekce */

section { padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }

.sec-head { max-width: 1120px; margin: 0 auto 2.2rem; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--indigo); }
.sec-head p { color: var(--muted); margin-top: 0.4rem; }

/* sortiment */

.range { background: var(--bg-soft); }

.range__grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--indigo) 9%, #fff);
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--indigo); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; color: var(--navy-ink); }
.card p { color: var(--muted); font-size: 0.97rem; }

/* výprodej — položky plní JS z vyprodej.json; bez položek je sekce skrytá */

.sale { background: #fff; }

.sale__grid {
  max-width: 1120px; margin: 0 auto; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem;
}

.sale__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sale__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.sale__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.sale__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.sale__body h3 { font-size: 1.05rem; color: var(--navy-ink); }
.sale__desc { color: var(--muted); font-size: 0.93rem; flex: 1; }
.sale__price { font-weight: 800; font-size: 1.2rem; color: var(--indigo); margin-top: 0.3rem; }

/* citace */

.quote { background: #fff; text-align: center; }
.quote blockquote { max-width: 720px; margin: 0 auto; }
.quote p {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--indigo);
  text-wrap: balance;
}
.quote cite { display: block; margin-top: 1rem; font-style: normal; color: var(--muted); }

/* prodejna + otevírací doba po domluvě */

.visit {
  background: var(--bg-soft);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  /* plné pozadí přes celou šířku, obsah vycentrovaný na 1120px */
  padding-left: max(clamp(1rem, 4vw, 2.5rem), calc((100% - 1120px) / 2));
  padding-right: max(clamp(1rem, 4vw, 2.5rem), calc((100% - 1120px) / 2));
}

.visit__img img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto;
}

.visit__info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--indigo); margin-bottom: 0.6rem; }
.addr { color: var(--muted); margin-bottom: 1.4rem; }
.addr b { color: var(--navy-ink); }

.visit__hours {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--indigo);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.visit__hours svg {
  flex: 0 0 auto; width: 30px; height: 30px; margin-top: 0.2rem;
  fill: none; stroke: var(--indigo); stroke-width: 1.8; stroke-linecap: round;
}
.visit__hours h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.visit__hours p { color: var(--muted); font-size: 0.97rem; }

.visit__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.visit__cta .btn--ghost { color: var(--indigo); }

/* mapa */

.map-wrap { padding: 0; background: var(--bg-soft); }
.map { display: block; width: 100%; height: 420px; border: 0; }

/* dodavatelé */

.suppliers { background: #fff; }

.suppliers__grid {
  max-width: 1120px; margin: 0 auto; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem;
}

.suppliers__grid a {
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem; height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.suppliers__grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.suppliers__grid img {
  max-height: 52px; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: 0.75; transition: filter 0.15s ease, opacity 0.15s ease;
}
.suppliers__grid a:hover img { filter: none; opacity: 1; }

/* kontakt */

.contact { background: var(--bg-soft); }

.contact__grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}

.c-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.c-card h3 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--indigo); margin-bottom: 0.7rem;
}
.c-card p { margin-bottom: 0.5rem; font-size: 0.97rem; }
.c-card small { color: var(--muted); margin-left: 0.3rem; }
.c-card a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.c-card a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- patka */

.foot { background: var(--navy); color: #cfdcef; }

.foot__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
}

.foot__brand img { width: 180px; height: auto; margin-bottom: 1rem; }
.foot__brand p { font-style: italic; font-size: 0.95rem; }

.foot__col h4 {
  color: #9fb3d1; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem;
}
.foot__col p { font-size: 0.95rem; margin-bottom: 0.7rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.foot__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center; font-size: 0.85rem;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
  color: #9fb3d1;
}

/* ------------------------------------------------------------ responzivita */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__img { margin-top: 0.5rem; }
  .visit { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .range__grid { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .bar nav { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
  .map { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
