/* ═══════════════════════════════════════════════════════════
   BKL 2025 Theme - Main Stylesheet
   Paper textures and serif type of the 2016 site, rebuilt
   mobile-first on a fluid layout.
   ═══════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────── */
:root {
    --bkl-paper: #efecdf;
    --bkl-tan: #d0c3af;
    --bkl-black: #000;
    --bkl-dark: #222;
    --bkl-btn: #434343;
    --bkl-btn-hover: #242424;
    --bkl-brown: #82410c;
    --bkl-text: #333;
    --bkl-muted: #77705f;
    --bkl-rule: #b9b09c;
    --bkl-light-text: #d0c3af;
    --bkl-white: #fff;
    --font-body: 'Caladea', 'Cambria', 'Georgia', 'Times New Roman', serif;
    --font-heading: var(--font-body);
    --bkl-line: url('../img/line-short.png');
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--bkl-text);
    background: var(--bkl-paper) url('../img/background.png') repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bkl-text);
    text-wrap: balance;
}

a {
    color: var(--bkl-brown);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover,
a:focus {
    color: #000;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--bkl-brown);
    outline-offset: 2px;
    box-shadow: none;
}

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

iframe,
video,
embed,
object {
    max-width: 100%;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.bkl-topbar {
    padding: 4px 0;
    font-size: 1rem;
    line-height: 1.25;
}

.bkl-topbar .container {
    gap: 12px;
}

.bkl-topbar-text {
    font-weight: 700;
}

.bkl-fblogo {
    display: block;
    width: 32px;
    height: 32px;
    transition: opacity 0.15s;
}

a:hover .bkl-fblogo {
    opacity: 0.75;
}

/* ── Navbar ───────────────────────────────────────────────── */
.bkl-navbar {
    background-color: var(--bkl-black);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    padding: 0;
    z-index: 1030;
}

.bkl-navbar-brand {
    padding: 6px 0;
    margin-right: 16px;
    flex-shrink: 1;
    min-width: 0;
}

.bkl-navbar-brand .logo {
    display: block;
    width: auto;
    max-height: 48px;
}

.bkl-navbar .navbar-nav .nav-link {
    color: var(--bkl-light-text);
    padding: 12px 4px;
    font-size: 1.125rem;
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bkl-navbar .navbar-nav .nav-link:hover,
.bkl-navbar .navbar-nav .nav-link:focus,
.bkl-navbar .navbar-nav .nav-link.show {
    color: var(--bkl-white);
}

.bkl-navbar .navbar-nav .nav-link.active {
    color: var(--bkl-white);
    font-weight: 700;
}

.bkl-navbar .dropdown-menu {
    background-color: var(--bkl-black);
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0 0 8px 16px;
}

.bkl-navbar .dropdown-menu .dropdown-item {
    color: var(--bkl-light-text);
    padding: 8px 4px;
    font-size: 1.0625rem;
    white-space: normal;
}

.bkl-navbar .dropdown-menu .dropdown-item:hover,
.bkl-navbar .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bkl-white);
}

.bkl-navbar .dropdown-menu .dropdown-item.active {
    background-color: transparent;
    color: var(--bkl-white);
    font-weight: 700;
}

.bkl-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    padding: 6px 10px;
}

.bkl-navbar .navbar-collapse {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

@media (min-width: 992px) {
    .bkl-navbar-brand .logo {
        max-height: 68px;
    }

    .bkl-navbar .navbar-collapse {
        max-height: none;
        overflow: visible;
    }

    .bkl-navbar .navbar-nav .nav-link {
        padding: 26px 14px;
        border-top: 0;
    }

    .bkl-navbar .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .bkl-navbar .dropdown-menu {
        padding: 6px 0;
        min-width: 14rem;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
    }

    .bkl-navbar .dropdown-menu .dropdown-item {
        padding: 8px 20px;
    }
}

/* ── Hero (full-width slider + paper card) ────────────────── */
.bkl-hero {
    position: relative;
    background: var(--bkl-tan) url('../img/bgl.png') repeat;
    overflow-x: clip;
}

.bkl-swiper {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 60vh;
    background-color: var(--bkl-dark);
}

.bkl-swiper .swiper-slide,
.bkl-swiper .swiper-slide > a {
    display: block;
    height: 100%;
}

.bkl-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bkl-hero-overlay {
    padding: 28px 0 32px;
}

/* Stack of paper sheets, as on the old photo frame */
.bkl-hero-card {
    position: relative;
    isolation: isolate;
    max-width: 560px;
    margin: 0 auto;
}

.bkl-hero-card::before,
.bkl-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bkl-white);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.bkl-hero-card::before {
    transform: rotate(-1.6deg);
}

