/* ===== Základ =====
   Barvy: paleta „Papaya Punch“ (oranžová, červená, žlutá, olivově zelená) na béžovém pozadí.
   Motiv čtyř překrývajících se koleček z palety se opakuje po webu (a ladí se sluncem v logu NaŽivo). */
:root {
    --orange: #e97649;
    --red: #e56248;
    --yellow: #f4b54b;
    --green: #c0bd61;
    --beige: #f6eddc;
    --beige-dark: #ecdfc6;
    --ink: #2a211c;
    --ink-soft: #5b4d43;
    --white: #fffaf2;
    --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --font: 'Nunito', system-ui, sans-serif;
    --pad: clamp(18px, 6vw, 110px);
    --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); color: var(--ink); background: var(--beige); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .cutout { font-family: 'Luckiest Guy', var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 18px; }
h3 { font-size: 1.3rem; }
.kicker { font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section { padding: 100px var(--pad); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.05rem; }
.section-head a { color: var(--red); font-weight: 700; }

/* tlačítka */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
    font: 700 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(42,33,28,.15); }
.btn-red { background: var(--red); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* jednotlivá barevná kolečka rozházená po webu (pozice v HTML: --x, --y = střed, --s = velikost, --d = posun animace) */
main > section { position: relative; isolation: isolate; overflow: clip; }
.kolo {
    position: absolute; z-index: -1; left: var(--x); top: var(--y); translate: -50% -50%;
    width: var(--s); aspect-ratio: 1; border-radius: 50%; background: var(--c); pointer-events: none;
    animation: plav 11s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1.5s);
}
.c-orange { --c: var(--orange); }
.c-red { --c: var(--red); }
.c-yellow { --c: var(--yellow); }
.c-green { --c: var(--green); }

/* ===== Hlavička ===== */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: 76px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
    transition: background-color .3s, box-shadow .3s;
}
.nav.solid { background: rgba(246,237,220,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(42,33,28,.08); }
.nav-logo img { height: 58px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a:not(.btn) { font-weight: 700; font-size: .95rem; text-decoration: none; position: relative; }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
    background: var(--orange); transform: scaleX(0); transition: transform .25s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Úvod ===== */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 100vh; padding: 110px var(--pad) 60px;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.hero-text, .hero-photo { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); margin-bottom: 22px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
    content: ''; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em; z-index: -1;
    background: var(--yellow); border-radius: 999px;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 470px; margin-bottom: 30px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-photo { position: relative; aspect-ratio: 1 / 1.02; }
.hero-photo img {
    position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%;
    border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;   /* organický „oblázek“ */
    animation: dych 12s ease-in-out infinite;
}
@keyframes dych {
    50% { border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%; }
}
.blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: plav 9s ease-in-out infinite; }
.blob-1 { width: 34%; aspect-ratio: 1; background: var(--orange); left: -6%; top: 4%; }
.blob-2 { width: 24%; aspect-ratio: 1; background: var(--yellow); right: -3%; bottom: 6%; z-index: 2; animation-delay: -3s; }
.blob-3 { width: 16%; aspect-ratio: 1; background: var(--green); right: 8%; top: -2%; animation-delay: -6s; }
@keyframes plav { 50% { transform: translate(10px, -14px); } }

/* ===== Vystřihované písmo (podle „Creative Portfolio“): všechny nadpisy + .cutout, každé písmeno trochu nakřivo (app.js) ===== */
.cutout { line-height: .92; color: var(--ink); }
.slovo { white-space: nowrap; }
.pism { display: inline-block; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); }
/* v pozadí úvodu: obří slovo v tmavší béžové, přes celou šířku */
.hero-bg-word {
    position: absolute; z-index: 0; left: 50%; bottom: -0.12em; translate: -50% 0; rotate: -4deg;
    font-size: clamp(7rem, 24vw, 22rem); white-space: nowrap; color: var(--beige-dark); pointer-events: none; user-select: none;
}
/* samostatný blok s velkým nápisem */
.statement {
    position: relative; overflow: hidden; padding: 90px var(--pad) 100px;
    display: grid; grid-template-columns: auto 1fr; gap: 20px 60px; align-items: end;
}
.statement-text { font-size: clamp(3.2rem, 9vw, 8.5rem); }
.statement-text .pism-a { color: var(--red); }   /* sem tam barevné písmeno z palety */
.statement-text .pism-b { color: var(--orange); }
.statement-sub { max-width: 340px; font-size: 1.1rem; color: var(--ink-soft); padding-bottom: 14px; }
@media (max-width: 820px) {
    .statement { grid-template-columns: 1fr; padding-top: 90px; padding-bottom: 70px; }
    .statement-text { font-size: 12.2vw; white-space: nowrap; }   /* „DEMOKRATICKÁ“ se musí vejít na řádek */
    .kolo { scale: .55; }               /* na mobilu menší… */
    .kolo.jen-pc { display: none; }     /* …a ty uprostřed by lezly přes text */
}

/* ===== Náš příběh ===== */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; background: var(--white); }
.story-text p:not(.kicker) { color: var(--ink-soft); margin-bottom: 14px; max-width: 600px; }
.story-photos { position: relative; aspect-ratio: 1 / 1.05; }
.story-photos img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(42,33,28,.15); }
.story-a { left: 0; top: 0; width: 78%; height: 66%; }
.story-b { right: 0; bottom: 0; width: 58%; height: 50%; border: 8px solid var(--white); }

