/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

/* Navigace */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #2e5d34;
}

/* Navigace na mobilu */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 65px;
    right: 0;
    background: white;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none; /* schované defaultně */
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  nav ul li {
    text-align: right;
  }

  .hamburger {
    display: block;
  }

  /* Aktivní menu */
  nav.active {
    display: flex;
  }
}

/* Logo s textem */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 45px;
  width: auto;
}

.logo-text h1 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2e5d34; /* zelená */
  margin: 0;
}

.logo-text p {
  font-size: 0.85rem;
  color: #6a8f56; /* světle zelená */
  margin: 0;
}

/* Menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #2e5d34;
}

/* Fancy efekt podtržení */
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #2e5d34;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero sekce */
.hero {
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 8%;
  gap: 100px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
}

.hero-text span {
  color: #2e5d34;
}

.hero-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background: #366b3d;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #1e4223;
}

.hero-img {
  flex: 1.5; /* zvětší obrázek */
}

.hero-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;      /* místo řádku bude sloupec */
    text-align: center;
    gap: 30px;
    padding: 40px 5%;
  }

  .hero-text h1 {
    font-size: 1.8rem;           /* menší nadpis */
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .hero-img {
    margin-top: 25px;
    flex: unset;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-img img {
    max-width: 90%;
    height: auto;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Služby */
.services {
  padding: 40px 10% 60px; /* menší horní padding (z 60 na 40) */
  background: #f9f9f9;
  text-align: center;
  margin-top: -60px; /* posuneme trochu nahoru */
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}


.service-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-6px);
}

.service-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 1.3rem;
  color: #333;
}

/* Služby - mobilní verze */
@media (max-width: 768px) {
  .service-grid {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* mezery mezi boxy */
  }

  .service-item {
    width: 90%;       /* pěkně zarovnané doprostřed */
    text-align: center;
  }

  .service-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .service-item h3 {
    font-size: 1.2rem;
    margin-top: 10px;
  }
}


/* Sekce O nás */
.about {
  background: #ffffff;
  padding: 60px 10%;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #000000ce;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #000000d0;
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 25px;
}

.stat-box {
  margin-bottom: 50px;
  flex: 1;
  background: #03440138;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.stat-box strong {
  font-size: 1.4rem; /* menší čísla */
  color: #2e5d34;
  display: block;
  margin-bottom: 5px;
}

.stat-box p {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
}

.stats div {
  font-size: 1rem;
  color: #2e5d34;
  font-weight: 600;
}

.stats strong {
  font-size: 1.5rem;
  display: block;
}

.about-img {
  flex: 1;
  text-align: right;
}

.about-img img {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.about-right .icon {
  font-size: 2rem;
  color: #2e5d34;
  margin-bottom: 10px;
}

.about-right h3 {
  font-size: 1.3rem;
  color: #2e5d34;
  margin-bottom: 10px;
}

.about-right p {
  font-size: 0.95rem;
  color: #444;
}

/* O nás - mobilní verze */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;   /* místo řádku sloupec */
    text-align: center;
    gap: 20px;
  }

  .about-text {
    width: 100%;
  }

  .about-text h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .about-img {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-img img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
  }

  .stats {
    flex-direction: column;   /* statistiky pod sebou */
    gap: 15px;
  }

  .stat-box strong {
    font-size: 1.4rem;
  }
}

.services {
  padding: 60px 8%;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  color: #2e5d34;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 60px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.service-card .icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: white;
  font-size: 1.3rem;
  text-align: center;
  line-height: 40px;
  margin-bottom: 12px;
}

.icon.green {
  background: #6a8f56;
}

.icon.brown {
  background: #8a5c2e;
}

.service-card h3 {
  font-size: 1.2rem;
  color: #2e5d34;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Fotogalerie */
.gallery {
  padding: 60px 8%;
  text-align: center;
  background: #f9f9f9;
}

.gallery h2 {
  font-size: 2rem;
  color: #2e5d34;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* vždy 3 sloupce */
  gap: 30px;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 15px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 15px;
}

.gallery-item h3 {
  font-size: 1.2rem;
  color: #2e5d34;
  margin-bottom: 8px;
}

.gallery-item p {
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* tablet */
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* mobil = 1 sloupec */
  }

  .gallery-item {
    padding: 10px; /* menší padding na mobilu */
  }

  .gallery-item img {
    max-width: 100vw; /* nikdy nepřesáhne obrazovku */
    height: auto;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  top: 0;
  left: 0;
}

.modal-content {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  max-width: 70%;
  text-align: center;
  z-index: 1001;
}

.modal-content img {
  max-width: 100%;
  border-radius: 8px;
}

.gallery-item button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #2e8b57, #1d5c39);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.gallery-item button:hover {
  background: linear-gradient(135deg, #3aa768, #246e46);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.gallery-item button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  z-index: 1002;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  user-select: none;
  z-index: 1002;
}

.prev { left: -50px; }
.next { right: -50px; }

/* Hlavní obsah */
main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

main {
  flex: 1; /* zabere zbytek prostoru, aby footer byl dole */
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Kontakt sekce */
.contact {
  background: #fdfdfd;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 15px rgba(0,0,0,0.15);
  min-height: 52.4vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vycentrování obsahu */
}

.contact h2 {
  font-size: 30px;
  margin-bottom: 25px;
  color: #2e8b57;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.contact-info p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.contact-info a {
  color: #2e8b57;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Na mobilu jen 1 sloupec */
@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

.order-form {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.order-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.order-form .form-group {
  margin-bottom: 1.2rem;
}

.order-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: #00963e;
  outline: none;
}

.order-form button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #00963e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.order-form button:hover {
  background: rgb(4, 90, 33)
}


.footer {
  background: #2f4f2f; /* tmavě zelené pozadí */
  color: #f1f1f1;
  padding-top: 40px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 0 20px 40px;
}

.footer h3, .footer h4 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col p, 
.footer-col a {
  color: #ddd;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #fff;
}

.socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  color: #ddd;
  background: #446644;
  padding: 8px;
  border-radius: 50%;
  transition: 0.3s;
}

.socials a:hover {
  background: #fff;
  color: #2f4f2f;
}

.footer-bottom {
  border-top: 1px solid #555;
  text-align: center;
  padding: 15px;
  font-size: 13px;
  color: #bbb;
}
