/* ==========================================================================
   WARM EDITORIAL DESIGN SYSTEM (Ultra-Lean & Clean)
   ========================================================================== */
:root {
  --bg-main: #faf8f5;            
  --bg-surface: #ffffff;         
  --text-main: #23201d;          
  --text-muted: #615a53;         
  --text-light: #8c8378;
  --color-terracotta: #c25e00;   
  --color-terracotta-hover: #9e4c00;
  --color-terracotta-light: #fdf3e7;
  --color-sage: #2d4a3e;         
  --color-sage-light: #eef3f0;
  --border-color: #eae4dc;
  --radius-card: 16px;
  --radius-sm: 8px;
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif; /* 👈 Doplněno, aby nadpisy a citáty fungovaly */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-main); color: var(--text-main); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; }

/* LAYOUT & CONTAINERS */
.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.section { margin-top: 70px; scroll-margin-top: 90px;  }
.section-title { margin-bottom: 28px; text-align: center; }
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); color: var(--text-main); letter-spacing: -0.5px;  }
.section-title p { color: var(--text-muted); font-size: 1.05rem;  }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 20px; }

/* NAVIGACE */
.nav { position: sticky; top: 0; background: rgba(250, 248, 245, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 16px 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; color: var(--text-main); }
.cross-icon { color: var(--color-terracotta); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.92rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--color-terracotta); }