/* ===== Hodnoty ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
    position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 28px 32px;
    border-top: 10px solid var(--c);
}
.value-num {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%;
    background: var(--c); font: 700 1.3rem var(--display); color: var(--ink);
}
.value h3 { margin-bottom: 10px; }
.value p { color: var(--ink-soft); font-size: .96rem; }
.value-photo { padding: 0; border: 0; overflow: hidden; }
.value-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }

/* ===== Pás fotek ===== */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 12px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.strip img:nth-child(even) { margin-top: 40px; }
main > section.strip { overflow: visible; }   /* zvětšená fotka se nesmí oříznout */

/* fotka, na kterou míří myš, vylézá z webu k tobě (app.js) */
.vytazena { position: relative; z-index: 3; filter: drop-shadow(0 22px 28px rgba(42,33,28,.28)); transition: filter .3s !important; }

/* ===== Aktuality ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.post-img { display: block; background: var(--beige-dark); }
.post-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform .4s; }
.post-img:hover img { transform: scale(1.04); }
.post-body { padding: 22px 24px 26px; }
.post time { display: inline-block; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: var(--yellow); margin-bottom: 12px; }
.post h3 { margin-bottom: 8px; }
.post p, .post li { color: var(--ink-soft); font-size: .95rem; }
.post a { color: var(--red); font-weight: 700; }
.post-tag { margin-top: 10px; font-weight: 800; color: var(--ink) !important; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 800; color: var(--red); }
details[open] summary { margin-bottom: 10px; }
details p + p, details ul { margin-top: 8px; }
details ul { padding-left: 20px; }

/* ===== Pro zájemce ===== */
.join-card {
    position: relative; overflow: hidden; isolation: isolate; background: var(--orange); border-radius: 40px;
    padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: center;
}
.join-card .kicker { color: var(--ink); grid-column: 1; }
.join-card h2 { grid-column: 1; }
.join-card > p:not(.kicker) { grid-column: 1; font-size: 1.1rem; }
.join-card > p a { font-weight: 800; }
.join-box { grid-column: 2; grid-row: 1 / span 4; background: var(--white); border-radius: var(--radius); padding: 32px; }
.join-box h3 { margin-bottom: 8px; }
.join-box p { color: var(--ink-soft); margin-bottom: 20px; }

/* ===== Dokumenty ===== */
.docs { padding-top: 0; }
.doc-list { display: grid; gap: 14px; max-width: 760px; }
.doc {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
    padding: 18px 22px; background: var(--white); border-radius: 20px; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.doc:hover { transform: translateX(6px); box-shadow: 0 10px 24px rgba(42,33,28,.08); }
.doc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c); font-weight: 800; font-size: .8rem; }
.doc b { display: block; font-size: 1.05rem; }
.doc small { color: var(--ink-soft); word-break: break-all; }
.doc-arrow { font-size: 1.4rem; font-weight: 800; color: var(--red); }

/* ===== Kontakt ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; background: var(--white); }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 6px 0 30px; }
.contact dt { font-weight: 800; }
.contact dd { color: var(--ink-soft); }
.contact dd a { color: var(--red); font-weight: 700; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); }

/* ===== Patička ===== */
.footer { --kolo-velke: clamp(160px, 18vw, 260px); position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--beige); padding: 70px var(--pad) 30px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(246,237,220,.15); }
.footer-logo { height: 60px; width: auto; background: var(--beige); border-radius: 16px; padding: 8px 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { text-decoration: none; font-weight: 700; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--yellow); }
.footer-eu { padding: 36px 0; font-size: .85rem; opacity: .85; max-width: 820px; }
.footer-eu p + p, .footer-eu ul { margin-top: 8px; }
.footer-eu ul { padding-left: 18px; }
.footer-eu img { margin-top: 22px; width: min(420px, 100%); border-radius: 10px; background: #fff; padding: 8px; }

.footer-bottom { font-size: .8rem; opacity: .6; }
@media (max-width: 820px) { .footer .kolo { --x: 96% !important; --y: 4% !important; } }   /* na mobilu by kolo vlezlo pod text, tak jde nahoru vedle loga */

/* ===== Animace při scrollu ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Tablet ===== */
@media (max-width: 1050px) {
    .value-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .join-card { grid-template-columns: 1fr; }
    .join-box { grid-column: 1; grid-row: auto; }
}

/* ===== Mobil ===== */
@media (max-width: 820px) {
    .menu-btn { display: block; }
    .nav-links {
        position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px var(--pad) 22px; background: var(--beige); box-shadow: 0 14px 30px rgba(42,33,28,.12);
        opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s;
    }
    .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
    .nav-links a:not(.btn) { padding: 12px 4px; font-size: 1.1rem; }
    .nav-links a:not(.btn)::after { display: none; }
    .nav-cta { justify-content: center; margin-top: 10px; }
    .nav.open { background: var(--beige); }

    .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 100px; }
    .hero-photo { order: -1; width: min(420px, 90%); justify-self: center; }
    .story, .contact { grid-template-columns: 1fr; }
    .story-photos { order: -1; }
    .value-grid, .news-grid { grid-template-columns: 1fr; }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .strip img:nth-child(even) { margin-top: 24px; }
    .section { padding-top: 70px; padding-bottom: 70px; }
    .docs { padding-top: 0; }
    .contact dl { grid-template-columns: 1fr; gap: 2px; }
    .contact dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
