/* Veřejný web — černé pozadí, fotky nesou obsah. */

:root {
    --bg:        #000000;
    --surface:   #0c0c0d;
    --line:      #1e1e21;
    --text:      #f0efec;
    --text-dim:  #8e8e94;
    --accent:    #c8a97e;
    --pad:       clamp(16px, 4vw, 56px);
    --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-weight: 500; letter-spacing: -.015em; margin: 0; }
.dim { color: var(--text-dim); }

/* ---------- Hlavička ---------- */

.site-head {
    display: flex; align-items: center; gap: 20px;
    padding: 18px var(--pad);
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-logo { font-size: 17px; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; gap: 26px; font-size: 14px; letter-spacing: .06em; }
.site-nav a { color: var(--text-dim); transition: color .18s; }
.site-nav a:hover { color: var(--accent); }

.menu-btn { display: none; margin-left: auto; width: 26px; height: 18px; position: relative; cursor: pointer; }
.menu-btn span, .menu-btn::before, .menu-btn::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--text);
}
.menu-btn::before { top: 0; } .menu-btn span { top: 50%; } .menu-btn::after { bottom: 0; }

/* ---------- Prolínačka ---------- */

.hero { position: relative; height: min(88vh, 900px); overflow: hidden; background: #000; }
.hero-slide {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; transition: opacity var(--fade, 1600ms) ease-in-out;
    will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero[data-transition="kenburns"] .hero-slide.is-active img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-veil { position: absolute; inset: 0; background: #000; pointer-events: none; }

.hero-text {
    position: absolute; z-index: 2; padding: var(--pad);
    max-width: 620px; display: grid; gap: 12px;
    text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.hero-text--center       { inset: 0; align-content: center; justify-items: center; text-align: center; max-width: none; }
.hero-text--left         { inset: 0 auto 0 0; align-content: center; }
.hero-text--right        { inset: 0 0 0 auto; align-content: center; text-align: right; }
.hero-text--bottom-left  { inset: auto auto 0 0; }
.hero-text--bottom-right { inset: auto 0 0 auto; text-align: right; }
.hero-text h2 { font-size: clamp(28px, 5vw, 54px); }
.hero-text p  { margin: 0; color: rgba(255,255,255,.86); }

.hero-cta {
    justify-self: start; display: inline-block; margin-top: 8px;
    padding: 11px 26px; border: 1px solid rgba(255,255,255,.6);
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    transition: background .2s, color .2s, border-color .2s;
}
.hero-cta:hover { background: var(--accent); border-color: var(--accent); color: #12100c; }
.hero-text--center .hero-cta { justify-self: center; }

.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 26px; height: 2px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s; }
.hero-dots button.is-active { background: var(--accent); }

/* ---------- Bloky ---------- */

.strip { padding: clamp(40px, 7vw, 90px) var(--pad); }
.strip--center { text-align: center; }
.strip-title { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 26px; }
.strip-head { margin-bottom: 32px; }
.strip-head h1 { font-size: clamp(26px, 4.5vw, 44px); }
.lead { color: var(--text-dim); margin: 8px 0 0; }
.crumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px; }
.tile { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1), opacity .3s; }
.tile:hover img { transform: scale(1.05); opacity: .82; }
.tile-label {
    position: absolute; inset: auto 0 0 0; padding: 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    font-size: 15px; letter-spacing: .04em; display: grid; gap: 2px;
}
.tile-label small { color: var(--text-dim); font-size: 12px; }

.prose { max-width: 68ch; margin-bottom: 32px; color: #d8d7d3; }
.prose h2, .prose h3 { margin: 1.8em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 24px 0; }
.prose .lead { font-size: 19px; color: var(--text); }

/* ---------- Fotky galerie ---------- */

.gallery { padding: clamp(30px, 6vw, 70px) var(--pad); }
.photos { display: grid; gap: 4px; }
.photos--grid    { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.photos--grid .photo { aspect-ratio: 1; }
.photos--masonry { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 10px; }
.photos--justified { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.photos--justified .photo { aspect-ratio: var(--ratio, 1.5); }

.photo { display: block; overflow: hidden; cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.photo:hover img { opacity: .86; }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.96); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; padding: 16px; opacity: .6; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 4px; right: 8px; font-size: 34px; }
.lb-prev  { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--text-dim); font-size: 13px; margin: 0; }

/* ---------- Zamčená galerie + kontakt ---------- */

.lock { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: var(--pad); }
.lock form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lock-err { color: #d3564f; }

.contact { display: grid; gap: 10px; max-width: 560px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, textarea, .lock input {
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    padding: 12px 14px; font: inherit; border-radius: 0;
}
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); }
button[type=submit], .lock button {
    background: var(--accent); color: #12100c; border: 0; padding: 12px 28px;
    font: inherit; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; cursor: pointer;
}
.sent { color: var(--accent); }

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

.site-foot {
    display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
    padding: 40px var(--pad); border-top: 1px solid var(--line);
    color: var(--text-dim); font-size: 14px;
}
.site-foot div { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot strong { color: var(--text); font-weight: 500; }
.site-social { margin-left: auto; }
.site-foot a:hover { color: var(--accent); }

/* ---------- Responzivita ---------- */

@media (max-width: 760px) {
    .menu-btn { display: block; }
    .site-nav {
        position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    #menuToggle:checked ~ .site-nav { max-height: 70vh; }
    .site-nav a { padding: 15px var(--pad); border-top: 1px solid var(--line); }
    .contact-row { grid-template-columns: 1fr; }
    .hero { height: 70vh; }
    .site-social { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero[data-transition="kenburns"] .hero-slide.is-active img { animation: none; }
    * { scroll-behavior: auto !important; }
}
