/* Fyzio KH – modernizace 2026
   Přidává: hero akce (varianta 1d), reveal animace, souhlas u mapy,
   chyby formuláře, focus stavy. Nepřepisuje main.css – načtěte AŽ ZA ním. */

/* ---------- HERO: dvě rovnocenné akce ---------- */
.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 640px;
  padding-top: 24px;
  padding-bottom: 10px;
}
.hero-action {
  display: block;
  padding: 22px 24px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.hero-action:hover, .hero-action:focus { transform: translateY(-4px); text-decoration: none; }
.hero-action__title {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
  white-space: nowrap;
}
.hero-action__note { display: block; font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 300; }

.hero-action--primary {
  color: #fff;
  background: linear-gradient(130deg, #31d6d2 0%, #28b7e5 100%);
  box-shadow: 0 14px 32px rgba(41, 188, 218, .30);
}
.hero-action--primary:hover, .hero-action--primary:focus {
  color: #fff;
  box-shadow: 0 20px 40px rgba(41, 188, 218, .40);
}
.hero-action--primary .hero-action__note { opacity: .92; }

.hero-action--phone {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dbe9f3;
  box-shadow: 0 12px 30px rgba(16, 42, 64, .09);
}
.hero-action--phone:hover, .hero-action--phone:focus { border-color: #2ecdbd; }
.hero-action--phone .hero-action__title { color: #2b3d52; }
.hero-action--phone .hero-action__note { color: #7b8da1; }
.hero-action--phone .fa-phone {
  color: #2ecdbd;
  font-size: 19px;
  margin-right: 9px;
  border-radius: 50%;
  animation: fyzioRingPulse 2.6s ease-in-out infinite;
}
@keyframes fyzioRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 205, 189, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(46, 205, 189, .18); }
}

/* ---------- REVEAL animace ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* pruh pod nadpisem sekce Nabízíme */
.nabizime-heading .heading-bar {
  width: 170px; height: 7px; margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #66c4eb 0%, #2b9ddd 100%);
  transform-origin: center;
  animation: fyzioBarGrow 1.1s ease .15s both;
}
@keyframes fyzioBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* hover na kartách */
.offer-card { transition: transform .4s ease; }
.offer-item:hover .offer-card { transform: translateY(-7px); }
.offer-card__figure { transition: box-shadow .4s ease; }
.offer-item:hover .offer-card__figure { box-shadow: 0 26px 54px rgba(18, 56, 83, .18); }
.profil { transition: transform .4s ease, box-shadow .4s ease; }
.block:hover .profil { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(12, 44, 74, .14); }

/* fotky týmu na čtverec, ať kruh nedeformuje */
.profil .img img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- MAPA se souhlasem ---------- */
.map-consent {
  height: 400px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 0 20px;
  background-image: linear-gradient(rgba(238,244,249,.82), rgba(238,244,249,.82)), url(../images/street.jpg);
  background-size: cover; background-position: center;
}
.map-consent__title { font-family: 'Roboto', sans-serif; font-size: 26px; font-weight: 300; color: #33495f; }
.map-consent__text {
  margin: 0; max-width: 560px;
  font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 300;
  color: #5d7186; line-height: 1.6;
}
.map-consent__link { font-family: 'Roboto', sans-serif; font-size: 15px; color: #0fb0dd; }

/* ---------- FORMULÁŘ: chyby a stav ---------- */
.field-error {
  display: block; min-height: 20px;
  font-family: 'Roboto', sans-serif; font-size: 14px;
  color: #d0396b; margin: 4px 0 6px;
}
.form-control.has-error { border-color: #f0a8c2; }
.form-status {
  min-height: 24px; padding-top: 8px;
  font-family: 'Roboto', sans-serif; font-size: 16px;
}
.form-status--ok  { color: #0d8f7e; }
.form-status--err { color: #d0396b; }
.form-consent {
  font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 300;
  color: #7c8ea0; padding-top: 6px;
}

/* ---------- CENÍK: cross-sell poukazu ---------- */
.cenik-voucher {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap; justify-content: space-between;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e7edf5; border-radius: 18px;
  box-shadow: 0 12px 30px rgba(13, 44, 73, .06);
  padding: 26px 30px; margin-bottom: 30px;
}
.cenik-voucher__media { display: flex; align-items: center; gap: 24px; }
/* #cenik img { width:80% } v main.css ma ID specificitu - prebijeme ju */
.cenik-voucher__media img,
#cenik .cenik-voucher__media img { width: 180px; height: auto; display: block; border-radius: 8px; }
.cenik-voucher h3 {
  font-family: 'Roboto', sans-serif; text-align: left; color: #2f4458;
  font-weight: 500; font-size: 22px; margin: 0 0 8px; line-height: 1.2;
}
.cenik-voucher p {
  font-family: 'Roboto', sans-serif; font-size: 17px; font-weight: 300;
  color: #5c7186; margin: 0; line-height: 1.5;
}

/* ---------- KONTAKT: obe karty rovnako vysoke ---------- */
/* karta ma pozadie/ramik priamo na grid stlpci, takze staci z riadku
   urobit flex - stlpce sa natiahnu na vysku vyssieho z nich */
@media (min-width: 768px) {
  #kontakt .blocks {
    display: flex;
    /* nowrap: 33% + 66% + gap presahuje riadok a wrap by mal prednost pred
       zmensenim - takto sa stlpce proporcne zmensia a zostanu vedla seba */
    flex-wrap: nowrap;
    gap: 20px;
  }
  /* bootstrap .clearfix:before/:after by vo flexe boli fantomove polozky */
  #kontakt .blocks:before,
  #kontakt .blocks:after { content: none; }
  #kontakt .blocks > .block { float: none; }
}

/* ---------- A11Y + tisk ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #2b9ddd; outline-offset: 3px; border-radius: 6px;
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- MOBIL ---------- */
@media (max-width: 767px) {
  .hero-actions { grid-template-columns: 1fr; max-width: 100%; }
  .hero-action { padding: 18px 20px; }
  .hero-action__title { font-size: 21px; }
  .cenik-voucher { justify-content: center; text-align: center; }
  .cenik-voucher__media { flex-direction: column; }
  .cenik-voucher h3 { text-align: center; }
}
