/* =================================================================
   Web Šablona 2: Energie - Opravený světlý styl
   ================================================================= */

/* -- 1. Základní nastavení a Proměnné -- */
:root {
  --color-primary-blue: #005A9C; /* Tmavší, profesionální modrá */
  --color-accent-yellow: #FFC72C; /* Jasná, energická žlutá */
  --color-bg-light: #F8F9FA;
  --color-text-dark: #212529;
  --color-text-medium: #6c757d;
  --font-main: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-dark);
  background-color: #fff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -- 2. Navigace -- */
#header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease-in-out;
}
#header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom-color: #e5e7eb;
}
.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--color-primary-blue);
  transition: color 0.3s ease;
  padding-bottom: 4px;
}
.nav-link:hover {
  color: var(--color-text-dark);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent-yellow);
  transition: width 0.3s ease-in-out;
}
.nav-link:hover::after {
  width: 100%;
}
.mobile-nav-link {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

/* -- 3. Tlačítka a Obecné třídy -- */
.cta-button {
  background: var(--color-primary-blue);
  color: white;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(0, 90, 156, 0.3);
  transition: all 0.3s ease;
  border: none;
}
.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 7px 25px rgba(0, 90, 156, 0.4);
}
.cta-button-nav {
  background-color: var(--color-accent-yellow);
  color: var(--color-text-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cta-button-nav:hover {
  background-color: #e6b322; /* Tmavší žlutá */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-medium);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* -- 4. Specifické sekce -- */
.feature-card { padding: 1rem; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background-color: rgba(0, 90, 156, 0.1);
  color: var(--color-primary-blue);
}
.feature-title { font-size: 1.25rem; font-weight: 700; color: var(--color-text-dark); margin-bottom: 0.5rem; }

.service-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-card-img { width: 100%; height: 14rem; object-fit: cover; }
.service-card-title { font-size: 1.25rem; font-weight: 700; color: var(--color-primary-blue); margin-bottom: 0.5rem; }
.service-card-text { color: var(--color-text-medium); }

.before-after-container { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.5rem; border: 2px solid #e5e7eb; }
.before-after-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.before-after-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.after-img { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.slider { position: absolute; bottom: 1rem; left: 10%; width: 80%; cursor: ew-resize; -webkit-appearance: none; appearance: none; height: 4px; background: rgba(0,0,0,0.2); border-radius: 2px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; background: var(--color-accent-yellow); cursor: pointer; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.slider::-moz-range-thumb { width: 24px; height: 24px; background: var(--color-accent-yellow); cursor: pointer; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 5px rgba(0,0,0,0.5); }

.reference-card {
  background-color: #F8F9FA;
  padding: 2rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-primary-blue);
  transition: all 0.3s ease;
  text-align: center;
}
.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #F8F9FA;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  color: var(--color-text-dark);
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.25);
}

/* -- 5. Animace při scrollování -- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- 6. Plovoucí navigační tlačítka -- */
.floating-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary-blue); /* Modrá barva tématu */
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.floating-nav-button:hover {
  background-color: #003f6b; /* Tmavší modrá pro hover */
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}