/* ═══════════════════════════════════════════════════════════════
   PROMĚNNÉ – paleta inspirovaná moravským modrotiskem
═══════════════════════════════════════════════════════════════ */
:root {
    --ink:       #2A4A7F;   /* hluboká indigo – hlavní barva */
    --ink-dk:    #1A3260;   /* tmavší indigo */
    --ink-mid:   #3D62A0;   /* středně tmavá */
    --gold:      #B8841A;   /* teplá zlatá */
    --gold-lt:   #D4A83C;   /* světlejší zlatá */
    --cream:     #F6EDD8;   /* krémové pozadí */
    --parchm:    #EDE0C4;   /* pergamen */
    --sand:      #E2CFB0;   /* písek */
    --sage:      #5C7A50;   /* šalvěj – malé akcenty */
    --text:      #1A1410;
    --muted:     #6B5E4E;
    --nav-h:     66px;
}

/* ═══ RESET ════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ═══ NAVIGACE ══════════════════════════════════════════════════ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    box-shadow: 0 2px 16px rgba(25,48,90,0.08);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Spectral', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.nav-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--ink); transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    padding: 1.2rem 2rem 1.8rem;
    gap: 1.1rem;
    box-shadow: 0 8px 24px rgba(25,48,90,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink);
}

/* ═══ HERO ══════════════════════════════════════════════════════ */
#uvod {
    min-height: calc(100svh - var(--nav-h)); /* ← jen v CSS, ne inline */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(13,27,53,0.15)  0%,
            rgba(13,27,53,0.10)  35%,
            rgba(13,27,53,0.65)  72%,
            rgba(13,27,53,0.92) 100%
    );
}
.hero-content {
    position: relative;
    padding: clamp(2rem,5vw,3.5rem) clamp(1.5rem,5vw,4rem);
    max-width: 820px;
    text-align: center;
    width: 100%;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 1.1rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 32px; height: 1px;
    background: var(--gold-lt);
    opacity: 0.7;
}
.hero-title {
    font-family: 'Spectral', serif;
    font-size: clamp(2.8rem, 7.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.01em;
}
.hero-title strong {
    font-weight: 700;
    font-style: italic;
    font-size: clamp(2.8rem, 7.5vw, 7.5rem);
    color: var(--gold-lt);
    display: block;
}
.hero-line {
    margin: 1.4rem auto 0;
    width: 48px; height: 2px;
    background: var(--gold);
}
/* scrollovací indikátor */
.hero-scroll {
    position: absolute;
    bottom: 1.8rem; right: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    writing-mode: vertical-lr;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    animation: nudge 2.4s ease-in-out infinite;
}
.hero-scroll::after {
    content: '';
    display: block;
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    margin-top: 4px;
}
@keyframes nudge {
    0%,100% { transform: translateY(0); }
    55% { transform: translateY(6px); }
}

/* ═══ SEKCE – obecné ════════════════════════════════════════════ */
.section-wrap {
    padding: clamp(4.5rem,9vw,8rem) clamp(1.5rem,6vw,5rem);
    max-width: 1180px;
    margin: 0 auto;
}
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.section-title {
    font-family: 'Spectral', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
}
.section-title em {
    font-style: italic;
    font-weight: 600;
}
.title-rule {
    width: 40px; height: 2px;
    background: var(--gold);
    margin: 1.2rem 0 0;
}

/* ═══ O NÁS ═════════════════════════════════════════════════════ */
#o-nas { background: var(--cream); }
.about-layout {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3.5rem;
}
.about-body p {
    font-size: 1.05rem;
    color: #3a2d22;
    margin-bottom: 1.4rem;
    font-weight: 300;
}
/* Boční karta – geometrická */
.about-panel {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}
.about-panel-inner {
    border: 1px solid var(--sand);
    background: #fff;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
/* Modrotiskový rohový vzor */
.about-panel-inner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background:
            repeating-linear-gradient(45deg, var(--ink) 0, var(--ink) 2px, transparent 0, transparent 50%)
            0 0 / 10px 10px,
            var(--ink-dk);
    opacity: 0.08;
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.panel-heading {
    font-family: 'Spectral', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sand);
}
.panel-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--parchm);
}
.panel-stat:last-child { border-bottom: none; }
.panel-stat-key {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
}
.panel-stat-val {
    font-family: 'Spectral', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
}
.panel-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1.8rem;
}
.panel-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--cream);
    padding: 4px 10px;
}
.panel-tag.alt {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

/* ═══ DĚLICÍ PRUH ═══════════════════════════════════════════════ */
.divider-band {
    background: var(--parchm);
    height: 2px;
    background: repeating-linear-gradient(
            90deg,
            var(--sand)  0px,  var(--sand)  8px,
            var(--ink)   8px,  var(--ink)   10px,
            var(--sand) 10px,  var(--sand) 18px,
            var(--gold) 18px,  var(--gold) 20px
    );
}

/* ═══ GALERIE ═══════════════════════════════════════════════════ */
#galerie { background: var(--ink-dk); }
.gallery-header {
    text-align: center;
    padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,5rem) 0;
    max-width: 1180px;
    margin: 0 auto;
}
.gallery-header .section-label { color: var(--gold-lt); }
.gallery-header .section-title { color: var(--cream); }
.gallery-header .title-rule { margin: 1.2rem auto 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 6px;
    padding: 3rem clamp(1.5rem,6vw,5rem) clamp(4rem,8vw,7rem);
    max-width: 1180px;
    margin: 0 auto;
}
.gi { overflow: hidden; position: relative; cursor: pointer; }
.gi-1 { grid-column: span 7; }
.gi-2 { grid-column: span 5; grid-row: span 2; }
.gi-3 { grid-column: span 4; }
.gi-4 { grid-column: span 3; }
.gi-5 { grid-column: span 5; }
.gi-6 { grid-column: span 4; }
.gi-7 { grid-column: span 3; }

