/* ===========================
   ZÁKLADNÉ NASTAVENIA
=========================== */
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  font-family: system-ui, sans-serif;
  color: #111827;
  background-color: #f9fafb;
}

/* ===========================
   HEADER (blur + gradient)
=========================== */
header {
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background 0.3s ease;
}
header nav a {
  position: relative;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s;
}
header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fca5a5;
  transition: width 0.3s;
}
header nav a:hover {
  color: #fca5a5;
}
header nav a:hover::after {
  width: 100%;
}

/* ===========================
   HERO SEKCIa (parallax + anim overlay)
=========================== */
.hero {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('kkk.jpg') center/cover no-repeat;
  background-attachment: fixed;
  text-align: center;
  overflow: hidden;
  
}
.hero-wave{ fill:#7f1d1d}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 200% 200%;
  animation: moveOverlay 10s ease infinite;
  z-index: 0;
}
@keyframes moveOverlay {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h1, .hero p, .hero a {
  position: relative;
  z-index: 1;
}

/* Jemná vlna medzi sekciami */
.hero svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* Slide-up text */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: slideUp 1s ease-out 0.2s both; }
.hero p { animation: slideUp 1s ease-out 0.5s both; }

/* ===========================
   SLUŽBY (hover efekty)
=========================== */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.service-card i {
  transition: transform 0.4s ease, color 0.3s ease;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-card:hover i {
  transform: rotate(8deg) scale(1.1);
}

/* ===========================
   CTA tlačidlá
=========================== */
.call-btn {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ===========================
   FADE-IN pri scrollovaní
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RECENZIE
=========================== */
.testimonial-card {
  transition: transform 0.3s ease;
}
.testimonial-card:hover {
  transform: scale(1.02);
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  color: #fff;
  position: relative;
}
footer a {
  color: #fca5a5;
  transition: color 0.3s;
}
footer a:hover {
  color: #fff;
}

/* ===========================
   HERO – globálne pozadie
=========================== */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('kkk.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 90vh;
}

/* ===========================
   HERO - vylepšenie pre mobil
=========================== */
@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.7)
      ),
      url('kkk-mobile.jpg'); /* menšia a orezaná verzia */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 75vh;
    padding: 7rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    animation: slideUp 0.9s ease-out;
  }

  .hero p {
    font-size: 1.05rem;
    color: #f3f4f6;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  }

  /* CTA tlačidlá – lepšie rozloženie na mobil */
  .hero .flex {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero a {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Efekt jemného pohybu pozadia */
  @keyframes mobileParallax {
    0% { background-position: center top; }
    50% { background-position: center 10px; }
    100% { background-position: center top; }
  }

  .hero {
    animation: mobileParallax 20s ease-in-out infinite alternate;
  }
}

/* ===========================
   Oprava zobrazenia pozadia na iPhone Safari
   (rovnaká fotka, bez rozťahovania a orezania)
=========================== */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll !important; /* vypne "fixed" len pre iOS */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.55)
      ),
      url('kkk-mobile.jpg') !important; /* tá istá fotka ako na desktope */
  }
}

/* ===========================
   LOGÁ PARTNEROV – SPRÁVNA VEĽKOSŤ
=========================== */

/* Veľké hlavné logo (napr. Grundfos) */
footer .logo-large {
  height: 140px !important;
  width: auto !important;
  transform: scale(1.4);
  opacity: 1;
  filter: none;
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 2;
}

footer .logo-large:hover {
  transform: scale(1.5);
  filter: brightness(1.15);
}

/* Menšie logá */
footer .logo-small {
  height: 40px !important;
  width: auto !important;
  opacity: 0.85;
 
}

footer .logo-small:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Mobilná verzia */
@media (max-width: 768px) {
  footer .logo-large {
    height: 100px !important;
    transform: scale(1.2);
  }
  footer .logo-small {
    height: 25px !important;
  }
}

/* ===========================
   KONTAKT – DVE STĹPCOVÉ SEKCIE
=========================== */
#kontakt .grid {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 px 20px rgba(0,0,0,0.08);
}

#kontakt h3 {
  color: #7f1d1d;
}

#kontakt p {
  color: #374151;
  line-height: 1.5;
}

#kontakt span.font-semibold {
  color: #111827;
}

@media (max-width: 768px) {
  #kontakt .grid {
    padding: 1.5rem;
  }
}

/* ===========================
   MAPA – responzívny dizajn
=========================== */
.map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 65%; /* Pomer strán mapy (vyššie číslo = vyššia mapa) */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Mobilná verzia – vyššia mapa pre lepšiu viditeľnosť */
@media (max-width: 768px) {
  .map-wrapper {
    padding-bottom: 100%; /* mapa vyššia na mobiloch */
  }
}