.bkl-hero-card::after {
    transform: rotate(1.2deg);
}

.bkl-hero-content {
    position: relative;
    background: var(--bkl-white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    padding: 22px 20px 24px;
}

.bkl-hero-content h1 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bkl-rule);
}

.bkl-featured-content {
    font-size: 1.125rem;
    line-height: 1.55;
}

.bkl-featured-content p {
    margin-bottom: 10px;
}

.bkl-seemore {
    display: inline-block;
    padding: 4px 0;
}

.bkl-hero-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

/* Buttons */
.bkl-btn,
.bkl-btn:visited {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.3;
    background-color: var(--bkl-btn);
    border: 1px solid var(--bkl-btn);
    color: #e2ded3;
    border-radius: 4px;
    padding: 11px 16px;
    transition: background-color 0.15s, color 0.15s;
}

.bkl-btn:hover,
.bkl-btn:focus,
.bkl-btn:active {
    background-color: var(--bkl-btn-hover) !important;
    border-color: var(--bkl-btn-hover) !important;
    color: var(--bkl-white) !important;
}

/* Swiper controls */
.bkl-swiper .swiper-button-prev,
.bkl-swiper .swiper-button-next {
    display: none;
    color: var(--bkl-white);
    opacity: 0.75;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
    transition: opacity 0.2s;
}

.bkl-swiper .swiper-button-prev:hover,
.bkl-swiper .swiper-button-next:hover {
    opacity: 1;
}

.bkl-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--bkl-white);
    opacity: 0.6;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

.bkl-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (min-width: 768px) {
    .bkl-hero {
        min-height: clamp(420px, 66vh, 640px);
        display: flex;
        align-items: center;
    }

    .bkl-swiper {
        position: absolute;
        inset: 0;
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
    }

    .bkl-hero-overlay {
        position: relative;
        z-index: 10;
        width: 100%;
        padding: 48px 0 56px;
        pointer-events: none;
    }

    .bkl-hero-card {
        max-width: 520px;
        margin: 0;
        pointer-events: auto;
    }

    .bkl-hero-content {
        padding: 26px 30px 30px;
    }
}

@media (min-width: 1400px) {
    .bkl-swiper .swiper-button-prev,
    .bkl-swiper .swiper-button-next {
        display: flex;
    }
}

/* ── Mobile App Bar ───────────────────────────────────────── */
.bkl-appbar {
    background: #111;
    color: var(--bkl-white);
    padding: 12px 0;
}

.bkl-app-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 24px;
    text-align: center;
}

.bkl-app-title,
.bkl-app-title:hover,
.bkl-app-title:focus {
    color: var(--bkl-white);
    font-size: 1.125rem;
}

.bkl-app-title:hover,
.bkl-app-title:focus {
    text-decoration: underline;
}

.bkl-app-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bkl-badge {
    display: block;
    height: 40px;
    width: auto;
}

/* ── Middlebar (subpage title) ────────────────────────────── */
.bkl-middlebar {
    background: var(--bkl-tan) url('../img/bgl.png') repeat;
    padding: 22px 0;
}

.bkl-middlebar h1 {
    font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
    font-weight: 400;
    margin: 0;
}

.bkl-middlebar p {
    margin: 10px 0 0;
    max-width: 70ch;
}

.bkl-back-link {
    display: inline-block;
    padding: 4px 0;
    white-space: nowrap;
}

/* ── Paper sections ───────────────────────────────────────── */
.bkl-boxes-section,
.bkl-content-area {
    flex: 1 0 auto;
    background: url('../img/bg-content.png') repeat-x left top;
    padding: 36px 0 40px;
}

