/* ============================================================
   Obec Lomnička – moderný redizajn (teplé obecné farby)
   Autor: BAJAN IT support s.r.o.
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rust); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p  { margin: 0 0 1em; }

/* ---------- Design tokens (teplé obecné farby) ---------- */
:root {
  --cream:       #faf6ee;   /* podklad */
  --cream-2:     #f1e9d8;   /* sekundárne pozadie */
  --paper:       #ffffff;
  --ink:         #2a2420;   /* tmavohnedý text */
  --muted:       #6b6158;
  --forest:      #3b6b45;   /* lesná zelená – hlavná akcentná */
  --forest-dark: #254a30;
  --rust:        #b85c2a;   /* zemitá oranžová */
  --gold:        #c9a14a;
  --brown:       #7a4e2d;
  --line:        #e5dcc9;
  --shadow-sm: 0 2px 8px rgba(60, 40, 20, .08);
  --shadow-md: 0 8px 24px rgba(60, 40, 20, .10);
  --shadow-lg: 0 24px 60px rgba(60, 40, 20, .14);
  --radius:   14px;
  --radius-lg: 22px;
  --container: 1200px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }

.section-head {
  display: flex; flex-wrap: wrap;
  align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.section-head .eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .5rem;
}
.section-head p { color: var(--muted); max-width: 55ch; margin: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--forest-dark);
  color: #efe8d6;
  font-size: .85rem;
}
.topbar__inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  padding: .55rem 0; gap: .8rem;
}
.topbar a { color: #efe8d6; }
.topbar a:hover { color: #ffd79a; }
.topbar__meta { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar__meta span, .topbar__meta a {
  display: inline-flex; align-items: center; gap: .4rem;
}
.topbar__social { display: flex; gap: .6rem; }
.topbar__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background .2s ease;
}
.topbar__social a:hover { background: var(--gold); color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand__logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forest) 0%, var(--gold) 100%);
  display: grid; place-items: center; color: #fff;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.brand__logo img,
.brand__logo .custom-logo {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Custom logo ako obrázok v brand – zachovať štýly */
.brand .custom-logo-link {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand .custom-logo-link img { width: 100%; height: 100%; object-fit: cover; }
.brand__text h1 {
  font-size: 1.2rem; margin: 0; line-height: 1.1; letter-spacing: .01em;
}
.brand__text small { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.menu,
#primary-menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: .25rem; align-items: center;
  flex-wrap: wrap;
}
.menu > li,
#primary-menu > li { position: relative; list-style: none; }
.menu a,
#primary-menu a {
  display: inline-block; padding: .65rem .9rem;
  color: var(--ink); font-weight: 500; font-size: .95rem;
  border-radius: 10px; transition: all .2s ease; text-decoration: none;
}
.menu a:hover,
.menu a.is-active,
#primary-menu a:hover,
#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a,
#primary-menu .current-menu-ancestor > a {
  background: var(--cream-2); color: var(--forest-dark);
}

/* Podmenu – podpora HTML prototypu (.has-sub/.submenu) aj WordPress (.menu-item-has-children/.sub-menu) */
.menu .has-sub > a::after,
.menu .menu-item-has-children > a::after,
#primary-menu .menu-item-has-children > a::after {
  content: "▾"; margin-left: .35rem; font-size: .7rem; color: var(--muted);
}
.menu .submenu,
.menu .sub-menu,
#primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0;
  list-style: none; padding: .5rem; margin: .4rem 0 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
  z-index: 60;
}
.menu .has-sub:hover > .submenu,
.menu .has-sub:focus-within > .submenu,
.menu .menu-item-has-children:hover > .sub-menu,
.menu .menu-item-has-children:focus-within > .sub-menu,
#primary-menu .menu-item-has-children:hover > .sub-menu,
#primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.menu .submenu a,
.menu .sub-menu a,
#primary-menu .sub-menu a { display: block; padding: .55rem .8rem; font-size: .9rem; }
.menu .sub-menu li,
#primary-menu .sub-menu li { list-style: none; position: relative; }

