/* Reset a základní styly */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Jost", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

p {
  text-align: justify;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #1F5C29;
}

a:hover{
  color: #2271b3;
}

header a, h2 {
  text-transform: uppercase;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  left: 0;
  right: 0;
}

.header-top {
  border-bottom: 1px solid #e0e0e0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Navigace */
nav {
  display: flex;
  flex: 1;
}

.nav-top {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.nav-bottom-wrapper {
  width: 100%;
  background: #fff;
}

.nav-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-top a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-top a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

nav a {
  text-decoration: none;
  color: #555;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.nav-bottom a {
  font-size: 1rem;
}

/* Spodní navigace - speciální styly pro hover a aktivní stavy */
.nav-bottom a {
  position: relative;
  z-index: 1;
}

.nav-bottom a::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
  background: transparent;
  transition: background 0.3s;
  z-index: -1;
}

.nav-bottom a:hover::before,
.nav-bottom a.active::before {
  background: #2271b3;
}

.nav-bottom a:hover,
.nav-bottom a.active {
  color: #fff;
}

/* Horní navigace - zachování původního stylu s podtržením */
.nav-top a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: calc(30px + 8px + 12px);
  width: 0;
  height: 3px;
  background: #008000;
  transition: width 0.3s ease;
}

.nav-top a:hover::after,
.nav-top a.active::after {
  width: calc(100% - 30px - 8px - 24px);
}

.nav-top a:hover,
.nav-top a.active {
  color: #2c5aa0;
}

.nav-top a.active {
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c5aa0;
}

/* Hero sekce */
.hero {
  margin-top: 70px;
  /*background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6e 100%);*/
  background-color: #2271b3;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  text-align: center;
  font-size: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Sekce */
.section {
  padding: 80px 20px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* .section team - if reference visible */
.section-left {
  background: #f8f9fa;
}

.section-left .section-container {
  flex-direction: row;
}

.section-right .section-container {
  flex-direction: row-reverse;
}

.section-right .section-team {
  background: #fff;
}

.section-text {
  flex: 1;
}

.section-text h2 {
  font-size: 2rem;
  color: #2271b3;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: #008000;
}

.section-text p {
  margin-bottom: 15px;
  color: #555;
  font-size: 1.05rem;
}

.section-image {
  flex: 0 0 500px;
}

/* Dočasné skrytí referencí - čeká se na první reference */
.section-references,
a[href="#reference"],
#gdprpage a[title="Reference"] {
  display: none;
}

/* Sekce Reference */
.section-references {
  background: #fff;
  padding: 80px 20px;
}

.references-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.references-container h2 {
  text-align: center;
  font-size: 2rem;
  color: #2271b3;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 10px;
}

.references-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #008000;
}

.testimonial-slider {
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 40px;
}

