/* OZ Javoráčik – farby podľa loga (javorový list) */
:root {
  --maple: #b8471a;
  --maple-dark: #8f3412;
  --amber: #f0a020;
  --leaf: #4d7a2a;
  --ink: #2b2420;
  --muted: #6b5f57;
  --bg: #fffdf8;
  --bg-alt: #fbf3e6;
  --line: #eadfce;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(80, 50, 20, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maple); text-underline-offset: 2px; }
a:hover { color: var(--maple-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: .4em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.main { padding: 32px 0 64px; }
.main-wide { padding-bottom: 0; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Hlavička */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 64px; height: 44px; overflow: hidden; flex: none; }
.brand-logo img { width: 110px; max-width: none; margin: -38px 0 0 -40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--maple); }
.brand-text small { color: var(--muted); font-size: .8rem; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { display: block; padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.main-nav a:hover { background: var(--bg-alt); color: var(--maple-dark); }
.main-nav a[aria-current="page"] { color: var(--maple); background: var(--bg-alt); }
.main-nav a.nav-cta { background: var(--maple); color: #fff; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta[aria-current="page"] { background: var(--maple-dark); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { padding: 12px; }
}

/* Tlačidlá */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; margin: 4px 6px 4px 0; }
.btn-primary { background: var(--maple); color: #fff; }
.btn-primary:hover { background: var(--maple-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--maple-dark); }
.btn-outline { border-color: var(--maple); color: var(--maple); background: transparent; }
.btn-outline:hover { background: var(--maple); color: #fff; }

/* Úvod */
.hero { position: relative; }
.hero-photo { position: relative; max-width: 1400px; margin: 0 auto; }
.hero-img { width: 100%; max-height: 560px; object-fit: cover; object-position: 50% 35%; }
.hero-credit { position: absolute; right: 12px; bottom: 6px; font-size: .7rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); margin: 0; }
.hero-text { position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(80,50,20,.14);
  padding: 28px clamp(20px, 4vw, 44px) 24px; margin-top: -72px; max-width: 900px; border-top: 5px solid var(--amber); }
.hero h1 { margin: .25em 0 .4em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--leaf); margin: 0; }
.lead { font-size: 1.1rem; color: var(--muted); }
@media (max-width: 600px) { .hero-text { margin-top: -24px; width: calc(100% - 24px); } }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-top: 0; text-align: center; }
.center { text-align: center; margin-top: 24px; }

/* Karty */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--maple); }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--amber), var(--maple)); opacity: .35; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: .2em 0 .4em; font-size: 1.15rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card time, .meta { color: var(--muted); font-size: .85rem; }

/* Obsah stránok a článkov */
.content { max-width: 800px; margin-inline: auto; overflow-wrap: anywhere; }
.content figure { margin: 1.5em 0; }
.content figure img { border-radius: var(--radius); }
.content figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.content > img, .content p > img { border-radius: var(--radius); margin: 1em 0; }
.content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--amber); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.content li { margin-bottom: .3em; }
.content a[href$=".pdf"]::after { content: " (PDF)"; font-size: .8em; color: var(--muted); }
.crumbs { margin: 0; font-size: .9rem; }
.crumbs a { text-decoration: none; }

/* Galéria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 1em 0 2em; }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15,10,5,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100% - 32px); max-height: calc(100% - 96px); border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Päta */
.site-footer { background: #3a2a20; color: #f3e7d9; padding: 40px 0 20px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .6em; }
.site-footer a { color: #ffd38a; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.copy { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; margin-top: 16px; font-size: .85rem; opacity: .8; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .lightbox { display: none; } }
