/* =========================
   FOOTER – WEBUU
   (společný pro index.html i cenik.html)
========================= */

.site-footer {
  flex-shrink: 0;

  /* žádná mezera nad patičkou – patička lehce překryje konec
     poslední sekce, takže v zaoblených rozích není vidět bílá */
  position: relative;
  z-index: 1;
  margin-top: -28px;
  padding: 80px 8% 0;

  background: #3B2F2A;
  color: #F4F0E6;

  border-radius: 28px 28px 0 0;

  font-family: 'Nunito', sans-serif;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}


/* HORNÍ ČÁST – VÝZVA */

.footer-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;

  padding-bottom: 55px;
  border-bottom: 1px solid rgba(239, 232, 222, .15);
}

.footer-cta-label {
  display: block;
  margin-bottom: 16px;

  color: #B8A492;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.5px;
}

.footer-cta h2 {
  color: #F4F0E6;
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -3px;
}

.footer-cta h2 span {
  color: #B8A492;
  font-style: italic;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;

  padding: 17px 26px;

  border-radius: 35px;

  background: #F4F0E6;
  color: #3B2F2A !important;

  font-size: 13px;
  font-weight: 900;

  transition: .3s ease;
}

.footer-cta-button span {
  font-size: 18px;
}

.footer-cta-button:hover {
  background: #E8DFD3;
  transform: translateY(-3px);
}


/* SLOUPCE */

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
  gap: 40px;

  padding: 55px 0;
}

.footer-col .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 46px;
  padding: 0 19px 0 20px; /* +1px vlevo vyrovná záporný letter-spacing */

  border-radius: 13px;

  background: #F4F0E6;
  color: #3B2F2A !important;

  font-size: 16px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -1px;

  transition: .3s;
}

.footer-col .footer-logo:hover {
  transform: rotate(-5deg);
}

.footer-about {
  max-width: 300px;
  margin-top: 20px;

  color: #EFE8DE;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 600;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 20px;

  color: #B8A492;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.5px;
}

.footer-col ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li,
.footer-col a {
  color: #F4F0E6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.footer-col a {
  transition: color .3s ease;
}

.footer-col a:hover {
  color: #B8A492;
}

.footer-col small {
  display: block;
  margin-bottom: 2px;

  color: #B8A492;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-company li {
  color: #EFE8DE;
  font-weight: 600;
}

.footer-company strong {
  color: #F4F0E6;
  font-weight: 800;
}

.footer-company .footer-legal {
  margin-top: 4px;

  color: #B8A492;
  font-size: 11px;
  line-height: 1.6;
}


/* SPODNÍ LIŠTA */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;

  padding: 24px 0 28px;
  border-top: 1px solid rgba(239, 232, 222, .15);

  color: #B8A492;
  font-size: 11px;
  font-weight: 700;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  transition: color .3s ease;
}

.footer-bottom-links a:hover {
  color: #F4F0E6;
}

.footer-top {
  position: relative;
  overflow: hidden;

  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(239, 232, 222, .3);

  color: #F4F0E6;

  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}

.footer-top i {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.footer-top:hover {
  background: #F4F0E6;
  border-color: #F4F0E6;
  color: #3B2F2A;
  transform: translateY(-3px);
}

/* šipka vyletí nahoru a vrátí se zespodu */
.footer-top:hover i {
  animation: to-top .6s ease;
}

@keyframes to-top {
  0%   { transform: translateY(0);     opacity: 1; }
  45%  { transform: translateY(-18px); opacity: 0; }
  46%  { transform: translateY(18px);  opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-top:hover i { animation: none; }
}


/* TABLET */

@media (max-width: 1000px) {

  .site-footer {
    padding: 70px 5% 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }
}


/* MOBIL */

@media (max-width: 650px) {

  .site-footer {
    padding: 60px 6% 0;
    border-radius: 22px 22px 0 0;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;

    padding-bottom: 45px;
  }

  .footer-cta h2 {
    letter-spacing: -2px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;

    padding: 45px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-bottom-links {
    gap: 16px;
  }
}

/* šipka v tlačítku nahoru zůstane po najetí tmavá
   (jinak ji přebije .footer-bottom-links a:hover) */
.footer-bottom-links .footer-top:hover,
.footer-bottom-links .footer-top:hover i {
  color: #2A201C;
}


/* =========================
   DUCH V PATIČCE
========================= */

/* logo v patičce s duchem */
.footer-col .footer-logo {
  gap: 7px;
  padding: 0 19px 0 14px;
}

.footer-logo .logo-ghost {
  width: 24px;
  height: auto;
}

/* duch vykukuje zpoza horního okraje patičky */
.footer-ghost {
  position: absolute;
  top: -50px;
  right: 12%;

  width: 78px;
  height: 50px;

  overflow: hidden;
  pointer-events: none;
}

.footer-ghost img {
  display: block;
  width: 78px;
  height: auto;

  transform: translateY(6px);
  animation: footer-peek 5s ease-in-out infinite;
}

@keyframes footer-peek {
  0%, 100% { transform: translateY(8px); }
  40%, 60% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-ghost img {
    animation: none;
  }
}

@media (max-width: 650px) {
  .footer-ghost {
    top: -40px;
    right: 8%;
    width: 62px;
    height: 40px;
  }

  .footer-ghost img {
    width: 62px;
  }
}