/* HERO SEKCE */
.hero { padding: 50px 0 30px; }
.hero-inner {
  background: linear-gradient(135deg, #eeecc0 0%, #c2bb96 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(35, 32, 29, 0.05);
}
.hero-inner::before, .hero-inner::after { content: ""; position: absolute; width: 280px; height: 280px; pointer-events: none; }
.hero-inner::before { top: -60px; right: -60px; background: radial-gradient(circle, rgba(194, 94, 0, 0.12) 0%, transparent 70%); }
.hero-inner::after { bottom: -60px; left: -60px; background: radial-gradient(circle, rgba(45, 74, 62, 0.08) 0%, transparent 70%); }
.hero-inner > * { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.15; color: #2c2d2c; margin: 18px auto; max-width: 800px; }
.hero-lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; max-width: 680px; margin-inline: auto; font-weight: 400; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* TLAČÍTKA */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: transform 0.15s, background-color 0.15s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background-color: var(--color-terracotta); color: #fff !important; }
.btn-primary:hover { background-color: var(--color-terracotta-hover); }
.btn-secondary { background-color: var(--bg-surface); color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { background-color: #f3eee7; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* KARTY & ETIKETY */
.card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 30px; box-shadow: 0 4px 20px rgba(35, 32, 29, 0.02); }
.card-featured { border-color: #c2e0d3; background: linear-gradient(180deg, #ffffff 0%, #f4f9f6 100%); }
.card-title { font-size: 1.4rem; margin-bottom: 8px; color: var(--text-main); }
.card-time { font-weight: 700; color: var(--color-sage); font-size: 1.1rem; }
.card-loc { font-size: 1rem; color: var(--text-muted); margin-bottom: 12px; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; }

.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; padding: 6px 14px; border-radius: 20px; background: var(--color-terracotta-light); color: var(--color-terracotta); }
.badge-light { background: rgba(255, 255, 255, 0.15); color: #fff; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.tag-green { background: var(--color-sage-light); color: var(--color-sage); }
.tag-terracotta { background: var(--color-terracotta-light); color: var(--color-terracotta); }

/* AKCE & EVENT STACK */
.event-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.event-item { display: flex; gap: 16px; align-items: center; background: var(--bg-main); padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.date-badge { background: var(--color-sage); color: #fff; min-width: 50px; height: 50px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; line-height: 1; }
.date-badge .day { font-size: 1.2rem; }
.date-badge .month { font-size: 0.55rem; letter-spacing: 1px; margin-top: 2px; }
.event-info h4 { font-size: 0.98rem; font-weight: 700; line-height: 1.25; }
.event-info p { font-size: 0.82rem; color: var(--text-muted); }

/* FOTOGALERIE */
.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.photo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(35, 32, 29, 0.08); }
.photo-wrapper { position: relative; width: 100%; height: 190px; overflow: hidden; }
.photo-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.photo-card:hover .photo-wrapper img { transform: scale(1.04); }
.photo-badge { position: absolute; bottom: 12px; left: 12px; background: rgba(35, 32, 29, 0.85); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; backdrop-filter: blur(4px); z-index: 2; }
.photo-overlay { position: absolute; inset: 0; background: rgba(35, 32, 29, 0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; z-index: 1; }
.photo-overlay span { color: #fff; font-size: 0.88rem; font-weight: 700; background: rgba(194, 94, 0, 0.9); padding: 6px 14px; border-radius: 20px; }
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-body { padding: 22px; }
.photo-body h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 6px; color: var(--text-main); }
.photo-body p { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ / ACCORDION */
.faq-container { padding: clamp(30px, 4vw, 48px); }
.faq-header { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.faq-header h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin: 12px 0 8px; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-accordion-item { border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-main); overflow: hidden; transition: border-color 0.2s; }
.faq-accordion-item[open] { border-color: var(--color-terracotta); background: var(--bg-surface); }
.faq-summary { display: flex; align-items: center; padding: 16px 20px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; user-select: none; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon { margin-right: 12px; font-size: 1.2rem; }
.faq-question { flex-grow: 1; color: var(--text-main); }
.faq-arrow { font-size: 1.4rem; color: var(--text-muted); transition: transform 0.2s; line-height: 1; }
.faq-accordion-item[open] .faq-arrow { transform: rotate(90deg); color: var(--color-terracotta); }
.faq-answer { padding: 0 20px 20px 52px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* O NÁS & KONTAKT */
.about-banner { background: var(--color-sage); color: #fff; border-radius: var(--radius-card); padding: clamp(32px, 5vw, 50px); }
.about-content { max-width: 720px; }
.about-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: #fff; margin: 14px 0 16px; line-height: 1.2; }
.about-text { font-size: 1.1rem; color: #d2e0d9; line-height: 1.7; }
.pillar-card { height: 100%; }
.pillar-icon { font-size: 2rem; margin-bottom: 12px; }
.pillar-card h4 { font-size: 1.15rem; margin-bottom: 6px; color: var(--text-main); }
.pillar-card p { font-size: 0.92rem; color: var(--text-muted); }

.contact-card { background: var(--text-main); border: 1px solid var(--border-color); color: #fff; text-align: center; padding: clamp(32px, 5vw, 50px); }
.contact-card h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.contact-sub { color: #b3aba0; margin-bottom: 28px; }
.contact-grid { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.contact-item span { display: block; font-size: 0.8rem; color: #b3aba0; }
.contact-item strong { font-size: 1.1rem; color: #fff; }

/* LIGHTBOX MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(35, 32, 29, 0.75); backdrop-filter: blur(6px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-container { background: var(--bg-surface); border-radius: var(--radius-card); max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); transform: translateY(20px); transition: transform 0.25s; }
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 12px; right: 16px; background: rgba(35, 32, 29, 0.6); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.2s; }
.modal-close:hover { background: var(--color-terracotta); }
.modal-img-wrapper { width: 100%; max-height: 380px; overflow: hidden; background: #000; }
.modal-img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-content { padding: 28px; }
.modal-content h3 { font-size: 1.6rem; margin: 10px 0 12px; color: var(--text-main); }
.modal-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.65; }

/* UTILITIES & FOOTER */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-md { margin-top: 24px; }
.footer { text-align: center; padding: 40px 0; margin-top: 70px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .contact-grid { flex-direction: column; gap: 18px; }
  .faq-answer { padding-left: 20px; }
}

/* ELEGANTNÍ MAPA V KARTĚ */
.map-wrapper {
  margin-top: 16px;
  height: 170px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}

/* KARTA PRO MYŠLENKU TÝDNE & "BOŽSKÝ" ROTÁTOR */
.weekly-quote-card {
  background-color: var(--color-sage-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 48px 32px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.weekly-quote-card .tag {
  display: inline-block;
  margin-bottom: 16px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 16px;
  font-style: italic;
  
  /* Animace pro střídání */
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.5px;
  display: block;
  
  /* Animace pro střídání */
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}

/* Třída pro moment, kdy text mizí (aktivuje JS) */
.quote-fade-out {
  opacity: 0;
  transform: translateY(8px);
}