/* Reset & základ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #f6f6f6;
}
html {
  scroll-behavior: smooth;
}
nav a.active {
  border-bottom: 2px solid #0077cc;
  color: #0077cc;
}

/* HLAVIČKA */
#main-header {
  background-color: white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 80px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

/* HERO sekce */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* jemné ztmavení */
  z-index: 1;
}



.about-content .image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  text-transform: uppercase;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-text p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 10px;
  color: #f2f2f2;
}


/* O nás sekce */
.about {
  padding: 60px 40px;
  background-color: white;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.about-content .text {
  flex: 1 1 50%;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-content .image {
  flex: 1 1 40%;
  display: flex;
  justify-content: flex-end;
}

.about-content .image img {
  width: 100%;
  max-width: 450px;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.contact {
  background-color: #f5f5f5;
  padding: 60px 40px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 40%;
  font-size: 1rem;
}

.contact-form {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #0077cc;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #005fa3;
}
.services {
  background-color: white;
  padding: 60px 40px;
}
#services {
  scroll-margin-top: 100px; /* posune cíl scrollování pod lištu */
  padding: 80px 20px;
}

.services-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
  /* Odebráno: flex-direction: row-reverse; */
}


.services-detail {
  background-color: #ffffff;
  scroll-margin-top: 100px;
  padding: 80px 20px;
}

.services-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.services-content .image {
  flex: 1 1 45%;
}

.services-content .image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.services-content .text {
  flex: 1 1 50%;
}

.services-content .text h2 {
  margin-bottom: 20px;
}

.services-content .text ul {
  padding-left: 20px;
  list-style: disc;
}

.map {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .header-content,
  .about-content,
  .services-content,
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-content .image,
  .services-content .image {
    order: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
  }
}

.scroll-down {
  position: absolute;
  bottom: 185px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  z-index: 2;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-down svg {
  width: 32px;
  height: 32px;
  stroke: white;
  transition: opacity 0.3s;
}

.scroll-down:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-6px);
  }
  60% {
    transform: translateX(-50%) translateY(-3px);
  }
}

.services {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.services ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: auto;
}

.services ul li {
  margin: 10px 0;
  font-size: 1.1rem;
}
.machines {
  background-color: #f7f7f7;
  padding: 60px 20px;
}

.machines-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  align-items: flex-start;
}

.machines-text {
  flex: 1 1 50%;
  font-size: 1.1rem;
}

.machines-text ul {
  padding-left: 20px;
  list-style: disc;
}

.machines-images {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.machines-images img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.gallery-button-wrapper {
  text-align: center;
  margin: 40px 0;
}

.gallery-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #0077cc;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.gallery-button:hover {
  background-color: #005fa3;
}
.map-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.map-wrapper iframe {
  width: 100%;
  max-width: 900px;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
nav a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: left;
}

nav a:hover::after {
  background-color: #347AB1;
  transform: scaleX(1);
}

nav a.active {
  color: #347AB1;
  font-weight: 600;
  font-size: 1.05rem;
}

nav a.active::after {
  background-color: #347AB1;
  transform: scaleX(1);
}

.gallery-nav-button {
  background-color: #347AB1;
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.gallery-nav-button:hover {
  background-color: #255e86;
}
#hero {
  scroll-margin-top: 200px; /* nebo výšku tvého headeru */
}
.hero {
  height: 100vh;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  scroll-margin-top: 100px;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo {
  height: 40px;
}

/* Navigace */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 8px;
}

/* Galerie jako tlačítko */
.gallery-nav-button {
  background-color: #347AB1;
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.gallery-nav-button:hover {
  background-color: #255e86;
}

/* Jazykový přepínač */
.language-switch {
  position: relative;
  margin-left: 20px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 100;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.lang-dropdown a:hover {
  background-color: #f0f0f0;
}

.language-switch:hover .lang-dropdown {
  display: block;
}
/* Celý header */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
}

/* Větší logo */
.logo {
  height: 60px;
}

/* Pravá část – navigace + jazyk */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Navigace */
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  padding: 6px 8px;
}

