/* =====================
   RESET & ZÁKLADNÍ NASTAVENÍ
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #fff;
  color: #000;
}

/* =====================
 STRUKTURA STRÁNKY
===================== */
main {
  padding: 0.1rem;
  flex-grow: 1;
}

header {
  background-color: #fbe4c2;
  padding: 0.1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: left;
}

/* =====================
 LOGO A HLAVIČKA
===================== */
#logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 175px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 2rem;
  margin: 0;
}

.logo-text small {
  font-size: 1rem;
  color: #666;
  margin-top: 0.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
}

.logo-link:hover {
  opacity: 0.9;
}

/* =====================
 NAVIGACE
===================== */
nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
}

nav a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background-color: orange;
}

.aktivni a {
  font-weight: bold;
  border-bottom: 2px solid orange;
}

.kontakt-tlacitko {
  background-color: orange;
  color: white !important;
}

/* =====================
 OBSAH & SEKCE
===================== */
section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

ul li {
  margin-bottom: 1rem;
}

.text-link {
  display: inline-block;
  background-color: rgb(241, 182, 87);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.text-link:hover {
  background-color: rgb(255, 160, 50);
  text-decoration: none;
}

.tlacitka-center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact-section {
  padding: 4rem 1rem;
  background-color: #fffaf4;
  border-top: 2px solid #f1b657;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info,
.contact-form {
  flex: 1 1 48%;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

.contact-info p {
  margin-bottom: 1rem;
  color: #444;
}

.contact-info a {
  color: #333;
  text-decoration: underline;
}

.contact-info a:hover {
  color: orange;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1rem; 
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.1rem; 
  font-family: inherit;
  min-height: 50px; 
  resize: vertical;
}

.contact-form textarea {
  min-height: 150px; 
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: orange;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #e59400;
}

.centrovany {
  text-align: center;
}

/* =====================
 OBRÁZKY / NÁHLEDY
===================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.reference-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.reference-gallery a {
  display: block;
  width: 300px;
}

.reference-gallery img.nahled {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.reference-gallery img.nahled:hover {
  transform: scale(1.05);
}

.hero-section {
  height: 350px;
  overflow: hidden;
  position: relative;
  padding: 15px;
  text-align: center;
}

.frontpage_image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 55%;
  transform: translateY(0);
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.about-section {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 2px solid #f1b657;
}

#form-msg {
  font-weight: bold;
  margin-top: 10px;
  transition: opacity 0.3s ease;
}

/* =====================
 PATIČKA
===================== */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

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

footer a:hover {
  color: orange;
}

.social a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
}

.social a:hover {
  text-decoration: underline;
}

/* =====================
 RESPONSIVE (mobilní verze)
===================== */
@media (max-width: 768px) {
  /* HLAVIČKA */
  header {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  #logo {
      align-items: center;
      text-align: center;
  }

  .logo-img {
      height: 80px;
  }

  .logo-text h1 {
      font-size: 1.5rem;
  }

  .logo-text small {
      font-size: 0.9rem;
  }

  /* NAVIGACE */
  nav ul {
      flex-direction: column;
      gap: 0;
  }
  nav li {
      width: 100%;
  }
  nav a {
      display: block;
      padding: 1rem;
      font-size: 1.1rem;
      border-bottom: 1px solid #ddd;
  }

  /* KONTAKTNÍ SEKCE */
  .contact-section {
      padding: 2rem 1rem;
  }
  .contact-info,
  .contact-form {
      padding: 1rem;
      flex: 1 1 100%;
  }

  /* TEXT A HLAVIČKY */
  body {
      font-size: 14px;
      line-height: 1.5;
  }
  h2 {
      font-size: 1.4rem;
  }

  /* PATIČKA */
  footer {
      padding: 1.5rem 1rem;
      font-size: 0.9rem;
  }
  .social a {
      margin: 0 0.3rem;
  }
}
