@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", system-ui, sans-serif;
  background: #f8f6f2;
  color: #2d2d2d;
  font-size: clamp(1.05rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ────────────────────────────────────────────────
   Header
──────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: 80px;
  background: #f8f6f2;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  padding-top: 10px;
}

@media (max-width: 1023px) {
  .logo { padding-top: 4px; }
}

@media (max-width: 767px) {
  .logo { padding-top: 2px; }
}

.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: 2.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.25s;
  padding: 0.4rem 0;
}

.main-nav a:hover {
  color: #a6321f;
  border-bottom: 2px solid #a6321f;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: #333;
  transition: all 0.3s;
}

/* ────────────────────────────────────────────────
   Úvod / Slider
──────────────────────────────────────────────── */
#uvod {
  margin-top: 0;
  padding-top: 0;
  width: 100vw;
  position: relative;
  left: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow-x: hidden;
  margin-bottom: clamp(80px, 12vw, 180px);
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin-top: -80px;
  padding-top: 80px;
  overflow: hidden;
  transition: height 0.8s ease-out;
}

.mySlides img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

body.scrolled .slideshow-container {
  height: 70vh;
  min-height: 500px;
  margin-top: -80px;
  padding-top: 80px;
}

@media (max-width: 767px) {
  body.scrolled .slideshow-container {
    height: 60vh;
    min-height: 400px;
  }
}

.mySlides {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.mySlides.active { opacity: 1; }

.slider-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45));
}

.slider-content h2 {
  color: white;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  max-width: 900px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.7);
  margin: 0;
}

/* Tečky pod sliderem */
.dots-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.8);
}

.dot.active,
.dot:hover {
  background: #ffffff;
  transform: scale(1.3);
  border-color: #a6321f;
}

/* ────────────────────────────────────────────────
   Společné wrappery a sekce
──────────────────────────────────────────────── */
.wrapper,
section {
  padding-block: 10px 20px;
  padding-inline: clamp(1rem, 5vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

#uvod.wrapper {
  max-width: none;
  padding-inline: 0;
  margin: 0;
  width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  .wrapper,
  section {
    padding-inline: clamp(1rem, 4vw, 2rem);
  }
}

.container {
  padding: 0 clamp(1rem, 5vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.major h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111;
}

.major p {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
}

/* ────────────────────────────────────────────────
   Produkty + galerie
──────────────────────────────────────────────── */
.produkty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}

@media (max-width: 767px) {
  .produkty-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 1.5rem;
  }
}

.image.fit.captioned {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  width: 100%;
}

.image.fit.captioned {
  aspect-ratio: 4 / 3;            
  height: auto;                  
}

.image.fit.captioned:hover {
  transform: translateY(-8px);
}

.image.fit.captioned img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.image.fit.captioned:hover img { 
  transform: scale(1.05); }

.image.fit.captioned h3 {
  position: absolute;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 0.8rem;
  background: rgba(0,0,0,0.65);
  color: white;
  border-radius: 8px;
  font-size: 1.35rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.preview-toggle {
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
  padding: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-grid.open {
  max-height: 6000px; 
  opacity: 1;
  padding: 1.5rem;
}

.gallery-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f0f0f0;
}

.gallery-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.12);
}

.close-gallery {
  padding: 0.5rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;                 /* méně tučný text */
  background: transparent;
  color: #555;                      /* šedý text */
  border: 1px solid #ccc;
  border-radius: 50px;
  box-shadow: none;
  transition: all 0.25s ease;
}

.close-gallery:hover {
  background: #f0f0f0;
  color: #333;
  border-color: #aaa;
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────
   Příběh
──────────────────────────────────────────────── */
.story-hero {
  position: relative;
  margin: 3rem 0 5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  height: 420px;
}

.story-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

.hero-overlay h3 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.hero-overlay p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.story-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.highlight-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.highlight-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.highlight-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(166, 50, 31, 0.65);
  color: white;
  padding: 1.5rem 1.2rem;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.highlight-caption h4 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-caption p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 767px) {
  .story-highlights { gap: 2.5rem; }
  .highlight-photo img { height: 280px; }
}

