/* =========================
   HERO
========================= */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #fafafa;
}

/* BG */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  aspect-ratio: 2048 / 1208;
  object-fit: cover;
  z-index: 0;
  filter: drop-shadow(0 5px 16px rgba(0,0,0,0.15))
          drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}

/* MASK */
.hero-mask {
  position: relative;
  width: 100%;
  aspect-ratio: 2048 / 1208;
  display: flex;
  align-items: center;
  justify-content: center;

  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 2048 1208' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1019,-76.485C1273.85,-73.98 1489.31,111.845 1486.47,344.501C1484.6,572.483 1273.86,789.357 1019,788.486C771.666,787.64 553.221,602.076 557.535,344.501C561.206,125.111 757.731,-79.055 1019,-76.485Z' fill='white'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 2048 1208' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1019,-76.485C1273.85,-73.98 1489.31,111.845 1486.47,344.501C1484.6,572.483 1273.86,789.357 1019,788.486C771.666,787.64 553.221,602.076 557.535,344.501C561.206,125.111 757.731,-79.055 1019,-76.485Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
}

/* FOREST */
.hero-mask-forest {
  position: absolute;
  inset: 0;
  margin: 180px auto auto auto;
  z-index: 1;
  opacity: 0.3;
  pointer-events: none;
}

.hero-mask-forest svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* CENTER */
.hero-mask-center {
  position: relative;
  z-index: 2;
  color: #1E1C1A;
  text-align: center;
  margin-bottom: 18%;
  width: 386px;
  max-width: 90%;
}

/* BIRD */
.hero_bird_animated {
  transform: translate(-500px, 40px) scale(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}


.hero_bird_animated {
  opacity: 0;
}

.hero_bird_animated svg {
  width: 100%;
  height: auto;
}

.hero_bird--text svg {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.hero_bird--text {
  position: absolute;
  z-index: 50;
  width: 380px;
  text-align: center;
  bottom: 239px;
}

/* TEXT */
.hero_bird--year, .hero_bird--estd {
  position: absolute;
  z-index: 50;
  height: 18px;
  text-align: center;
  bottom: 400px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFF;
  font-size: 23px;
  font-weight: 600;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero_bird--year {
  margin-left: 128px;
}

.hero_bird--estd {
  margin-left: -189px;
  height: 18px;
}

/* CIRCLES WRAP */
.hero .hero-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* jednotlivé odkazy */
.hero .hero-circles a {
  position: absolute;
  opacity: 0;
  transform: scale(0.2);
  transition: transform 0.8s ease-out, opacity 0.6s ease-out;
}

/* pozice */
.hero .hero-circles a:nth-of-type(1) {
  left: 330px;
  top: -170px;
}

.hero .hero-circles a:nth-of-type(2) {
  left: 240px;
  top: -30px;
}

.hero .hero-circles a:nth-of-type(3) {
  left: 107px;
  top: 70px;
}

/* obrázky */
.hero .hero-circles img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

/* hover */
.hero .hero-circles a:hover img {
  transform: scale(1.15) rotate(5deg);
}

/* animace zapnutí */
.hero .hero-circles a.animate {
  transform: scale(1);
  opacity: 1;
}

/* =========================
   ANIMACE
========================= */

.fade-up {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}

.fade-up.active {
  transform: translateY(0);
  opacity: 1;
}


.hero_bird_animated {
  opacity: 1;
  animation: walkZigZagUp 8.2s linear forwards;
  animation-delay: 0s;
  will-change: transform, opacity;
  backface-visibility: hidden;
}


.hero_bird_animated.is-entering #bird-leg-1 use {
  animation: stepLeft 0.3s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}


.hero_bird_animated.is-entering #bird-leg-2 use {
  animation: stepRight 0.3s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

#bird_head use {
  transform-box: fill-box;
  transform-origin: 0% 60%;
  animation: nodHead 3s ease-in-out infinite;
  animation-delay: 3s;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes nodHead {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
  will-change: transform, opacity;
  backface-visibility: hidden;
}

#bird-leg-1 use {
  transform-origin: 50% 0%;
  transform-box: fill-box;
}


#bird-leg-2 use {
  transform-origin: 0% 0%;
  transform-box: fill-box;
}


@keyframes walkZigZagUp {
  0% {
    transform: translate(-500px, 40px) scale(0.75) scaleX(1);
    opacity: 1;
  }
  99% {
    transform: translate(20px, -90px) scale(1) scaleX(1);
    opacity: 1;
  }
  100% {
    transform: translate(20px, -90px) scale(1) scaleX(1);
    opacity: 1;
  }
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes stepLeft {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(6deg);
  }
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes stepRight {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg);
  }
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* animace text */
@keyframes zoomInText {
  0% {
    opacity: 1;
    transform: scale(4);
    filter: blur(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 864, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
[id^="bird_text_"] > * {
  opacity: 0;
  transform: scale(20);
  filter: blur(20px);
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_C > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 0 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_A > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 1 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_E > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 2 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_R > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 3 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_S > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 4 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_K > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 5 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_P > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 6 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* line 877, ../../../../XAMPP/xamppfiles/htdocs/CrakeSprings/assets/sass/main.scss */
#bird_text_I > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 7 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}


#bird_text_N > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 8 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}


#bird_text_G > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 9 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}


#bird_text_S:last-of-type > * {
  animation: zoomInText 1s ease-out forwards;
  animation-delay: calc(3s + 10 * 0.35s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes zoomInText {
  0% {
    opacity: 0;
    transform: scale(20);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* Tablet a mobil (< 1024 px): hero je nakreslený pro desktop v pevných px. Kruhová maska byla menší než nápis
   CRAKE SPRINGS (ořezával se) a oranžové pozadí končilo po 230 px. Desktop (≥ 1024 px) zůstává beze změny. */
@media (max-width: 1023px) {
  .hero-bg { height: 100%; aspect-ratio: auto; }
  .hero-mask {
    -webkit-mask-size: min(254vw, 1150px) auto; mask-size: min(254vw, 1150px) auto;
    -webkit-mask-position: 50% 0; mask-position: 50% 0;
  }
  /* Les je kreslený v souřadnicích masky (2048 × 1208): na desktopu je 0,788 × šířky masky a 256 jednotek od jejího horního okraje. */
  .hero-mask-forest {
    inset: auto; left: 50%; top: calc(var(--hero-mask-top, 0px) + min(31.75vw, 143.75px)); margin: 0;
    width: min(200vw, 906px); aspect-ratio: 2048 / 1208; transform: translateX(-50%);
  }
  .hero_bird--text { width: 100%; }
  .hero-circles { display: none; }
}
/* Mobil: celá kompozice o výšku hlavičky níž, letopočty blíž k ptákovi. */
@media (max-width: 600px) {
  .hero-mask-center { margin-top: 70px; }
  .hero-mask { --hero-mask-top: 70px; -webkit-mask-position: 50% 70px; mask-position: 50% 70px; }
  .hero_bird--year, .hero_bird--estd { font-size: 19px; }
  .hero_bird--year { margin-left: 112px; }
  .hero_bird--estd { margin-left: -142px; }
}

/* Hlavní nadpis úvodu (h1 místo div): bez okrajů a písma nadpisu Divi, aby se vzhled nezměnil. */
.hero h1.hero_bird--text { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: normal; }
.cs-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Omezený pohyb (nastavení systému, audit 4. 11. 2026): hero bez animací – pták, nápisy a kroužky rovnou v konečném stavu. */
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .hero *::after, .fade-up, .fly-left, .fly-right, .showup {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
}
