/* ==========================================================================
   STODOLA LESŮŇKY — design system
   Paleta: espresso barn-wood / limewash plaster / moss / brick / candlelight
   Display: Fraunces (engraved, historic serif) · Body: Inter
   Signatura: scroll-driven přechod denního světla do večerních girlند světel
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Inter:wght@400;500;600&display=swap');

:root {
    --barn:        #241E17;   /* espresso / tmavé dřevo trámů */
    --barn-2:      #34281c;
    --plaster:     #F6F1E6;   /* vápenná omítka */
    --plaster-2:   #EFE7D6;
    --moss:        #656F4C;   /* mech, okolní louky */
    --moss-dark:   #454C34;
    --brick:       #93502F;   /* pálená taška / cihla tvrze */
    --candle:      #CC9A3E;   /* svíčky, girlandy za soumraku */
    --candle-soft: #E7C77C;
    --ink:         #2B2620;

    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1180px;
    --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--plaster);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 0.5em;
    color: var(--barn);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brick);
    font-weight: 600;
    margin-bottom: 1.1em;
}
.eyebrow::before {
    content: '';
    width: 26px; height: 1px;
    background: var(--brick);
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary {
    background: var(--candle);
    color: var(--barn);
}
.btn-primary:hover { background: var(--candle-soft); transform: translateY(-2px); }
.btn-outline {
    border-color: currentColor;
    color: inherit;
    background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ---------------------------------- HEADER --------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
    background: rgba(36, 30, 23, 0.92);
    backdrop-filter: blur(6px);
    padding: 12px 0;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.01em;
}
.brand span { color: var(--candle-soft); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0; padding: 0;
}
.main-nav a {
    color: rgba(255,255,255,.88);
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}
.main-nav a::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--candle-soft);
    transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: #fff; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: 0 0 0 auto;
        width: min(78vw, 340px);
        background: var(--barn);
        padding: 100px 34px 34px;
        transform: translateX(100%);
        transition: transform .35s ease;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 22px; }
}

/* ---------------------------------- HERO --------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--barn);
}
.hero-media {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(36,30,23,.35) 0%, rgba(36,30,23,.35) 45%, rgba(36,30,23,.92) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-bottom: 9vh;
    max-width: 760px;
}
.hero-content .eyebrow { color: var(--candle-soft); }
.hero-content .eyebrow::before { background: var(--candle-soft); }
.hero h1 { color: #fff; }
.hero-content p.lede {
    font-size: 1.15rem;
    color: rgba(255,255,255,.86);
    max-width: 46ch;
    margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.7);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .line { width: 1px; height: 34px; background: rgba(255,255,255,.5); animation: scrollline 2s infinite; }
@keyframes scrollline { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ------------------------- STORY / DAY-TO-NIGHT SIGNATURE ------------------------- */
.story {
    position: relative;
    padding: 12vh 0;
    background: var(--dusk-bg, var(--plaster));
    transition: background 1.2s ease;
    overflow: hidden;
}
.story.is-dusk { background: var(--barn); color: rgba(255,255,255,.92); }
.story.is-dusk h2 { color: #fff; }
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.story-copy .eyebrow { color: var(--brick); }
.story.is-dusk .story-copy .eyebrow { color: var(--candle-soft); }
.story.is-dusk .story-copy .eyebrow::before { background: var(--candle-soft); }
.story-figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.story-figure img { width: 100%; height: 100%; object-fit: cover; }

.fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 1.2s ease; }
.story.is-dusk .fireflies { opacity: 1; }
.firefly {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--candle-soft);
    box-shadow: 0 0 10px 3px rgba(231,199,124,.75);
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0) translateX(0); opacity: .25; }
    50% { transform: translateY(-22px) translateX(10px); opacity: 1; }
}

@media (max-width: 860px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-figure { order: -1; }
}

/* ---------------------------------- STONE DIVIDER --------------------------------- */
.stone-divider { line-height: 0; }
.stone-divider svg { width: 100%; height: auto; display: block; }