.testimonial-track {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 40px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonial-left {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.testimonial-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-company-logo {
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.testimonial-company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.testimonial-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  margin-bottom: 25px;
  text-align: left;
}

.testimonial-author {
  border-left: 3px solid #008000;
  padding-left: 15px;
}

.author-name {
  font-weight: 600;
  color: #2271b3;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.author-company {
  color: #666;
  font-size: 0.95rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #2271b3;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  padding: 0;
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.slider-btn:hover {
  background: #008000;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #008000;
  transform: scale(1.3);
}

.dot:hover {
  background: #2271b3;
}

/* Sekce tým */
.section-team {
  padding: 80px 20px;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-container h2 {
  text-align: center;
  font-size: 2rem;
  color: #2271b3;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 10px;
}

.team-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #008000;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 40px 30px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-member-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(34, 113, 179, 0.3);
  background: linear-gradient(135deg, #2271b3 0%, #1a5a8f 100%);
  padding: 5px;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.team-member-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.team-member-info h3 {
  font-size: 1.4rem;
  color: #2271b3;
  margin-bottom: 8px;
  text-align: center;
}

.team-member-role {
  font-size: 0.95rem;
  color: #008000;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
  padding: 8px 20px;
  background: rgba(0, 128, 0, 0.1);
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.team-member-descriptions {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.team-member-description {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: justify;
  width: 100%;
}

.team-member-description:last-of-type {
  margin-bottom: 0;
}

.team-member-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding-top: 25px;
  border-top: 2px solid rgba(34, 113, 179, 0.2);
}

.team-member-contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
  margin: 0 auto;
}

.team-member-contact p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-member-contact .contact-icon {
  width: 20px;
  min-width: 20px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.team-member-contact a {
  color: #2271b3;
  text-decoration: none;
  transition: color 0.3s;
}

.team-member-contact a:hover {
  color: #008000;
  font-weight: bold;
}

/* Kontaktní sekce */
.section-contact {
  background: #2c5aa0;
  color: #fff;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.contact-wrapper {
  display: flex;
  gap: 60px;
}

.contact-form {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5aa0;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.form-checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: normal;
}

.btn-submit {
  background: #008000;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #CC5500;
}

.form-note {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #777;
}

.contact-info {
  flex: 0 0 300px;
  padding-top: 30px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 5px;
  opacity: 0.9;
  line-height: 1.8;
}

#gdpr {
  font-size: 0.8rem;
  font-style: italic;
  color: #555;
  margin-top: 15px;
}

#gdpr a {
  color: #2271b3;
  text-decoration: underline;
}

#gdpr a:hover {
  color: #008000;
  font-weight: bold;
}

/* Footer */
footer {
  background: #1a3a6e;
  color: #fff;
  padding: 20px;
  font-size: 0.9rem;
}

footer p {
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: orange;
}

#gdprpage .section-text h1 {
  margin-bottom: 40px;
  font-size: 1.3rem;
}

#gdprpage h2 {
  margin-top: 40px;
  font-size: 1.0rem;
}

ul li {
  margin-left: 10px;
  list-style: none;
  position: relative;
  padding-left: 20px;
}

ul li::before {
  content: "";
  background-image: url('images/icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 15px;
  height: 15px;
  position: absolute;
  left: 0;
  top: 0.4em;
}

/* Responzivita */
@media (max-width: 992px) {
  .section-container {
    flex-direction: column !important;
    text-align: center;
  }

  .section-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-image {
    flex: none;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info {
    flex: none;
    text-align: left;
  }

  ul {
    text-align: left;
  }

  .section-text em, h3 {
    text-align: left;
    display: block;
  }

  .team-member-info h3 {
    text-align: center;
  }

}

@media (max-width: 1110px) {
  .header-container {
    padding: 10px 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    max-height: 50px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .header-top {
    border-bottom: none;
  }

  /* Mobilní menu - jednoduchý seznam */
  nav {
    position: static;
    display: none;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: #fff;
  }

  nav.active {
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Horní navigace v mobilu */
  .nav-top {
    flex-direction: column;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  /* Spodní navigace wrapper */
  .nav-bottom-wrapper {
    position: static;
    width: 100%;
    background: #fff;
    display: none;
    padding: 0;
  }

  .nav-bottom-wrapper.active {
    display: block;
  }

  .nav-bottom {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  /* Všechny odkazy v mobilním menu - kompletní reset */
  .nav-top a,
  nav a,
  .nav-bottom a {
    /* Reset flexboxu a displayu */
    display: block !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 0 !important;

    /* Rozměry a zarovnání */
    padding: 15px 20px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;

    /* Typografie */
    font-size: 1rem !important;
    font-weight: 300 !important;
    color: #555 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    white-space: normal !important;

    /* Vzhled */
    border-bottom: 1px solid #f0f0f0 !important;
    border-radius: 0 !important;
    background: transparent !important;

    /* Pozicování */
    position: relative !important;
    z-index: auto !important;

    /* Ostatní */
    cursor: pointer !important;
    transition: all 0.3s !important;
  }

  .nav-top a:last-child {
    border-bottom: none !important;
  }

  .nav-bottom a:last-child {
    border-bottom: none !important;
  }

  /* Skrýt ikony úplně */
  .nav-top a img {
    display: none !important;
  }

  /* Hover a aktivní stavy - modré podbarvení */
  .nav-top a:hover,
  .nav-top a.active,
  nav a:hover,
  nav a.active,
  .nav-bottom a:hover,
  .nav-bottom a.active {
    color: #fff !important;
    background: #2271b3 !important;
    font-weight: 600 !important;
  }

  /* Skrýt všechny pseudo-elementy */
  .nav-top a::after,
  .nav-top a::before,
  nav a::after,
  nav a::before,
  .nav-bottom a::after,
  .nav-bottom a::before {
    display: none !important;
    content: none !important;
  }

  .references-container {
    padding: 0 20px;
  }

  .testimonial-slide {
    flex-direction: column;
    gap: 30px;
  }

  .testimonial-left {
    flex: none;
  }

  .testimonial-slider {
    padding: 30px 20px;
  }

  .slider-btn {
    display: none !important;
  }

  .team-members {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-member-photo {
    width: 150px;
    height: 150px;
  }

  .team-member {
    padding: 30px 20px 25px;
  }

  .team-member-contact-wrapper {
    width: fit-content;
    max-width: 300px;
    margin: 0 auto;
  }

  .team-member-contact {
    align-items: center;
  }


  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .section {
    padding: 50px 20px;
  }
}