/* =====================================================
   POLISH – jemné vyladění vzhledu (načítá se po style.css)
   ===================================================== */

/* ── Základ ── */
::selection { background: var(--color-gold); color: var(--color-primary-dark); }

body { text-wrap: pretty; }

section[id],
.hero { scroll-margin-top: 72px; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: var(--radius);
}

/* rám za fotkou v O nás nesmí vytvořit vodorovný posuv na mobilu */
.section--onas { overflow-x: clip; }

/* ── Nadpisy sekcí: zlatý akcent ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}
.section-title { letter-spacing: -0.01em; text-wrap: balance; }
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 0.75rem;
    background: var(--color-gold);
    border-radius: 2px;
}
.subsection-title { font-weight: 700; color: var(--color-primary-dark); }

/* ── Tlačítka ── */
.btn {
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-primary { box-shadow: 0 8px 20px rgba(42, 92, 63, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(42, 92, 63, 0.32); }
.btn-outline { backdrop-filter: blur(4px); }
.btn-outline-dark:hover { box-shadow: 0 8px 20px rgba(42, 92, 63, 0.2); }

/* ── Hlavička ── */
.site-header {
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
}
.logo-img { box-shadow: 0 0 0 2px var(--color-gold); }
.header-title { letter-spacing: -0.005em; }

@media (min-width: 768px) {
    .main-nav a:not(.nav-cta) { position: relative; }
    .main-nav a:not(.nav-cta)::after {
        content: '';
        position: absolute;
        left: 0.9em;
        right: 0.9em;
        bottom: 0.25em;
        height: 2px;
        background: var(--color-gold);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--transition);
    }
    .main-nav a:not(.nav-cta):hover::after,
    .main-nav a.is-active:not(.nav-cta)::after { transform: scaleX(1); }
    .main-nav a:not(.nav-cta):hover { background: transparent; }
}
.nav-cta { box-shadow: 0 4px 12px rgba(42, 92, 63, 0.25); }

/* ── Hero ── */
.hero { border-bottom: 4px solid var(--color-gold); }
.hero-overlay {
    background:
        linear-gradient(to top, rgba(20, 45, 30, 0.55) 0%, rgba(20, 45, 30, 0) 40%),
        linear-gradient(to right, rgba(20, 45, 30, 0.85) 0%, rgba(20, 45, 30, 0.55) 55%, rgba(20, 45, 30, 0.18) 100%);
}
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--color-gold);
}
.hero-title {
    letter-spacing: -0.015em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero-sub { text-shadow: 0 1px 12px rgba(0,0,0,0.3); }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
.hero-content > * { animation: hero-rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.24s; }
.hero-content > :nth-child(4) { animation-delay: 0.36s; }

/* ── O nás ── */
.onas-lead { font-weight: 400; color: var(--color-text); }
.onas-figure img { transition: transform 0.6s ease, box-shadow 0.6s ease; }
.onas-figure:hover img {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}
.onas-bottom__col {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 6px 24px rgba(42, 60, 48, 0.05);
}
.onas-bottom__col .subsection-title { margin-top: 0; }

/* ── Info boxy ── */
.info-box {
    box-shadow: 0 6px 20px rgba(42, 60, 48, 0.07);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
}

/* ── Banner sekcí ── */
.section-banner__label { letter-spacing: 0.2em; }

/* ── Výlep: tabulka a kontaktní karta ── */
.vylep-table { box-shadow: 0 6px 20px rgba(42, 60, 48, 0.06); background: #fff; }
.contact-card--inline {
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 4px 14px rgba(42, 60, 48, 0.06);
}

/* ── Karty aktualit ── */
.news-card {
    box-shadow: 0 4px 16px rgba(42, 60, 48, 0.06);
    border-top-color: var(--color-gold);
}
.news-card:hover { box-shadow: 0 16px 36px rgba(42, 60, 48, 0.14); }
.news-card__date {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2em 0.7em;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-primary-dark);
    font-weight: 600;
}
.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.news-card__link::after {
    content: '';
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--transition);
}
.news-card__link:hover::after { transform: translateX(4px); }

/* ── Fotka před kontaktem ── */
.full-photo { border-top: 4px solid var(--color-gold); }

/* ── Kontakt ── */
.contact-block h3 { letter-spacing: -0.005em; }
.contact-person {
    box-shadow: 0 4px 14px rgba(42, 60, 48, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}
.contact-person:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 22px rgba(42, 60, 48, 0.12);
}
.social-link { background: #fff; }
.social-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(42, 60, 48, 0.12); }

/* ── Hlavička podstránek ── */
.page-head {
    background:
        radial-gradient(circle at 85% 20%, rgba(201, 168, 76, 0.18), transparent 45%),
        var(--color-primary-dark);
}

/* ── Detail článku ── */
.article-body { font-size: 1.05rem; line-height: 1.8; }
.gallery-item { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.gallery-item:hover { box-shadow: 0 10px 26px rgba(0,0,0,0.16); }

/* ── Patička ── */
.site-footer { border-top: 4px solid var(--color-gold); }
.footer-logo { box-shadow: 0 0 0 2px var(--color-gold); }
.footer-nav a { position: relative; padding-bottom: 2px; }
.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-copy { color: rgba(255,255,255,0.6); }

/* ── Postupné objevování při scrollu (třídu přidává js/reveal.js) ── */
.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .onas-bottom__col { padding: var(--space-sm) 1.25rem var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content > * { animation: none; }
    .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
    .onas-figure img,
    .contact-person,
    .news-card__link::after { transition: none; }
}