/* ===========================================================================
   Včelaři Děčín — brand styles
   Barvy z loga: antracit (#2b2b2b) + včelařská žlutá (#f6c700), bílá, medová.
   Mobile-first, responzivní.
   =========================================================================== */

:root {
    --color-ink:        #2b2b2b;   /* antracit / téměř černá */
    --color-ink-soft:   #4a4a4a;
    --color-honey:      #f6c700;   /* včelařská žlutá */
    --color-honey-dark: #e0ad00;
    --color-amber:      #fff4cc;   /* světlá medová pro plochy */
    --color-cream:      #fffdf5;   /* teplé pozadí */
    --color-white:      #ffffff;
    --color-muted:      #6b6b6b;
    --color-border:     #ece6d4;

    --radius:    14px;
    --radius-sm: 8px;
    --shadow:    0 6px 20px rgba(43, 43, 43, .08);
    --shadow-lg: 0 12px 32px rgba(43, 43, 43, .14);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1100px;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-cream);
}

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

a { color: var(--color-honey-dark); }
a:hover { color: var(--color-ink); }

h1, h2, h3 { line-height: 1.25; color: var(--color-ink); }
h1 { font-size: 1.9rem; margin: 0 0 .6em; }
h2 { font-size: 1.45rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 18px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-ink);
    color: #fff;
    padding: .6em 1em;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Vizuálně skryté, ale čitelné pro čtečky / vyhledávače */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Header / navigation ------------------------------------------------ */
.site-header {
    background: var(--color-ink);
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-white);
    font-weight: 700;
}
.brand__logo {
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    object-fit: contain;
    box-shadow: 0 0 0 2px var(--color-honey);
}
.brand__name { font-size: 1.15rem; letter-spacing: .2px; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 3px;
    width: 26px;
    background: var(--color-honey);
    border-radius: 2px;
}

.site-nav { display: none; }
.site-nav.is-open {
    display: block;
    position: absolute;
    left: 0; right: 0;
    top: 72px;
    background: var(--color-ink);
    border-top: 3px solid var(--color-honey);
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.site-nav a {
    display: block;
    padding: 12px 8px;
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.site-nav a:hover { background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: var(--color-honey); }

/* --- Main ---------------------------------------------------------------- */
.site-main { padding-block: 32px 56px; min-height: 60vh; }

.page-header {
    position: relative;
    margin-bottom: 40px;
    padding: 28px 0 26px;
    border-bottom: 2px solid var(--color-border);
    background: url("../img/bg-pages.jpg") center 35% / cover no-repeat;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
/* Cream overlay — lets photo show just as a texture */
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(253, 249, 238, .91);
    z-index: 0;
}
.page-header h1,
.page-header p { position: relative; z-index: 1; }
.page-header p { color: var(--color-muted); margin-top: -.3em; }
/* Jemný honeycomb v pravém rohu — zůstává uvnitř boxu */
.page-header::after {
    content: "";
    position: absolute;
    right: -20px; top: 50%;
    transform: translateY(-50%);
    width: 120px; height: 120px;
    background: url("../img/honeycomb.svg") center / contain no-repeat;
    opacity: .08;
    pointer-events: none;
}

/* --- Hero (homepage) ----------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, var(--color-honey) 0%, var(--color-honey-dark) 100%);
    color: var(--color-ink);
    border-radius: var(--radius);
    padding: 40px 28px 48px;
    margin-bottom: 36px;
    box-shadow: var(--shadow);
}

/* Thematic photo — barely visible under the honey gradient */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/bg-hero.jpg") center 55% / cover no-repeat;
    opacity: .15;
    z-index: 0;
}

/* Originální logo na úvodní stránce */
.hero__logo-panel {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.hero__logo { width: clamp(170px, 42vw, 270px); height: auto; }
.hero__lead {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    font-size: 1.12rem;
    max-width: 52ch;
}

/* Plástev — jemná dekorace v rohu */
.hero__comb {
    position: absolute;
    top: -34px; right: -28px;
    width: 200px; height: auto;
    opacity: .14;
    pointer-events: none;
}

/* Medová „kapající" hrana pod hero */
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 16px;
    background:
        radial-gradient(12px 16px at 16px 0, var(--color-cream) 50%, transparent 51%) repeat-x;
    background-size: 40px 16px;
    z-index: 4;
}

/* --- Photo strip — decorative band below hero ---------------------------- */
.photo-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow);
}
.photo-strip__item {
    position: relative;
    background-size: cover;
    background-position: center;
}
.photo-strip__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(150, 80, 0, .50);
    transition: background .4s ease;
}
.photo-strip__item:hover::after { background: rgba(150, 80, 0, .25); }
.photo-strip__item--1 { background-image: url("../img/bg-hero.jpg");  background-position: center 38%; }
.photo-strip__item--2 { background-image: url("../img/bg-strip.jpg"); }
.photo-strip__item--3 { background-image: url("../img/bg-pages.jpg"); background-position: center 28%; display: none; }

