/* Základní nastavení */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Metropolis', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #444;
}

/* Header */
.top {
  position: relative;
  height: 50vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.image img.zoom {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: blur(4px);
  transform: scale(1.5);
  z-index: -1;
}

.header-container {
  position: absolute;
  top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1;
  gap: 10px;
}

.top-text {
  flex-shrink: 1;
  flex-grow: 1;
  font-size: 1.5rem;
  font-weight: 300;
  text-align: left;
  white-space: nowrap; /* zabrání zalomení textu */
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Hamburger menu */
.menu {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
  padding: 0;
}

.menu-toggle div {
  width: 18px;
  height: 2px;
  background-color: black;
  margin: 3px 0;
}

.menu-text {
  display: flex;
  gap: 15px;
  font-size: 1rem;
}

.menu-text span::after {
  content: ' /';
}
.menu-text span:last-child::after {
  content: '';
}

.menu-text a {
  text-decoration: none;
  color: inherit;
}
.menu-text a:hover {
  font-weight: bold;
}

@media (max-width: 900px) {
  .menu-text {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 150px;
  }

  .menu-text span::after {
    content: '';
    }

  .menu-toggle {
    align-self: center;
  }

  .menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .menu-text.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .header-container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  }

  .top-text {
  font-size: 1rem; /* menší velikost pro mobil */
  max-width: 70%;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  }

}

@media (max-width: 600px) {
  .top-text {
    font-size: 1rem;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    transform: scale(0.9);
  }
}

.top-title-main {
  font-size: 3rem;
}

.top-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Sekce O nás */
.about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f2f2f2;
}

.about-img {
  max-width: 600px;
  margin: 0 auto;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text a {
  display: inline-block;
  margin-top: 10px;
  color: grey;
}

/* Služby */
.services {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.more-services a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: rgb(161, 160, 160);
  color: black;
  text-decoration: none;
  border-radius: 5px;
}

.more-services a:hover {
  background-color: rgb(100, 100, 100);
  color: white;
}

/* Fotky / galerie */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f2f2f2;
}

.gallery img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

@media (min-width: 768px) { 
  .gallery {
    flex-direction: row;
    justify-content: center;
  }
}

/* Kontakt */
.contact {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.map {
  margin-top: 30px;
  border: 0;
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

/* Responzivní styly */
@media (max-width: 600px) {
  .top-title-main {
    font-size: 2rem;
  }
  .top-subtitle {
    font-size: 1.2rem;
  }
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}


