@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');


/* ZÁKLADNÍ NASTAVENÍ PRO POČÍTAČ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lobster', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    padding-top: 120px;
}

header {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(5px);
/* Přidej toto, aby se prvky na PC řadily vedle sebe doleva */
display: flex;
justify-content: flex-start;
align-items: center;
padding: 10px 20px;
}

#main-header {
    position: fixed;    /* Menu bude přilepené vždy a všude */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;      /* Aby menu bylo nad vším ostatním */
      }

.logo-text-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: auto;
}

.logo-hlavicka {
    height: 120px;
    width: auto;
    margin-right: 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
  height: auto;
  gap: 1em;
}

.hero-text {
    text-align: left;
    margin-left: 20px;
}

.hero-text h1 {
    margin: 0;
    font-family: 'Lobster', cursive;
    color: #6e9277;
}

/* Navigace pro PC */
.top-nav {
    display: flex;
    gap: 20px;
    margin-left: auto; /* Posune menu doprava na PC */
}

.top-nav a {
    text-decoration: none;
    color: #92714c;
    font-weight: bold;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.top-nav a:hover, .top-nav a.active {
    color: #6e9277;
}

/* Tlačítko hamburgeru - na PC skryté */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #92714c;
  border-radius: 10px;
  transition: all 0.3s linear;
}

h1, h2, h3, .logo {
  font-family: 'Lobster', cursive;
  color: #6e9277;
}

h4 {
  font-family: 'Lobster', cursive;
  font-size: 1.3em;
  color: #92714c;
  }

section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  }

section p {
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

/* Definice pro všechny odkazy (e-mail, telefon, menu) */

a {
    color: #92714c; /* Sedlářská hnědá */
    text-decoration: none; /* Odstraní podtržení */
    transition: color 0.3s ease; /* Plynulá změna barvy při najetí */
}

/* Barva odkazu, když na něj najedete myší */
a:hover {
    color: #92714c; /* Tmavší hnědá při najetí */
    text-decoration: underline; /* Podtržení se ukáže jen při najetí */
}

/* Definice pro rozklikávací texty (summary u prvku details) */
summary {
    color: #92714c;
    cursor: pointer;
    font-weight: bold;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #6e9277;
  font-size: 2em;
}

.sluzby {
  text-align: center;
  }

.sluzby-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.sluzba {
  max-width: 300px;
}

.sluzba img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid #f0f0f0;
}

.sluzba h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color:#6e9277;
}

.sluzba p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

.palubky h3 {
  font-size: 1.5em;
  font-weight: bold;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

#realizace {
  padding-top: 10px;  /* nebo méně, třeba 15px */
}

.kontakt h2 {
  padding-top: 10px;  /* nebo méně, třeba 15px */
  font-size: 2em;
  text-align: center;
  margin: 10px 0;
}

#kontakt p {
  text-align: center;
  font-size: 1.2em;
}

/* realizace */

.carousel {
 position: relative;
 overflow: hidden;
 max-width: 1000px;
 margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* Základní nastavení pro počítač - 2 fotky (50 %) */
.carousel-item {
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 10px;
}

/* Nastavení pro mobily (obrazovka užší než 768px) - 1 fotka (100 %) */

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0 10px;
  color: #333;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.caption {
  position: absolute;
  top: 10px;         /* odsazení od horního okraje obrázku */
  left: 10px;        /* odsazení od levého okraje obrázku */
  background: rgba(0, 0, 0, 0.5); /* tmavé průhledné pozadí pro čitelnost */
  color: #fff;
  padding: 8px 12px;
  font-size: 1em;
  max-width: 80%;    /* aby se text nepřekrýval celý obrázek */
  border-radius: 5px;
  box-sizing: border-box;
  pointer-events: auto; /* aby šel kliknout na odkaz */
}

.caption a {
  color: #ffd966;    /* zlatá barva odkazu */
  font-weight: bold;
  text-decoration: underline;
}


.caption a:hover {
  color: #fff;
}

.typy {
  text-align: center;
}

/* FINÁLNÍ OPRAVA FOTKY O MNĚ */
figure {
  margin: 10px auto; /* Vycentruje kontejner s fotkou */
  text-align: center; /* Vycentruje samotný obrázek uvnitř */
  display: block;
  width: 100%;
}

figure img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Reference */
.refs-quotes {
  display: flex;
  gap: 20px;
  max-width: 800px; /* nebo podle potřeby */
  margin: auto;
}

.reference-card {
  box-sizing: border-box;  /* počítá padding a border do šířky */
  max-width: 100%;         /* nepřekračuj rodičovský kontejner */
  position: relative; /* pro jistotu */
  word-wrap: break-word;   /* zalamování dlouhých slov */
  flex: 1 1 0;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 8px 8px 12px #92714c;
  display: flex;
  flex-direction: column;
  overflow: visible !important; /* dočasně zrušíme skrytí přetékajícího obsahu */
  }

.quote {
  font-style: italic;
  margin: 0 0 10px 0;
}

.author {
  text-align: right;
}

.platforma {
  display: flex;               /* aby šlo zarovnávat a uspořádat obsah */
  align-items: center;         /* vertikálně vyrovnat text a obrázek */
  justify-content: flex-end;   /* zarovnat vše doprava */
  gap: 0.5em;                  /* mezera mezi hvězdičkou a logem */
  max-width: 100%;
  overflow: visible; /* aby se nic nezkrývalo */
}

