/* Reset štýlov */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #f8fdf8;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* === Hero sekcia === */
.hero {
  background: linear-gradient(135deg, #a8e6a3, #37b36a);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
}

.logo {
  width: 80px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #004d29;
}

.hero-text {
  text-align: center;
  margin-bottom: 8rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: #ffffff;
  color: #2e7d32;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #2e7d32;
  color: #fff;
}

/* === Obsah === */
main {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  color: #2e7d32;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: white;
  border: 2px solid #d9f2dc;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 128, 0, 0.2);
}

.icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* === Kontakt === */
.contact-box {
  background: white;
  border: 2px solid #d9f2dc;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  margin: auto;
  text-align: center;
}

/* === Footer === */
footer {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* === Tlačidlo hore === */
#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  transition: background 0.3s ease;
}

#topBtn:hover {
  background-color: #1b5e20;
}

/* === Animácie === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsivita === */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }
}