/* ── Homepage boxes ───────────────────────────────────────── */
.bkl-boxes {
    --bs-gutter-y: 2.5rem;
}

.bkl-box-title {
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin: 0 0 22px;
    padding-bottom: 26px;
    background: var(--bkl-line) repeat-x center bottom;
}

.bkl-box img {
    display: block;
    margin: 0 auto;
    padding: 5px;
    background: var(--bkl-white);
    border: 1px solid #999;
}

.bkl-box a img {
    transition: background-color 0.15s;
}

.bkl-box a:hover img {
    background: #fae1c5;
}

@media (min-width: 768px) {
    .bkl-boxes {
        --bs-gutter-x: 2.5rem;
    }

    .bkl-box {
        text-align: justify;
    }

    /* Two-line titles keep the rule on one level across columns */
    .bkl-box-title {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(2.4em + 26px);
    }
}

/* ── Partners Rotator ─────────────────────────────────────── */
.bkl-partners {
    padding: 20px 0 0;
}

.bkl-partners h2 {
    font-size: 1.5rem;
    font-weight: 400;
}

.bkl-partners-swiper .swiper-slide,
.bkl-partners-swiper .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.bkl-partners-swiper .swiper-slide img {
    max-height: 70px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.bkl-partners-swiper .swiper-slide img:hover {
    opacity: 1;
}

/* ── Content ──────────────────────────────────────────────── */
@media (min-width: 992px) {
    .bkl-content-area > .container > .row {
        --bs-gutter-x: 3rem;
    }
}

.bkl-content {
    font-size: 1.125rem;
    line-height: 1.65;
    min-width: 0;
}

.bkl-content h2 { font-size: 1.6rem; margin: 1.4em 0 0.5em; }
.bkl-content h3 { font-size: 1.35rem; margin: 1.3em 0 0.5em; }
.bkl-content h4 { font-size: 1.2rem; margin: 1.2em 0 0.4em; }

.bkl-content .bkl-post-body > :first-child {
    margin-top: 0;
}

.bkl-post-body {
    margin-bottom: 20px;
}

.bkl-post-body::after {
    content: '';
    display: table;
    clear: both;
}

.bkl-content img {
    background: var(--bkl-white);
    border: 1px solid #888;
    padding: 8px;
}

.bkl-content a img {
    transition: background-color 0.15s;
}

.bkl-content a:hover img {
    background: #fae1c5;
}

.bkl-content .aligncenter {
    display: block;
    margin: 12px auto;
}

.bkl-content .alignleft {
    float: left;
    margin: 6px 24px 14px 0;
}

.bkl-content .alignright {
    float: right;
    margin: 6px 0 14px 24px;
}

.bkl-content .wp-caption {
    max-width: 100%;
}

.bkl-content .wp-caption-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--bkl-muted);
    text-align: center;
    margin: 6px 0 0;
}

.bkl-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

.bkl-content th,
.bkl-content td {
    padding: 8px 12px;
    border: 1px solid var(--bkl-rule);
    vertical-align: top;
}

.bkl-content th {
    background: rgba(208, 195, 175, 0.45);
}

.bkl-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.25rem;
}

.bkl-table-scroll table {
    margin-bottom: 0;
}

.bkl-content blockquote {
    margin: 1.25rem 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--bkl-tan);
    font-style: italic;
}

@media (max-width: 575.98px) {
    .bkl-content .alignleft,
    .bkl-content .alignright {
        float: none;
        display: block;
        margin: 12px auto;
    }
}

/* Paged posts (1 2 3 …) and archive pagination */
.bkl-pages,
.bkl-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.bkl-pages .post-page-numbers,
.bkl-pagination .page-numbers {
    min-width: 40px;
    padding: 6px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--bkl-rule);
    border-radius: 3px;
    color: var(--bkl-brown);
}

.bkl-pages a.post-page-numbers:hover,
.bkl-pagination a.page-numbers:hover {
    background: var(--bkl-white);
    color: #000;
}

.bkl-pages .post-page-numbers.current,
.bkl-pagination .page-numbers.current {
    background: var(--bkl-btn);
    border-color: var(--bkl-btn);
    color: var(--bkl-white);
}

