/* =============================================
   SVJ VÍDEŇSKÁ 1021/6 — Hlavní stylesheet
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:        #1a1a2e;
  --cream:      #f5f0e8;
  --warm:       #e8dfc8;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --rust:       #7a4010;
  --muted:      #6b6560;
  --white:      #ffffff;
  --dark:       #0f0f1a;
  --radius:     6px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; }

/* ─── NAVIGACE ─────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 24px rgba(26, 26, 46, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.nav-logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ─── TLAČÍTKA ─────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--transition), transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 26, 46, 0.22);
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── HERO ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  width: fit-content;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.2s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-right {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-building-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.12;
}

.hero-building-art svg {
  width: 90%;
  height: 90%;
}

.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 10px;
  padding: 44px 48px;
  text-align: center;
  backdrop-filter: blur(6px);
  animation: fadeUp 0.8s 0.4s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-number {
  font-family: 'Playfair Display', serif;
  font-size: 6.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.hero-street {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.65);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}

.hero-city {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ─── STATS BAR ────────────────────────────── */
.stats-bar {
  background: var(--ink);
  display: flex;
}

.stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 16px;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

/* ─── SEKCE OBECNĚ ─────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 96px 0; }

.section-light  { background: var(--white); }
.section-cream  { background: var(--cream); }
.section-warm   { background: var(--warm); }
.section-dark   { background: var(--ink); }

.section-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-dark h2 { color: var(--cream); }

.section-intro {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 52px;
}

.section-dark .section-intro { color: rgba(245, 240, 232, 0.55); }

/* ─── SLUŽBY ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--warm);
  border: 2px solid var(--warm);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 36px 32px;
  transition: background var(--transition);
}

.service-card:hover { background: var(--cream); }

.service-icon {
  width: 46px;
  height: 46px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--ink);
}

.service-card p {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── NOVINKY ──────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(26, 26, 46, 0.1);
}

.news-img {
  height: 190px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card.featured .news-img { height: 260px; }

.news-img-dark { background: #2a1f0f; }
.news-img-blue { background: #0f1f2a; }

.news-img-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gold) 0,
    var(--gold) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 8px 8px;
}

.news-emoji {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  opacity: 0.5;
}

.news-date-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
}

.news-body { padding: 22px; }

.news-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.3;
}

.news-body p {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── KE STAŽENÍ ───────────────────────────── */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: var(--radius);
  padding: 16px 22px;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.file-row:hover {
  background: rgba(201, 168, 76, 0.07);
  border-color: rgba(201, 168, 76, 0.28);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-ext {
  width: 40px;
  height: 44px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.25);
  flex-shrink: 0;
}

.file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.file-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.file-dl {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.65;
  transition: opacity var(--transition);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.file-row:hover .file-dl { opacity: 1; }

/* ─── KONTAKT ──────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid rgba(26, 26, 46, 0.14);
  border-radius: var(--radius);
  padding: 12px 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-notice {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.4em;
}

.form-notice.success { color: #3a7a3a; }
.form-notice.error   { color: #b03a2e; }

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin-bottom: 28px;
  color: var(--ink);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.contact-item-text span {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-item-text a {
  text-decoration: none;
  color: var(--gold);
  transition: opacity var(--transition);
}

.contact-item-text a:hover { opacity: 0.75; }

/* ─── FOOTER ───────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(201, 168, 76, 0.14);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
}

.footer-logo span {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.footer-copy {
  font-size: 0.76rem;
  color: rgba(245, 240, 232, 0.32);
}

/* ─── ANIMACE ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVITA ─────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 14px 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(245, 240, 232, 0.97);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    padding: 8px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 14px 28px;
    font-size: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 60px 28px 40px;
  }

  .hero-right {
    height: 280px;
  }

  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.08); }

  section { padding: 64px 0; }
  .container { padding: 0 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .hero-left { padding: 48px 20px 32px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
}

/* ─── GALERIE ──────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--warm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,26,46,0.75));
  padding: 28px 14px 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.82rem;
  color: var(--cream);
  font-weight: 500;
}

/* ─── LIGHTBOX ─────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(6px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-inner p {
  color: rgba(245,240,232,0.7);
  font-size: 0.875rem;
  margin-top: 14px;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--cream);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ─── GOOGLE MAPS ──────────────────────────── */
.maps-wrap {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(26,26,46,0.1);
  line-height: 0;
}

.maps-wrap iframe {
  width: 100%;
  height: 340px;
  border: none;
  display: block;
}

/* ─── FILTR DOKUMENTŮ DLE ROKU ─────────────── */
.dok-rok-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dok-rok-btn {
  background: transparent;
  border: 1.5px solid rgba(26,26,46,0.18);
  border-radius: 100px;
  padding: 5px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dok-rok-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dok-rok-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ─── NOVÉ DLAŽDICE NOVINKY ─────────────────── */
.news-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .news-grid-new { grid-template-columns: 1fr; }
}

.news-tile {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(26,26,46,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.news-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(26,26,46,0.1);
}

.news-tile-header {
  background: var(--ink);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-tile-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.news-tile-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 12px;
  border-radius: 100px;
}

.news-tile-body {
  padding: 22px;
  flex: 1;
}

.news-tile-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-tile-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.news-tile-text p {
  margin: 0 0 6px;
}

.news-tile-text p:last-child { margin-bottom: 0; }

.news-tile-text br { display: block; content: ''; margin: 2px 0; }

.news-tile-text ul.novinka-list {
  margin: 6px 0 8px 16px;
  padding: 0;
}

.news-tile-text ul.novinka-list li {
  margin-bottom: 5px;
  line-height: 1.6;
}

/* ─── POPIS SLUŽBY ──────────────────────────── */
.service-text {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-text a.sluzba-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: border-color 0.2s;
  word-break: break-all;
}

.service-text a.sluzba-link:hover {
  border-color: var(--gold);
}
