/* Complete stylesheet — nahraď celý súbor týmto obsahom */

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #0f0f0f;
  color: #E6E6E6;
  line-height: 1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* LAYOUT WRAPPER */
.container-max {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* HEADER / NAV */
header { background: transparent; }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  position: relative;
  z-index: 40;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.logo-container { display:flex; align-items:center; gap:0.6rem; text-decoration:none; }
.logo { height:48px; width:auto; display:block; border-radius:4px; }
.company-name { color:#FF6A00; font-weight:700; font-size:1.05rem; letter-spacing:0.2px; }

/* primary nav links (desktop) */
.nav-links {
  display:flex;
  gap:1.25rem;
  list-style:none;
  align-items:center;
}
.nav-links li { list-style:none; }
.nav-links a {
  padding:0.35rem 0.4rem;
  color: #E6E6E6;
  font-weight:600;
  transition: color .18s, transform .12s;
}
.nav-links a:hover,
.nav-links a:focus { color:#FF6A00; transform: translateY(-1px); outline: none; }

/* hamburger for mobile */
.mobile-menu {
  display:none;
  align-items:center;
  justify-content:center;
  width:42px;
  height:36px;
  border-radius:8px;
  cursor:pointer;
}
.mobile-menu span {
  display:block;
  width:22px;
  height:2.5px;
  background:#E6E6E6;
  margin:3px 0;
  border-radius:2px;
  transition: transform .22s ease, opacity .18s ease;
}

/* SECTIONS */
section { padding: 3rem 0; }
.page { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #FFF;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18));
}
.hero .hero-content { position: relative; z-index: 6; text-align:center; max-width:900px; padding: 1rem; }
.hero h1 { font-size: 2rem; margin-bottom: .5rem; color:#FFF; }
.hero p { font-size: 1.05rem; margin-bottom: 1rem; opacity:0.95; }

/* SLIDESHOW (if used) */
.hero-slideshow { position:absolute; inset:0; z-index:2; pointer-events:none; }
.slideshow { height:100%; width:100%; display:block; }
.slides { display:flex; height:100%; transition: transform .55s ease; will-change: transform; }
.slide { min-width:100%; height:100%; flex-shrink:0; }
.slide img { width:100%; height:100%; object-fit:cover; display:block; }

/* slideshow controls (make clickable) */
.sl-prev, .sl-next, .sl-dots { pointer-events:auto; }
.sl-prev, .sl-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background: rgba(0,0,0,0.45);
  color:#fff; border:0; padding:.35rem .55rem; font-size:1.2rem; border-radius:6px; cursor:pointer;
  z-index:8;
}
.sl-prev { left:12px; }
.sl-next { right:12px; }
.sl-dots { position:absolute; left:50%; transform:translateX(-50%); bottom:12px; display:flex; gap:8px; z-index:8; }
.sl-dot { width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,0.35); border:0; cursor:pointer; }
.sl-dot.active { background:#FF6A00; box-shadow: 0 0 6px rgba(255,106,0,0.35); }

/* HIGHLIGHT */
.highlight { padding-top:1.5rem; padding-bottom:1.5rem; }
.highlight h2 { margin-bottom: 1rem; color:#FF6A00; text-align:center; }
.highlight ul { list-style:none; display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; padding:0; margin:0; }
.highlight li { background: #151515; padding:.6rem .9rem; border-radius:8px; color:#dcdcdc; font-weight:600; }

/* SERVICES */
.services { margin-bottom: 2.5rem; }
.services ul {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items:stretch;
}
.services li {
  background:#171717;
  padding:1.1rem;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:200px;
  transition: transform .22s ease, box-shadow .22s ease;
  overflow:hidden;
}
.services li:hover { transform:translateY(-6px); box-shadow:0 8px 22px rgba(0,0,0,0.45); background:#232323; }
.services li h3 { color:#FF6A00; margin-bottom:.55rem; font-size:1rem; }
.services li p { color:#DCDCDC; font-size:0.95rem; margin-top:auto; line-height:1.35; }

/* FOOTER */
footer { background:#0d0d0d; color:#BDBDBD; padding:2rem 0; }
.footer-wrap { max-width:1000px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:0 1rem; }
.footer-contact p { margin:0 0 .5rem 0; }
.footer-socials a { color:#FF6A00; margin-left:.6rem; }

/* GALLERY: always 3 columns, malé obrázky, centrované */
.gallery-section { padding: 8px 0 28px; }
.gallery-section h2 { margin-bottom: 12px; color:#FF6A00; text-align:center; }
.gallery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  justify-content: center;
  align-items: start;
  max-width: calc(3 * 160px + 2 * 10px);
  margin: 0 auto;
  padding: 0 12px;
}
.gallery-item {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}
.gallery-item a { display:block; }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  vertical-align: middle;
}
.gallery-item .caption {
  padding: 8px;
  font-size: 0.82rem;
  color: #DCDCDC;
  background: rgba(255,255,255,0.02);
}
.gallery-item a:focus { outline: 3px solid rgba(255,106,0,0.12); outline-offset: 2px; }

/* RESPONSIVE ADJUSTMENTS - keep 3 columns always, images scale down */
@media (max-width: 1200px) {
  .gallery-item { max-width: 140px; }
  .gallery-grid { max-width: calc(3 * 140px + 2 * 10px); gap: 9px; }
  .services ul { gap: 1rem; }
}
@media (max-width: 900px) {
  .gallery-item { max-width: 120px; }
  .gallery-grid { max-width: calc(3 * 120px + 2 * 8px); gap: 8px; }
  .services ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-item { max-width: 100px; }
  .gallery-grid { max-width: calc(3 * 100px + 2 * 6px); gap: 6px; padding: 0 8px; }
  .gallery-item img { aspect-ratio: 1.2/1; }
  .services ul { grid-template-columns: repeat(2, 1fr); }
}

/* If viewport narrower than min columns, allow horizontal scroll for gallery */
@media (max-width: 360px) {
  .gallery-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(90px, 1fr);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 6px;
  }
  .gallery-grid::-webkit-scrollbar { height:8px; }
  .gallery-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius:6px; }
}

/* RESPONSIVE NAVBAR / MOBILE MENU */
/* At <=768px hide desktop links and show hamburger. Mobile nav will expand below navbar */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #0b0b0b, #0b0b0b);
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    z-index: 50;
    transform-origin: top;
    opacity: 0;
    transform: translateY(-6px) scaleY(.98);
    transition: transform .22s ease, opacity .18s ease;
  }
  .nav-links li { margin: 0; border-top: 1px solid rgba(255,255,255,0.03); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: 12px 16px; color: #E6E6E6; font-weight:600; }
  .nav-links a:hover { background: rgba(255,106,0,0.04); color:#FF6A00; }

  .mobile-menu { display:flex; z-index:60; }

  /* when navbar has class 'open', show mobile nav and animate burger */
  .navbar.open .nav-links { display:flex; opacity:1; transform: translateY(0) scaleY(1); }
  .navbar.open .mobile-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .navbar.open .mobile-menu span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .navbar.open .mobile-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .logo { height:40px; }
  .company-name { font-size: 1rem; }
  .navbar { padding: 0.6rem 0.8rem; }

  /* Mobile navbar fix: ensure hamburger is visible and clickable */
  /* make touch area larger and always on top */
  .mobile-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    padding: 6px !important;
    border-radius: 8px;
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    background: transparent !important;
  }

  /* strong contrast for the lines */
  .mobile-menu span {
    background: #ffffff !important;
    width: 22px !important;
    height: 2.5px !important;
    display: block;
    border-radius: 2px;
  }

  /* ensure navbar container is below the button so clicks reach it */
  .navbar { position: relative; z-index: 9998; }

  /* ensure hidden nav-links do not intercept clicks (when hidden) */
  .nav-links[aria-hidden="true"] { pointer-events: none; }
  .nav-links[aria-hidden="false"] { pointer-events: auto; }
}

/* very small screens tweak */
@media (max-width: 420px) {
  .nav-links a { padding-left: 12px; padding-right: 12px; font-size: 0.95rem; }
  .services ul { gap: .75rem; }
}

/* more compact layout for phones */
@media (max-width: 360px) {
  .hero { min-height: 200px; padding: 0.8rem 0; }
  .hero h1 { font-size: 1.1rem; }
  .hero p { font-size: .95rem; }
  .company-name { display:none; } /* save space if needed */
}

/* fallback slideshow block (if used outside hero) */
.hero-slideshow { max-width:1000px; margin:1.25rem auto; padding:0 1rem; display:block; pointer-events:auto; z-index:3; }
.slides { display:flex; transition:transform .5s ease; will-change:transform; }
.slide { min-width:100%; flex-shrink:0; }
.slide img { width:100%; height:320px; object-fit:cover; display:block; }

/* UTILITIES */
.center { text-align:center; }
.hidden { display:none !important; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* small accessibility focus */
a:focus { outline: 3px solid rgba(255,106,0,0.12); outline-offset: 2px; border-radius:4px; }
button:focus { outline: 3px solid rgba(255,106,0,0.12); outline-offset: 2px; border-radius:4px; }