/* === KOMPLETNÍ CSS WEBU CESTA KVALITY === */

/* === BAREVNÁ PALETA === */
:root {
  --color-primary: #2c555e;
  --color-secondary: #3b7881;
  --color-accent: #efba46;
  --color-bg: #efe6df;
  --color-light: #ffffff;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
}

/* === HLAVIČKA === */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 0.5rem 1rem;
}


/* Defaultní styl menu */
nav ul {
  list-style: none;
  gap: 10px;
}

/* HAMBURGER IKONA – společný styl pro všechna zařízení */
.menu-toggle {
  font-size: 20px;
  cursor: pointer;
  color: var(--color-light);
  padding: 8px 12px;
  background-color: rgb(143, 195, 193); /* 👍 přidáme barevné pozadí */
  border-radius: 6px;                   /* lehce zaoblené rohy */
  opacity: 0.75;                         /* mírná průhlednost */
  border: none;
  display: inline-block;      /* 🔥 už nebude blok přes celou šířku */
  top: 15px;
  right: 20px;
}

/* Pouze na desktopu zobrazíme menu vedle sebe */
@media (min-width: 768px) {
  nav ul {
    display: flex;
    justify-content: center;
  }

  .menu-toggle {
    display: none;          /* výchozí stav: hamburger schovaný */
    }

}

nav ul li a {
  color: var(--color-light);
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  background: rgba(44,85,94,0.8);
  border-radius: 12px;
  transition: background 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* === HERO SEKCE === */
.hero {
  position: relative;
  width: 100%;
  height: 40vh;
  background: url('assets/hero-wide.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-light);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(44,85,94,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 1rem;
  background: rgba(44,85,94,0.2);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-top: 50px;
}

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

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

/* === OBECNÉ SEKCE === */
.section-content {
  padding: 1rem 2rem 2rem;
  max-width: 1100px;
  margin: auto;
}

/* === TLAČÍTKA === */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

/* === INDEX – tlačítka 4 vedle sebe i na mobilech === */
.index-buttons {
  display: flex;
  flex-wrap: wrap;          /* pokud nebude dost místa, zalomí se */
  justify-content: center;  /* zarovnání na střed */
  gap: 8px;                 /* mezery mezi tlačítky */
  margin-top: 1rem;
}

.index-buttons a {
  flex: 1 1 22%;            /* každé tlačítko zabere cca 22 % šířky */
  text-align: center;
  font-size: 18px;          /* menší text */
  padding: 15px 4px;         /* menší padding */
  border-radius: 6px;
  background-color: var(--color-light); /* barva tlačítka */
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
}

.index-buttons a:hover {
  background-color: #ffd36b; /* světlejší při najetí */
}

/* Nadpis H2 na střed */
.index-sections h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

/* === SLUŽBY – STRÁNKA === */
.hero-services {
  background: url('assets/hero-services.jpg') center/cover no-repeat;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--color-light);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  font-weight: bold;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-secondary);
}

