/* LaraDekor — Chimera-inspired Helix skin */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --ld-brand: #953352;
  --ld-brand-dark: #7a2942;
  --ld-brand-soft: #f7eef2;
  --ld-ink: #333333;
  --ld-footer: #2b2b2b;
  --ld-font: "Source Sans 3", "Segoe UI", sans-serif;
  --ld-script: "Great Vibes", cursive;
}

body {
  font-family: var(--ld-font);
  color: var(--ld-ink);
}

/* Header / brand */
#sp-header,
.sp-header {
  background: var(--ld-brand) !important;
  border: 0 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  overflow: visible;
}

#sp-header .container,
#sp-header .container-inner,
#sp-header .container-inner > .row {
  height: 100%;
  min-height: 76px;
}

#sp-logo {
  display: flex !important;
  align-items: center;
  height: 100%;
}

#sp-logo .sp-column {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  height: auto;
  max-height: 68px;
  padding: 0 !important;
  margin: 0;
  line-height: 1;
}

/* Helix renders: <span class="logo"><a/></span><span class="logo-slogan"/> */
#sp-header .logo {
  display: block;
  padding: 0 !important;
  margin: 0;
  line-height: 1;
  height: auto !important;
  min-height: 0 !important;
}

#sp-header .logo-text,
#sp-header .logo a,
#sp-header .logo-text a {
  color: #fff !important;
  font-family: var(--ld-script);
  font-size: 1.45rem;
  line-height: 1.05 !important;
  font-weight: 400;
  letter-spacing: 0.4px;
  display: block;
  margin: 0;
  padding: 0;
}

#sp-header .logo-slogan {
  display: block;
  color: #f0d5de !important;
  font-family: var(--ld-font);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > .sp-menu-separator,
#sp-header .sp-megamenu-parent > li > span,
#sp-header .menu-item > a,
#sp-header .burger-icon,
#sp-header .burger-menu {
  color: #fff !important;
}

#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.active > .sp-menu-separator,
#sp-header .sp-megamenu-parent > li.active > span,
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li:hover > .sp-menu-separator,
#sp-header .sp-megamenu-parent > li:hover > span {
  color: var(--ld-brand-soft) !important;
}

/* Burger: mobile only, on the right */
@media (min-width: 992px) {
  #offcanvas-toggler,
  .offcanvas-toggler-secondary,
  .offcanvas-toggler-left,
  .offcanvas-toggler-right {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  #offcanvas-toggler.offcanvas-toggler-right,
  #sp-menu #offcanvas-toggler {
    display: flex !important;
    margin-left: 0.75rem;
  }
}

a {
  color: var(--ld-brand);
}
a:hover {
  color: var(--ld-brand-dark);
}

.btn-primary,
.sppb-btn-primary,
button.btn-primary {
  background-color: var(--ld-brand) !important;
  border-color: var(--ld-brand) !important;
}
.btn-primary:hover,
.sppb-btn-primary:hover {
  background-color: var(--ld-brand-dark) !important;
  border-color: var(--ld-brand-dark) !important;
}

/* Hero slideshow (RokSprocket replacement) */
.ld-hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 48vw, 520px);
  overflow: hidden;
  background: #1a1a1a;
}

.ld-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease;
}

.ld-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.ld-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(180deg, rgba(149, 51, 82, 0.15) 0%, rgba(20, 10, 14, 0.55) 100%);
  pointer-events: none;
}

