/* ==========================================================================
   SNK Velešovice 2026 – společný styl
   Barvy: zelená (venkov, zeleň) + modrá (voda, Rakovec, klid)
   ========================================================================== */

:root {
    --green-900: #1d4732;
    --green-700: #2f6b4f;
    --green-500: #4f9070;
    --green-050: #eef6f1;
    --blue-900: #123c52;
    --blue-700: #1c5a7a;
    --blue-500: #3d87ad;
    --blue-050: #eef4f8;
    --ink: #1a2430;
    --ink-soft: #4a5763;
    --line: #dde4e8;
    --bg: #ffffff;
    --bg-soft: #f7faf8;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(18, 60, 82, .07);
    --shadow-lg: 0 8px 28px rgba(18, 60, 82, .12);
    --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}

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

/* ---------- Typografie ---------- */

h1, h2, h3 {
    line-height: 1.22;
    color: var(--green-900);
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--blue-700); }
a:hover { color: var(--blue-900); }

.lead {
    font-size: 1.18rem;
    color: var(--ink-soft);
    max-width: 62ch;
}

/* ---------- Hlavička a navigace ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--green-900);
}

.brand__mark {
    height: 46px;
    width: auto;
    flex: 0 0 auto;
    display: block;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.06rem; }
.brand__sub { font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; flex-wrap: wrap; gap: 6px; }

.nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .98rem;
}

.nav a:hover { background: var(--green-050); color: var(--green-900); }

.nav a[aria-current="page"] {
    background: var(--green-700);
    color: #fff;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--green-900);
    color: #fff;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
}

.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(12, 40, 28, .90) 0%, rgba(14, 45, 32, .74) 42%, rgba(18, 60, 82, .30) 78%, rgba(18, 60, 82, .18) 100%),
        linear-gradient(180deg, rgba(10, 32, 24, .45) 0%, rgba(10, 32, 24, 0) 38%, rgba(10, 32, 24, .55) 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 110px 20px 72px;
}

.hero h1 { text-shadow: 0 2px 18px rgba(6, 24, 16, .45); }
.hero__claim { text-shadow: 0 1px 12px rgba(6, 24, 16, .5); }

/* Znak obce v hero */
.hero__crest {
    position: absolute;
    right: 44px;
    top: 40px;
    z-index: 3;
    height: 132px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(6, 24, 16, .45));
}

.hero__caption {
    position: absolute;
    right: 16px;
    bottom: 8px;
    z-index: 3;
    font-size: .74rem;
    color: rgba(255, 255, 255, .6);
}

.hero h1 { color: #fff; max-width: 22ch; }

.hero__claim {
    font-size: clamp(1.1rem, 2.4vw, 1.42rem);
    max-width: 54ch;
    color: rgba(255, 255, 255, .94);
    margin-bottom: 1.6em;
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .86rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 22px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: transform .12s ease, background .12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: #fff; color: var(--green-900); }
.btn--primary:hover { background: var(--green-050); color: var(--green-900); }

.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.btn--solid { background: var(--green-700); color: #fff; }
.btn--solid:hover { background: var(--green-900); color: #fff; }

/* ---------- Sekce ---------- */

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 68ch; margin-bottom: 36px; }

.eyebrow {
    display: block;
    font-size: .84rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-700);
    font-weight: 700;
    margin-bottom: 10px;
}

/* ---------- Mřížky a karty ---------- */

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 24px 20px;
    box-shadow: var(--shadow);
}

.card h3 { color: var(--green-900); }
.card p:last-child { margin-bottom: 0; }

/* Programové body */

.point {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--green-500);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow);
}

.point--soft { border-left-color: var(--blue-500); }

.point__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green-050);
    color: var(--green-700);
    font-weight: 700;
    font-size: .95rem;
    margin-right: 10px;
    vertical-align: 2px;
}

.point--soft .point__num { background: var(--blue-050); color: var(--blue-700); }

.point h3 { display: block; margin-bottom: .45em; }
.point p:last-child { margin-bottom: 0; }
.point ul { margin: 0; padding-left: 1.2em; }
.point li + li { margin-top: .5em; }

.points { display: grid; gap: 18px; }

/* Kandidáti */

.people {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: start;              /* karty se neroztahují na výšku sousedů */
}