.nav__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.1rem;
  background: var(--forest); color: #fff !important;
  border-radius: 999px; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.nav__cta:hover { background: var(--forest-dark); color: #fff !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 0 auto; position: relative;
  transition: all .22s ease;
}
.menu-toggle span::before { position: absolute; top: -7px; left: 0; }
.menu-toggle span::after  { position: absolute; top: 7px;  left: 0; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; transition: all .2s ease;
}
.btn--primary { background: var(--rust); color: #fff; }
.btn--primary:hover { background: #a04f20; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn--outline:hover { background: var(--forest); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 620px;
  display: flex; align-items: center;
  color: #fff;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(37, 74, 48, .85) 0%, rgba(122, 78, 45, .65) 100%),
    url("https://www.obeclomnicka.sk/wp-content/uploads/2026/04/8e54fb46-5e24-4829-80e7-2ba03ef69d0f.jpg");
  background-size: cover; background-position: center 25%;
  z-index: -1;
}
.hero__inner {
  padding: clamp(4rem, 9vw, 7rem) 0;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 55ch; color: #f0e7d4;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__stats {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 2rem; border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.hero__stat {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.hero__stat strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: var(--gold); line-height: 1;
}
.hero__stat span { font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: #f0e7d4; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,.2);
}
.hero__badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,161,74,.3);
}

/* ---------- Quick links (karty pod hero) ---------- */
.quick-links {
  margin-top: -3.5rem; position: relative; z-index: 2;
}
.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
}
.quick-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border-radius: 14px;
  color: var(--ink);
  transition: all .2s ease;
}
.quick-link:hover { background: var(--cream-2); color: var(--forest-dark); transform: translateY(-2px); }
.quick-link__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cream-2), var(--cream));
  color: var(--forest); font-size: 1.3rem; flex-shrink: 0;
}
.quick-link strong { display: block; font-size: .98rem; font-weight: 600; }
.quick-link small { color: var(--muted); font-size: .8rem; }

/* ---------- Card grid (aktuality) ---------- */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #cdb58a, #8a6a43);
  position: relative; overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95);
  color: var(--forest-dark);
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.card__body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__date {
  font-size: .8rem; color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--rust); }
.card__excerpt { color: var(--muted); font-size: .93rem; flex: 1; }
.card__more {
  margin-top: 1rem;
  font-weight: 600; font-size: .9rem;
  color: var(--forest);
  display: inline-flex; align-items: center; gap: .35rem;
}
.card__more:hover { color: var(--rust); gap: .55rem; }

/* ---------- Noticeboard (Úradná tabuľa) ---------- */
.board {
  background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream) 100%);
}
.board__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem;
}
.board__list {
  background: #fff; border-radius: var(--radius-lg);
  padding: 1rem; box-shadow: var(--shadow-sm);
}
.board__item {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1rem; border-radius: 12px;
  transition: background .2s;
  border-bottom: 1px solid var(--line);
}
.board__item:last-child { border-bottom: 0; }
.board__item:hover { background: var(--cream); }
.board__date {
  text-align: center; min-width: 58px;
  background: var(--forest); color: #fff;
  padding: .5rem; border-radius: 10px;
  font-family: 'Playfair Display', serif;
}
.board__date strong { display: block; font-size: 1.4rem; line-height: 1; }
.board__date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.board__title { font-weight: 600; color: var(--ink); display: block; margin-bottom: .15rem; }
.board__meta  { font-size: .8rem; color: var(--muted); }
.board__icon  {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--cream-2); color: var(--rust);
}