.ld-hero-caption {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.ld-hero-brand {
  display: block;
  font-family: var(--ld-script);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
}

.ld-hero-tag {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* Services cards — equal-size pastel tiles */
.ld-row-services .sp-module,
.ld-row-services .module {
  height: 100%;
}

.ld-row-services table,
.ld-row-services table tbody,
.ld-row-services table tr {
  display: block;
  width: 100%;
}

.ld-row-services table {
  border-collapse: separate;
  border-spacing: 0;
}

/* Hide spacer row — gap via margin on tiles */
.ld-row-services table tr:nth-child(2) {
  display: none;
}

.ld-row-services table td {
  padding: 0 !important;
  border-radius: 4px;
}

.ld-row-services table td[style*="background-color"] {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 7.5rem;
  min-height: 7.5rem;
  max-height: 7.5rem;
  margin-bottom: 12px;
  padding: 0.75rem 0.9rem !important;
  text-align: center;
  overflow: hidden;
}

.ld-row-services table tr:last-child td[style*="background-color"] {
  margin-bottom: 0;
}

.ld-row-services table td[style*="background-color"] p {
  margin: 0;
  width: 100%;
}

.ld-row-services table td[style*="background-color"] br {
  display: none;
}

.ld-row-services a,
.ld-row-services a span {
  color: var(--ld-ink);
  text-decoration: none;
  font-weight: 700;
  display: inline;
  line-height: 1.3;
  font-size: clamp(0.9rem, 1.45vw, 1.1rem) !important;
}
.ld-row-services a:hover,
.ld-row-services a:hover span {
  color: var(--ld-brand);
}

@media (max-width: 767px) {
  .ld-row-services table td[style*="background-color"] {
    height: 5.75rem;
    min-height: 5.75rem;
    max-height: 5.75rem;
  }
}

/* CTA */
.ld-row-cta {
  background: linear-gradient(180deg, #fff 0%, var(--ld-brand-soft) 100%);
}

.ld-row-cta .sp-module,
.ld-row-cta .moduletable,
.ld-row-cta p {
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ld-ink);
  max-width: 48rem;
  margin-inline: auto;
}

/* Circular feature images — keep perfect circles at all widths */
.ld-row-circles {
  text-align: center;
}

.ld-row-circles .sp-module,
.ld-row-circles .moduletable {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ld-row-circles p {
  margin: 0;
}

.ld-row-circles img.img-circle,
.ld-row-circles img {
  display: block;
  width: min(250px, 100%);
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-inline: auto;
  border: 5px solid var(--ld-brand) !important;
  box-shadow: 0 8px 24px rgba(149, 51, 82, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ld-row-circles img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(149, 51, 82, 0.28);
}

@media (max-width: 575.98px) {
  .ld-row-circles img.img-circle,
  .ld-row-circles img {
    width: min(220px, 72vw);
  }
}

/* Partners — fluid 4-col grid, no overflow/overlap */
.ld-row-partners,
#sp-position1 {
  background: #fff;
  text-align: center;
}

.ld-row-partners .sp-module-title,
.ld-partners .sp-module-title,
.ld-row-partners h3,
#sp-position1 .sp-module-title {
  text-align: center;
  margin: 0 0 1.5rem;
  font-weight: 600;
  color: var(--ld-ink);
}

.ld-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.75rem 1rem;
  box-sizing: border-box;
}

.ld-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0.4rem;
  box-sizing: border-box;
}

.ld-partner img,
.ld-row-partners .ld-partners-grid img,
#sp-position1 .ld-partners-grid img,
.item-page .ld-partners-grid img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.88;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.ld-partner img:hover,
.ld-row-partners .ld-partners-grid img:hover,
#sp-position1 .ld-partners-grid img:hover,
.item-page .ld-partners-grid img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}

@media (max-width: 991.98px) {
  .ld-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.9rem;
    max-width: 780px;
  }
}

@media (max-width: 575.98px) {
  .ld-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.7rem;
    max-width: 420px;
    padding: 0 0.5rem 0.85rem;
  }
  .ld-partner {
    padding: 0.25rem;
  }
}

/* Phoca Gallery — hide RSS + Powered by */
.com_phocagallery .pg-top-icons,
.com_phocagallery a[href*="format=feed"],
.com_phocagallery a[title="RSS"],
#phocagallery a[href*="phoca.cz/phocagallery"],
#phocagallery > div:last-child:has(a[href*="phoca.cz"]) {
  display: none !important;
}

/* PhotoSwipe: Helix/Bootstrap img{max-width:100%;height:auto} breaks lightbox */
.pswp img,
.pswp__img {
  max-width: none !important;
  max-height: none !important;
}

.pswp {
  z-index: 10050 !important;
}

.pswp__bg {
  background: #000 !important;
}

/* Fallback: Phoca detail view (tmpl=component) if opened directly */
body.com_phocagallery.view-detail,
body.view-detail {
  background: #111 !important;
  margin: 0;
  padding: 0;
}

.pg-detail-item-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #111;
  color: #fff;
}

.pg-detail-item-image-box {
  width: 100%;
  max-width: min(1100px, 96vw);
  text-align: center;
  line-height: 0;
}

.pg-detail-item-image-box a {
  display: inline-block;
  margin: 0 auto !important;
}

.pg-detail-image,
.pg-detail-item-image-box img {
  display: block !important;
  max-width: 100% !important;
  max-height: 78vh !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: none !important;
  object-fit: contain;
}

.pg-detail-nav-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: min(1100px, 96vw);
  margin-top: 1.25rem;
}

.pg-detail-nav-box .ph-left,
.pg-detail-nav-box .ph-right {
  float: none !important;
}

