/* Vynucení přetečení a nulování okrajů pro správné roztažení */
body, html {
  overflow-x: hidden !important;
}

/* ==========================================================================
   ODSTRAŇOVÁNÍ STYLŮ A NADPISU POUZE NA HOMEPAGE
   ========================================================================== */

/* 1. Skrytí nadpisu pouze na úvodní stránce */
.home .entry-title,
.home .ast-single-post-order,
.home header.entry-header {
  display: none !important;
}

/* 2. Zrušení bílého obalu, stínů a odsazení obsahu na úvodní stránce */
.home .site-content .ast-container,
.home #primary,
.home article.type-page,
.home article.hentry,
.home .ast-article-single {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* 3. Zajištění plné šířky pro vlastní Hero banner a karty na úvodní straně */
.home .entry-content {
  margin-top: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   1. RESET KONTENERA A Sjednocené cílení na BOXY (Astra)
   ========================================================================== */

/* Zrušení omezení šířky a reset marginů na úrovni kontejnerů Astry */
body.page #content .ast-container,
body.page #primary,
body.page main.site-main,
body.page .ast-plain-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Zapnutí Flexboxu na hlavní oblasti pro řízení pozice */
body.page main.site-main {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* SJEDNOCENÝ STYL PRO POLOPRŮHLEDNÝ BOX (Aplikuje se POUZE na podstránky, vynechá homepage) */
body.page:not(.home):not(.front-page) #primary article,
body.page:not(.home):not(.front-page) article.hentry,
body.page:not(.home):not(.front-page) .ast-article-single {
  background-color: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 35px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

/* --------------------------------------------------------------------------
   ŠÍŘKY BOXU (Aplikujeme na všechny možné struktury článku)
   -------------------------------------------------------------------------- */
body.page.jr-box-width-xsmall #primary article, body.page.jr-box-width-xsmall article.hentry { width: 300px !important; max-width: calc(100% - 20px) !important; }
body.page.jr-box-width-small  #primary article, body.page.jr-box-width-small  article.hentry { width: 450px !important; max-width: calc(100% - 20px) !important; }
body.page.jr-box-width-narrow #primary article, body.page.jr-box-width-narrow article.hentry { width: 600px !important; max-width: calc(100% - 20px) !important; }
body.page.jr-box-width-medium #primary article, body.page.jr-box-width-medium article.hentry { width: 850px !important; max-width: calc(100% - 20px) !important; }
body.page.jr-box-width-wide   #primary article, body.page.jr-box-width-wide   article.hentry { width: 1100px !important; max-width: calc(100% - 20px) !important; }
body.page.jr-box-width-full   #primary article, body.page.jr-box-width-full   article.hentry { width: calc(100% - 20px) !important; max-width: calc(100% - 20px) !important; }

/* --------------------------------------------------------------------------
   POZICOVÁNÍ BOXU (Přez Flexbox)
   -------------------------------------------------------------------------- */

/* Vpravo */
body.page.jr-box-align-right #primary article,
body.page.jr-box-align-right article.hentry {
  align-self: flex-end !important;
  margin-right: 30px !important;
  margin-left: auto !important;
  margin-bottom: 20px !important;
}

/* Vlevo */
body.page.jr-box-align-left #primary article,
body.page.jr-box-align-left article.hentry {
  align-self: flex-start !important;
  margin-left: 30px !important;
  margin-right: auto !important;
  margin-bottom: 20px !important;
}

/* Na střed */
body.page.jr-box-align-center #primary article,
body.page.jr-box-align-center article.hentry {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 20px !important;
}


/* ==========================================================================
   2. HEROBANNER, KARTY A OSTATNÍ VYBAVENÍ
   ========================================================================== */

/* RESET A ROZTAŽENÍ BANNERU */
.custom-hero-outer {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 700px;
  height: 80vh;
  background-image: url('../../uploads/2026/09/zebra1.jpg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 0; /* ZMĚNĚNO: Odstraněno odsazení 10%, které odsouvalo box od okraje */
  margin-bottom: 50px;
}

.custom-hero-box {
  width: 50%;
  max-width: 500px;
  min-height: 700px;
  height: 80vh;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.55);
  padding: 50px;
  border-radius: 8px 0 0 8px; /* ZMĚNĚNO: Zaoblení pouze na levé straně, vpravo rovné k okraji */
  box-shadow: -4px 0 15px rgba(0,0,0,0.1); /* ZMĚNĚNO: Stín směřuje doleva */
  box-sizing: border-box; /* PRIDÁNO: Zajišťuje správný výpočet šířky včetně paddingu */
}

.hero-title-1 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.35;
}

.hero-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-title-2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 25px;
}

.hero-btn {
  display: inline-block;
  background-color: #e67e22;
  color: #ffffff !important;
  padding: 10px 25px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  box-shadow: 0 4px 0 #b35400, 0 8px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.hero-btn:hover {
  background-color: #d35400;
  box-shadow: 0 2px 0 #904000, 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(2px);
}


/* KARTY SLUŽEB */
.custom-services-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
  clear: both;
}

.custom-services-grid {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 40px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.service-card {
  flex: 1 1 0% !important;
  min-width: 0 !important;

  /* Zachování původního rozložení */
  padding: 35px 20px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  box-sizing: border-box;
}

.card-svatby {
  background-image: url('../../uploads/2026/09/modre-pozadi.jpg');
  background-size: cover;
  background-position: center;
}

.card-catering {
  background-image: url('../../uploads/2026/09/modro-zlute-pozadi.jpg');
  background-size: cover;
  background-position: center;
}

.card-oslavy {
  background-image: url('../../uploads/2026/09/zlute-pozadi.jpg');
  background-size: cover;
  background-position: center;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #111;
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* TEXT SLUŽEB */
.service-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* TLAČÍTKA – BEZ PODTRŽENÍ */
.service-btn,
.service-btn:hover,
.service-btn:focus,
.service-btn:active {
  text-decoration: none !important;
}

/* KONTEJNER TLAČÍTEK */
.jr-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  width: 100%;
}

/* TLAČÍTKA */
.service-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;

  background-color: #ff7518;
  color: #ffffff !important;
  border-radius: 0 !important;

  font-weight: 400;
  font-size: 16px;
  text-align: center;

  transition: all 0.2s ease-in-out;

  box-shadow:
    0 8px 16px -2px rgba(0, 0, 0, 0.6),
    0 3px 6px rgba(0, 0, 0, 0.4);
}

.service-btn:hover {
  background-color: #e66000;
  transform: translateY(-2px);

  box-shadow:
    0 12px 20px -2px rgba(0, 0, 0, 0.7),
    0 5px 8px rgba(0, 0, 0, 0.5);
}

/* OBRÁZKY POD TLAČÍTKY */
.jr-image-container {
  text-align: center;
  width: 100%;
}

.jr-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* TABLETY */
@media (max-width: 900px) {
  .custom-services-grid {
    gap: 20px !important;
  }

  .service-card {
    padding: 30px 15px;
  }

  .service-title {
    font-size: 19px;
    letter-spacing: 1px;
  }
}

/* MOBILY */
@media (max-width: 768px) {
  .custom-services-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .service-card {
    flex: none !important;
    width: 100% !important;
    padding: 35px 20px;
  }
}

/* MENŠÍ MOBILY – TLAČÍTKA */
@media (max-width: 600px) {
  .jr-buttons-container {
    gap: 10px;
  }

  .service-btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    padding: 12px 10px;
    font-size: 0.9rem;
  }
}