/* CTA sekce */
.cta-services {
  text-align: center;
  background: rgba(44,85,94,0.05);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.cta-services h2 {
  margin-bottom: 1rem;
}

/* === O PROJEKTU === */
.hero-project {
  background: url('assets/hero-project.jpg') center/cover no-repeat;
}

.vision-boxes {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.vision-card {
  flex: 1;
  min-width: 220px;
  background: var(--color-light);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-me-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
}

.about-photo img {
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Certifikáty */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.cert-grid a {
  display: block;
  padding: 1rem;
  background: var(--color-light);
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.cert-grid a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* === AKTUALITY === */
.hero-aktuality {
  background: url('assets/hero-aktuality.jpg') center/cover no-repeat;
}

.news-item {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--color-light);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.news-item.reverse {
  flex-direction: row-reverse;
}

.news-image img {
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-content {
  flex: 1;
}

.news-item.reverse .news-content {
  text-align: right;
}

/* Rozbalovací obsah */
.news-full {
  display: none;
  margin-top: 0.8rem;
}

.news-item.expanded .news-full {
  display: block;
}

.btn-toggle {
  background-color: var(--color-accent);
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: var(--color-primary);
  transition: background 0.3s ease;
}

.btn-toggle:hover {
  background-color: #ffd36b;
}

/* === KONTAKTNÍ STRÁNKA === */
.contact-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-kontakt {
  background: url('assets/hero-contact.jpg') center/cover no-repeat;
}

.kontakt-logo {
  text-align: left;
  margin: 10px 0;
}

.kontakt-logo img {
  max-width: 400px;   /* velikost loga, můžeš změnit */
  height: auto;
  opacity: 0.9;       /* jemná průhlednost – volitelné */
}

.contact-left {
  flex: 2;
  min-width: 300px;
}

.contact-right {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.contact-photo {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-info h2,
.contact-form h2,
.contact-map h2 {
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 5px rgba(239,186,70,0.5);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* === FOOTER === */
.footer {
  background-color: var(--color-primary);
  background-image: url('assets/graf_prvek.svg'); /* nebo jiný */
  background-repeat: repeat-x;              /* 🔥 bude se opakovat vodorovně */
  background-size: auto 30%;               /* výška prvku (doladíme) */
  background-position: top center;          /* zarovnání nahoru */
  padding: 80px 20px 40px;                  /* horní padding zvětšíme kvůli grafice */
  color: var(--color-light);
  text-align: center;
  padding: 2rem;
  }

/* === RESPONSIVITA === */

/* MOBILE MENU STYLING – NA TELEFONECH SKRÝVÁME MENU */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;     /* položky pod sebe */
    align-items: left;        /* zarovnat na střed */
    gap: 4px;                   /* menší mezery */
    padding: 0;
    margin: 0;
  }

  nav ul li a {
    font-size: 14px;            /* menší text */
    padding: 4px 8px;           /* menší výplň */
  }

  .contact-right {
    display: none;
  }
    
  #nav-links {
    display: none;                /* ve výchozím stavu skryté */
    flex-direction: column;
    position: absolute;           /* aby se mohlo posunout na stranu */
    top: 60px;                    /* aby nezačínalo úplně nahoře */
    left: 0;                      /* 🔥 zarovnáme vlevo */
    width: 150px;                 /* šířka menu panelu */
    background-color: rgba(44, 85, 94, 0.95); /* tmavý podklad */
    padding: 1rem;
    border-radius: 0 8px 8px 0;   /* lehce zaoblený pravý okraj */
  }

  #nav-links.showing {
    display: flex;                /* po kliknutí na hamburger se zobrazí */
  }

  #nav-links li {
    text-align: left;             /* text bude zarovnaný vlevo */
    margin: 10px 0;
  }

  nav ul li a {
    font-size: 14px;
    padding: 4px 8px;
  }  
    
  .contact-form form input,
  .contact-form form textarea {
    max-width: 90%;
    margin: 0 auto;
    display: block;
  }
    
 .service-cards {
    grid-template-columns: repeat(2, 1fr);  /* ✅ místo 3 sloupců budou jen 2 */
    grid-gap: 12px;                         /* mezery mezi tlačítky – můžeš doladit */
  }    
     
 .news-item {
    flex-direction: column;        /* celý rámeček pod sebou */
    align-items: left;           /* zarovnat na střed */
  }

  .news-item.reverse {
    flex-direction: column; /* i reverzní položky budou pod sebou */
    text-align: left;
  }
    
  .news-item.reverse .news-content {
    text-align: left;
  }

  .news-image img {
    width: 100px;                   /* obrázek přes celou šířku */
    max-width: 200px;
    height: auto;
    border-radius: 6px;
  }

  .news-content {
    width: 100%;
    text-align: left;
  }

  .news-content .news-full {
    padding: 0 0.5rem;
  }
}
    
.justified {
  text-align: justify;
}