@media(min-width:1200px), @media(min-width:991px){
  .container {max-width:900px;}
}

:root {
  --yellow: #ffcc00;
  --black: #000000;
}

.parallax-section {

  background-image: url('../img/bezpecnostni-auto22.png'); /* nahraď vlastním obrázkem */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* paralax efekt */
  height: auto;
  position: relative;
}

.parallax-section .overlay {
  background-color: rgba(0, 0, 0, 0.5); /* tmavý filtr */
  height: 100%;
  width: 100%;
  padding: 60px 20px;
}

.parallax-section h2, 
.parallax-section p {
  color: var(--yellow);
}

.contact-form-section h2, 
 {
  color: var(--yellow);
}

body {
  background-color: #fff;
  color: var(--black);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  color: #e6b800;
  text-decoration: underline;
}

/* Header */
header.fixed-top {
  background-color: var(--black);
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav ul.nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul.nav li a.nav-link {
  color: var(--yellow);
  font-weight: bold;
  padding: 0.5rem 0;
  text-decoration: none;
}

nav ul.nav li a.nav-link:hover {
  color: #e6b800;
}

/* Hero */
.hero {
  position: relative;
  background: url('../img/bezpecnostni-auto.jpg') center center / cover no-repeat fixed;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--yellow);
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero-text h2,
.hero-text p,
.hero-text a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
}

.hero-text p {
  animation-delay: 0.3s;
}

.hero-text a {
  animation-delay: 0.6s;
}

.animate-fadein {
  animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scrolling-text {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  color: var(--yellow);
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling-text p {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 15s linear infinite;
  margin: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Sekce */
.section-content {
  padding: 3rem 1rem;
}

.section-content h3 {
  margin-bottom: 1rem;
  color: var(--black);
}

/* Karty - recenze */
.card {
  border: none;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card img {
  max-height: 100px;
  object-fit: contain;
  margin: auto;
  padding: 1rem;
}

.card h5 {
  font-weight: bold;
  color: var(--black);
}

.card-text {
  color: #444;
}

/* Kontakt */
#kontakt .container {
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--black);
  color: var(--yellow);
  padding: 1.5rem 0;
  text-align: center;
}

/* Formulář */
.contact-form-section {
  background-color: #f9f9f9;
  padding: 3rem 1.5rem;
  width: 100%;
}

form .form-label {
  font-weight: 600;
}

form .form-control:invalid,
form .form-control:valid {
  border-color: #ccc !important;
  box-shadow: none !important;
}

form .form-control {
  border-radius: 4px;
  border: 1px solid #ccc;
}

form button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* Responsivita */
@media (max-width: 768px) {
  .hero {
    height: 350px;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* recenze */
.hero-recenze {
  justify-content: center;
  text-align: center;
  color: var(--yellow);
  overflow: hidden;
}

.hero-recenze-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero-recenze-text  h2,
.hero-recenze-text  p,
.hero-recenze-text  a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
}

.map-container {
  width: auto;
  max-height: 300px;
  overflow: hidden;
  
}
