/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: #222;
}

/* ===== Global ===== */
body {
  background: #f4f6f8;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: #f9f9f9;
}

.bg-white {
  background-color: #fff;
}

.bg-primary {
  background-color: #F8951D;
  color: #fff;
  text-align: center;
}

/* ===== Header ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #F8951D;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s, font-size 0.3s;
}

.nav a:hover {
  color: #F8951D;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: url('../obr/hero.png') center/cover no-repeat;
  color: white !important;
  text-align: center;
  padding: 140px 20px;
  /* Needed for the ::before pseudo-element overlay */
  position: relative;
}

.hero,
.hero * {
  color: white !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: #F8951D;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #d87a00;
  transform: translateY(-2px);
}

/* ===== Sekce loga / partneři ===== */
#loga {
  padding: 80px 0;
}

#loga .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

#loga .logo-item {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s;
}

#loga img {
  max-width: 200px;
  width: 100%;
  filter: brightness(1);
  transition: transform 0.3s, filter 0.3s;
}

#loga a:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ===== Timeline / Historie ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #F8951D;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #F8951D;
  border-radius: 50%;
}

.timeline-item .year {
  font-weight: 700;
  color: #F8951D;
  display: block;
  margin-bottom: 5px;
}

/* ===== Cards (služby a benefity) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.card h3 {
  color: #F8951D;
  margin-bottom: 12px;
}

.card p {
  color: #444;
  line-height: 1.5;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  background: #f0f8ff; /* jemné podbarvení při hover */
}

/* Otázka */
.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding-right: 25px;
}

/* + / – ikona */
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '–';
  transform: rotate(180deg);
}

/* Odpověď */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding-top 0.5s ease;
  color: #444;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* dostatečně pro delší texty */
  opacity: 1;
  padding-top: 10px;
}



/* ===== Footer ===== */
.footer {
  text-align: center;
  background: #F8951D;
  color: #fff;
  padding: 30px 0;
}

.footer a {
  color: #000000;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    position: absolute;
    right: 20px;
    top: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
  }

  .nav.active ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  #loga .logos {
    gap: 30px;
  }

  #loga img {
    max-width: 150px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card {
    padding: 20px;
  }
}



/* ===== Společný styl pro všechny sekce s kartami ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #F8951D;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
}

/* ===== Speciální styl pro nadpisy v těchto sekcích ===== */
#sluzby h2,
#benefity h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  color: #F8951D;
}

#sluzby h2::after,
#benefity h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  left: 25%;
  bottom: -12px;
  background: #F8951D;
  border-radius: 3px;
}

/* ===== Padding sekcí ===== */
#sluzby {
  padding: 100px 20px;
  background-color: #ffffff;
}

#benefity {
  padding: 100px 20px;
  background-color: #f9f9f9;
}

/* ===== Responsivita ===== */
@media (max-width: 768px) {
  #sluzby h2,
  #benefity h2 {
    font-size: 2rem;
  }

  .cards {
    gap: 20px;
  }

  .card {
    padding: 25px 20px;
  }
}




/* ===== Sekce historie ===== */
#historie {
  padding: 100px 20px;
  background-color: #f9f9f9;
}

#historie h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  color: #F8951D;
}

#historie h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  left: 25%;
  bottom: -12px;
  background: #F8951D;
  border-radius: 3px;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #F8951D;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 4px solid #F8951D;
  border-radius: 50%;
  transition: transform 0.3s;
}

.timeline-item .year {
  font-weight: 700;
  color: #F8951D;
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.timeline-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Hover efekt na timeline item */
.timeline-item:hover::before {
  transform: scale(1.2);
}

/* ===== Responsivita ===== */
@media (max-width: 768px) {
  #historie h2 {
    font-size: 2rem;
  }

  .timeline {
    padding-left: 20px;
    gap: 40px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-item::before {
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .timeline-item .year {
    font-size: 1.1rem;
  }

  .timeline-item p {
    font-size: 0.95rem;
  }
}