/* ---------------------------------- SPLIT LAYOUT (responsive 2-col) --------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.split.even { grid-template-columns: 1fr 1fr; }
.split.narrow-gap { gap: 40px; }
.split.top { align-items: start; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr !important; gap: 34px !important; }
}

/* ---------------------------------- SECTIONS --------------------------------- */
.section { padding: 10vh 0; }
.section-dark { background: var(--barn); color: rgba(255,255,255,.9); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-moss { background: var(--moss-dark); color: rgba(255,255,255,.92); }
.section-moss h2 { color: #fff; }
.section-header { max-width: 640px; margin-bottom: 4.5vh; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .eyebrow::before { display: none; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
}
.card {
    background: #fff;
    border: 1px solid rgba(36,30,23,.08);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(36,30,23,.12); }
.card .num { font-family: var(--serif); font-size: 1rem; color: var(--brick); margin-bottom: 10px; display: block; }

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.gallery a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.08); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------- FAQ (accordion) -------------------------------- */
.faq-item { border-bottom: 1px solid rgba(36,30,23,.14); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
    font-family: var(--serif); font-size: 1.06rem; color: var(--barn);
    gap: 20px;
}
.faq-q .plus { font-size: 1.4rem; color: var(--brick); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding-bottom: 22px; color: #4a4338; }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------------------------------- INFO STRIP --------------------------------- */
.info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 6vh 0;
}
.info-item .eyebrow { margin-bottom: .4em; }
.info-item h3 { margin-bottom: 0.2em; font-size: 1.15rem; }

/* ---------------------------------- FORMS --------------------------------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--moss-dark);
    font-weight: 600;
    margin-bottom: 6px;
}
input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(36,30,23,.2);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.96rem;
    background: #fff;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--candle);
    outline-offset: 1px;
    border-color: var(--candle);
}
textarea { resize: vertical; min-height: 110px; }

.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.94rem; }
.alert-success { background: #eaf0e2; color: var(--moss-dark); border: 1px solid #cdd9bd; }
.alert-error { background: #fbeae4; color: #8a3a20; border: 1px solid #f0c9b8; }
.alert-warning { background: #fbf3e0; color: #8a6413; border: 1px solid #eddca0; }

/* ---------------------------------- FOOTER --------------------------------- */
.site-footer {
    background: var(--barn);
    color: rgba(255,255,255,.75);
    padding: 8vh 0 4vh;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 5vh;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid .brand { margin-bottom: 14px; }
.footer-grid h4 { color: #fff; font-size: .95rem; letter-spacing: .03em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--candle-soft); }
.footer-bottom { padding-top: 3.5vh; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- REVEAL ON SCROLL --------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .1s; }
.reveal-delay-2.is-visible { transition-delay: .22s; }
.reveal-delay-3.is-visible { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------- SEZONNI KALENDAR --------------------------------- */
.season-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-bottom: 3.5vh;
}
.season-year {
    font-family: var(--serif);
    font-size: 2.1rem;
    color: var(--barn);
    min-width: 110px;
    text-align: center;
}
.season-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(36,30,23,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--barn);
    transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.season-arrow:hover { background: var(--candle); border-color: var(--candle); transform: scale(1.08); }

.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.month-card {
    background: #fff;
    border: 1px solid rgba(36,30,23,.1);
    border-radius: 6px;
    padding: 20px 20px 24px;
    box-shadow: 0 10px 30px rgba(36,30,23,.05);
}
.month-card h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--brick);
    text-align: center;
}
table.month-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.month-table th {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #8a8069;
    font-weight: 600;
    padding-bottom: 8px;
    text-align: center;
}
.month-table th.we { color: var(--brick); }
.month-table td {
    text-align: center;
    padding: 0;
    height: 40px;
    position: relative;
    border: 1px solid #f0ead9;
    font-size: .82rem;
    vertical-align: middle;
}
.month-table td.muted { color: #cfc7b2; background: #fbf9f4; }
.month-table td.today .day-num {
    text-decoration: underline;
    text-decoration-color: var(--candle);
    text-decoration-thickness: 2px;
}
.day-cell .day-num { display: block; }
.day-cell .day-label {
    display: block;
    font-size: .52rem;
    line-height: 1.1;
    padding: 0 3px 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.day-booked { background: #E7A093; color: #5c1f11; font-weight: 600; }
.day-pending { background: #F3D98B; color: #5c4a11; font-weight: 600; }
.day-cell a { display: block; width: 100%; height: 100%; color: inherit; padding: 4px 2px; }
.month-table td.day-booked, .month-table td.day-pending { border-color: rgba(0,0,0,.06); }

.season-legend { display: flex; gap: 22px; justify-content: center; margin-top: 3.5vh; flex-wrap: wrap; }
.season-legend .item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #4a4338; }
.season-legend .swatch { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }
.season-legend .swatch.booked { background: #E7A093; }
.season-legend .swatch.pending { background: #F3D98B; }
.season-legend .swatch.free { background: #fff; border: 1px solid #d9d0ba; }

/* administracni "pridat" odkaz v prazdne bunce */
.add-link .add-plus {
    position: absolute; top: 2px; right: 4px;
    font-size: .7rem; color: var(--candle); opacity: 0; transition: opacity .2s ease;
}
.day-cell:hover .add-plus { opacity: 1; }

@media (max-width: 500px) {
    .month-table td { height: 34px; font-size: .74rem; }
    .day-cell .day-label { display: none; }
}

/* ---------------------------------- PAGE HERO (inner pages) --------------------------------- */
.page-hero {
    position: relative;
    padding: 22vh 0 10vh;
    background: var(--barn);
    color: #fff;
    background-size: cover;
    background-position: center;
}
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(36,30,23,.62); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
