/*
Theme Name: Stay - CS
Theme URI: https://crakesprings.cz
Description: Child theme for Divi (Divi 5 ready)
Author: Ondra
Author URI: https://crakesprings.cz
Template: Divi
Version: 1.0.2
Text Domain: divi-child
*/

/* Add your custom CSS below */

html {
    scroll-behavior: smooth;
}


/* block text */
.bg__block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}


.bg__block.bg__block_3 {
  grid-template-columns: repeat(3, 1fr);
}


.bg__block A {
  display: inline-block;
  border-radius: 20px;
  padding: 40px;
  background-color: #00000022;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform 0.8s ease-in-out, background-color 0.4s  ease-in-out;
  transform: translateX(0);
}

.bg__block A IMG {
  position: absolute;
  right: 20px;
  top: 20px;
  aspect-ratio: 1/1;
  max-width: 40px;
  max-height: 40px;
}

.bg__block A H4 {
  font-size: 40px;
  font-weight: 100;
  color: #FFF;
}

.bg__block A H5 {
  font-size: 20px;
  font-weight: 200;
  color: #FFF;
}

.bg__block A P {
  font-size: 14px;
  font-weight: 100;
}


.bg__block A:hover {
  background-color: #0000007d;
  transform: translateX(0) scale(1.05); 
}


.bg__block, .bg__block P, .btn__arrow {
  color: #FFF;
}

.bg__block A:hover .btn__arrow::before {
  animation: arrowPulseRight 1.8s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes arrowPulseRight {
  0% {
    right: -14px;
  }
  50% {
    right: -20px;
  }
  100% {
    right: -14px;
  }
}

.btn__arrow {
  display: inline-block;
  position: relative;
  font-size: 14px;
  font-weight: 100;
}

.btn__arrow:before {
  content: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8" standalone="no"%3F><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 6 11" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;"><g transform="matrix(1,0,0,1,-263.948,-3768.16)"><g transform="matrix(1,0,0,1.27843,-2831,0)"><g transform="matrix(0.167817,0.131269,-0.167817,0.131269,3524.26,2169.4)"><path d="M1688.85,4242.87L1715.29,4242.87L1715.29,4269.31" style="fill:none;stroke:white;stroke-width:4.21px;"/></g></g></g></svg>');
  position: absolute;
  display: inline-block;
  right: -18px;
  top: 3px;
  width: 8px;
  height: 8px;
}
/* Divi 5.18: prázdné sloupce flex řádků se na tabletu/mobilu už neskrývají (5.10 je skrývalo pro všechny řádky,
   5.18 jen pro .et_block_row) – v patičce tak vznikalo 123 px prázdného místa. Obnoveno chování 5.10.1. */
@media (max-width: 980px) {
	.et_pb_row > .et_pb_column.et_pb_column_empty { display: none; }
}

/* Vyhledávání v postranním panelu (404, archivy): popisek skrytý jen vizuálně (display:none ho skryl i čtečkám)
   a čitelnější tlačítko (dříve #666 na #ddd). Stejně jako divi-child-eco. Audit 4. 11. 2026. */
.wp-block-search__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; display: block !important; }
.wp-block-search__button { color: #444 !important; }
/* Viditelný fokus z klávesnice na stránkách se šablonou Divi – stejně jako divi-child-eco. */
.main-header a:focus-visible, .main-header [role="button"]:focus-visible, footer.et-l a:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; }
#main-content a:focus-visible, #main-content button:focus-visible, #main-content input:focus-visible,
#main-content textarea:focus-visible, #main-content select:focus-visible { outline: 3px solid #a85800 !important; outline-offset: 3px; }
/* Stránky bez Page Builderu (404, vyhledávání, archivy, detail projektu): nadpis začínal na 58 px pod plovoucí
   hlavičkou (konec 92 px) a byl schovaný – obsah začíná pod ní (audit 4. 11. 2026). */
body:not(.et_pb_pagebuilder_layout) #main-content > .container { padding-top: 130px; }
