/* EXCELENT – společné drobné úpravy nad Tailwindem */
body { font-family: Inter, sans-serif; }
h1, h2, h3, .font-serif { font-family: 'Playfair Display', serif; }

.logo-e {
  background: #86A136;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: white;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

/* Slideshow */
.slide { display:none; animation: fade 1.2s ease-in-out; }
.slide.active { display:block; }
@keyframes fade { from { opacity:.35; } to { opacity:1; } }

/* Mobile accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease-out;
}
.accordion-item.active .accordion-content { max-height: 6000px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #86A136; border-radius: 4px; }

/* Map */
.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  filter: grayscale(.2);
}

/* Small animation */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(10px); }
  to { opacity:1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp .35s ease-out; }

/* Form inputs (kontakty + objednávky)
   Použití: class="form-input" na input/textarea/select */
.form-input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: #f9fafb; /* gray-50 */
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 0.75rem;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
  font-size: 0.95rem;
}
.form-input:focus {
  background: #ffffff;
  border-color: #86A136;
  box-shadow: 0 0 0 4px rgba(134, 161, 54, 0.20);
}
textarea.form-input { resize: vertical; }

/* Užitečné: zrušení default markeru u <summary> */
summary::-webkit-details-marker { display: none; }

/* Active navigation highlight */
.nav-active {
  color: #86A136 !important;
  font-weight: 800 !important;
  border-bottom: 2px solid rgba(134, 161, 54, 0.95);
  padding-bottom: 2px;
}

/* Mobile floating quick actions (telefon + objednávka převozu) */
.ex-floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ex-fab {
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #86A136;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 59, 40, 0.28);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.ex-fab:hover {
  background: #0F3B28;
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(15, 59, 40, 0.34);
}
.ex-fab--secondary {
  background: #0F3B28;
}
.ex-fab--secondary:hover {
  background: #86A136;
}
@media (min-width: 1024px) {
  .ex-floating-actions { display: none; }
}

/* Lightbox (globální pro odkazy s data-lightbox) */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.78);
  z-index: 200;
  padding: 16px;
}
#lightbox.ex-open { display: flex; }

#lightbox .ex-lightbox-inner {
  max-width: 1100px;
  width: 100%;
}

#lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

#lightbox-caption {
  margin-top: 12px;
  text-align: center;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}

#lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
#lightbox-close:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
#lightbox-close:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(134, 161, 54, 0.25);
}


/* ------------------------------------------------------------
   Minimal "prose" typography (Tailwind Typography-like)
   Použití: obal dlouhého textu do <div class="prose ..."> ...
   ------------------------------------------------------------ */
.prose {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose p { margin: 1rem 0; }

.prose h2 {
  margin: 2.2rem 0 1rem;
  font-size: 1.9rem;
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
  color: #0F3B28;
}

.prose h3 {
  margin: 1.8rem 0 .8rem;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0F3B28;
}

.prose a {
  color: #86A136;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: #0F3B28; }

.prose ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
  list-style: decimal;
}

.prose li { margin: .35rem 0; }

.prose strong { color: #111827; }

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #86A136;
  background: rgba(134, 161, 54, 0.08);
  border-radius: 12px;
  color: #1f2937;
  font-style: italic;
}

.prose hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid rgba(15, 59, 40, 0.12);
}

.prose code {
  background: rgba(15, 59, 40, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
  font-size: 0.95em;
}


/* === 3D cards (SEO UI) === */

/* Subtle 3D hover used on service / info cards.
   Safe: only applies when the class is present. */
.card-3d,
.card-3d-soft {
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  will-change: transform;
}

@media (hover:hover) and (pointer:fine) {
  .card-3d:hover {
    transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 18px 45px rgba(15, 59, 47, .22);
    filter: saturate(1.02);
  }
  .card-3d:active {
    transform: translateY(-1px) rotateX(0deg) rotateY(0deg) scale(.995);
  }

  .card-3d-soft:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 59, 47, .18);
  }
}

/* Optional: tiny shine overlay when the element has overflow-hidden. */
.card-3d.is-shiny {
  position: relative;
}
.card-3d.is-shiny::after {
  content: "";
  position: absolute;
  inset: -30% -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.32), rgba(255,255,255,0) 55%);
  transform: translate3d(-12%, -8%, 0);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
@media (hover:hover) and (pointer:fine) {
  .card-3d.is-shiny:hover::after {
    opacity: .85;
  }
}
