/* Inspired by the Chique WordPress theme */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 400 18px/1.75 'Merriweather', serif;
  color: #666;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Layout: sidebar + main */
.site {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 270px;
  min-width: 270px;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar .logo {
  display: block;
  padding: 0 25px 30px;
}
.sidebar .logo img {
  max-width: 200px;
}
.sidebar nav {
  flex: 1;
}
.sidebar nav ul {
  padding: 0;
}
.sidebar nav > ul > li {
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.sidebar nav > ul > li > a {
  flex: 1;
  padding: 14px 15px 14px 35px;
  font: 600 18px/1.75 'Titillium Web', sans-serif;
  color: #000;
  transition: color 0.2s;
}
.sidebar nav a:hover {
  color: #ff5722;
}
.sidebar nav .toggle-sub {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  font-size: 14px;
  color: #999;
  transition: transform 0.2s;
}
.sidebar nav li.open .toggle-sub {
  transform: rotate(90deg);
}
.sidebar nav .submenu {
  display: none;
  width: 100%;
}
.sidebar nav li.open .submenu {
  display: block;
}
.sidebar nav .submenu a {
  display: block;
  padding: 10px 35px 10px 50px;
  font: 400 15px/1.75 'Titillium Web', sans-serif;
  color: #666;
}
.sidebar nav .submenu a:hover {
  color: #ff5722;
}
.sidebar nav a.active {
  color: #ff5722;
}

/* Main content area */
.main {
  flex: 1;
  margin-left: 270px;
}

/* Hero section (homepage) */
.hero {
  position: relative;
  height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.video-credit {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 2;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.video-credit:hover {
  color: rgba(255, 255, 255, 0.7);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.hero-content h1 {
  font: 700 56px/1.33 'Titillium Web', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}
.hero-content .cta {
  display: inline-block;
  padding: 14px 54px;
  font: 700 20px/1.75 'Roboto Condensed', sans-serif;
  color: #fff;
  background: #ff5722;
  border-radius: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s;
}
.hero-content .cta:hover {
  background: #e64a19;
}
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  z-index: 1;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.scroll-indicator:hover {
  opacity: 1;
}

/* Page header (subpages) */
.page-header {
  position: relative;
  height: 45vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-header .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-header .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.page-header h1 {
  position: relative;
  z-index: 1;
  font: 700 42px/1.33 'Titillium Web', sans-serif;
  color: #fff;
  text-transform: uppercase;
}

/* Content area */
.content {
  padding: 60px 50px;
  max-width: 1200px;
}

/* Contact page */
.contact-info {
  padding: 30px 50px;
}
.contact-info p {
  margin-bottom: 8px;
  font-size: 18px;
}
.contact-info strong {
  color: #333;
}
.contact-info a {
  color: #ff5722;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* Category cards (Ukázky práce) */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 60px 50px;
  max-width: 1200px;
}
.category-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.category-card:hover img {
  transform: scale(1.05);
}
.category-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  min-height: 50%;
}
.category-card .card-label {
  display: inline-block;
  padding: 8px 30px;
  font: 700 16px/1.75 'Roboto Condensed', sans-serif;
  color: #fff;
  background: rgba(255, 87, 34, 0.9);
  border-radius: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}
.category-card:hover .card-label {
  background: #ff5722;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 40px 50px;
  max-width: 1400px;
}
.gallery a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
}
.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}
.gallery a:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
body.lightbox-open .sidebar,
body.lightbox-open .menu-toggle {
  display: none;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 20px;
  z-index: 10000;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font: 400 14px/1.5 'Merriweather', serif;
  opacity: 0.85;
  max-width: 70vw;
  text-align: center;
}
.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font: 400 13px/1.5 'Merriweather', serif;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background: #f2f5f6;
  padding: 15px 50px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 200;
  background: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 24px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  }
  .main { margin-left: 0; }
  .hero-content h1 { font-size: 32px; }
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 6px;
  }
  .content, .contact-info { padding: 30px 20px; }
  .page-header h1 { font-size: 28px; }
}
@media (max-width: 480px) {
  .category-cards {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
