/* ==========================================================================
   Skupina BIOS — stylesheet (Bootstrap 5)
   Fonty: Myriad Pro (nadpisy) + Roboto (tělo)
   ========================================================================== */

/* ── WEBFONTY ── */
@font-face {
  font-family: "Myriad Pro";
  src: url("../fonts/font-webfont.eot");
  src:
    url("../fonts/font-webfont.eot?#iefix") format("embedded-opentype"),
    url("../fonts/font-webfont.woff") format("woff"),
    url("../fonts/font-webfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("../fonts/myriadpro-semibold-webfont.eot");
  src:
    url("../fonts/myriadpro-semibold-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/myriadpro-semibold-webfont.woff") format("woff"),
    url("../fonts/myriadpro-semibold-webfont.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* ── PROMĚNNÉ ── */
:root {
  --red: #fe0000;
  --white: #ffffff;
  --offwhite: #f7f7f5;
  --text: #1a1a1a;
  --muted: #555;
}

/* ── BASE ── */
body {
  font-family: "Roboto", sans-serif;
  background: var(--offwhite);
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Myriad Pro", "Myriad", sans-serif;
}

/* ── HEADER ── */
.site-header {
  background: var(--red);
  padding: 0 0;
}

.header-logo {
  height: 50px;
  height: 80px;
  width: auto;
  display: block;
}

/* ── HERO SLIDESHOW ── */
.hero-wrapper {
  position: relative;
}

.hero-slide {
  height: 480px;
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding-bottom: 48px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.hero-content h1 {
  font-family: "Myriad Pro", "Myriad", sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-content h1 span {
  color: var(--white);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 576px) {
  .hero-slide {
    height: 300px;
  }
  .hero-content {
    padding-bottom: 28px;
  }
}

/* ── COMPANIES ── */
.companies {
  padding: 60px 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.section-title {
  font-family: "Myriad Pro", "Myriad", sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 32px;
}

/* ── CARD ── */
.card {
  border: none;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

.card-inner {
  background: var(--red);
  overflow: hidden;
}

/* Normální karta – logo přes celou šířku */
.card-inner .card-logo {
  width: 100%;
  height: auto;
  display: block;
}

/* Rodičovská karta – stejná jako ostatní */

.card-desc {
  padding: 14px 18px 18px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── FOOTER ── */
footer {
  background: #000;
  padding: 32px 0;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 16px;
  padding-top: 16px;
  font-size: 12px;
  color: var(--red);
  font-weight: bold;
}

footer .footer-address {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 576px) {
  .hero {
    min-height: 300px;
  }
  .hero-content {
    padding-bottom: 32px;
  }
  .companies {
    padding: 40px 0;
  }
}

/* ==========================================================================
   MAPA S HOTSPOTY
   ========================================================================== */

/* ── Sekce mapy ── */
.bios-map-section {
  background: #bcd0cf;
}
.bios-map-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}
.bios-map-wrap {
  position: relative;
  width: 100%;
  /* Aspect-ratio trik: 1044/1800 = 58% — wrapper má vždy přesný poměr stran obrázku,
     takže % pozice hotspotů sedí na každé velikosti obrazovky */
  padding-bottom: 58%;
  max-height: 88vh;
  overflow: hidden;
}
.bios-map-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Hotspot ── */
.hs {
  position: absolute;
  cursor: pointer;
  border-radius: 4px;
}
.hs:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ── DEBUG: odkomentuj proměnnou níže pro zobrazení rámečků ──
   Stačí změnit  --hs-debug: 0  na  --hs-debug: 1
   ── */
:root {
  --hs-debug: 0;
}
.hs {
  /* Rámeček a popisek se zobrazí jen když --hs-debug == 1 */
  outline: calc(var(--hs-debug) * 2px) solid red;
  background: rgba(255, 0, 0, calc(var(--hs-debug) * 0.15));
}
.hs::after {
  content: attr(aria-label);
  display: block;
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 10px;
  font-weight: 700;
  color: red;
  white-space: nowrap;
  pointer-events: none;
  opacity: var(--hs-debug);
}

/* ── Popup ── */
.bios-popup {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 16px 20px 18px;
  width: 220px;
  z-index: 50;
  display: none;
  pointer-events: auto;
  animation: pop 0.14s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.bios-popup.show {
  display: block;
}
.bios-popup-x {
  position: absolute;
  top: 7px;
  right: 9px;
  background: none;
  border: none;
  font-size: 14px;
  color: #bbb;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.bios-popup-x:hover {
  color: #444;
}
.bios-popup-name {
  font-family: "Myriad Pro", "Myriad", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--red);
  margin: 0 20px 12px 0;
}
.bios-popup-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 2px solid var(--red);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.bios-popup-btn:hover {
  background: transparent;
  color: var(--red);
}

/* ── Karty firem ── */
.companies-section {
  padding: 60px 0 64px;
  background: var(--offwhite);
}
.company-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

/* Vertikální layout – logo nahoře přes celou šířku, text dole */
.company-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.company-card-logo-wrap {
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  text-decoration: none;
  transition: opacity 0.15s;
  max-width: 240px;
  max-width: 200px;
  max-width: 235px;
  margin-left: auto;
  margin-right: auto;
}

.company-card-logo-wrap:hover {
  opacity: 0.85;
}
.company-card-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.company-card-body {
  flex: 1;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.company-card-body p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
}
.company-card-body a.company-link {
  font-size: 0.8rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}
.company-card-body a.company-link:hover {
  text-decoration: underline;
}

/* ── Skupina BIOS – intro ── */
.about-section {
  padding: 56px 0 48px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.about-section .section-title {
  margin-bottom: 14px;
}
.about-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}
.about-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
  white-space: nowrap;
}

/* ── Mobilní karty ── */
.mob-cards {
  display: none;
  padding: 20px 0 8px;
}
@media (max-width: 767px) {
  .hs,
  .bios-popup {
    display: none !important;
  }
  .mob-cards {
    display: block;
  }
  .bios-map-wrap {
    max-height: none;
  }
  .about-tagline {
    white-space: normal;
  }
}
.mob-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 11px 15px;
  margin-bottom: 9px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.mob-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  color: inherit;
}
.mob-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Myriad Pro", sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.mob-name {
  font-family: "Myriad Pro", "Myriad", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
  margin: 0 0 1px;
}
.mob-desc {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}
.mob-arrow {
  font-size: 18px;
  color: #ccc;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Body layout ── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

/* BIOS fit sekce */
.biosfit-section {
  padding: 2rem 0;
}

.biosfit-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.biosfit-logo-wrap img {
  max-width: 180px;
  height: auto;
  display: block;
}

.biosfit-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.biosfit-body p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .biosfit-inner {
    flex-direction: column;
    text-align: center;
  }
}

.biosFitLink {
  color: #e24a8f;
  font-weight: bold;
  text-decoration: none;
}
.biosFitLink:hover {
  text-decoration: underline;
}
