/* ARYBAZ – vzhled navazuje na původní web (zelená, 1000 px, menu vlevo). Nadstavba nad Bootstrapem 5. */

:root {
    --ary-dark: #006b54;
    --ary-mid: #007a5e;
    --ary-link: #ffff99;
    --ary-link-hover: #ffcc66;
    --ary-heading: #ffffcc;

    --bs-body-font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
    --bs-body-color: #fff;
    --bs-body-color-rgb: 255, 255, 255;
    --bs-body-bg: var(--ary-dark);
    --bs-link-color: var(--ary-link);
    --bs-link-color-rgb: 255, 255, 153;
    --bs-link-hover-color: var(--ary-link-hover);
    --bs-link-hover-color-rgb: 255, 204, 102;
    --bs-heading-color: var(--ary-heading);
}

body {
    background: var(--ary-dark) url("../img/bck_2x1.png");
    color: #fff;
}

a { text-underline-offset: .15em; }

/* ---------- Rám stránky ---------- */

.site {
    max-width: 1000px;
    margin: 8px auto;
    background: var(--ary-dark);
}

.skip-link:focus {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 1100;
    padding: .5rem 1rem;
    background: #fff;
    color: #000;
}

/* Hlavička: na úzkých displejích se ořízne zprava, aby logo zůstalo čitelné */
.site-header a { display: block; }
.site-header img {
    display: block;
    width: 100%;
    height: clamp(84px, 12vw, 120px);
    object-fit: cover;
    object-position: left center;
}

.nameday {
    padding: 5px;
    font-size: .9rem;
    text-align: center;
}
@media (min-width: 768px) {
    .nameday { text-align: right; }
}

/* ---------- Menu ---------- */

.site-menu {
    background: var(--ary-dark) url("../img/bcgr_relief.jpg") repeat-y;
}
@media (min-width: 768px) {
    .site-menu { width: 250px; }
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .6rem 1rem;
    border: 0;
    background: transparent;
    color: var(--ary-link);
    font-size: 1.2rem;
    text-align: left;
}
.menu-toggle:hover { color: var(--ary-link-hover); }
.menu-toggle:focus-visible,
.site-menu .nav-link:focus-visible {
    outline: 2px solid var(--ary-link);
    outline-offset: -2px;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    width: 1.4rem;
    height: 2px;
    background: currentColor;
    content: "";
}
.menu-toggle-icon { position: relative; }
.menu-toggle-icon::before { position: absolute; top: -6px; }
.menu-toggle-icon::after  { position: absolute; top: 6px; }

.site-menu .nav-link {
    padding: .35rem .625rem;
    color: var(--ary-link);
    font-size: 1.2rem;
    line-height: 1.6;
    text-decoration: none;
}
.site-menu .nav-link:hover,
.site-menu .nav-link.active {
    color: var(--ary-link-hover);
    text-decoration: underline;
}
@media (max-width: 767.98px) {
    .site-menu .nav-link { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- Obsah ---------- */

.site-content {
    min-width: 0;
    padding: .75rem 1rem 1rem;
    background: var(--ary-mid);
}
.site-content::after { content: ""; display: block; clear: both; }

.page-title,
.section-title {
    color: var(--ary-heading);
    font-weight: 700;
}
.page-title    { margin-top: .5rem; font-size: 1.2rem; }
.section-title { margin-top: 1.25rem; font-size: 1.1rem; }

.site-content ul { line-height: 1.8; }

.table {
    --bs-table-color: #fff;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, .35);
}

/* Obrázky v textu: vpravo obtékané, na mobilu pod textem na střed */
.float-photo {
    margin: 0 0 1rem;
}
@media (min-width: 576px) {
    .float-photo { float: right; margin: .25rem 0 1rem 1.25rem; }
}
.float-photo img { display: block; max-width: 100%; height: auto; }

.fish-strip {
    display: flex;
    flex-flow: row wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.fish-strip img { display: block; width: 160px; max-width: 100%; height: auto; }
@media (min-width: 576px) {
    .fish-strip { flex-direction: column; float: right; margin: 0 0 1rem 1.25rem; }
}

/* ---------- Galerie ---------- */

.gallery-item {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
}
.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .2s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }

.video-row video {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    background: #000;
}

.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { max-height: 85vh; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.lightbox .lb-btn {
    position: absolute;
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}
.lightbox .lb-btn:hover { background: rgba(0, 0, 0, .8); }
.lightbox .lb-prev { left: .5rem; }
.lightbox .lb-next { right: .5rem; }
.lightbox .btn-close { position: absolute; top: .5rem; right: .5rem; }

/* ---------- Projekty EU ---------- */

.eu-project { margin-bottom: 1.5rem; }
.eu-project .section-title { margin-top: 0; }
.eu-project img { display: block; width: 100%; height: auto; margin: 0; }

/* ---------- Patička ---------- */

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--ary-dark);
}
.footer-fish { line-height: 0; }
.footer-text {
    padding: 10px;
    color: #ddd;
    font-size: .8rem;
    line-height: 1.5;
    text-align: center;
}
.footer-text a { color: var(--ary-link); }
@media (min-width: 768px) {
    .site-footer { flex-direction: row; align-items: flex-start; }
    .footer-fish { flex: 0 0 250px; padding-top: 9px; }
    .footer-text { flex: 1 1 auto; text-align: right; line-height: 1.2; }
}

/* Vánoční blok na úvodní straně */
.xmas-offer { max-width: 26rem; }
