/* =========================
   SIDE MENU
========================= */
.side-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 2rem;

  background: #f7931e;
  color: white;

  z-index: 9999;

  opacity: 0;
  pointer-events: none;

  transform: translateX(100%);
  transition: 
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ACTIVE */
body.open .side-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.open {
  overflow: hidden;
}

.side-menu__content {
  background-color: #fbf1e5;
  color: #1E1C1A;
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: 60px;
  overflow-y: auto;
  /* Chrome, Safari */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 3rem;
}
.side-menu__content::-webkit-scrollbar {
  display: none;
}
.side-menu__content--padding {
  padding: 3rem 3rem 0rem 3rem;
}

/* Nadpis menu je h2 (h1 patří stránce), vzhled odpovídá dřívějšímu h1 z Divi */
.side-menu .cs-header__title {
  margin: 0;
  padding-bottom: 10px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1em;
  color: #444;
}

.cs-virtual-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  gap: 14px;
  margin-top: 24px;
}

.cs-virtual-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #173f33;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(23, 49, 56, 0.13);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-virtual-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.09), transparent 32%);
}

.cs-virtual-link--shopping {
  background: linear-gradient(145deg, #f7931e 0%, #df7d10 100%);
}
.cs-virtual-link--guide {
  background:
    radial-gradient(circle at 88% 12%, rgba(247, 147, 30, 0.2), transparent 34%),
    linear-gradient(145deg, #22523f 0%, #173f33 72%);
}

.cs-virtual-link:hover,
.cs-virtual-link:focus-visible {
  color: #fff;
  filter: saturate(1.08) brightness(0.96);
  box-shadow: 0 16px 32px rgba(23, 49, 56, 0.2);
  transform: translateY(-2px);
}

.cs-virtual-link:focus-visible {
  outline: 3px solid #7bc5ae;
  outline-offset: 3px;
}

.cs-virtual-link__icon {
  display: grid;
  position: relative;
  z-index: 1;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #f8f1e8;
  color: #173138;
}

.cs-virtual-link__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cs-virtual-link--shopping .cs-virtual-link__icon {
  color: #f4951e;
}

.cs-virtual-link__icon--crake img {
  display: block;
  width: 38px;
  height: 28px;
  object-fit: contain;
}

.cs-virtual-link__icon--crake {
  background: #f8f1e8;
}

.cs-virtual-link__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.cs-virtual-link__content strong {
  color: #fff;
  font-size: clamp(20px, 1.6vw, 25px);
  font-weight: 750;
  line-height: 1.05;
}

.cs-virtual-link__content small {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.cs-virtual-link__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
}

.cs-virtual-link__arrow::before {
  content: none;
}

.cs-virtual-link__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 1px;
  transform: translate(-65%, -50%) rotate(-45deg);
}



/* CTA */
.side-menu .menu-cta {
  position: absolute;
  right: 80px;
  top: 80px;
  text-decoration: none;
  padding: 12px 32px 12px 42px;
  font-size: 14px;
  border-radius: 50px;
  text-transform: uppercase;
  color: #FFF;
  background-color: #1E1C1A;
}

/* CLOSE */
.side-menu .close-btn {
  position: absolute;
  top: calc(0.5rem - 6px);
  right: calc(1.5rem - 6px);
  width: 44px;  /* dotykový cíl 44 px, křížek zůstává 32 px */
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.side-menu .close-btn:before,
.side-menu .close-btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 6px;
  width: 32px;
  height: 2px;
  background: #FFF;
}

.side-menu .close-btn:before {
  transform: rotate(45deg);
}

.side-menu .close-btn:after {
  transform: rotate(-45deg);
}

/* =========================
   FILTER BAR (ORIGINAL)
========================= */
.filter-bar {
  display: inline-flex;
  gap: 0.1rem;
  background: transparent;
  border-radius: 40px;
  padding: 0.25rem;
  margin: 1.5rem 0;
}

#filter-firm-bar {
  padding-left: 18px;
  border-left: 1px solid rgba(23, 49, 56, 0.2);
  border-radius: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4e8dc;
  border: none;
  color: #173138;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 40px;
  gap: 8px;

  padding: 8px 18px; /* 🔥 důležité */
  height: 44px;      /* 🔥 sjednotí výšku, dotykový cíl 44 px */

  line-height: 1;
}