.person {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Fotografie přes celou šířku karty */
.person__photo-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(165deg, #f2f8f4 0%, #dbe9e1 100%);
    border-bottom: 1px solid var(--line);
}

.person__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
}

/* Zástupný obrázek u kandidátů bez fotografie */
.person__photo--placeholder {
    object-fit: contain;
    object-position: center bottom;
    padding: 18% 22% 0;
    opacity: .55;
}

/* Číslo na kandidátce – odznak v rohu fotky */
.person__num {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green-700);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(18, 60, 82, .28);
}

.person__body { padding: 16px 18px 18px; }

.person__name { font-weight: 700; font-size: 1.04rem; color: var(--green-900); margin: 0 0 1px; }
.person__age { margin: 0; color: var(--ink-soft); font-size: .86rem; }

.person__role {
    margin: 10px 0 0;
    color: var(--blue-700);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
}

.person__motto {
    margin: 12px 0 0;
    padding-left: 12px;
    border-left: 3px solid var(--green-050);
    color: var(--ink-soft);
    font-size: .89rem;
    font-style: italic;
    line-height: 1.55;
}

/* Delší medailonek: mezititulky, odstavce a odrážky */
.person__section {
    margin: 16px 0 0;
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green-700);
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.person__text {
    margin: 7px 0 0;
    font-size: .88rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.person__text strong { color: var(--green-900); }

.person__list {
    margin: 8px 0 0;
    padding-left: 1.05em;
    font-size: .88rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.person__list li + li { margin-top: 7px; }
.person__list strong { color: var(--blue-700); }

.person__age:empty, .person__role:empty, .person__motto:empty { display: none; }

/* ---------- Poznámka / callout ---------- */

.note {
    background: var(--blue-050);
    border: 1px solid #cfe0ea;
    border-radius: var(--radius);
    padding: 20px 24px;
    color: var(--blue-900);
}

.note p:last-child { margin-bottom: 0; }

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

.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, .85);
    padding: 44px 0 32px;
    font-size: .95rem;
}

.footer a { color: #fff; }

.footer__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-bottom: 28px;
}

.footer h3 { color: #fff; font-size: 1rem; margin-bottom: .4em; }

.footer__crest {
    height: 74px;
    width: auto;
    display: block;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 16px;
    font-size: .86rem;
    color: rgba(255, 255, 255, .65);
}

.team-photo {
    margin: 0 0 34px;
}

.team-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 40, 25, .16);
}

.team-photo figcaption {
    margin-top: 10px;
    font-size: .92rem;
    color: var(--text-soft, #5a6672);
    text-align: center;
}


/* ---------- Rozbalovací fotografie u bodů programu ---------- */

.more { margin-top: 4px; }

.more__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border: 1.5px solid var(--green-500);
    border-radius: 999px;
    background: #fff;
    color: var(--green-900);
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.more__btn:hover { background: var(--green-050); border-color: var(--green-700); }
.more__btn:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.more__icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--green-700);
    border-bottom: 2px solid var(--green-700);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s;
}

.more__btn[aria-expanded="true"] .more__icon {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.more__panel {
    animation: more-in .25s ease both;
}

.more__inner { min-height: 0; }

@keyframes more-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.more__panel[hidden] { display: none; }

.point__figure {
    margin: 16px 0 0;
}

.point__figure img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.point__figure figcaption {
    margin-top: 8px;
    max-width: 560px;
    font-size: .92rem;
    color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
    .more__panel { animation: none; }
    .more__icon { transition: none; }
}


/* ---------- Mobil ---------- */

@media (max-width: 900px) {
    .hero__crest { height: 92px; right: 22px; top: 26px; }
}

@media (max-width: 520px) {
    .people { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
    .person__body { padding: 12px 13px 14px; }
    .person__num { width: 30px; height: 30px; font-size: .9rem; right: 8px; bottom: 8px; }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .hero { min-height: 480px; }
    .hero__inner { padding: 132px 20px 46px; }
    .hero__crest { height: 74px; right: 18px; top: 20px; }
    .brand__mark { height: 38px; }
    .section { padding: 48px 0; }
    .topbar__inner { padding: 10px 16px; }
    .nav a { padding: 7px 11px; font-size: .92rem; }
    .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
}