/* --- Plástvový oddělovač sekcí ------------------------------------------ */
.comb-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 520px;
    margin: 34px auto;
}
.comb-divider::before,
.comb-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    border-radius: 2px;
}
.comb-divider::before { background: linear-gradient(to right, transparent, var(--color-honey)); }
.comb-divider::after  { background: linear-gradient(to left,  transparent, var(--color-honey)); }
.comb-divider img { width: 74px; height: auto; }

/* --- Article cards (aktuality) ------------------------------------------ */
.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.section-title a { font-size: .95rem; font-weight: 600; white-space: nowrap; }

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-amber);
    overflow: hidden;
}
.card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

/* Subtle honey gradient fades in from bottom of each card photo */
.card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(180, 100, 0, .30) 0%,
        rgba(246, 199, 0, .08) 45%,
        transparent 70%);
    pointer-events: none;
    transition: opacity .3s ease;
}
.card__media--placeholder::after { display: none; }
.card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    background:
        url("../img/honeycomb-soft.svg") center / 150px no-repeat,
        linear-gradient(135deg, var(--color-amber), #ffe9a3);
}
.card__media--placeholder span {
    filter: drop-shadow(0 3px 4px rgba(43, 43, 43, .18));
}

.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__date { color: var(--color-muted); font-size: .85rem; margin: 0 0 6px; }
.card__title { margin: 0 0 8px; font-size: 1.2rem; }
.card__title a { color: var(--color-ink); text-decoration: none; }
.card__title a:hover { color: var(--color-honey-dark); }
.card__perex { margin: 0 0 16px; color: var(--color-ink-soft); }
.card__more { margin-top: auto; align-self: flex-start; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--color-honey);
    color: var(--color-ink);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--color-honey);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--color-honey-dark); border-color: var(--color-honey-dark); color: var(--color-ink); }
.btn--ghost { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: #fff; }

/* --- Article detail ------------------------------------------------------ */
.article { background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.article__date { color: var(--color-muted); font-size: .9rem; }
.article__image { border-radius: var(--radius-sm); margin: 18px 0; }
.article__body { font-size: 1.05rem; }
.article__body p { margin: 0 0 1em; }
.attachment {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 22px; padding: 12px 18px;
    background: var(--color-amber); border-radius: var(--radius-sm);
    text-decoration: none; color: var(--color-ink); font-weight: 600;
}
.attachment:hover { background: var(--color-honey); }

/* --- Facebook share ------------------------------------------------------- */
.fb-share-wrap {
    display: flex; align-items: center; gap: 12px;
    margin-top: 28px; padding-top: 20px;
    border-top: 1px solid var(--color-honey);
}
.fb-share-label { font-size: .9rem; color: var(--color-muted); }

/* --- Facebook comments ---------------------------------------------------- */
.fb-comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--color-honey);
}
.fb-comments-section__heading {
    font-size: 1.3rem;
    margin: 0 0 20px;
    color: var(--color-ink);
}
.fb-comments-section .fb-comments { display: block; }