.filter-btn img {
  width: 18px;
  height: 18px;

  display: block;       /* 🔥 odstraní baseline bug */
  object-fit: contain;

  transform: translateY(1px); /* 🔥 jemné doladění */
}
.filter-btn:hover {
  background: #f6ddc4;
  color: #173138;
}

.filter-btn.active,
.filter-btn.active:hover {
  background: #1f4b3b;
  color: #fff;
}

/* =========================
   PROJECT LIST
========================= */
.project-list {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 3rem;
  cursor: grab;
  scrollbar-width: none;
}

.project-list::-webkit-scrollbar {
  display: none;
}

.project-list.dragging {
  cursor: grabbing;
}

.project-list a {
  user-select: none;
}

.project-list.dragging a {
  pointer-events: none;
}

/* =========================
   CARD (ORIGINAL STRUCTURE)
========================= */
.project-card {
  flex: 0 0 auto;
  width: 300px;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  transition: 
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.10);
}

/* IMAGE */
.project-image {
  position: relative;
  aspect-ratio: 10/6;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
}

/* CONTENT */
.project-content {
  padding: 20px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  font-size: 1.4em;
  font-weight: 700;
}

.project-content p {
  color: #1e1c1aa6; /* kontrast 5:1 na bílé (dřív 99 = 4,46:1) */
  margin-bottom: 0.25rem;
}

/* ICONS */
.project-logos {
  position: absolute;
  top: 6px;
  right: 6px;
}

.project-logos div {
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 6px;
  margin-bottom: 6px;
}

.project-logos img {
  max-width: 100%;
}

/* FOOTER */
.project-hrefs {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  color: #1e1c1aa6; /* kontrast 5:1 na bílé (dřív 99 = 4,46:1) */
}

.project-hrefs span {
  border: 1px #1e1c1a30 solid;
  padding: 4px 16px;
  border-radius: 20px;
}

.project-hrefs span:hover {
  color: #f7931e;
  border-color: #f7931e;
}

.project__btn__orange {
  border: 1px #f7931e solid;
  color: #f7931e;
}

.project-logos div {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  background: rgba(30, 28, 26, 0.7); /* tmavé sklo */

  backdrop-filter: blur(6px);
}

/* BARVY PODLE TYPU */
.project-logos .logo--status {
  background: #f7931e;
}

.project-logos .logo--firm {
  background: #173f33;
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 3rem;
  margin-bottom: 0rem;
  margin-top: 1rem;
}

.project-title {
  font-size: 2.5rem;
  font-weight: 300;
}

.project-header-cta {
  background: #f7931e;
  color: white;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
}
.project-logos {
  position: absolute;
  top: 12px;
  right: 12px;
}

.project-logos .logo--firm,
.project-logos .logo--status {
  width: 44px;
  height: 44px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 8px;
}

.project-logos img {
    width: 25px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}


/* =========================
   DIVI FIX
========================= */
body.et_pb_pagebuilder_layout {
  overflow-x: hidden;
}

@media (max-width: 760px) {
  .cs-virtual-links {
    grid-template-columns: 1fr;
  }

  .cs-virtual-link {
    min-height: 118px;
    padding: 18px;
  }

  .cs-virtual-link__icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .cs-virtual-link__arrow {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  #filter-firm-bar {
    padding-top: 12px;
    padding-left: 0.25rem;
    border-top: 1px solid rgba(23, 49, 56, 0.16);
    border-left: 0;
  }
}
