/* --- ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ --- */
:root {
  --primary-color: #009ba5; /* Modrozelená */
  --primary-dark: #007a82; /* Tmavší verze pro hover */
  --secondary-color: #2c3e50; /* Tmavě modrá/šedá */
  --bg-light: #f8f9fa; /* Velmi světlá šedá na pozadí */
  --white: #ffffff;
  --text-main: #333333;
  --text-light: #666666;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08); /* Moderní jemný stín */
  --radius: 12px; /* Zakulacení rohů */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Posun kotvy kvůli fixnímu menu */
section,
footer {
  scroll-margin-top: 100px;
}

/* --- HEADER --- */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-icon {
  color: var(--primary-color);
}

.company-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.company-name span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 1rem;
  position: relative;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 155, 165, 0.3);
}

.nav-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
  padding: 10px; /* Větší dotyková plocha */
}

/* --- MAIN LAYOUT --- */
main {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 120px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* --- HERO / O NÁS --- */
.about-card {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 450px;
}

.about-text {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.highlight-text {
  color: var(--primary-color);
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  width: fit-content;
  margin-top: 35px;
  padding: 15px 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 155, 165, 0.4);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 155, 165, 0.5);
}

.about-highlight {
  flex: 1;
  height: 450px;
  background: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80")
    no-repeat center center/cover;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.about-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.7);
  border-radius: 20px;
}

.highlight-content {
  position: relative;
  z-index: 1;
  padding: 40px;
}

.highlight-content i {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.highlight-content h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* --- KARTY SLUŽEB --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 155, 165, 0.1);
  border-radius: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 25px;
  transition: all 0.3s;
}

.service-card:hover .icon-bg {
  background-color: var(--primary-color);
  color: white;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- GALERIE PROJEKTŮ --- */
.projects-section {
  background: transparent;
  padding: 0;
}

.slider-container {
  position: relative;
  max-width: 100%;
  height: 500px;
  margin: auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  background-color: #e0e0e0;
}

.slide {
  display: none;
  height: 100%;
  width: 100%;
  animation: fade 1s;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 5s ease;
}

.slide:hover img {
  transform: scale(1.05);
}

.slide-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary-color);
  padding: 20px 30px;
  border-radius: 12px;
  min-width: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.slide-caption h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.slide-caption p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -25px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s ease;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  user-select: none;
}

.next {
  right: 20px;
}
.prev {
  left: 20px;
}

.prev:hover,
.next:hover {
  background-color: var(--primary-color);
}

@keyframes fade {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

/* --- MAPA --- */
.map-wrapper {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-top: 20px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- FOOTER --- */
footer {
  background-color: var(--secondary-color);
  color: #b0b8c1;
  padding: 80px 0 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.footer-column h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.3rem;
}

.footer-ico {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.contact-list a,
.contact-list li span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  transition: color 0.3s;
}

.contact-list i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-list a:hover {
  color: white;
  text-decoration: none;
}

.copyright {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* --- MEDIA QUERIES (DESKTOP) --- */
@media (min-width: 901px) {
  .footer-content {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    text-align: left;
  }

  .footer-column:first-child .contact-list li {
    justify-content: flex-start;
  }

  .footer-column:nth-child(2) {
    justify-self: center;
    text-align: center;
  }

  .footer-column:nth-child(2) .contact-list li {
    justify-content: center;
  }

  .footer-column:last-child {
    justify-self: end;
    text-align: left;
  }

  .footer-column:last-child .contact-list li {
    justify-content: flex-start;
  }
}

/* === RESPONZIVNÍ DESIGN (MOBIL/TABLET) === */

@media (max-width: 900px) {
  /* Globální zmenšení odsazení */
  section {
    margin-bottom: 80px;
  }

  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }

  /* Hlavička a Menu */
  .navbar {
    height: 70px;
  }

  .hamburger {
    display: block; /* Zobrazí ikonu sendviče */
    z-index: 1002;
  }

  /* Rozbalovací menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Schované vpravo */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease-in-out;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0; /* Vysunutí menu */
  }

  .nav-menu li {
    opacity: 0; /* Efekt postupného zobrazení */
    transform: translateY(20px);
    transition: 0.3s;
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* O Nás - obrázek nahoru */
  .about-card {
    flex-direction: column;
    gap: 30px;
    min-height: auto;
  }

  .about-highlight {
    order: -1; /* Obrázek první */
    width: 100%;
    height: 300px; /* Pevná výška na mobilu */
  }

  .about-text {
    text-align: center;
  }

  .about-text h1 {
    font-size: 2rem;
  }

  .cta-button {
    margin: 30px auto 0;
  }

  /* Služby */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    text-align: center;
  }

  .service-card .icon-bg {
    margin: 0 auto 20px;
  }

  /* Projekty (Slider) */
  .slider-container {
    height: 300px; /* Menší výška */
  }

  .slide-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 15px;
    min-width: auto;
    text-align: center;
  }

  .prev,
  .next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
/* === STYLY PRO SAMOSTATNOU STRÁNKU REFERENCE === */

.active-page {
  color: var(--primary-color) !important;
}

.active-page::after {
  width: 100% !important;
}

.page-header {
  margin-top: 40px;
  margin-bottom: 60px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.gallery-item {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-content {
  padding: 25px;
}

.gallery-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.gallery-content p {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.logo-container {
  display: flex;
  align-items: center; /* Centruje kontejner v navbaru */
  height: 90px; /* Výška headeru z vašeho CSS */
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 300px; /* Zvětšíme samotný obrázek */
  width: auto;
  display: block;

  /* POSUN DOLŮ: 
     Tento margin vytlačí logo CW z horního okraje směrem do středu. 
     Pokud bude stále vysoko, zvyšte 15px na 20px. */
  margin-top: 215px;
  margin-left: 20px;

  /* POMŮCKA: Odstraňte tento řádek (outline), až budete s výsledkem spokojen. 
     Uvidíte díky němu, kde končí ten neviditelný okraj vašeho PNG. */

  transition: transform 0.3s ease;
}

/* Úprava pro mobil (výška navbaru 70px) */
@media (max-width: 900px) {
  .logo-img {
    height: 200px;
    margin-top: 145px;
    margin-left: 5px;
  }
}
@media (max-width: 900px) {
  .logo-text {
    font-size: 1.3rem; /* Zmenšení textu na mobilech, kde je navbar nižší */
  }
  /* Toto pravidlo SMAŽTE nebo změňte na 'block', aby šipky byly vidět */
  .prev,
  .next {
    display: flex !important; /* Šipky budou opět viditelné */
    /* Upravíme velikost pro mobil, aby nepřekážely textu */
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}