/* --- Consultation comments ------------------------------------------------ */
.konzultace-comments { margin-top: 48px; }
.konzultace-comments__heading {
    font-size: 1.3rem;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-honey);
}
.konzultace-comments__list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

/* Thread wrapper */
.konzultace-thread { display: flex; flex-direction: column; gap: 0; }
.konzultace-thread__actions { padding: 6px 0 4px; }

/* Comment bubble */
.konzultace-comment {
    background: #fff;
    border: 1px solid var(--color-border, #e5e0d5);
    border-radius: 10px;
    padding: 14px 18px;
}
.konzultace-comment--reply {
    background: var(--color-amber, #fff4cc);
    border-color: #e8dba0;
    font-size: .97rem;
}
.konzultace-comment__meta {
    display: flex; gap: 12px; align-items: baseline;
    margin-bottom: 6px; font-size: .9rem;
}
.konzultace-comment__body { margin: 0; white-space: pre-wrap; font-size: 1rem; }
.konzultace-comment__attachment {
    display: inline-block; margin-top: 8px;
    font-size: .88rem; color: var(--color-ink-soft);
    text-decoration: none;
}
.konzultace-comment__attachment:hover { text-decoration: underline; }

/* Replies indent */
.konzultace-replies {
    display: flex; flex-direction: column; gap: 8px;
    margin: 8px 0 0 32px;
    border-left: 3px solid var(--color-honey);
    padding-left: 16px;
}

/* Reply form */
.reply-form-wrap { margin: 8px 0 0 20px; border-left: 3px solid var(--color-border); padding-left: 14px; }
.konzultace-reply-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; }
.konzultace-reply-form .form-row { margin: 0; display: flex; flex-direction: column; }
.konzultace-reply-form .form-actions--compact { padding: 0; gap: 8px; display: flex; align-items: center; }
.konzultace-reply-form input[type="text"],
.konzultace-reply-form textarea,
.konzultace-comment-form input[type="text"],
.konzultace-comment-form textarea {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px; font: inherit;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    background: #fafaf8;
}
.konzultace-reply-form input[type="text"]:focus,
.konzultace-reply-form textarea:focus,
.konzultace-comment-form input[type="text"]:focus,
.konzultace-comment-form textarea:focus {
    outline: 2px solid var(--color-honey); border-color: var(--color-honey);
}
.counter-label { display: block; text-align: right; font-size: .82rem; margin-top: 2px; }

/* Small button variant */
.btn--sm { padding: 5px 12px; font-size: .85rem; }

.konzultace-comment-form { margin-top: 8px; }

/* --- Calendar / events --------------------------------------------------- */
.event {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.event__date {
    flex: 0 0 auto; text-align: center; min-width: 64px;
    background: var(--color-ink); color: #fff; border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.event__day { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--color-honey); }
.event__month { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }
.event__title { margin: 0 0 4px; font-size: 1.15rem; }
.event__meta { color: var(--color-muted); font-size: .9rem; margin: 0 0 6px; }

/* --- Photo gallery ------------------------------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.gallery a {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    transition: transform .35s ease;
}
.gallery a:hover img {
    transform: scale(1.06);
}

/* First photo spans 2 columns as a panoramic accent */
.gallery a:first-child { grid-column: span 2; }
.gallery a:first-child img { aspect-ratio: 16 / 7; }

/* --- Info / empty / flash ----------------------------------------------- */
.prose { background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.prose p { margin: 0 0 1em; }

.empty {
    text-align: center; color: var(--color-muted);
    padding: 130px 20px 44px; border-radius: var(--radius);
    border: 1px dashed var(--color-honey-dark);
    background:
        url("../img/honeycomb-soft.svg") center 26px / 84px no-repeat,
        var(--color-white);
}

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.flash--success { background: #e6f6e6; color: #1d6b1d; }
.flash--error   { background: #fde8e8; color: #a11; }
.flash--info    { background: var(--color-amber); color: var(--color-ink); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--color-ink);
    color: #ddd;
    margin-top: 40px;
    border-top: 4px solid var(--color-honey);
}
.site-footer::before {
    content: "";
    position: absolute;
    bottom: -30px; left: -24px;
    width: 170px; height: 170px;
    background: url("../img/honeycomb.svg") center / contain no-repeat;
    opacity: .07;
    filter: invert(1);
    pointer-events: none;
}
.site-footer__inner { position: relative; padding-block: 26px; text-align: center; }
.site-footer__brand { font-weight: 700; color: var(--color-honey); margin: 0 0 4px; }
.site-footer__note { margin: 0 0 8px; font-size: .9rem; }
.site-footer__links a { color: #ddd; text-decoration: none; }
.site-footer__links a:hover { color: var(--color-honey); }

/* --- Gallery albums (public) --------------------------------------------- */
.gallery-album { margin-bottom: 48px; }
.gallery-album__head {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-honey);
}
.gallery-album__title { margin: 0; font-size: 1.25rem; }
.gallery-album__date {
    color: var(--color-muted); font-size: .9rem;
}

/* --- Lightbox ------------------------------------------------------------ */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
    max-width: min(92vw, 1200px);
    max-height: 92vh;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin: 0;
}
.lightbox__figure img {
    max-width: 100%; max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lightbox__caption {
    color: #eee; font-size: .95rem; text-align: center;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: fixed;
    background: rgba(255,255,255,.12);
    border: none; color: #fff;
    cursor: pointer; border-radius: 50%;
    width: 44px; height: 44px;
    font-size: 1.6rem; line-height: 44px; text-align: center;
    transition: background .15s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--color-honey); color: var(--color-ink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev  { top: 50%; left: 12px;  transform: translateY(-50%); }
.lightbox__next  { top: 50%; right: 12px; transform: translateY(-50%); }

/* --- Search bar ---------------------------------------------------------- */
.search-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.search-bar__input { flex: 1; min-width: 200px; }
.search-info {
    color: var(--color-muted); font-size: .95rem;
    margin-bottom: 20px;
}

/* --- Pagination ---------------------------------------------------------- */
.pagination {
    display: flex; gap: 10px; justify-content: center;
    align-items: center; margin-top: 32px;
}
.pagination__info { color: var(--color-muted); }

/* --- Responsive ---------------------------------------------------------- */
@media (min-width: 720px) {
    .nav-toggle { display: none; }
    .site-nav { display: block; }
    .site-nav ul { flex-direction: row; padding: 0; gap: 4px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    h1 { font-size: 2.2rem; }
    .photo-strip { grid-template-columns: repeat(3, 1fr); height: 150px; }
    .photo-strip__item--3 { display: block; }

    .hero { padding: 52px 36px 56px; }
    .hero__comb { width: 260px; top: -44px; right: -36px; opacity: .16; }
}

@media (min-width: 1000px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* --- Cookie consent banner ------------------------------------------------ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
    background: var(--color-ink); color: #fff;
    padding: 16px 24px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,.25);
    transition: transform .3s ease, opacity .3s ease;
}
.cookie-banner--hide { transform: translateY(100%); opacity: 0; }
.cookie-banner__text { flex: 1; min-width: 220px; margin: 0; font-size: .92rem; line-height: 1.5; }
.cookie-banner__text a { color: var(--color-honey); }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* FB blocked notice */
.fb-blocked {
    padding: 20px 0; color: var(--color-muted);
    font-size: .95rem;
}
.fb-blocked .btn { margin-left: 12px; }
