/* --- Základní reset a typografie --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.08rem;
  color: #212529;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #0d6efd;
  text-underline-offset: 2px;
  transition: color .14s;
}
a:hover,
a:focus {
  color: #084298;
  text-decoration: underline;
}

/* --- Menu --- */
nav.navbar {
    border-bottom: 2px solid #dadada !important; /* tenká šedá linka */
    box-shadow: none !important;
  }
  .navbar-nav .nav-link {
    letter-spacing: 1px;
    transition: color .2s;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link:hover {
    color: #3977bb !important; /* modrá na hover */
  }

/* --- Slideshow --- */
.carousel-caption.centered-caption {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  padding: 1.2rem 1rem 1.5rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 98vw;
  background: none;
}
.carousel-caption.centered-caption h1,
.carousel-caption.centered-caption p {
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.55), 0 1px 0 #222;
}
.carousel-caption.centered-caption h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1.5px;
}
.carousel-caption.centered-caption p {
  font-size: 1.14rem;
  margin-top: 0.7rem;
  font-weight: 500;
}
@media (max-width: 767.98px) {
  .carousel-caption.centered-caption {
    padding: 0.7rem 0.3rem 1.2rem 0.3rem;
  }
  .carousel-caption.centered-caption h1 {
    font-size: 1.28rem;
    font-weight: 700;
  }
  .carousel-caption.centered-caption p {
    font-size: 0.98rem;
  }
}


/* --- O nás --- */
#onas {
  scroll-margin-top: 90px;
}
#onas h2 {
  font-weight: 700;
  letter-spacing: -0.5px;
}
#onas ul {
  margin-bottom: 1.2rem;
}
#onas ul li {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
}
#onas ul li::before {
  content: '✔️';
  margin-right: 0.5em;
  color: #0099ff;
  font-size: 1.15em;
}
#onas img {
  box-shadow: 0 6px 32px rgba(0,0,0,0.07);
  max-height: 330px;
  object-fit: cover;
}
@media (max-width: 991px) {
  #onas img {
    margin-bottom: 1.5rem;
    max-height: 220px;
  }
}

/* --- Reference (carousel 3 cards per slide) --- */
.reference-card {
  transition: transform 0.25s cubic-bezier(.4,2,.2,1), box-shadow 0.2s;
  min-height: 315px;
  border-radius: 0.7rem;
}
.reference-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 36px rgba(0,0,0,0.10);
  z-index: 1;
}
#reference .carousel-inner {
  min-height: 370px;
}
#reference .card-img-top {
  border-radius: .6rem .6rem 0 0;
  transition: filter 0.22s;
}
#reference .card-img-top:hover {
  filter: brightness(0.93) contrast(1.08);
}
@media (max-width: 991px) {
  .reference-card { min-height: 260px; }
}
@media (max-width: 767px) {
  .reference-card { min-height: 180px; }
  #reference .card-title { font-size: 1.01rem; }
}

/* --- Kontakt2 --- */
footer#kontakt {
  letter-spacing: 0.01em;
}
footer#kontakt h4, footer#kontakt .text-primary {
  letter-spacing: 0.02em;
}
footer#kontakt .rounded-4 {
  border-radius: 1.3rem !important;
}
footer#kontakt .text-secondary, footer#kontakt small.text-muted {
  opacity: .8;
}
footer#kontakt ul {
  margin-bottom: 1.7rem;
}
footer#kontakt a:focus, footer#kontakt a:hover {
  color: #0d6efd !important;
  text-decoration: underline;
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/*kontakt1*/

footer {
  background: #111 !important;
}
footer h4 {
  color: #fff;
  font-weight: 600;
}
.social-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
}
.social-icon.facebook { background-color: #3b5998; background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/facebook.svg'); }
.social-icon.twitter { background-color: #1da1f2; background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/twitter-x.svg'); }
.social-icon.youtube { background-color: #ee3231; background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/youtube.svg'); }
.social-icon.instagram { background-color: #8d6742; background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/instagram.svg'); }
footer a.text-secondary { color: #888 !important; }
footer ul { margin-bottom: 0; }

/* --- Další optimalizace pro přístupnost --- */
:focus-visible {
  outline: 2px solid #0d6efd !important;
  outline-offset: 2px !important;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background: #e3e7ef;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b6cdf8;
}

/* --- Pomocné utility --- */
.bg-primary-subtle {
  background: #eaf3fb !important;
  color: #222;
}
.border-primary-subtle {
  border-color: #b6cdf8 !important;
}

/* --- Tisková verze (volitelně) --- */
@media print {
  nav, footer, .carousel-control-prev, .carousel-control-next { display: none !important; }
  body { color: #000; background: #fff; }
}

/* --- Lepší čitelnost --- */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}