.platforma img {
  max-width: 80px;             /* dostatečně malé logo */
  height: auto;
  display: block;              /* odstraní mezery pod obrázkem */
}

.reference-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .platforma {
    justify-content: flex-start; /* na mobilu zarovnáme vlevo, aby lépe sedělo */
  }

  .platforma img {
   max-width: 80px; /* menší logo na mobilu */    
  }

.adresa-row {
  display: flex;
  gap: 1em;
  flex-wrap: nowrap;
  align-items: flex-end;
  margin-bottom: 1em;
}

.adresa-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 120px;
}

/* ===== Patička ===== */

.footer {
  background-color: #92714c;
  padding: 20px 0;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-text {
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
}

/* Form style extraction from HTML */
form h3, form h4 {
  font-family: 'Lobster', cursive;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.form-group label {
  margin-bottom: 0.25em;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  box-sizing: border-box;
  min-height: 38px;
}

textarea {
  min-height: 100px;
}

#zasilkovna-button {
  margin-bottom: 1em;
  padding: 0.5em 1em;
}

#zasilkovna-selected-branch {
  margin-bottom: 1em;
  font-style: italic;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

form label {
  font-weight: bold;
  text-align: left;
}

form input,
form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row > div {
  flex: 1 1 0;
}

form button {
  background-color: #6e9277;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Karusel styly pro e-shop produkt */

.product-carousel {
  position: relative;
  overflow: hidden;
  /* Max šířka celého karuselu */
  max-width: 500px;
  margin: 0 auto 1em auto; /* Centrování a mezera */
  border: 1px solid #ccc;
}
.product-carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.product-carousel-images img {
  /* Zajišťuje, že každý obrázek zabere přesně 100% šířky kontejneru */
  width: 100%;
  height: auto;
  /* Důležité pro plynulé posouvání: nescvrkávat obrázky */
  flex-shrink: 0;
}

.product-carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  padding: 0.25em 0.5em;
  cursor: pointer;
  z-index: 10;
}

.product-prev {
  left: 0.5em;
}

.product-next {
  right: 0.5em;
}

/* LIGHTBOX STYLY */
.lightbox {
  display: none; /* Schované, dokud se neklikne */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 3px solid white;
  border-radius: 4px;
}

.lightbox-caption {
  color: white;
  margin-top: 15px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  background: none; border: none;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: white; font-size: 50px;
  cursor: pointer;
  padding: 20px;
}

.lightbox-nav.left { left: 10px; }
.lightbox-nav.right { right: 10px; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

@media (max-width: 768px) {
/* 3. NAVIGACE - Zobrazení pod logem */
  .top-nav {
    display: none !important; 
    flex-basis: 100%; /* Menu zabere celou šířku pod logem */
    background-color: #ffffff !important;
    padding: 15px 0 !important;
    
    display: none; 
    grid-template-columns: 1fr 1fr !important;
    gap: 5px 0 !important;
    box-shadow: none !important;
    border-top: 1px solid #f0f0f0; /* Jemné oddělení od loga */
    margin-top: 10px;
  }

  .top-nav.active {
    display: grid !important; 
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
  }

  .top-nav a {
    display: block !important;
    text-align: center !important;
    padding: 10px 5px !important;
    font-size: 1.1rem !important;
    color: #92714c !important; /* Hnědá barva */
    text-decoration: none !important;
    font-family: 'Lobster', cursive; /* Použití tvého fontu */
   
    /* Vynutíme těsnější řádkování, aby text nezabíral tolik místa */
    line-height: 1 !important;
    
   
    text-shadow: none !important;
    border-bottom: 1px solid #f0f0f0;
  /* Odstraníme tučné písmo, pokud ho tam máš, vypadá to jemněji */
    font-weight: normal !important;
    box-sizing: border-box !important;
  }

    .top-nav a.active {
    color: #6e9277 !important; /* Zelená barva */
    font-weight: normal !important; /* U Lobsteru stačí barva */
  }

  /* 4. ÚPRAVA HLAVIČKY - aby se do ní menu vešlo */
  /* 1. HLAVIČKA - Úprava pro odsouvání obsahu */
  header {
    height: auto !important; /* Klíčové: hlavička se přizpůsobí výšce menu */
    min-height: 70px;         /* Minimální výška v zavřeném stavu */
    flex-wrap: wrap !important; 
    padding: 10px 15px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95);
  }

  /* 2. LOGO */
 
 .logo-hlavicka {
    height: 45px !important; /* Mírně zvětšeno pro čitelnost */
    width: auto !important;
    margin-right: 10px !important; /* Zmenšený prostor mezi logem a textem */
  }

.hero-text {
    margin-left: 0 !important; /* Odstranění levého marginu textu */
  }

  .hero-text h1 {
    font-size: 1.1rem !important; /* Velikost sloganu */
    margin: 0 !important;
    white-space: nowrap; /* Aby se slogan nelámal, pokud je krátký */
  }

  /* 4. HAMBURGER */


  .hamburger { /* Sjednoceno na třídu, pokud ji používáš v HTML */
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
  }


   

  figure img {
    width: 92%;
    max-width: 500px;
  }

  .carousel-item { flex: 0 0 100%; }

  body {
    padding-top: 70px !important;
  }
}