/* ────────────────────────────────────────────────
   Kontakt
──────────────────────────────────────────────── */
.kontakt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem 1.8rem;
  margin-top: 2.5rem;
  justify-items: center;
}

@media (max-width: 767px) {
  .kontakt-row {
    gap: 2rem 1.2rem;
    margin-top: 1.8rem;
  }
}

.kontakt-box {
  text-align: center;
  padding: 1rem 0.8rem;
  max-width: 260px;
  transition: transform 0.25s ease;
}

.kontakt-box:hover {
  transform: translateY(-6px);
}

.kontakt-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.kontakt-box h3,
.kontakt-box h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.6rem 0;
  color: #222;
}

.kontakt-box p {
  margin: 0.4rem 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.kontakt-box a {
  color: #a6321f;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kontakt-box a:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* ────────────────────────────────────────────────
   Foto divider
──────────────────────────────────────────────── */
.section-photo-divider {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 190px 0;
  position: relative;
}

.section-photo-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.7) contrast(1.1);
}

/* ────────────────────────────────────────────────
   Footer
──────────────────────────────────────────────── */
#footer {
  background: #111;
  color: #aaa;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 0.25s ease;
}

.footer-right a img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease;
}

.footer-right a:hover img {
  transform: scale(1.25);
}

@media (max-width: 767px) {
  .footer-container {
    flex-direction: column;
    gap: 1.8rem;
  }
  .footer-right {
    gap: 3rem;
    justify-content: center;
    width: 100%;
  }
}

.footer-author {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-author:hover,
.footer-author:focus {
  color: #d32f2f;
  text-decoration: underline;
}

/* ────────────────────────────────────────────────
   Responzivita + utility
──────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #f8f6f2;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul { flex-direction: column; gap: 1.4rem; }
}

@media (max-width: 767px) {
  body { padding-top: 80px; }
  #kontakt { scroll-margin-top: 180px; }
}

/* Scroll offset pro smooth scroll */
#uvod, #produkty, #pribeh, #kontakt {
  scroll-margin-top: 100px;
}

@media (max-width: 767px) {
  #uvod, #produkty, #pribeh, #kontakt {
    scroll-margin-top: 140px;
  }
}

/* Zabránění horizontálnímu scrollbaru */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Fade-up animace */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Poslední řádek gridu – zabráníme natahování položek */
.gallery-grid {
  align-content: start;           /* položky zůstanou nahoře, ne stretch */
}

/* Nebo ještě silnější – explicitně zakážeme stretch na obrázcích */
.gallery-grid a {
  align-self: start;              /* ← klíčové – položky se nenatáhnou na výšku řádku */
  height: auto;                   /* jistota */
}

/* Tlačítko samo o sobě – zajistíme, že neovlivní grid */
.close-gallery {
  grid-column: 1 / -1;            /* zabere celou šířku, ale mimo flow položek */
  margin-top: 2rem;
  justify-self: center;
}

/* Aktivní sekce v menu */
.main-nav a.active,
.main-nav a[href$="#uvod"]:hover { color: #a6321f; border-bottom: 3px solid #a6321f; }

/* Scroll offset pro smooth scroll – větší rezerva kvůli headeru + sticky */
#uvod, #produkty, #pribeh, #kontakt {
  scroll-margin-top: 140px;     /* bylo 100px → zvýšit na 140–160px */
}

@media (max-width: 767px) {
  #uvod, #produkty, #pribeh, #kontakt {
    scroll-margin-top: 180px;   /* na mobilu často víc zabere */
  }
}

#kontakt {
  padding-bottom: 180px;          /* nebo 140–180px podle chuti */
}

@media (max-width: 767px) {
  #kontakt {
    padding-bottom: 200px;        /* na mobilu trochu méně, aby to nebylo přehnané */
  }
}

/* Rezerva pro smooth scroll – aby se sekce nezachytávala pod header */
#uvod,
#produkty,
#pribeh,
#kontakt {
  scroll-margin-top: 100px;          
}

@media (max-width: 767px) {
  #uvod,
  #produkty,
  #pribeh,
  #kontakt {
    scroll-margin-top: 140px;      
  }
}.cener {
}
.center {
}