/* ==========================================================================
   3. PRŮHLEDNÝ PODKLAD PRO BĚŽNÉ STRÁNKY (Bez dynamických boxů)
   ========================================================================== */

/* 1. Vynulování vnitřních obalů */
.page .site-content .entry-content,
.page #primary .main-content-inner,
.single-post .entry-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2. Zrušení pozadí u vnějšího kontejneru */
.page #primary,
.single-post #primary {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 3. Aplikace poloprůhledného pozadí POUZE na podstránkách (vynechá hlavní stranu) */
body.page:not(.home):not(.front-page) .site-content article,
body.page:not(.home):not(.front-page) .ast-article-single,
.single-post article,
.single-post .ast-article-single {
  background-color: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 35px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;
}

/* 4. Vypnutí mlžného podkladu a stínu POUZE u samotného článku na hlavní straně */
body.home article,
body.home .ast-article-single,
body.home .ast-article-post,
body.front-page article,
body.front-page .ast-article-single,
body.front-page .ast-article-post {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}


/* ==========================================================================
   4. PŘÍSPĚVKY, KONTAKT
   ========================================================================== */

/* PŘÍSPĚVKY / AKTUALITY (3 sloupce) */
.posts-section-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.posts-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 25px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.post-card {
  flex: 1 1 calc(33.333% - 17px) !important;
  max-width: calc(33.333% - 17px) !important;
  background-color: rgba(255, 255, 255, 0.55);
  padding: 25px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.post-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.post-card-title a {
  color: #e67e22 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.post-card-title a:hover { color: #d35400 !important; }

.post-meta { font-size: 12px; color: #888; margin-bottom: 12px; }
.post-excerpt { font-size: 14px; color: #555; line-height: 1.6; }

/* STYLY A STÍNY PRO OBRÁZKY */
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease !important;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(211, 84, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.single-post .entry-content img,
.single-post .post-has-thumb img {
  border-radius: 5px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.single-post .entry-content img:hover {
  box-shadow: 0 12px 28px rgba(211, 84, 0, 0.35) !important;
}

/* KONTAKTNÍ BANNER A FORMULÁŘ */
.contact-section-outer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 60px 20px 80px 20px;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

.site-footer, 
#colophon,
#primary,
.ast-plain-container,
.ast-page-builder-template {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-main-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
  font-family: inherit;
}

.contact-grid {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.contact-info-box,
.contact-form-box {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 35px 30px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.contact-info-box { font-size: 18px; line-height: 1.7; color: #333; }
.contact-info-box h3 { margin-top: 0; font-size: 24px; margin-bottom: 15px; color: #111; }
.contact-info-box p { margin: 0 0 15px 0; }

.contact-detail-line {
  margin-top: auto;
  padding-top: 20px;
}

.contact-form-box .custom-form-container {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.custom-contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.custom-contact-form .form-group { margin-bottom: 18px; }

.custom-contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222222;
  font-size: 14px;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="number"],
.custom-contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #ffffff;
}

.custom-contact-form textarea {
  height: 110px;
  resize: vertical;
}

.custom-contact-form .form-checkbox label {
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-contact-form .form-checkbox a { color: #e67e22; text-decoration: underline; }

.custom-contact-form button[type="submit"] {
  margin-top: auto; 
  align-self: flex-start;
}

.form-alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.form-alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Skrytí automatického náhledového obrázku */
.page .post-thumb-img-content,
.page .ast-single-post-featured-section,
.single-post .post-thumb-img-content,
.single-post .ast-single-post-featured-section,
.entry-header .post-thumb {
  display: none !important;
}

/* ==========================================================================
   PROMO CAROUSEL 
   ========================================================================== */

.custom-carousel-wrapper {
  position: relative;
  width: 100vw;
  max-width: none;

  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  padding: 0;
  margin-top: 40px;
  margin-bottom: 60px;

  box-sizing: border-box;
  transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out;
}

#promoCarousel,
.custom-carousel {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;

  min-height: 700px !important;
  height: 80vh !important;

  overflow: hidden !important;
  border-radius: 0 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}


#promoCarousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05); /* Mírné zvětšení pro jemný příjezd z dálky */
  
  /* Pomalý a plynulý přechod: 1.4 sekundy s elegantní křivkou */
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s ease-in-out,
              visibility 1.4s;
              
  will-change: transform, opacity; /* Hardware akcelerace pro plynulost */
}

#promoCarousel .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1); /* Plynule se usadí do normální velikosti */
  z-index: 2;
}

/* Předchozí snímek (který právě odjíždí/odchází do pozadí) */
#promoCarousel .carousel-slide.prev-slide {
  opacity: 0;
  visibility: visible;
  transform: scale(0.98); /* Lehce odjede dozadu */
  z-index: 1;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s ease-in-out,
              visibility 1.4s;
}

#promoCarousel .carousel-slide.active,
.custom-carousel .carousel-slide.active { display: block !important; }

#promoCarousel .slide-image-col,
.custom-carousel .slide-image-col {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  z-index: 1 !important;
}

#promoCarousel .slide-image-col img,
.custom-carousel .slide-image-col img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#promoCarousel .slide-content-col,
.custom-carousel .slide-content-col {
  position: absolute !important;

  top: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  right: 0 !important;

  width: 50% !important;
  max-width: 500px !important;
  height: 100% !important;

  z-index: 2 !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;

  text-align: center !important;

  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;

  padding: 50px !important;
  box-sizing: border-box !important;

  border-radius: 8px 0 0 8px !important;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1) !important;
}

#promoCarousel .slide-info-box,
.custom-carousel .slide-info-box {
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}


#promoCarousel .slide-title,
.custom-carousel .slide-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
  margin: 0 0 8px 0 !important;
  text-transform: uppercase !important;
}

#promoCarousel .slide-divider,
.custom-carousel .slide-divider {
  width: 50px !important;
  height: 2px !important;
  background-color: #e67e22 !important;
  margin: 0 auto 10px auto !important;
}

#promoCarousel .slide-text,
.custom-carousel .slide-text {
  font-size: 14px !important;
  color: #333333 !important;
  line-height: 1.5 !important;
  margin-bottom: 15px !important;
}

#promoCarousel .service-btn,
#promoCarousel .slide-btn,
.custom-carousel .service-btn,
.custom-carousel .slide-btn {
  display: inline-block !important;
  background-color: #e67e22 !important;
  color: #ffffff !important;
  padding: 9px 26px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
  transition: background-color 0.3s ease !important;
}

#promoCarousel .service-btn:hover,
#promoCarousel .slide-btn:hover,
.custom-carousel .service-btn:hover,
.custom-carousel .slide-btn:hover { background-color: #d35400 !important; }

#promoCarousel .carousel-arrow,
.custom-carousel .carousel-arrow {
  position: absolute !important;
  top: 40% !important;
  transform: translateY(-50%) !important;
  background: rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 18px !important;
  padding: 12px 16px !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  transition: background 0.3s ease !important;
  z-index: 10 !important;
}

#promoCarousel .carousel-arrow:hover,
.custom-carousel .carousel-arrow:hover { background: rgba(230, 126, 34, 0.9) !important; }

#promoCarousel .prev-arrow, .custom-carousel .prev-arrow { left: 15px !important; }
#promoCarousel .next-arrow, .custom-carousel .next-arrow { right: 15px !important; }

#promoCarousel .carousel-dots,
.custom-carousel .carousel-dots {
  position: absolute !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 8px !important;
  z-index: 10 !important;
}

#promoCarousel .dot,
.custom-carousel .dot {
  width: 10px !important;
  height: 10px !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}

#promoCarousel .dot.active,
.custom-carousel .dot.active { background-color: #e67e22 !important; }


/* ==========================================================================
   RESPONZIVITA PRO MOBILY (< 768px) - TEXT ZAJEDE POD OBRÁZEK
   ========================================================================== */
@media (max-width: 768px) {
  #promoCarousel,
  .custom-carousel {
    height: auto !important; /* Výška se přizpůsobí obsahu pod sebou */
    min-height: auto !important;
  }

  #promoCarousel .carousel-slide.active,
  .custom-carousel .carousel-slide.active {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Obrázek nahoře */
  #promoCarousel .slide-image-col,
  .custom-carousel .slide-image-col {
    position: relative !important;
    height: 250px !important; /* Pevná výška obrázku na mobilu */
    width: 100% !important;
  }

  /* Popisky s tlačítkem POD obrázkem */
  #promoCarousel .slide-content-col,
  .custom-carousel .slide-content-col {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 25px 20px !important;
    background: #ffffff !important; /* Na mobilu plné bílé pozadí */
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  #promoCarousel .slide-title,
  .custom-carousel .slide-title {
    font-size: 18px !important;
  }

  #promoCarousel .slide-text,
  .custom-carousel .slide-text {
    font-size: 14px !important;
  }

  #promoCarousel .carousel-arrow,
  .custom-carousel .carousel-arrow {
    top: 125px !important; /* Šipky vycentrované na výšku obrázku */
  }

  #promoCarousel .carousel-dots,
  .custom-carousel .carousel-dots {
    bottom: 10px !important;
  }
}

/* ==========================================================================
   5. VYJÍŽDĚCÍ KONTAKTNÍ PANEL (PŘÍMO NA HORNÍ HRANĚ FOOTERU)
   ========================================================================== */

.slide-contact-panel {
  position: relative; /* Ukotveno přímo nad footerem v toku stránky */
  width: 100%;
  z-index: 999;
  box-sizing: border-box;
  margin: 0; /* Zrušení jakýchkoliv mezer */
  padding: 0;
  transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 1.8s ease-in-out;
}

/* Obal pro tlačítko a čáru - přesně na horní hraně footeru */
.slide-contact-toggle-wrapper {
  position: relative;
  width: 100%;
  height: 0; /* Nulová výška, aby nevznikala žádná mezera */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Oddělovací čára 3px ležící přesně na hraně footeru */
.slide-contact-toggle-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #4caf50; /* Barva tlačítka */
  transform: translateY(-50%); /* Vycentrování čáry na hranu */
  z-index: 1;
}

/* Tlačítko rozkročené napůl do footeru a napůl nad něj */
.slide-contact-toggle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* Střed tlačítka přesně na hraně */
  z-index: 2; /* Nad čárou */
  width: 50px;
  height: 50px;
  background-color: #4caf50;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  outline: none;
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.slide-contact-toggle:hover { 
  background-color: #45a049; 
}

.slide-contact-panel.is-open .slide-contact-toggle .toggle-icon {
  transform: rotate(180deg);
  display: inline-block;
}

/* Obsah panelu rozvíraný NAHORU - spodkem přilepen přímo na čáru/footer */
.slide-contact-content {
  position: absolute;
  bottom: 0; /* Spodní hrana přilepená přímo na hranu footeru */
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 40px 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  
  /* Plynulé rozvírání směrem nahoru */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.35s ease, 
              visibility 0.35s;
  pointer-events: none;
}

/* Stav po otevření */
.slide-contact-panel.is-open .slide-contact-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-contact-content .contact-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.slide-contact-content .contact-grid {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.slide-contact-content .contact-info-box,
.slide-contact-content .contact-form-box {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-contact-content .contact-photo {
  max-width: 95%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 15px auto;
  display: block;
}

.slide-contact-content .contact-info-box h2,
.slide-contact-content .contact-info-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.slide-contact-content .contact-info-box p {
  text-align: center;
  margin-bottom: 0;
}


/* ==========================================================================
   6. RESPONSIVITA A MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
  .post-card {
    flex: 1 1 calc(50% - 13px) !important;
    max-width: calc(50% - 13px) !important;
  }
}

@media (max-width: 768px) {
  /* Vynucení roztažení boxu pro malé obrazovky s 10px mezerou */
  body.page article.hentry,
  article.hentry,
  .ast-article-single {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding: 20px 15px !important; /* Vnitřní odsazení pro text na mobilu */
    box-sizing: border-box !important;
  }

  #primary,
  .site-content .ast-container,
  #content .ast-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  .custom-hero-outer {
    justify-content: center;
    padding: 30px 15px;
    min-height: auto;
  }

  .custom-hero-box {
    max-width: 100%;
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.55);
  }

  .custom-services-grid,
  .posts-grid,
  .contact-grid,
  .slide-contact-content .contact-grid {
    flex-direction: column !important;
  }

  .page .site-content .ast-article-single {
    padding: 20px !important;
  }

  .slide-contact-content .contact-photo {
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .post-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .custom-hero-outer {
    min-height: 550px;
    padding: 15px 10px;
  }

  .custom-hero-box { padding: 25px 17px; }
  .hero-title-1 { font-size: 18px; }
  .hero-text { font-size: 14px; }
  .hero-title-2 { font-size: 16px; }
  .hero-btn { padding: 10px 22px; font-size: 14px; }
}

/* ==========================================================================
   ŠABLONA PRO PRODUKTOVÉ KARTY A TABULKY SLOŽENÍ (JR)
   ========================================================================== */

/* Hlavní obal sekce produktů */
.jr-products-wrapper {
  padding: 25px;
  margin: 15px 0;
}

.jr-products-wrapper h1.jr-section-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
  text-decoration: underline;
  font-size: 1.8rem;
  color: #222;
}

/* Grid/Flex pro karty produktů */
.jr-products-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center; /* Osamocenou kartu zarovná na střed řádku (pokud chcete vlevo, změňte na flex-start) */
}

/* Jednotlivá karta produktu */
.jr-product-card {
  flex: 1 1 300px; /* Automaticky přizpůsobí šířku, min. 300px */
  display: flex;
  flex-direction: column;  
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  min-width: 300px;                /* Na menších displejích se nezmenší pod 300px */
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.45);
}

.jr-product-card h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.jr-product-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #444;
}

/* Tabulka složení */
.jr-ingredients-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  margin-top: auto; /* Tlačí tabulku dolů, aby karty udržely stejnou výšku */
  
}

.jr-ingredients-table th,
.jr-ingredients-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1.2; /* Zajišťuje konzistentní výšku řádku */
}

/* Zajišťuje, že prázdné buňky nesplasknou */
.jr-ingredients-table td::before {
  content: "\00a0"; /* Nezalomitelná mezera (&nbsp;) */
  display: inline-block;
  width: 0;
  visibility: hidden;
}

.jr-ingredients-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  font-size: 0.95rem;
}

.jr-ingredients-table th:first-child,
.jr-ingredients-table td:first-child {
  text-align: left;
}

.jr-ingredients-table th:last-child,
.jr-ingredients-table td:last-child {
  text-align: center;
  width: 25%;
  font-weight: 500;
}

/* Zebra efekt pro řádky tabulky */
.jr-ingredients-table tbody tr:nth-child(even) {
  background-color: rgba(249, 249, 249, 0.6);
}

/* Patka s informacemi (alergeny, skladování atd.) */
.jr-product-info {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  margin-top: 10px;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
}

.jr-product-info p {
  margin: 3px 0;
}

/* Adaptace pro mobily */
@media (max-width: 768px) {
  .jr-products-wrapper {
    padding: 15px;
  }
  .jr-products-grid {
    flex-direction: column;
  }
}

/* ==========================================================================
   STYL ODKAZŮ V MENU A IKON ASTRY (#e67e22)
   ========================================================================== */

/* Zvětšení písma v hlavním menu */
.main-header-menu .menu-item > a {
    font-size: 14px !important; /* Změňte hodnotu podle potřeby */
    font-weight: 600;           /* Volitelné: tučnost písma (400, 500, 600) */
}

/* 1. DESKTOPOVÉ HLAVNÍ MENU */
/* Základní stav textu v menu */
.main-header-bar .main-header-menu a,
.ast-header-custom-item a {
  color: #e67e22 !important;
  transition: color 0.2s ease-in-out !important;
}

/* Hover a aktivní stránka v menu */
.main-header-bar .main-header-menu a:hover,
.main-header-bar .main-header-menu .current-menu-item > a,
.main-header-bar .main-header-menu .current_page_item > a,
.main-header-bar .main-header-menu li:hover > a {
  color: #d35400 !important;
}

/* Při kliknutí (Active) */
.main-header-bar .main-header-menu a:active {
  color: #b94a00 !important;
}

/* 2. MOBILNÍ MENU & OFF-CANVAS PANEL */
.ast-builder-menu-mobile .main-header-menu a,
.ast-mobile-popup-content a {
  color: #e67e22 !important;
}

.ast-builder-menu-mobile .main-header-menu a:hover,
.ast-builder-menu-mobile .main-header-menu .current-menu-item > a,
.ast-mobile-popup-content a:hover {
  color: #d35400 !important;
}

/* 3. MOBILNÍ BURGER IKONA (Tři čárky) */
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap .menu-toggle,
.mobile-menu-toggle-icon {
  color: #e67e22 !important;
  fill: #e67e22 !important;
}

.ast-mobile-menu-trigger-minimal:hover,
.ast-button-wrap .menu-toggle:hover {
  color: #d35400 !important;
  fill: #d35400 !important;
}

/* Vykreslení čárek uvnitř SVG ikony */
.ast-mobile-svg-m-bar,
.ast-mobile-header-wrap .mobile-menu-toggle-icon svg {
  fill: #e67e22 !important;
}

.ast-mobile-header-wrap .mobile-menu-toggle-icon:hover svg {
  fill: #d35400 !important;
}

/* 4. OSTATNÍ IKONY V HLAVIČCE (Lupa, Zavírací ikona X atd.) */
.ast-header-search .aria-hidden-inner svg,
.ast-search-icon svg,
.ast-mobile-popup-close svg {
  fill: #e67e22 !important;
  color: #e67e22 !important;
}

.ast-header-search .aria-hidden-inner:hover svg,
.ast-search-icon:hover svg,
.ast-mobile-popup-close:hover svg {
  fill: #d35400 !important;
  color: #d35400 !important;
}

/* Podtržení nebo aktivní indikátory v menu, pokud je Astra používá */
.ast-theme-transparent-header .main-header-menu .current-menu-item > a::before,
.main-header-menu .current-menu-item > a::before {
  background-color: #d35400 !important;
}

/* ==========================================================================
   TLAČÍTKO POSUN NAHORU & MODRÁ LINKA V DROPDOWN MENU
   ========================================================================== */

/* 1. HORRNÍ LINKA NAD POHOŘENÝM DROPDOWN MENU (Rozbalovací nabídkou) */
.main-header-menu .sub-menu {
  border-top-color: #e67e22 !important; /* Přepíše modrou horní linku na oranžovou */
}

/* Pokud má rozbalovací menu ohraničení nebo stín, doladíme ho v glassmorphism stylu */
.main-header-menu .sub-menu a {
  color: #222222 !important; /* Barva textu v podnabídce */
}

.main-header-menu .sub-menu a:hover {
  color: #d35400 !important; /* Barva textu v podnabídce při najetí */
  background-color: rgba(230, 126, 34, 0.08) !important; /* Jemný oranžový podkres */
}


/* 2. TLAČÍTKO PRO POSUN NAHORU (Scroll to Top) */
#ast-scroll-top {
  background-color: #e67e22 !important; /* Pozadí tlačítka */
  color: #ffffff !important;             /* Barva šipky */
  border-radius: 50% !important;         /* Zkulacení tlačítka */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

/* Ikona šipky uvnitř tlačítka */
#ast-scroll-top .ast-icon svg,
#ast-scroll-top svg {
  fill: #ffffff !important;
}

/* Stav při najetí myší (Hover) */
#ast-scroll-top:hover {
  background-color: #d35400 !important; /* Tmavší oranžová při najetí */
  color: #ffffff !important;
  transform: translateY(-3px) !important; /* Jemné povyskočení nahoru */
}

/* /* ==========================================================================
   CATEGORY ARTICLES - FINÁLNÍ SEŘAZENÍ ZLEVA + STEJNÁ VÝŠKA
   ========================================================================== */

/* Hlavní mřížka - Zarovnání striktně vlevo */
.raba-articles-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important; /* Vždy řadit od levé strany */
  align-items: stretch !important;        /* Stejná výška karet v řádku */
  gap: 20px !important;
  margin: 25px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Karta článku - Pevná šířka (3 na řádek) & Plná výška */
.raba-article-card {
  flex: 0 0 calc(33.333% - 13.33px) !important; /* Přesně 1/3 šířky s mezerami */
  max-width: calc(33.333% - 13.33px) !important;
  box-sizing: border-box !important;
  
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
  
  display: flex !important;
  flex-direction: column !important; /* Prvky v kartě pod sebou */
  height: 100% !important;           /* Využije plnou výšku containeru */
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.raba-article-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 25px rgba(230, 126, 34, 0.2) !important;
}

/* Obrázek článku - Pevná výška nahoře */
.raba-article-image {
  width: 100% !important;
  height: 180px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.raba-article-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.raba-article-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Obsah karty - Pružné roztažení */
.raba-article-content {
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important; /* Zaplní zbytek karty dolů */
  box-sizing: border-box !important;
}

.raba-article-title {
  margin: 0 0 10px 0 !important;
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

.raba-article-title a {
  color: #222222 !important;
  text-decoration: none !important;
}

.raba-article-excerpt {
  font-size: 0.9rem !important;
  color: #555555 !important;
  line-height: 1.5 !important;
  margin-bottom: 15px !important;
  flex-grow: 1 !important; /* Roztáhne text tak, aby tlačítko kleslo úplně dolů */
}

/* Tlačítko Číst více - Ukotvení úplně dole */
.raba-article-btn {
  display: inline-block !important;
  align-self: flex-start !important;
  margin-top: auto !important; /* Zarovná tlačítko na dno karty */
  padding: 8px 16px !important;
  background-color: #e67e22 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  border-radius: 6px !important;
}

.raba-article-btn:hover {
  background-color: #d35400 !important;
  color: #ffffff !important;
}

/* RESPONZIVITA */
@media (max-width: 900px) {
  .raba-article-card {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
  }
}

@media (max-width: 600px) {
  .raba-article-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   FOTOGALERIE MODULA - VYLADĚNÍ STYLŮ
   ========================================================================== */

/* Plynulý zoom efekt při najetí kurzoru na fotku */
.modula .modula-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s ease !important;
}

.modula .modula-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.modula .modula-item img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modula .modula-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   MŘÍŽKA ALBUMŮ PRO 3 MENŠÍ / KOMPAKTNÍ OKNA
   ========================================================================== */

.albums-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px !important; /* Menší mezera mezi okny */
  max-width: 900px !important; /* Omezení šířky celé mřížky pro menší okna */
  margin: 30px auto !important; /* Vycentrování mřížky na střed stránky */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Zrušení vlivu odstavců z Klasického editoru */
.albums-grid > p {
  display: contents !important;
}

.albums-grid .album-item {
  width: 100% !important;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px !important; /* Menší vnitřní odsazení */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box !important;
  text-align: center;
  overflow: hidden;
  margin: 0 !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s ease;
}

.albums-grid .album-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.albums-grid .album-item a {
  display: block !important;
  width: 100% !important;
}

.albums-grid .album-item img {
  width: 100% !important;
  max-width: 100% !important;
  height: 150px !important; /* Kompaktnější výška obrázku */
  object-fit: cover !important;
  border-radius: 6px;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.albums-grid .album-item:hover img {
  transform: scale(1.05) !important;
}

.albums-grid .album-item h3 {
  margin: 10px 0 4px 0 !important;
  font-size: 1.05rem !important; /* Mírně menší písmo pro kompaktní vzhled */
}

.albums-grid .album-item h3 a {
  text-decoration: none !important;
  color: #333333 !important;
  transition: color 0.3s ease;
}

.albums-grid .album-item h3 a:hover {
  color: #4caf50 !important;
}

/* Responzivita pro tablety a mobily */
@media (max-width: 992px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 600px !important;
  }
}

@media (max-width: 600px) {
  .albums-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  
  .albums-grid .album-item img {
    height: 180px !important; /* Na mobilu trošku vyšší pro lepší čitelnost fotky */
  }
}