.info-panel {
  background: var(--forest-dark);
  color: #f0e7d4; border-radius: var(--radius-lg); padding: 2rem;
  background-image:
    radial-gradient(circle at top right, rgba(201,161,74,.25), transparent 50%);
}
.info-panel h3 { color: #fff; }
.info-panel p { color: #d8cfbf; }
.info-panel .btn { margin-top: .8rem; }

/* ---------- Contact / Footer ---------- */
.footer {
  background: #1d1814; color: #c9c0b4;
  padding: 3.5rem 0 1.5rem; margin-top: 4rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer h4 {
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: #c9c0b4; font-size: .92rem; }
.footer a:hover { color: var(--gold); }
.footer__brand p { color: #9a9185; font-size: .92rem; max-width: 32ch; }
.footer__bottom {
  padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap;
  font-size: .82rem; color: #7a7165; gap: 1rem;
}

/* ---------- Page header (podstránky) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--forest-dark), var(--brown));
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--cream);
  clip-path: ellipse(70% 100% at 50% 100%);
}
.page-header h1 { color: #fff; }
.page-header p { color: #e6dcc9; max-width: 60ch; }
.breadcrumb {
  font-size: .85rem; color: #d8cfbf; margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { opacity: .5; margin: 0 .4rem; }

/* ---------- Article layout ---------- */
.article-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 3rem; align-items: start;
}
.article {
  background: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  margin-top: -3rem; position: relative; z-index: 2;
}
.article__hero {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 1.5rem;
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: var(--muted);
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.article__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .6rem; }
.article__lead { font-size: 1.1rem; color: var(--muted); font-style: italic; margin-bottom: 1.5rem; }
.article p  { font-size: 1.02rem; }
.article h2 { margin-top: 2rem; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--cream-2);
  border-left: 4px solid var(--rust);
  border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--ink);
}
.article ul li { margin-bottom: .4rem; }

.sidebar {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-top: -3rem; z-index: 2;
}
.widget {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.widget h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--rust);
  display: inline-block;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--rust); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  background: #fff; padding: 1rem 1.2rem;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.filter-bar input,
.filter-bar select {
  padding: .65rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff;
  color: var(--ink); min-width: 180px;
}
.filter-bar input:focus,
.filter-bar select:focus { outline: 2px solid var(--forest); outline-offset: 2px; }
.chip {
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--cream-2); color: var(--ink);
  font-size: .85rem; font-weight: 500; cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s;
}
.chip:hover, .chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; gap: .3rem;
  margin-top: 2.5rem; list-style: none; padding: 0;
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .8rem; border-radius: 10px;
  color: var(--ink); font-weight: 600;
  border: 1px solid var(--line); background: #fff;
}
.pagination a:hover { background: var(--cream-2); }
.pagination .is-current { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- About / Contact ---------- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.info-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--cream-2), var(--cream));
  display: grid; place-items: center; color: var(--forest);
  font-size: 1.4rem; margin-bottom: 1rem;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  align-items: start;
}
.contact-form {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--cream);
  transition: border-color .18s, box-shadow .18s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(59,107,69,.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.map-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: #ddd;
  border: 1px solid var(--line);
}

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose p, .prose li { font-size: 1.02rem; }
.prose h2 { margin-top: 2rem; }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .board__grid,
  .article-layout,
  .contact-grid,
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .menu-toggle { display: inline-block; }
  .menu,
  #primary-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-top: 1px solid var(--line);
    padding: .8rem; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
    box-shadow: var(--shadow-md);
  }
  .menu.is-open,
  #primary-menu.is-open { max-height: 700px; padding-block: .8rem; overflow-y: auto; }
  .menu a,
  #primary-menu a { padding: .85rem 1rem; border-radius: 10px; }
  .menu .submenu,
  .menu .sub-menu,
  #primary-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0; padding: 0 0 0 1rem;
    background: transparent; min-width: 0;
  }
  .nav__cta { width: 100%; justify-content: center; margin-top: .5rem; }
  .hero { min-height: 520px; }
  .quick-links { margin-top: -2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .topbar__meta { gap: .6rem; font-size: .8rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2rem; }
}