.gi img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9) saturate(0.85);
}
.gi:hover img { transform: scale(1.07); filter: brightness(1) saturate(1.1); }
.gi-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem 1.2rem 0.8rem;
    background: linear-gradient(to top, rgba(13,27,53,0.8), transparent);
    color: var(--cream);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}
.gi:hover .gi-cap { opacity: 1; transform: translateY(0); }

.gi-ph {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    color: rgba(246,237,216,0.25);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
/* Jemný modrotiský vzor jako placeholder bg */
.gi-ph::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
            radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}
.gi-ph svg { position: relative; }

/* ═══ VIDEO ══════════════════════════════════════════════════════ */
#video { background: var(--parchm); }
.video-wrap-outer {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,5rem);
    text-align: center;
}
.video-wrap-outer .section-title { color: var(--ink); }
.video-frame {
    margin-top: 2.5rem;
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    border: 1px solid var(--sand);
    box-shadow:
            0 0   0   4px var(--cream),
            0 0   0   5px var(--ink),
            0 20px 60px rgba(13,27,53,0.18);
}
.video-frame iframe {
    position: absolute;
    inset: 0; width: 100%; height: 100%; border: none;
}

/* ═══ KONTAKT ════════════════════════════════════════════════════ */
#kontakt { background: var(--cream); }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}
.contact-col-title {
    font-family: 'Spectral', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--sand);
    letter-spacing: 0.02em;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.55rem 0;
    font-size: 0.93rem;
    color: var(--muted);
    border-bottom: 1px solid var(--parchm);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-icon {
    width: 32px; height: 32px;
    background: var(--ink);
    display: grid; place-items: center;
    flex-shrink: 0;
    color: var(--cream);
}
.contact-item a { color: var(--ink); font-weight: 500; }
.contact-item a:hover { color: var(--gold); }

.contact-note {
    background: var(--ink);
    color: var(--cream);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.contact-note::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle at 100% 100%, var(--gold) 0%, transparent 70%);
    opacity: 0.15;
}
.contact-note p {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.85;
}
.contact-note strong {
    display: block;
    font-family: 'Spectral', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gold-lt);
}

.map-placeholder {
    height: 260px;
    background: var(--parchm);
    border: 1px solid var(--sand);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}
.map-placeholder svg { opacity: 0.4; }

/* ═══ PATIČKA ════════════════════════════════════════════════════ */
footer {
    background: var(--ink-dk);
    color: rgba(246,237,216,0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem clamp(1.5rem,5vw,4rem);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border-top: 2px solid var(--ink);
}
footer strong { color: var(--gold-lt); font-weight: 500; }
.footer-brand {
    display: flex; align-items: center; gap: 8px;
    color: rgba(246,237,216,0.7);
}
.footer-mark {
    width: 20px; height: 20px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ═══ ANIMACE PŘÍJEZDU ══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVITA ══════════════════════════════════════════════ */
@media (max-width: 1000px) {
    .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-panel   { position: static; }
    .gallery-grid  { grid-template-columns: repeat(6,1fr); }
    .gi-1 { grid-column: span 6; }
    .gi-2 { grid-column: span 3; grid-row: span 1; }
    .gi-3 { grid-column: span 3; }
    .gi-4 { grid-column: span 3; }
    .gi-5 { grid-column: span 6; }
    .gi-6 { grid-column: span 3; }
    .gi-7 { grid-column: span 3; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 680px) {
    .nav-links  { display: none; }
    .hamburger  { display: flex; }
    #uvod {
        min-height: calc(100vw * 1704 / 2272);
        height:     calc(100vw * 1704 / 2272);
        justify-content: flex-end;
    }
    .hero-scroll { display: none; }
    .hero-overlay {
        background: linear-gradient(to bottom,
        rgba(13,27,53,0.05)  0%,
        rgba(13,27,53,0.55) 72%,
        rgba(13,27,53,0.93) 100%);
    }
    .hero-content { padding: 1.5rem 1.25rem 2rem; }
    .hero-title { font-size: clamp(2rem, 10vw, 2rem); }
    .hero-title strong { font-size: clamp(2rem, 10vw, 3.5rem); }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }
    .gi-1,.gi-2,.gi-3,.gi-4,.gi-5,.gi-6,.gi-7 {
        grid-column: span 1; grid-row: span 1;
    }
    .gi-2 { grid-column: span 2; }
}
@media (max-width: 440px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gi-2 { grid-column: span 1; }
}

/* ČLENOVÉ */
#clenove {
    background: var(--ink-dk);
}
.members-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
    text-align: center;
}
.members-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.5rem;
    text-align: left;
}
.members-table tr {
    border-bottom: 1px solid rgba(246, 237, 216, 0.08);
    transition: background 0.2s;
}
.members-table tr:last-child {
    border-bottom: none;
}
.members-table tr:hover {
    background: rgba(246, 237, 216, 0.04);
}
.m-name {
    font-family: 'Spectral', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
    padding: 1rem 1rem 1rem 0;
    width: 60%;
}
.m-inst {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-lt);
    padding: 1rem 0;
}
