/* ==========================================================
   PROREKO – CUSTOM.CSS (STABILNÍ: tmavé menu OK, bez posunů title)
   ========================================================== */

/* ---------------- ZÁKLAD ---------------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.grey-bg {
  background: #f6f7f9;
}

/* ---------------- HEADER (tmavé, konzistentní) ---------------- */
.header .logo-img {
  height: 34px;
}

/* tmavý header */
#nav.header-black {
  background: rgba(0, 0, 0, 0.86) !important;
}

/* menu barvy */
#main-menu .nav > li > a {
  color: #fff !important;
  opacity: 0.85;
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease;
}

#main-menu .nav > li > a:hover,
#main-menu .nav > li.active > a {
  opacity: 1;
}

/* burger na tmavém */
#nav.header-black .navbar-toggle {
  color: #fff !important;
}

/* ---------------- HERO (INDEX) ---------------- */
.sm-img-bg-fullscr {
  position: relative;
}

.sm-img-bg-fullscr::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.12)
  );
  pointer-events: none;
  z-index: 0;
}

.sm-content-cont,
.local-scroll-cont {
  position: relative;
  z-index: 1;
}

.opacity-scroll2 {
  animation: heroFade 600ms ease-out both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- HERO BUTTONS (INDEX) ---------------- */
.sm-img-bg-fullscr a.button.tp-button1 {
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sm-img-bg-fullscr a.button.tp-button1:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* Mám dotaz */
.sm-img-bg-fullscr a.button.tp-button1.white {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Galerie */
.sm-img-bg-fullscr a.button.tp-button1.black {
  background: rgba(240, 240, 240, 0.9) !important;
  color: #111 !important;
  border: 1px solid rgba(0,  0,  0,  0.15) !important;
}

.sm-img-bg-fullscr .ml-20 {
  margin-left: 14px !important;
}

/* ---------------- PAGE TITLES ---------------- */
/* NEHROTNÍME FONTY / POZICE – necháváme šablonu, jen sjednocení paddingu */
.page-title-cont.page-title-large2-cont {
  padding: 18px 0;
}

/* ---------------- GALERIE (okraje + hover) ---------------- */
.pt-140 {
  padding-top: 48px !important;
}

.port-grid {
  margin-left: -10px;
  margin-right: -10px;
}

.port-item {
  padding: 10px;
  overflow: visible;
  transition: transform 0.25s ease;
}

.port-item:hover {
  transform: translateY(-4px);
}

.port-img-overlay {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.port-main-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* overlay */
.port-overlay-cont {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 12px;
}

.port-title-cont2 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff;
  transform: translateY(6px);
  transition: transform 0.35s ease;
}

.port-item:hover .port-main-img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.port-item:hover .port-overlay-cont {
  opacity: 1;
}

.port-item:hover .port-title-cont2 {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .port-main-img { height: 200px; }
}

/* ---------------- LOGA FIREM (index) ---------------- */
.page-section.p-100-cont.bg-gray {
  padding: 32px 0 !important;
}

.page-section.p-100-cont.bg-gray .row {
  display: flex;
  justify-content: center;
}

.page-section.p-100-cont.bg-gray .row.mt-20 {
  margin-top: 6px !important;
}

.client2-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.client2-item img {
  max-height: 55px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.client2-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------------- FOOTER ---------------- */
#footer4.footer2-black {
  background: #0f1012 !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer4 .footer2-copy-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 1;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-links {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-contact-links a:hover {
  color: #fff;
}

.footer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

#footer4 .footer2-soc-a a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#footer4 .footer2-soc-a a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 767px) {
  #footer4 .footer2-copy-cont {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    align-items: center;
  }
}

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}



/* ================================
   GALERY TILES – overlay text na střed
   (nadpis + "více" u všech položek)
   ================================ */

.port-overlay-cont {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 18px !important;
}

.port-title-cont2 {
  position: static !important;   /* zruší "bottom/left" pozicování */
  transform: none !important;    /* aby to neskákalo */
  width: 100%;
}

.port-title-cont2 h3 {
  margin: 0 0 6px 0 !important;
}

.port-title-cont2 span {
  display: inline-block;
}

