/*
Theme Name: BnO Modern
Description: Nowoczesny motyw potomny dla BnO Lublin.
Author: BnO Lublin
Template: twentyfourteen
Version: 0.1.6
Text Domain: bno-modern
*/

:root {
  --bno-ink: #17332b;
  --bno-muted: #64786f;
  --bno-green: #087f5b;
  --bno-green-dark: #173d32;
  --bno-mint: #e4f4eb;
  --bno-bg: #f5f8f6;
  --bno-surface: #ffffff;
  --bno-line: #dce7e1;
  --bno-orange: #f0a33b;
  --bno-shadow: 0 18px 50px rgba(25, 55, 43, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bno-ink);
  background: var(--bno-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bno-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.bno-skip { position: absolute; top: -100px; left: 16px; z-index: 99; padding: 10px 14px; color: #fff; background: var(--bno-green-dark); }
.bno-skip:focus { top: 12px; }

.bno-site-header { position: relative; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--bno-line); }
.bno-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bno-brand { display: flex; align-items: center; gap: 12px; color: var(--bno-ink); text-decoration: none; }
.bno-brand-mark { display: grid; width: 46px; height: 52px; place-items: center; overflow: hidden; border-radius: 10px; background: #fff; }
.bno-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bno-brand-name { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.bno-brand-subtitle { display: block; color: var(--bno-muted); font-size: 12px; }
.bno-main-menu { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.bno-main-menu a { color: var(--bno-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.bno-main-menu a:hover, .bno-main-menu a:focus { color: var(--bno-green); }
.bno-main-menu li { position: relative; }
.bno-main-menu .sub-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--bno-line); border-radius: 12px; background: var(--bno-surface); box-shadow: var(--bno-shadow); }
.bno-main-menu li:hover > .sub-menu, .bno-main-menu li:focus-within > .sub-menu { display: block; }
.bno-main-menu .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }
.bno-main-menu .sub-menu a { display: block; padding: 9px 10px; }
.bno-menu-toggle { display: none; width: 44px; height: 44px; padding: 0; color: var(--bno-ink); border: 1px solid var(--bno-line); border-radius: 11px; background: var(--bno-surface); }

.bno-hero {
  min-height: 560px;
  padding: 86px 0 110px;
  background-image: linear-gradient(90deg, rgba(228,246,236,.98) 0%, rgba(232,247,239,.91) 38%, rgba(232,247,239,.34) 63%, rgba(232,247,239,.04) 100%), url('assets/bno-orienteering-hero.png');
  background-position: center, center right;
  background-size: cover;
  background-repeat: no-repeat;
}
.bno-hero-grid { display: block; }
.bno-eyebrow { color: var(--bno-green); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bno-hero h1 { max-width: 720px; margin: 12px 0 18px; font-size: clamp(42px, 6.2vw, 76px); line-height: .98; letter-spacing: -.055em; }
.bno-lead { max-width: 680px; margin: 0; color: #536a61; font-size: clamp(17px, 2vw, 21px); }
.bno-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bno-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid #b9ccc3; border-radius: 12px; color: var(--bno-ink); background: rgba(255,255,255,.72); font-weight: 700; text-decoration: none; }
.bno-button:hover, .bno-button:focus { border-color: var(--bno-green); color: var(--bno-green); }
.bno-button-primary { border-color: var(--bno-green); color: #fff; background: var(--bno-green); }
.bno-button-primary:hover, .bno-button-primary:focus { color: #fff; background: #066d4e; }
.bno-next { position: relative; margin: -86px 0 46px; padding: clamp(18px, 3vw, 30px); border-radius: 20px; color: #fff; background: var(--bno-green-dark); box-shadow: var(--bno-shadow); }
.bno-next h2 { margin: 0 0 16px; color: #fff; font-size: 26px; line-height: 1.18; }
.bno-next p { margin: 0; color: #c8ded5; }
.bno-next-list { margin: 0; padding: 0; list-style: none; }
.bno-next-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.22); }
.bno-next-list li + li { margin-top: 16px; }
.bno-next-list h3 { margin: 0 0 4px; color: #fff; font-size: 20px; }
.bno-next-list .bno-button { background: #fff; }

.bno-main { padding: 44px 0 68px; }
.bno-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.bno-section-head h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; }
.bno-section-head a { color: var(--bno-green); font-size: 14px; font-weight: 700; text-decoration: none; }
.bno-tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bno-tile { position: relative; min-height: 190px; padding: 20px 68px 20px 20px; overflow: hidden; border: 1px solid rgba(8,127,91,.28); border-radius: 18px; color: var(--bno-ink); background: var(--bno-surface); box-shadow: 0 12px 34px rgba(8,127,91,.19), 0 0 22px rgba(8,127,91,.12), inset 0 1px 0 rgba(255,255,255,.9); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.bno-tile:hover, .bno-tile:focus { transform: translateY(-5px); border-color: var(--bno-green); box-shadow: 0 18px 42px rgba(8,127,91,.28), 0 0 32px rgba(8,127,91,.2), inset 0 1px 0 rgba(255,255,255,.95); }
.bno-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bno-tile-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--bno-green); background: var(--bno-mint); }
.bno-tile h3 { margin: 24px 0 6px; font-size: 18px; line-height: 1.25; }
.bno-tile p { margin: 0; color: var(--bno-muted); font-size: 14px; }
.bno-tile-emblem { position: absolute; right: 12px; bottom: 12px; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 16px; background: linear-gradient(135deg,rgba(239,250,245,.96),rgba(255,244,225,.72)); box-shadow: 0 8px 20px rgba(8,127,91,.11); transform: rotate(-4deg); transition: transform .18s ease, box-shadow .18s ease; }
.bno-art-icon { display: block; width: 45px; height: 45px; }
.bno-tile:hover .bno-tile-emblem, .bno-tile:focus .bno-tile-emblem { transform: rotate(0deg) scale(1.08); box-shadow: 0 10px 25px rgba(8,127,91,.2); }

.bno-news { margin-top: 46px; }
.bno-news-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.bno-feature, .bno-news-list { overflow: hidden; border: 1px solid var(--bno-line); border-radius: 18px; background: var(--bno-surface); }
.bno-feature { padding: 26px; }
.bno-date { color: var(--bno-green); font-size: 13px; font-weight: 700; }
.bno-feature h3 { margin: 10px 0; font-size: clamp(22px, 3vw, 31px); line-height: 1.2; letter-spacing: -.025em; }
.bno-feature h3 a, .bno-news-item h3 a { text-decoration: none; }
.bno-feature p { color: var(--bno-muted); }
.bno-read-more { color: var(--bno-green); font-size: 14px; font-weight: 700; text-decoration: none; }
.bno-news-item { padding: 20px; }
.bno-news-item + .bno-news-item { border-top: 1px solid var(--bno-line); }
.bno-news-item h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.35; }

.bno-site-footer { padding: 30px 0; color: #c5d9d1; background: #102920; }
.bno-footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.bno-site-footer a { color: #fff; }
.bno-inner-page { min-height: 70vh; padding: 52px 0 72px; }
.bno-inner-page h1 { margin: 0 0 28px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.045em; }
.bno-page-content > p:first-child { margin-top: 0; }
.bno-calendar { display: grid; gap: 16px; }
.bno-calendar h2 { margin: 8px 0; color: var(--bno-ink); font-size: clamp(22px, 3vw, 31px); line-height: 1.2; }
.bno-calendar p { margin: 6px 0; }
.bno-calendar .bno-button { margin-top: 14px; }
.bno-map-link { display: inline-flex; align-items: center; min-height: 30px; margin-inline-start: 8px; padding: 2px 9px; border: 1px solid currentColor; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.bno-map-link:hover, .bno-map-link:focus-visible { text-decoration: underline; }
.bno-next .bno-map-link { color: #fff; }
.bno-public-entries h2 { margin: 14px 0 0; }
.bno-public-entries p { margin: 8px 0; }
.bno-feature.bno-public-entries { padding: clamp(14px, 3vw, 26px); }
.bno-entries-table { overflow-x: auto; margin-top: 16px; }
.bno-entries-table table { width: 100%; min-width: 440px; border-collapse: collapse; }
.bno-entries-table :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--bno-line); text-align: left; }
.bno-entries-table th { background: var(--bno-mint); }
.bno-entries-table th a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; white-space: nowrap; text-decoration: none; }
.bno-entries-table th a:hover, .bno-entries-table th a:focus-visible { text-decoration: underline; }
.bno-entries-table th a span { color: var(--bno-green); }
.bno-icon-svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .bno-hero { min-height: 520px; background-position: center, 62% center; }
  .bno-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bno-shell { width: min(100% - 28px, 1180px); }
  .bno-menu-toggle { display: grid; place-items: center; }
  .bno-menu-wrap { display: none; position: absolute; inset: 76px 0 auto; max-height: calc(100vh - 76px); overflow-y: auto; padding: 16px 20px 22px; border-bottom: 1px solid var(--bno-line); background: #fff; }
  .bno-menu-wrap.is-open { display: block; }
  .bno-main-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .bno-main-menu a { display: block; padding: 11px 0; }
  .bno-main-menu .sub-menu, .bno-main-menu .sub-menu .sub-menu { display: block; position: static; min-width: 0; margin-inline-start: 12px; padding: 0 0 0 10px; border: 0; border-inline-start: 1px solid var(--bno-line); border-radius: 0; box-shadow: none; }
  .bno-hero { min-height: 540px; padding: 48px 0 110px; background-image: linear-gradient(90deg, rgba(228,246,236,.98) 0%, rgba(232,247,239,.91) 67%, rgba(232,247,239,.36) 100%), url('assets/bno-orienteering-hero.png'); background-position: center, 66% center; }
  .bno-hero h1 { max-width: 520px; }
  .bno-lead { max-width: 480px; }
  .bno-next { margin-top: -82px; }
  .bno-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .bno-tile-grid { grid-template-columns: 1fr; }
  .bno-tile { min-height: 155px; }
  .bno-section-head { align-items: flex-start; flex-direction: column; }
  .bno-footer-grid { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bno-tile { transition: none; }
}
