*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #2d4a22;
  --green-mid: #4a7c35;
  --green-light: #7aaa52;
  --cream: #f5f0e8;
  --cream-dark: #ede5d4;
  --brown: #6b4c2a;
  --brown-light: #b5885c;
  --text: #2a2a1e;
  --white: #fff;
}
/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--green-mid);
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  width: auto;
  height: 100%;
  max-width: 100%;
}

h2,
h3 {
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
}

p {
  padding-bottom: 0.5rem;
}
.center {
  margin: 0 auto;
  text-align: center;
}
/* ─── DECORATIVE TOP STRIPE ─── */
.top-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light), var(--brown-light), var(--green-mid));
}

/* ─── NAVBAR ─── */
nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

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

.nav-brand {
  font-family: "Playfair Display", serif;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.9rem 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-brand span.leaf {
  font-size: 1.35rem;
  display: inline-block;
  animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.nav-links a {
  color: var(--cream-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition:
    background 0.22s,
    color 0.22s,
    border-color 0.22s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-light);
  color: var(--white);
  border-color: var(--green-light);
}

.nav-links a .badge {
  font-size: 0.7rem;
  background: var(--brown-light);
  color: #fff;
  border-radius: 20px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 400;
}

/* ─── HERO ─── */
.hero {
  background:
    linear-gradient(to bottom, rgba(30, 55, 15, 0.72), rgba(45, 74, 34, 0.88)),
    url("https://images.unsplash.com/photo-1591383496652-db773e57b1d0?q=80&w=1920&auto=format&fit=crop") center/cover
      no-repeat;
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 55px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-emblem {
  width: 150px;
  height: 150px;
  padding: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(4px);
  animation: floatUp 0.8s ease both;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
  animation: floatUp 0.9s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-light);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: floatUp 0.9s 0.2s ease both;
  margin-bottom: 32px;
}

/* ─── MAIN ─── */
main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1.5rem 4rem;
}

/* ─── SECTION HEADER ─── */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: var(--green-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-light), transparent);
  border-radius: 2px;
}

.section-header p {
  margin-top: 0.8rem;
  color: #555;
  font-size: 0.97rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── ROČNÍKY CARDS ─── */
.rocniky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
  transition:
    transform 0.28s,
    box-shadow 0.28s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--green-mid);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-year {
  background: var(--green-dark);
  color: var(--cream);
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  padding: 1.4rem;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 1.3rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-body h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--green-dark);
}

.card-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.card-link::after {
  content: " →";
}

/* ─── INFO STRIP ─── */
.info-strip {
  background: var(--green-dark);
  color: var(--cream);
  border-radius: 10px;
  padding: 2.2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  color: var(--green-light);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ─── O NÁS ─── */
.about {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  border-left: 5px solid var(--green-light);
  margin-bottom: 2rem;
}

.about h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.about p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0.7rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--green-dark);
  color: var(--cream-dark);
  padding: 2.8rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-col p,
.footer-col address {
  font-size: 0.87rem;
  line-height: 1.8;
  font-style: normal;
  opacity: 0.82;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  font-size: 0.87rem;
  line-height: 2;
  opacity: 0.82;
}

.footer-col ul li a {
  color: var(--cream-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--green-light);
}

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.perex {
  max-width: 50rem;
  margin: 0 auto 1.5rem;
  font-size: 1.25rem;
  padding: 0 0 1rem 0;
  text-align: center;
}
.event-highlight {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff8ef;
  border: 2px solid #d9a35f;
  border-radius: 0.75rem;
  text-align: left;
}

.event-highlight p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.event-actions {
  margin: 1.5rem 0;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  margin: 0.35rem;
  line-height: 1.2;
}

.btn-primary {
  background: #1877f2;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #125fbe;
}

.btn-secondary {
  background: #2f6b3b;
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #234f2c;
}

.btn-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.notice {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

.event-poster {
  margin: 1.75rem auto 0;
  max-width: 32rem;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid #e3d7c8;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.event-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
}

p#online-katalog-wrap {
  text-align: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .nav-inner {
    padding: 0 1rem;
  }
  .nav-brand {
    font-size: 0.92rem;
  }
  .hero {
    padding: 3.5rem 1rem 3rem;
  }
  main {
    padding: 2rem 1rem 3rem;
  }
  .info-strip {
    padding: 1.5rem 1rem;
  }
  .about {
    padding: 1.5rem;
  }
}
