:root {
  --green: #7fa020;
  --green-dark: #5d7a12;
  --green-soft: #eef4dc;
  --ink: #1f2a1a;
  --muted: #5f6b58;
  --line: #e3e8da;
  --bg: #ffffff;
  --bg-alt: #f7f8f3;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.more { margin-top: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: static; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--green-soft); }
.nav a[aria-current='page'], .nav .current-menu-item > a { color: var(--green-dark); background: var(--green-soft); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--green); }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; color: #fff; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.65)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 48px; width: 100%; }
.hero p { font-size: 1.15rem; max-width: 55ch; margin: 0 0 24px; }

/* Feature points */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 24px; }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature h3 { font-size: 1.05rem; color: var(--green-dark); }
.feature p { margin: 0; color: var(--muted); }

/* Gallery cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.card { text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 1.05rem; margin: 0 0 4px; }
.card-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }

/* Page / realizácia content (blocks) */
.entry > * + * { margin-top: 1.2em; }
.entry .wp-block-columns { display: flex; gap: 40px; align-items: flex-start; }
.entry .wp-block-column { min-width: 0; }
@media (max-width: 860px) {
  .entry .wp-block-columns { flex-direction: column; }
  .entry .wp-block-column { flex-basis: 100% !important; width: 100%; }
}
.entry .wp-block-gallery { margin: 0; }
.entry .wp-block-gallery img { border-radius: var(--radius); }
.entry .wp-block-image img { border-radius: var(--radius); }

.is-style-badge { display: inline-block; background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin: 0 0 12px; }

.wp-block-table { margin: 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }

/* Table style "Parametre stavby" */
.wp-block-table.is-style-parametre table { border-top: 1px solid var(--line); font-size: .95rem; }
.wp-block-table.is-style-parametre td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table.is-style-parametre td:first-child { color: var(--muted); padding-right: 16px; }
.wp-block-table.is-style-parametre td:last-child { font-weight: 600; text-align: right; }
.wp-block-table.is-style-parametre td:first-child:empty + td { text-align: left; font-weight: 500; }

/* Table style "Cenník" */
.wp-block-table.is-style-cennik { border: 1px solid var(--line); border-radius: var(--radius); }
.wp-block-table.is-style-cennik table { min-width: 560px; font-size: .95rem; }
.wp-block-table.is-style-cennik th, .wp-block-table.is-style-cennik td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: center; }
.wp-block-table.is-style-cennik th:first-child, .wp-block-table.is-style-cennik td:first-child { text-align: left; }
.wp-block-table.is-style-cennik thead { border: 0; }
.wp-block-table.is-style-cennik thead th { background: var(--ink); color: #fff; font-weight: 600; }
.wp-block-table.is-style-cennik tbody tr:nth-child(even) { background: var(--bg-alt); }
.wp-block-table.is-style-cennik tfoot { border: 0; }
.wp-block-table.is-style-cennik tfoot td { background: var(--green-soft); font-weight: 700; font-size: 1.05rem; border-bottom: 0; }
.wp-block-table.is-style-cennik .yes { color: var(--green); font-weight: 700; font-size: 1.15rem; }
.wp-block-table.is-style-cennik .no { color: #b8bfb2; }
.wp-block-table figcaption { color: var(--muted); font-size: .9rem; text-align: left; }

.wp-block-quote { margin: 24px 0 0; padding: 20px; background: var(--green-soft); border-radius: var(--radius); border-left: 4px solid var(--green); }
.wp-block-quote p { margin: 0 0 .7em; }
.wp-block-quote cite { color: var(--muted); font-size: .9rem; font-style: italic; }
.wp-block-quote cite::before { content: '— '; }

/* Footer */
.site-footer { background: var(--ink); color: #d7dccf; padding: 48px 0 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: .85rem; color: #9aa392; }