.bkl-pagination .page-numbers.dots {
    background: none;
    border-color: transparent;
}

/* Ticket iframe */
.bkl-iframe-wrap {
    margin-top: 20px;
}

.bkl-buy-ticket #iframe-sprzedaz {
    display: block;
    border: 0;
    width: 100%;
    max-width: 960px;
    height: 1200px;
    margin: 0 auto;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.bkl-sidebar {
    font-size: 1.0625rem;
    line-height: 1.45;
}

.bkl-sidebar .widget {
    padding-bottom: 28px;
    margin-bottom: 22px;
    background: var(--bkl-line) repeat-x center bottom;
}

.bkl-sidebar .widget:last-child {
    background: none;
    margin-bottom: 0;
}

.bkl-sidebar h2,
.bkl-sidebar h3 {
    font-size: 1.35rem;
    margin: 0 0 12px;
}

.bkl-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bkl-sidebar li {
    position: relative;
    padding: 0 0 8px 18px;
}

.bkl-sidebar li::before {
    content: '\00BB';
    position: absolute;
    left: 0;
    color: var(--bkl-text);
}

.bkl-sidebar img {
    display: block;
    margin: 0 auto 10px;
    padding: 5px;
    background: var(--bkl-white);
    border: 1px solid #999;
}

.bkl-sidebar p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .bkl-sidebar {
        margin-top: 36px;
        padding-top: 30px;
        background: var(--bkl-line) repeat-x center top;
    }
}

/* ── Archive ──────────────────────────────────────────────── */
.bkl-archive-box {
    padding-bottom: 26px;
    margin-bottom: 20px;
    background: var(--bkl-line) repeat-x left bottom;
}

.bkl-archive-box::after {
    content: '';
    display: table;
    clear: both;
}

.bkl-archive-box h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 4px;
}

.bkl-archive-date {
    color: var(--bkl-muted);
    font-size: 1rem;
    margin-bottom: 8px;
}

.bkl-archive-box p {
    margin-bottom: 6px;
}

.bkl-readmore {
    float: right;
    padding: 4px 0;
}

.bkl-subcategories .btn {
    font-size: 1rem;
    border-radius: 3px;
    border-color: var(--bkl-btn);
    color: var(--bkl-btn);
}

.bkl-subcategories .btn:hover,
.bkl-subcategories .btn.active {
    background: var(--bkl-btn);
    border-color: var(--bkl-btn);
    color: var(--bkl-white);
}

/* ── Contact Form ─────────────────────────────────────────── */
.bkl-contact-form {
    max-width: 640px;
}

.bkl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bkl-contact-form .form-label {
    font-weight: 700;
    margin-bottom: 4px;
}

.bkl-contact-form .form-control {
    font-family: var(--font-body);
    font-size: 1.125rem;
    border-color: var(--bkl-rule);
    border-radius: 3px;
}

.bkl-contact-form .form-control:focus {
    border-color: var(--bkl-brown);
    box-shadow: 0 0 0 0.2rem rgba(130, 65, 12, 0.18);
}

/* ── Footer ───────────────────────────────────────────────── */
.bkl-footer {
    flex-shrink: 0;
    background: var(--bkl-dark);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    padding: 22px 0 30px;
    color: var(--bkl-white);
    font-size: 1.0625rem;
}

.bkl-footer .container {
    gap: 14px 32px;
}

.bkl-footer a {
    color: var(--bkl-white);
}

.bkl-footer a[href]:hover,
.bkl-footer a[href]:focus {
    color: var(--bkl-light-text);
    text-decoration: underline;
}

.bkl-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
}

.bkl-footer-menu a {
    display: inline-block;
    padding: 4px 0;
}

.bkl-footer-copy {
    text-align: center;
}

/* ── Utility ──────────────────────────────────────────────── */
.clear {
    clear: both;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .bkl-topbar,
    .bkl-navbar,
    .bkl-swiper,
    .bkl-appbar,
    .bkl-footer,
    .bkl-sidebar,
    .bkl-back-link {
        display: none;
    }

    .bkl-content-area,
    .bkl-boxes-section,
    .bkl-middlebar,
    .bkl-hero {
        background: none;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }
}