/* ============================================================
   PATCH v1.0.1 – WordPress menu kompatibilita + logo obce
   ============================================================ */

/* Menu – podpora WP tried (.menu-item-has-children, .sub-menu) */
#primary-menu.menu {
  display: flex; gap: .25rem; align-items: center;
  flex-wrap: wrap; list-style: none; padding: 0; margin: 0;
}
#primary-menu.menu > li { position: relative; list-style: none; }
#primary-menu.menu a {
  display: inline-block; padding: .65rem .9rem;
  color: var(--ink); font-weight: 500; font-size: .95rem;
  border-radius: 10px; transition: all .2s ease; text-decoration: none;
}
#primary-menu.menu a:hover,
#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a,
#primary-menu .current-menu-ancestor > a {
  background: var(--cream-2); color: var(--forest-dark);
}

#primary-menu .menu-item-has-children > a::after {
  content: "▾"; margin-left: .35rem; font-size: .7rem; color: var(--muted);
}
#primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0;
  list-style: none; padding: .5rem; margin: .4rem 0 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; z-index: 60;
}
#primary-menu .menu-item-has-children:hover > .sub-menu,
#primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#primary-menu .sub-menu a { display: block; padding: .55rem .8rem; font-size: .9rem; }
#primary-menu .sub-menu li { list-style: none; position: relative; }

/* Logo obce – štýly pre WP custom logo */
.brand .custom-logo-link,
.brand__logo {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: inline-grid; place-items: center;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--forest) 0%, var(--gold) 100%);
}
.brand .custom-logo,
.brand .custom-logo-link img,
.brand__logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: none;
  display: block;
}

@media (max-width: 780px) {
  #primary-menu.menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-top: 1px solid var(--line);
    padding: .8rem; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
    box-shadow: var(--shadow-md);
  }
  #primary-menu.menu.is-open {
    max-height: 700px; padding-block: .8rem; overflow-y: auto;
  }
  #primary-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0; padding: 0 0 0 1rem;
    background: transparent; min-width: 0;
  }
}


/* ============================================================
   PATCH v1.0.2 – Placeholder s logom obce (namiesto stock fotiek)
   ============================================================ */
.card__placeholder,
.article__placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,161,74,.25), transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, var(--brown) 100%);
  display: grid; place-items: center;
  padding: 2rem; position: absolute; inset: 0;
}
.card__placeholder img,
.article__placeholder img {
  width: 45%; max-width: 130px; height: auto;
  max-height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
  opacity: .92;
}
.card__media { position: relative; }
.article__hero { position: relative; }


/* ============================================================
   PATCH v1.0.3 – Pagination fix + responsive vylepšenia
   ============================================================ */

