/* Základní styly pro web */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

nav {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.group:hover .group-hover\:block {
  display: block;
}

section {
  background: #ffffff;
}

section:nth-child(even) {
  background: #f9fafb;
}

section img {
  transition: transform 0.3s ease;
}

section img:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2563eb;
}

p {
  font-size: 1.1rem;
  color: #4b5563;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.portfolio-item, .card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 10px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.portfolio-item:hover, .card:hover {
  transform: translateY(-5px);
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  margin: 10px 0;
  color: #4b5563;
}

.card.border-orange-500 {
  border: 2px solid #f97316;
}

.card .absolute {
  background: #f97316;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 20px;
}

.cta-button {
  font-weight: 700;
  font-size: 1.1rem;
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #1e40af;
  transform: translateY(-2px) scale(1.02);
}

form {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

form label {
  display: block;
  margin: 10px 0 5px;
  color: #1f2937;
}

form input, form textarea, form select {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus, form select:focus {
  border-color: #2563eb;
  outline: none;
}

form input[type="file"] { padding: 5px; }
form input[type="checkbox"] { width: auto; margin-right: 10px; }

form input[type="submit"] {
  background: #f97316;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

form input[type="submit"]:hover { background: #ea580c; }

footer {
  background: #1f2937;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover { color: #3b82f6; }

/* Nové styly pro hero sekci */
#hero {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  text-align: center;
  padding: 5rem 1rem;
}

#hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

#hero p {
  font-size: 1.25rem;
  color: #e5e7eb;
  max-width: 600px;
  margin: 0 auto 2rem;
}

#hero .cta-button {
  background-color: #f97316;
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

#hero .cta-button:hover {
  background-color: #ea580c;
}

/* Styly pro procesní carousel */
.process-carousel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.process-card {
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 280px;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.process-icon {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.process-card h3 {
  color: #ffffff;
  font-size: 1.1rem;
  min-height: 48px;
  margin-bottom: 1rem;
}

.process-card p {
  color: #e5e7eb;
  font-size: 0.9rem;
}

.process-card-1 { background: linear-gradient(135deg, #6EE7B7, #3B82F6); }
.process-card-2 { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }
.process-card-3 { background: linear-gradient(135deg, #F472B6, #EC4899); }
.process-card-4 { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.process-card-5 { background: linear-gradient(135deg, #60A5FA, #2563EB); }

/* Styly pro tečky carouselu */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dots .dot.active {
  background: #2563eb;
}

/* Styly pro AI chat widget (zjednodušené, zbytek řeší Tailwind) */
#ai-chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

/* Styly pro tlačítko v menu */
.nav-cta {
  background-color: #f97316;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: #ea580c;
  transform: scale(1.05);
}

/* Styly pro mobilní menu odkazy */
.mobile-menu-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  transition: background-color 0.2s;
}

.mobile-menu-link:hover {
  background-color: #f3f4f6;
}

/* Upravený nav-link pro lepší zarovnání s tlačítkem */
.nav-link-new {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}

.nav-link-new:hover {
  color: #2563eb;
}

/* Oprava pro dropdown menu (bod 3) */
.dropdown-menu {
  padding-top: 1rem;
  margin-top: -0.5rem;
}

.nav-dropdown-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #374151;
  transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown-link:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

/* Media Queries (Responzivita) */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  p { font-size: 1rem; }
  .portfolio-item, .card { width: 100%; }
  .cta-button { font-size: 1rem; padding: 0.75rem 1.5rem; }
  form input, form textarea, form select { font-size: 0.9rem; }
  #hero h1 { font-size: 2rem; min-height: 110px; } /* Zvětšená min-height pro mobil */
  #hero p { font-size: 1rem; }

  /* Mobilní procesní carousel */
  .process-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0.5rem;
    gap: 1rem;
  }

  .process-carousel::-webkit-scrollbar {
    display: none;
  }

  .process-card {
    flex: 0 0 calc(100% - 1rem); /* Jedna karta na celou šířku */
    scroll-snap-align: center;
    min-height: 260px;
    padding: 1.5rem;
  }

  .process-icon {
    height: 40px;
  }

  .process-card h3 {
    font-size: 1.1rem;
    min-height: 40px;
  }

  .process-card p {
    font-size: 0.9rem;
  }

  /* Centrování fotky v sekci O nás */
  #about img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .process-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Skrytí teček u karuselu na PC (bod 1) */
@media (min-width: 769px) {
    .carousel-dots {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .process-carousel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .container { padding: 15px; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================================================= */
/* ==== NOVÉ STYLY PRO DOPLŇKOVÉ SLUŽBY A FORMULÁŘ === */
/* ================================================= */

/* Styly pro doplňkové služby */
#additional-services .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#additional-services .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Responzivita pro formulář */
form select, form input[type="checkbox"] {
  transition: border-color 0.3s ease;
}

form input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-bottom: 8px; /* Lepší mezera pro mobilní zařízení */
}

/* ================================================= */
/* ===== NOVÉ STYLY PRO STRÁNKU S PODMÍNKAMI ===== */
/* ================================================= */

.gdpr-content h2 {
    color: #1f2937; /* Tmavší barva pro nadpisy */
    font-size: 1.75rem; /* Větší nadpisy pro lepší čitelnost */
}

.gdpr-content p {
    color: #374151; /* Mírně tmavší text pro lepší kontrast */
    margin-bottom: 1rem;
}

.gdpr-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

.gdpr-content ul li {
    margin-bottom: 0.5rem;
}

#mobile-templates-menu {
  max-height: 60vh; /* omezí výšku na 60 % výšky obrazovky */
  overflow-y: auto; /* přidá scroll pokud přesáhne výšku */
  margin-bottom: 1rem;
}