.pg-detail-nav-box .btn,
.pg-detail-nav-box .btn-primary,
a.ph-image-navigation {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.pg-detail-nav-box .btn:hover,
a.ph-image-navigation:hover {
  background: var(--ld-brand, #953352) !important;
  border-color: var(--ld-brand, #953352) !important;
  color: #fff !important;
}

.pg-detail-nav-box svg.ph-si {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Phoca Gallery — 5-column category & image grids */
.com_phocagallery .pg-categories-items-box,
.com_phocagallery .pg-category-items-box {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
  align-items: start;
  justify-items: stretch;
  width: 100%;
  margin: 0.5rem 0 1.5rem;
}

.com_phocagallery .pg-category-box,
.com_phocagallery .pg-item-box {
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.com_phocagallery .pg-category-box-image,
.com_phocagallery .pg-item-box-image {
  width: 100%;
  line-height: 0;
}

.com_phocagallery .pg-category-box-image a,
.com_phocagallery .pg-item-box-image a {
  display: block;
}

.com_phocagallery .pg-category-box-image img,
.com_phocagallery .pg-item-box-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.com_phocagallery .pg-category-box:hover .pg-category-box-image img,
.com_phocagallery .pg-item-box:hover .pg-item-box-image img {
  transform: scale(1.02);
  opacity: 0.95;
}

.com_phocagallery .pg-category-box-info,
.com_phocagallery .pg-item-box-info {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.15rem 0;
  text-align: center;
}

.com_phocagallery .pg-category-box-title,
.com_phocagallery .pg-item-box-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.com_phocagallery .pg-category-box-title a,
.com_phocagallery .pg-item-box-title a {
  color: var(--ld-brand, #953352);
  text-decoration: none;
}

.com_phocagallery .pg-category-box-title a:hover,
.com_phocagallery .pg-item-box-title a:hover {
  color: var(--ld-ink, #222);
  text-decoration: underline;
}

.com_phocagallery .pg-category-box-count {
  color: #777;
  font-weight: 500;
}

.com_phocagallery .pg-category-box-title svg.ph-si,
.com_phocagallery .pg-item-box-title svg.ph-si {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  color: var(--ld-brand, #953352);
  fill: currentColor;
}

@media (max-width: 991px) {
  .com_phocagallery .pg-categories-items-box,
  .com_phocagallery .pg-category-items-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem 0.85rem;
  }
}

@media (max-width: 575px) {
  .com_phocagallery .pg-categories-items-box,
  .com_phocagallery .pg-category-items-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.65rem;
  }

  .com_phocagallery .pg-category-box-title,
  .com_phocagallery .pg-item-box-title {
    font-size: 0.8rem;
  }
}

/* Hide empty featured/component gap on home when little content */
.ld-row-component:has(.blog-featured:empty),
.ld-row-component .blog-featured:empty {
  display: none;
}

/* Footer */
#sp-footer,
.ld-row-footer {
  background: var(--ld-footer) !important;
  color: #fff;
}

#sp-footer .row {
  display: flex;
  justify-content: center;
  align-items: center;
}

#sp-footer #sp-footer1 {
  display: none;
}

#sp-footer #sp-footer2 {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  text-align: center;
}

#sp-footer a,
.ld-row-footer a {
  color: #ddd;
}
#sp-footer a:hover,
.ld-row-footer a:hover {
  color: #fff;
}

#sp-footer .sp-module,
#sp-footer .moduletable,
#sp-footer p,
.ld-row-footer .sp-module,
.ld-row-footer .moduletable,
.ld-row-footer p {
  color: #fff;
  text-align: center;
  margin: 0;
}

/* Offcanvas burger on brand header */
.offcanvas-toggler,
.burger-icon span,
#offcanvas-toggler {
  color: #fff !important;
}

/* Soft motion */
@media (prefers-reduced-motion: no-preference) {
  .ld-row-services .sp-module,
  .ld-row-circles .sp-module {
    animation: ld-fade-up 0.7s ease both;
  }
  .ld-row-services .sp-column:nth-child(2) .sp-module { animation-delay: 0.08s; }
  .ld-row-services .sp-column:nth-child(3) .sp-module { animation-delay: 0.16s; }
}

@keyframes ld-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  #sp-header .logo-text,
  #sp-header .logo-text a,
  #sp-header .logo a {
    font-size: 1.55rem;
  }
  #sp-header .logo-slogan {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
  .ld-hero-slider {
    min-height: 260px;
  }
}