/* --- Pagination: riešenie vnoreného <ul> od paginate_links --- */
.pagination {
  display: flex !important;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  gap: 0;
}
.pagination > li,
.pagination li,
.pagination .page-numbers {
  list-style: none !important;
  margin: 0;
}
.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  padding: 0;
  margin: 0;
  width: 100%;
}
.pagination .page-numbers > li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination .page-numbers a,
.pagination .page-numbers span {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .85rem; border-radius: 10px;
  color: var(--ink); font-weight: 600;
  border: 1px solid var(--line); background: #fff;
  text-decoration: none;
  transition: all .18s ease;
  font-size: .95rem;
}
.pagination .page-numbers a:hover {
  background: var(--cream-2);
  border-color: var(--cream-2);
  transform: translateY(-1px);
}
.pagination .page-numbers .current,
.pagination .page-numbers span.current {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.pagination .page-numbers.dots,
.pagination .page-numbers span.dots {
  border-color: transparent;
  background: transparent;
}

/* --- Responsive vylepšenia --- */

/* Tablet 980px */
@media (max-width: 980px) {
  .nav { padding: .75rem 0; }
  .hero { min-height: 500px; }
  .hero__inner { padding: clamp(3rem,7vw,5rem) 0; }
  .quick-links__grid { padding: 1rem; }
  .section { padding: clamp(2.5rem,5vw,4rem) 0; }
}

/* Mobile 780px – plná mobilná optimalizácia */
@media (max-width: 780px) {
  .topbar { font-size: .78rem; }
  .topbar__inner { padding: .5rem 0; gap: .5rem; }
  .topbar__meta { gap: .7rem; row-gap: .3rem; }
  .topbar__meta span, .topbar__meta a { font-size: .78rem; }

  /* Brand na mobile */
  .brand .custom-logo-link, .brand__logo { width: 44px; height: 44px; }
  .brand__text h1 { font-size: 1rem; }
  .brand__text small { font-size: .7rem; }

  /* Hero */
  .hero { min-height: 460px; }
  .hero__inner { gap: 1.5rem; }
  .hero h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
  .hero p.lead { font-size: .98rem; }
  .hero__actions { gap: .6rem; }
  .hero__actions .btn { padding: .75rem 1.1rem; font-size: .9rem; }
  .hero__badge { font-size: .7rem; padding: .35rem .75rem; }
  .hero__stats { padding: 1.3rem; gap: .8rem; }
  .hero__stat { padding: .8rem; }
  .hero__stat strong { font-size: 1.8rem; }
  .hero__stat span { font-size: .75rem; }

  /* Skryj nav__cta v mobilnom menu, aby neprečnievalo */
  #primary-menu .nav__cta { width: 100%; justify-content: center; }

  /* Quick links na mobile */
  .quick-links { margin-top: -1.5rem; }
  .quick-links__grid { padding: .8rem; gap: .5rem; }
  .quick-link { padding: .8rem; gap: .7rem; }
  .quick-link__icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .quick-link strong { font-size: .92rem; }
  .quick-link small { font-size: .75rem; }

  /* Cards – zmenši media */
  .cards { gap: 1rem; }
  .card h3 { font-size: 1.05rem; }
  .card__body { padding: 1.1rem 1.2rem 1.3rem; }
  .card__excerpt { font-size: .88rem; }

  /* Board */
  .board__item {
    grid-template-columns: auto 1fr;
    gap: .7rem;
    padding: .8rem;
  }
  .board__icon { display: none; }
  .board__date { min-width: 48px; padding: .4rem; }
  .board__date strong { font-size: 1.1rem; }
  .board__title { font-size: .95rem; }
  .board__meta { font-size: .75rem; }

  /* Info panel */
  .info-panel { padding: 1.5rem; }

  /* Section head – tlačidlo pod titulok */
  .section-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .section-head .btn { align-self: stretch; justify-content: center; }

  /* Page header */
  .page-header { padding: 2.5rem 0 4rem; }
  .page-header h1 { font-size: 1.8rem; }

  /* Article */
  .article { padding: 1.3rem; margin-top: -2rem; border-radius: var(--radius); }
  .article h1 { font-size: 1.5rem; }
  .article__meta { gap: .6rem; font-size: .78rem; }

  /* Filter bar */
  .filter-bar { padding: .8rem; gap: .5rem; }
  .filter-bar input, .filter-bar select { min-width: 0; flex: 1 1 140px; font-size: .88rem; }
  .chip { font-size: .78rem; padding: .35rem .7rem; }

  /* Pagination na mobile */
  .pagination .page-numbers a,
  .pagination .page-numbers span {
    min-width: 38px; height: 38px;
    padding: 0 .65rem;
    font-size: .9rem;
  }

  /* Contact form */
  .contact-form { padding: 1.3rem; }
  .info-card { padding: 1.3rem; }
  .info-card h3 { font-size: 1.05rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1rem; }
  .footer__grid { gap: 1.5rem; padding-bottom: 1.5rem; }
  .footer h4 { font-size: .85rem; }
  .footer__bottom { font-size: .75rem; justify-content: center; text-align: center; }
}

/* Malý mobil 540px */
@media (max-width: 540px) {
  .topbar__meta { gap: .5rem; }
  .topbar__social { display: none; }
  .hero h1 { font-size: 1.75rem; }
  .hero p.lead { font-size: .92rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-head h2 { font-size: 1.5rem; }
  .pagination .page-numbers { gap: .25rem; }
  .pagination .page-numbers a,
  .pagination .page-numbers span { min-width: 34px; height: 34px; padding: 0 .5rem; font-size: .85rem; }
  .filter-bar input { flex: 1 1 100%; }
  .breadcrumb { font-size: .75rem; }
  .card__media { aspect-ratio: 16/11; }
  .article__lead { font-size: .98rem; }
  .info-grid { grid-template-columns: 1fr; }
}

/* Veľmi malé obrazovky 380px */
@media (max-width: 380px) {
  .container { width: 94%; }
  .brand__text h1 { font-size: .95rem; }
  .brand__text small { font-size: .65rem; }
  .hero__badge { font-size: .65rem; }
}


/* ============================================================
   PATCH v1.0.5 – zmenšenie hero sekcie
   ============================================================ */
.hero {
  min-height: 440px !important;
}
.hero__inner {
  padding: clamp(2.5rem, 5vw, 4rem) 0 !important;
  gap: 2.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem) !important;
  margin-bottom: .5em;
}
.hero p.lead {
  font-size: clamp(.98rem, 1.2vw, 1.1rem) !important;
}
.hero__stats {
  padding: 1.5rem;
  gap: .9rem;
}
.hero__stat strong {
  font-size: 1.8rem;
}
.hero__stat {
  padding: .85rem;
}
.hero__badge {
  margin-bottom: .9rem;
}
.hero__actions {
  margin-top: 1.3rem;
}

@media (max-width: 980px) {
  .hero { min-height: 380px !important; }
  .hero__inner { gap: 1.5rem; }
}
@media (max-width: 780px) {
  .hero { min-height: 340px !important; }
  .hero h1 { font-size: clamp(1.8rem, 5vw, 2.2rem) !important; }
}
@media (max-width: 540px) {
  .hero { min-height: 300px !important; }
}


/* ============================================================
   PATCH v1.0.8 – responzívne iframes (Google Maps, YouTube...)
   ============================================================ */
.article iframe,
.article embed,
.article object,
.article video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Google Maps embed */
.article iframe[src*="google.com/maps"],
.article iframe[src*="maps.google"] {
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 4/3;
  height: auto !important;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* YouTube/Vimeo embed */
.article iframe[src*="youtube"],
.article iframe[src*="vimeo"],
.article iframe[src*="player"] {
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16/9;
  height: auto !important;
  border: 0;
  border-radius: var(--radius);
}

/* Gutenberg columns – obmedz šírku */
.article .wp-block-columns {
  max-width: 100%;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article .wp-block-column {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 240px;
}
.article .wp-block-column > * { max-width: 100%; }
.article .wp-block-columns iframe,
.article .wp-block-column iframe {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
}

/* WP embed blocky */
.article .wp-block-embed,
.article .wp-block-embed__wrapper {
  max-width: 100%;
  margin: 1.5rem 0;
}
.article .wp-block-embed iframe {
  width: 100% !important;
  max-width: 100%;
}

/* WP file block s PDF embed */
.article .wp-block-file object,
.article .wp-block-file embed {
  max-width: 100%;
  width: 100% !important;
  aspect-ratio: 4/3;
  height: auto !important;
  border-radius: var(--radius);
  margin-bottom: .8rem;
}

/* Obrázky a figure v obsahu */
.article img,
.article figure {
  max-width: 100%;
  height: auto;
}

@media (max-width: 780px) {
  .article .wp-block-columns { flex-direction: column; }
  .article .wp-block-column { flex: 1 1 100%; }
}
