/* ══════════════════════════════════════════
   Reset & base
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1e4a7a;
  --blue-lt: #2d6baa;
  --accent:  #e8a020;
  --bg:      #f5f6f8;
  --text:    #222;
  --muted:   #666;
  --border:  #dde2ea;
  --white:   #ffffff;
  --radius:  8px;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}

main { flex: 1; display: flex; flex-direction: column; }
main > .article-detail { flex: 1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════
   Navbar
══════════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem;
}

.nav-logo {
  color: var(--white); font-size: 1.15rem; font-weight: 700;
  letter-spacing: .02em;
}
.nav-logo span { color: var(--accent); }

nav ul {
  list-style: none; display: flex; gap: 1.8rem;
}
nav ul a {
  color: rgba(255,255,255,.85); font-size: .95rem;
  transition: color .2s;
}
nav ul a:hover { color: var(--accent); }

/* hamburger (mobile) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: .3s;
}

/* ══════════════════════════════════════════
   Hero
══════════════════════════════════════════ */
.hero {
  position: relative; height: 380px; overflow: hidden;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6baa 100%);
}
.hero img {
  display: block;
  max-width: none;
  height: auto;
  filter: brightness(.7);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* placeholder — zobrazí se, dokud není nahrána fotka domu */
.hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6baa 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-placeholder svg { opacity: .15; }

.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  padding: 1rem 2rem;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-content p {
  margin-top: .6rem; font-size: 1.1rem;
  opacity: .9; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-btn {
  margin-top: 1.6rem;
  background: var(--accent); color: var(--white);
  padding: .7rem 2rem; border-radius: 40px;
  font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.hero-btn:hover { background: #d08a10; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   Sections — společné
══════════════════════════════════════════ */
section { padding: 4rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--blue); margin-bottom: 2rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: var(--border); border-radius: 2px;
}

/* ══════════════════════════════════════════
   Aktuality
══════════════════════════════════════════ */
#aktuality { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.news-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; background: var(--bg);
  transition: box-shadow .2s, transform .15s;
}
.news-card:hover {
  box-shadow: var(--shadow); transform: translateY(-3px);
}
.news-date {
  font-size: .8rem; color: var(--muted);
  margin-bottom: .4rem; font-weight: 500;
}
.news-card h3 {
  font-size: 1rem; color: var(--blue); margin-bottom: .5rem;
}
.news-text {
  font-size: .9rem; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden;
}

.news-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: .75rem;
}

.news-tag {
  display: inline-block;
  background: #e8f1fb; color: var(--blue-lt);
  font-size: .75rem; font-weight: 600;
  padding: .2rem .7rem; border-radius: 20px;
}

.news-btn {
  display: inline-block;
  background: var(--blue); color: var(--white);
  font-size: .75rem; font-weight: 600;
  padding: .2rem .7rem; border-radius: 20px;
  transition: background .2s;
}
.news-btn:hover { background: var(--blue-lt); }

.section-more {
  text-align: center; margin-top: 2rem;
}
.section-more-btn {
  display: inline-block;
  background: var(--blue); color: var(--white);
  padding: .65rem 2rem; border-radius: 40px;
  font-size: .9rem; font-weight: 600;
  transition: background .2s, transform .15s;
}
.section-more-btn:hover { background: var(--blue-lt); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   Zápisy ze schůzí
══════════════════════════════════════════ */
#zapisy { background: var(--bg); }

.minutes-list { display: flex; flex-direction: column; gap: .75rem; }

.minutes-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  transition: box-shadow .2s;
}
.minutes-item:hover { box-shadow: var(--shadow); }

.minutes-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: #e8f1fb; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-lt);
}
.minutes-icon svg { width: 22px; height: 22px; }

.minutes-info { flex: 1; }
.minutes-info h3 { font-size: .95rem; color: var(--blue); }
.minutes-info span { font-size: .82rem; color: var(--muted); }

.minutes-dl {
  flex-shrink: 0;
  background: var(--blue); color: var(--white);
  padding: .4rem 1rem; border-radius: 20px;
  font-size: .82rem; font-weight: 600;
  transition: background .2s;
}
.minutes-dl:hover { background: var(--blue-lt); }

/* ══════════════════════════════════════════
   Fotogalerie
══════════════════════════════════════════ */
#galerie { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}

.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  background: var(--border);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(30,74,122,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
  color: var(--white); font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* placeholder — zobrazí se místo chybějící fotky */
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e4eaf4 0%, #cdd6e8 100%);
  color: var(--blue); font-size: .78rem; gap: .4rem;
}
.gallery-placeholder svg { opacity: .4; }

/* ══════════════════════════════════════════
   Kontakt
══════════════════════════════════════════ */
#kontakt { background: var(--blue); color: var(--white); }
#kontakt .section-title { color: var(--white); }
#kontakt .section-title::after { background: rgba(255,255,255,.2); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 1.5rem;
}
.contact-card h3 {
  font-size: .85rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
  margin-bottom: .75rem;
}
.contact-card p { margin-bottom: .5rem; }
.contact-card p:last-child { margin-bottom: 0; }

.contact-row {
  display: flex; align-items: flex-start;
  gap: .6rem; margin-bottom: .6rem;
  font-size: .93rem; color: rgba(255,255,255,.85);
}
.contact-row svg { flex-shrink: 0; margin-top: 2px; }
.contact-row a { color: rgba(255,255,255,.85); }
.contact-row a:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   Detail článku
══════════════════════════════════════════ */
.article-detail { padding: 3rem 1.5rem; background: var(--white); }

.article-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 600; color: var(--blue);
  margin-bottom: 1.75rem;
  transition: gap .2s;
}
.article-back:hover { gap: .7rem; }

.article-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .75rem;
}

.article-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--blue);
  margin-bottom: 1.75rem; line-height: 1.3;
}

.article-body {
  max-width: 780px;
  font-size: .97rem; line-height: 1.75; color: var(--text);
}
.article-body p { margin-bottom: 1rem; }
.article-body h2, .article-body h3 { color: var(--blue); margin: 1.5rem 0 .5rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .3rem; }
.article-body a { color: var(--blue-lt); text-decoration: underline; }

/* ══════════════════════════════════════════
   Footer
══════════════════════════════════════════ */
footer {
  background: #122f50; color: rgba(255,255,255,.5);
  text-align: center; padding: 1.25rem 1rem;
  font-size: .82rem;
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   Lightbox
══════════════════════════════════════════ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.9);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  color: var(--white); font-size: 2.2rem;
  cursor: pointer; line-height: 1;
  opacity: .8; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ══════════════════════════════════════════
   Responsive
══════════════════════════════════════════ */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul {
    flex-direction: column; gap: 0;
    padding: .5rem 0 1rem;
  }
  nav ul a { display: block; padding: .6rem 1.5rem; }
  .nav-inner { flex-wrap: wrap; }
  .hero { height: 380px; }
  .minutes-dl { display: none; }
}