.gallery-nav-button {
  background-color: #347AB1;
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.gallery-nav-button:hover {
  background-color: #255e86;
}

/* Jazykový přepínač */
.language-switch {
  position: relative;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 100;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.lang-dropdown a:hover {
  background-color: #f0f0f0;
}

.language-switch:hover .lang-dropdown {
  display: block;
}
/* základní styl */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* mobilní horní lišta */
.mobile-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo-mobile {
  height: 36px;
}

/* přizpůsobení obrázků */
img {
  max-width: 100%;
  height: auto;
}

/* mobilní styly – zobrazí se jen do 768px */
@media (max-width: 768px) {
  nav,
  .desktop-menu,
  .gallery-button,
  .language-switch {
    display: none;
  }

  .hero,
  .services,
  .about,
  .machines,
  .contact {
    padding-top: 70px; /* aby se obsah neposunul pod horní lištu */
  }
}
.gdpr-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  margin: 6px 0 14px;
}
.gdpr-consent input[type="checkbox"] {
  margin-top: 3px;
}
.contact-info h3 { margin-top: 18px; }
.contact-info a { color: inherit; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
/* === Header: logo vlevo, menu + jazyk vpravo === */
#main-header .header-content{
  display:flex;
  align-items:center;
  justify-content:space-between;   /* logo vlevo, zbytek doprava */
  padding:12px 40px;
}

#main-header .nav-right{
  margin-left:auto;                /* pošli blok doprava */
  display:flex;
  align-items:center;
  gap:24px;
  text-align:right;
}

#main-header .main-nav{ display:flex; }
#main-header .main-nav ul{
  display:flex;
  gap:20px;
  list-style:none;
  margin:0;
  padding:0;
  justify-content:flex-end;        /* zarovnej položky doprava */
}
#main-header .main-nav li{ margin:0; }
#main-header .main-nav a{ display:block; }

/* pro jistotu zruš centrování, které to tahalo doprostřed */
#main-header, 
#main-header *{
  text-align:initial;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto; /* posune celý blok doprava */
  gap: 20px;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-switch {
  margin-left: 20px;
}
/* poloprůhledná sticky lišta jako na desktopu */
#main-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* ===== Mobil: logo uprostřed, vpravo jen vlajka ===== */
@media (max-width: 768px){

  /* schovej celé desktop menu i hamburger */
  #main-header .nav-right,
  #main-header .hamburger { display: none !important; }

  /* lišta – vycentrovat logo a mít místo pro vlajku vpravo */
  #main-header .header-content{
    position: relative;
    display: flex;
    justify-content: center;   /* logo doprostřed */
    align-items: center;
    padding: 10px 48px;        /* místo pro tlačítko vpravo */
    min-height: 58px;
  }

  /* logo – trochu větší a bez plavání */
  #main-header .logo{ height: 44px; }

  /* přepínač jazyka vpravo, vždy v liště */
  #main-header .language-switch{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: block !important;   /* vždy viditelné */
  }

  /* kulatá vlajka jako tlačítko */
  #main-header .lang-btn{
    background: rgba(255,255,255,0.85);
    border: 0;
    border-radius: 999px;
    padding: 6px;
    line-height: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
  }
  #main-header .lang-btn img{
    width: 28px; height: 28px; border-radius: 50%;
    display: block;
  }

  /* dropdown jazyků zarovnaný k pravému okraji */
  #main-header .lang-dropdown{
    right: 0;
    left: auto;
    top: calc(100% + 6px);
    min-width: 140px;
  }
  #main-header .lang-dropdown a{
    gap: 8px;
    padding: 8px 10px;
  }
}
/* obecný styl pro vlajku */
.language-switch {
  position: relative;
}

.lang-btn {
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  padding: 6px;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.lang-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
}

/* dropdown */
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 140px;
  z-index: 1000;
}
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}
.lang-dropdown a:hover {
  background: #f0f0f0;
}

/* zobraz dropdown při hoveru nebo kliknutí */
.language-switch:hover .lang-dropdown {
  display: block;
}

/* ===== Mobilní verze ===== */
@media (max-width: 768px) {
  #main-header .nav-right,
  #main-header .hamburger {
    display: none !important;
  }

  #main-header .header-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 48px;
    min-height: 58px;
  }

  #main-header .logo { height: 44px; }

  /* vlajka vždy vpravo */
  #main-header .language-switch {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: block !important;
  }
}
