/* ============================================
   NEZÁVISLÍ PRO PRAHU 15 - Main Styles
   ============================================ */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.site-main {
    flex: 1 0 auto;
}

/* --- Header --- */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-top: 4px solid var(--color-primary);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    flex-shrink: 0;
    margin-right: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo .custom-logo {
    max-height: 60px;
    width: auto;
}

.site-logo-image {
    display: flex;
    align-items: center;
}

.site-logo-image__img {
    height: 48px;
    width: auto;
    display: block;
}

/* --- Navigation --- */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 16px;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.92rem;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background: var(--gradient-primary);
    color: var(--color-white);
}

/* Dropdown */
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    z-index: 1001;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul li ul li a {
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

.main-navigation ul li ul li a:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* --- Menu Toggle (Mobile) --- */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1002;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.menu-toggle svg {
    width: 26px;
    height: 26px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.menu-toggle__icon--close {
    display: none;
}

.menu-toggle[aria-expanded="true"] {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(7, 173, 210, 0.4);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close {
    display: block;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-gray);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icons__link:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.social-icons__link svg {
    width: 18px;
    height: 18px;
}

.social-icons--footer {
    margin-top: 15px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: var(--hero-min-height, 520px);
    display: flex;
    align-items: center;
    padding: 80px 20px;
    overflow: hidden;
}

.hero--scroll-fixed {
    background-attachment: fixed;
}

.hero__bg {
    position: absolute;
    inset: -15% 0;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}

@media (max-width: 1023px) {
    .hero--scroll-fixed {
        background-attachment: scroll;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 52, 73, 0.4) 0%, rgba(7, 173, 210, 0.2) 50%, rgba(7, 52, 73, 0.45) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero__badge {
    position: relative;
    height: 56px;
    margin-bottom: 24px;
}

.hero__badge img {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
    width: auto;
}

/* Stín všech prvků nad fotkou pozadí (třída na .hero, nastavení nezweb_hero_shadow). */
.hero--shadow-none .hero__title,
.hero--shadow-none .hero__subtitle {
    text-shadow: none;
}

.hero--shadow-none .hero__bubble {
    box-shadow: none;
}

.hero--shadow-none .hero__flag,
.hero--shadow-none .hero__badge img {
    filter: none;
}

.hero--shadow-soft .hero__title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero--shadow-soft .hero__subtitle {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero--shadow-soft .hero__bubble {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero--shadow-soft .hero__flag {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero--shadow-soft .hero__badge img {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.hero--shadow-medium .hero__title {
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.hero--shadow-medium .hero__subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero--shadow-medium .hero__bubble {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero--shadow-medium .hero__flag {
    filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.45));
}

.hero--shadow-medium .hero__badge img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.hero--shadow-strong .hero__title {
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
}

.hero--shadow-strong .hero__subtitle {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.hero--shadow-strong .hero__bubble {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.hero--shadow-strong .hero__flag {
    filter: drop-shadow(0 20px 55px rgba(0, 0, 0, 0.6));
}

.hero--shadow-strong .hero__badge img {
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.75));
}

.hero__badge--halo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240%;
    height: 240%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-wrap: balance;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.5;
}

/* Nepravidelná bublina kolem nadpisu + podnadpisu (nezweb_hero_text_bubble). */
.hero__slogan--bubble {
    position: relative;
    display: inline-block;
    max-width: none;
    padding: 42px 52px;
    transform: rotate(-1.5deg);
    transition: transform 0.4s ease;
}

.hero__slogan--bubble .hero__title,
.hero__slogan--bubble .hero__subtitle {
    max-width: 620px;
}

.hero__slogan--blob {
    background: linear-gradient(135deg, rgba(7, 173, 210, 0.92) 0%, rgba(20, 117, 164, 0.94) 55%, rgba(7, 52, 73, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 60px rgba(7, 52, 73, 0.45);
}

.hero__slogan--glass {
    background: rgba(7, 52, 73, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 18px 50px rgba(7, 52, 73, 0.35);
}

.hero__slogan--blob,
.hero__slogan--glass {
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
    .hero__slogan--blob,
    .hero__slogan--glass {
        animation: nezweb-bubble-morph 12s ease-in-out infinite alternate;
    }
}

@keyframes nezweb-bubble-morph {
    0% {
        border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    }
    50% {
        border-radius: 55% 45% 48% 52% / 45% 58% 42% 55%;
    }
    100% {
        border-radius: 48% 52% 58% 42% / 52% 48% 55% 45%;
    }
}

@media (max-width: 768px) {
    .hero__slogan--bubble {
        padding: 28px 26px;
        transform: none;
        width: 100%;
        box-sizing: border-box;
    }

    .hero__slogan--bubble .hero__title {
        text-align: center;
    }

    .hero__slogan--bubble .hero__subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero__bubbles {
    position: relative;
    width: 240px;
    height: 240px;
}

.hero__bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.25;
    padding: 10px;
    transition: transform 0.25s ease, background-color 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.hero__bubble:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
    color: var(--color-white);
}

.hero__bubble--1 { top: 0; left: 65px; }
.hero__bubble--2 { top: 110px; left: 0; }
.hero__bubble--3 { top: 110px; left: 130px; }

.hero__decor--row {
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.hero__bubbles--left { order: 1; }
.hero__decor--row .hero__flag { order: 2; }
.hero__bubbles--right { order: 3; }

.hero__flag {
    max-width: 100%;
    height: auto;
    max-height: 260px;
}

.hero-intro {
    font-size: 1.15rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
    line-height: 1.8;
}

/* --- Hero: spodní karta přesahující fotku ---
   Karta je renderovaná AŽ ZA <section class="hero">, protože .hero má
   overflow: hidden a uvnitř by se ořízla. Záporným marginem nahoře
   přesahuje spodní hranu hero fotografie. */
.hero--has-bottom {
    padding-bottom: 0;
}

/* Wrapper obsahu hero, aby šel spodní pásek držet na místě i po přidání karty. */
.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1 0 auto;
}

.hero-bottom {
    position: relative;
    z-index: 3;
    margin-top: -60px;
}

.hero-bottom__card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(7, 52, 73, 0.28);
}

/* Linka v barvě akcentu nahoře jako „ohraničení“. */
.hero-bottom__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 100%);
    border-radius: 18px 18px 0 0;
    z-index: 2;
    pointer-events: none;
}

.hero-bottom__media {
    flex: 0 0 260px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-bottom__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.hero-bottom--img-right .hero-bottom__media {
    order: 2;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-bottom--img-right .hero-bottom__body {
    order: 1;
}

.hero-bottom__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.hero-bottom__label {
    flex: 0 0 auto;
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-bottom__text {
    flex: 1 1 340px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.65;
}

.hero-bottom__btn {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-bottom__media {
        flex: 0 0 190px;
    }

    .hero-bottom__body {
        padding: 24px 26px;
    }
}

@media (max-width: 640px) {
    .hero-bottom {
        margin-top: -40px;
    }

    .hero-bottom__card {
        flex-direction: column;
        border-radius: 14px;
    }

    .hero-bottom--img-right .hero-bottom__media {
        order: 0;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hero-bottom__media,
    .hero-bottom__media img {
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        height: 180px;
    }

    .hero-bottom__body {
        padding: 22px 20px;
        gap: 14px;
    }

    .hero-bottom__text {
        flex: 1 1 100%;
        font-size: 0.95rem;
    }

    .hero-bottom__btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* --- Hero: kampaní vlna + odznak s volebním číslem --- */
.hero--has-wave .hero__inner {
    padding-bottom: calc(var(--hero-wave-h, 80px) + 28px);
}

.hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: var(--hero-wave-h, 80px);
    z-index: 1;
    pointer-events: none;
}

.hero__wave-text {
    margin: 0;
    max-width: 440px;
    color: var(--color-white);
    font-size: clamp(1.1rem, 1.2vw + 1rem, 1.6rem);
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(7, 52, 73, 0.35);
    text-wrap: balance;
}

#heroWaveGrad stop:first-child {
    stop-color: var(--color-primary);
}

#heroWaveGrad stop:last-child {
    stop-color: var(--color-primary-light);
}

/* Zadní vrstva stuhy (prvek z vlajky) — tmavší modrá, sleduje barvy webu. */
.hero__wave-back {
    fill: #1475a4;
    fill: var(--color-primary);
}

/* Odznak + text jako jeden celek na vlně — nikdy neleží na její hraně
   ani nekoliduje s obsahem hera. */
.hero__wave-lockup {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding-left: 20px;
    padding-right: 20px;
    padding-left: max(20px, calc((100% - var(--max-width, 1200px)) / 2 + 20px));
    padding-right: max(20px, calc((100% - var(--max-width, 1200px)) / 2 + 20px));
    justify-content: flex-start;
}

/* Spodní karta přesahuje spodních 60 px hera — celek se o to zvedne. */
.hero--has-bottom .hero__wave-lockup {
    bottom: 86px;
}

.hero__wave-lockup--right {
    justify-content: flex-end;
    flex-direction: row-reverse;
    text-align: right;
}

.hero__wave-lockup--center {
    justify-content: center;
    text-align: center;
}

.hero__wave-lockup--split {
    justify-content: space-between;
    flex-direction: row-reverse;
}

.hero__votebadge {
    flex: 0 0 auto;
    width: clamp(64px, 7vw + 12px, 112px);
    height: auto;
    aspect-ratio: 1;
    filter: drop-shadow(0 8px 20px rgba(7, 52, 73, 0.35));
}

.hero__votebadge svg {
    display: block;
    width: 100%;
    height: auto;
}

.hero__votebadge svg text {
    font-family: var(--font-primary);
}

@media (max-width: 768px) {
    .hero--has-wave .hero__inner {
        padding-bottom: calc(var(--hero-wave-h, 80px) * 0.65 + 20px);
    }

    .hero__wave {
        height: calc(var(--hero-wave-h, 80px) * 0.65);
    }

    .hero__wave-lockup {
        gap: 12px;
        bottom: 16px;
        padding-left: max(20px, calc((100% - var(--max-width, 1200px)) / 2 + 20px));
        padding-right: max(20px, calc((100% - var(--max-width, 1200px)) / 2 + 20px));
        flex-wrap: wrap;
    }

    /* Spodní karta přesahuje na mobilu spodních 40 px hera. */
    .hero--has-bottom .hero__wave-lockup {
        bottom: 56px;
    }

    .hero__wave-text {
        max-width: 58vw;
    }
}

/* --- Page Header --- */
.page-header {
    background: var(--gradient-primary);
    padding: 60px 20px;
    text-align: center;
}

.page-header__title {
    font-size: clamp(1.7rem, 3.8vw, 2.4rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.2;
    text-wrap: balance;
}

.page-header__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-header__meta {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.page-header--post {
    padding: 40px 20px;
}

/* --- Content Area --- */
.content-area {
    display: block;
}

/* --- Container Narrow --- */
.container--narrow {
    max-width: 800px;
}

/* --- Single Post --- */
.single-post__featured {
    margin-top: 30px;
    margin-bottom: 0;
}

.single-post__featured img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--color-gray-light);
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: var(--color-light);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.post-navigation a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.post-navigation__label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.post-navigation a:hover .post-navigation__label {
    color: rgba(255, 255, 255, 0.8);
}

.post-navigation__title {
    font-weight: 600;
    color: var(--color-dark);
}

.post-navigation a:hover .post-navigation__title {
    color: var(--color-white);
}

.post-navigation__next {
    text-align: right;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    padding: 65px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.cta-section::before {
    width: 400px;
    height: 400px;
    top: -40%;
    right: -10%;
}

.cta-section::after {
    width: 350px;
    height: 350px;
    bottom: -40%;
    left: -10%;
}

.cta-section__title {
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-wrap: balance;
}

/* Fluid section titles (overrides style.css) */
.section__title {
    font-size: clamp(1.55rem, 3vw, 2rem);
    text-wrap: balance;
}

.cta-section__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-section__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* --- Section CTA --- */
.section__cta {
    text-align: center;
    margin-top: 40px;
}

.section__fb-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.section__fb-note a {
    color: var(--color-gray);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section__fb-note a:hover {
    color: var(--color-primary);
}

.section__fb-note svg {
    flex-shrink: 0;
}

/* --- Contact Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-grid h2 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.contact-grid h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-top: 30px;
    margin-bottom: 10px;
}

.contact-grid p {
    color: var(--color-gray);
    margin-bottom: 20px;
}

.contact-form-notice {
    background: var(--color-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: var(--color-gray);
}

/* --- Contact Info Compact --- */
.contact-info--compact .contact-info__item {
    margin-bottom: 15px;
}

/* Contact info inside the dark footer */
.site-footer .contact-info__icon {
    color: var(--color-primary-light);
}

.site-footer .contact-info__label {
    color: var(--color-white);
}

.site-footer .contact-info__value {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer .contact-info__value:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* --- Silhouettes --- */
.site-silhouettes {
    background-color: var(--color-light);
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}

.site-footer__widgets {
    padding: 55px 0 35px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-widget__text {
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-menu li a:hover {
    color: var(--color-white);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-credits a:hover {
    color: var(--color-white);
}

/* --- Widget Styles --- */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

/* --- Single Candidate Page --- */
.single-candidate-header {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.single-candidate-header__image-wrap {
    display: inline-block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 5px solid var(--color-primary);
}

.single-candidate-header__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-candidate-header__image--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-light);
    color: var(--color-gray);
}

.single-candidate-header__info {
    flex: 1;
}

.single-candidate-header__name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 5px;
}

.single-candidate-header__role {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

.single-candidate-header__social {
    display: flex;
    gap: 10px;
}

/* --- Candidate Actions --- */
.candidate-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Karty, jejichž kliknutím se otevře detail (modál) */
.card[data-post-id],
.card[data-candidate-id] {
    cursor: pointer;
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* --- Contact Form --- */
.contact-form {
    margin-top: 5px;
}

.form-field {
    margin-bottom: 22px;
}

.form-field__label {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-field__label .req {
    color: var(--color-secondary);
}

.form-field__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field__input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 173, 210, 0.12);
}

.form-field__input::placeholder {
    color: #adb5bd;
}

.form-field__textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

select.form-field__input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b77' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-field--actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.form-field__hint {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 10px;
    margin-bottom: 0;
}

.form-field__spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--color-gray-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: nezweb-spin 0.8s linear infinite;
    display: none;
}

.form-field--loading .form-field__spinner {
    display: inline-block;
}

.form-field--loading .btn {
    pointer-events: none;
    opacity: 0.7;
}

.form-result {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-result--success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-result--error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Honeypot field - hidden */
.form-field--website {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    pointer-events: none;
}

@keyframes nezweb-spin {
    to { transform: rotate(360deg); }
}

/* --- Facebook card (embedded in feed) --- */
.fb-card .card__category {
    background-color: #1877f2;
}

.fb-card .card__category:hover {
    background-color: #0f6bdf;
}

/* --- Card as link-only post --- */
.card--link .card__category--link {
    margin-left: 4px;
    background-color: transparent;
    color: var(--color-secondary, #0b6bbf);
    border: 1px solid currentColor;
    white-space: nowrap;
}

.card--link .card__category--link:hover {
    background-color: var(--color-secondary, #0b6bbf);
    color: #fff;
}

.card--link .card__title a::after {
    content: "\2197";
    margin-left: 6px;
    font-size: 0.8em;
    opacity: 0.6;
}

/* --- No results --- */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results__title {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.no-results__text {
    color: var(--color-gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep the hero readable above the 768 collapse */
    .hero__content {
        gap: 28px;
    }

    .hero__title {
        font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    }

    .hero__bubbles {
        width: 200px;
        height: 200px;
    }

    .hero__bubble {
        width: 95px;
        height: 95px;
        font-size: 0.75rem;
    }

    .hero__bubble--1 { top: 0; left: 53px; }
    .hero__bubble--2 { top: 97px; left: 0; }
    .hero__bubble--3 { top: 97px; left: 105px; }

    .hero__flag {
        max-height: 180px;
    }

    .cta-section {
        padding: 55px 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .site-branding {
        margin-right: auto;
    }

    .site-header__social {
        display: none;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 82%;
        max-width: 330px;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        background: var(--color-white);
        border-left: 1px solid var(--color-gray-light);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
        padding: 12px 16px 24px;
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .main-navigation.is-active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
        width: 100%;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation ul li a {
        display: block;
        width: 100%;
        padding: 14px 18px;
        font-size: 1rem;
        color: var(--color-text);
        white-space: normal;
        text-align: left;
        border-radius: 10px;
    }

    .main-navigation ul li a:hover,
    .main-navigation ul li.current-menu-item > a {
        background: var(--gradient-primary);
        color: var(--color-white);
    }

    .main-navigation ul li ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
        background: transparent;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: 12px;
    }

    /* Hero */
    .hero {
        min-height: 360px;
        padding: 44px 20px 52px;
    }

    .hero__bg {
        inset: 0;
        background-size: cover;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 6.5vw, 2.2rem);
        text-align: center;
    }

    .hero__subtitle {
        font-size: 1.05rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__badge {
        display: flex;
        justify-content: center;
    }

    .hero__decor {
        display: none;
    }

    /* Page header */
    .page-header {
        padding: 40px 20px;
    }

    .page-header__title {
        font-size: 1.8rem;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section__subtitle {
        margin-bottom: 32px;
    }

    .section__title {
        font-size: 1.6rem;
    }

    /* Grids */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    /* Content area (sidebar removed) */
    .content-area__sidebar {
        display: none;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom__inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Candidate header */
    .single-candidate-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .single-candidate-header__image-wrap {
        width: 150px;
        height: 150px;
    }

    .single-candidate-header__social {
        justify-content: center;
    }

    /* Form actions stack */
    .form-field--actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-field--actions .btn {
        width: 100%;
    }

    /* Post navigation */
    .post-navigation {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section {
        padding: 50px 20px;
    }

    .cta-section__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 300px;
        padding: 32px 16px 40px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .page-header {
        padding: 30px 16px;
    }

    .page-header--post {
        padding: 26px 16px;
    }

    .cta-section__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-section__actions .btn {
        width: 100%;
    }

    .single-post__featured img {
        max-height: 300px;
    }

    .no-results {
        padding: 40px 16px;
    }
}

/* --- Candidate modal --- */
@keyframes nezweb-modal-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.candidate-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(7, 52, 73, 0.7);
    backdrop-filter: blur(3px);
    padding: 20px;
}

.candidate-modal.is-open {
    display: flex;
}

.candidate-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: nezweb-modal-in 0.28s ease;
}

.candidate-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    background: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-primary-dark);
    z-index: 1;
    box-shadow: 0 4px 14px rgba(7, 52, 73, 0.3);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.candidate-modal__close:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.candidate-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.candidate-modal__spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(20, 117, 164, 0.2);
    border-top-color: var(--color-primary);
    animation: nezweb-modal-spin 0.8s linear infinite;
}

@keyframes nezweb-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.candidate-modal__header {
    background: var(--gradient-primary);
    padding: 30px 36px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.candidate-modal__photo-circle {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(7, 52, 73, 0.4);
}

.candidate-modal__photo-wrap {
    position: relative;
}

.candidate-modal__number {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(7, 52, 73, 0.3);
}

.candidate-modal__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-modal__photo--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 3.6rem;
}

.candidate-modal__header-info {
    min-width: 0;
}

.candidate-modal__name {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.candidate-modal__role {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 999px;
}

/* Edit odkaz v modálním detailu — stejný admin styl jako na stránce, jen v bílé. */
.candidate-modal .modal-edit-link .post-edit-link {
    background: #ffffff;
    color: #555;
    border-color: #b0b7bd;
}

.candidate-modal .modal-edit-link .post-edit-link:hover {
    background: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.candidate-modal__body {
    padding: 26px 36px 32px;
}

.candidate-modal__contact {
    background: var(--color-light);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidate-modal__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-modal__contact-item a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.candidate-modal__contact-item a:hover {
    text-decoration: underline;
}

.candidate-modal__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(7, 52, 73, 0.12);
}

.candidate-contact-info {
    background: var(--color-light);
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidate-modal__bio {
    color: var(--color-text);
    line-height: 1.7;
}

.candidate-modal__bio img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Post modal (článek) --- */
.post-modal__header.candidate-modal__header {
    display: block;
}

.post-modal__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.post-modal__date {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.post-modal__featured {
    padding: 0 36px;
    margin-top: -14px;
}

.post-modal__featured img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.post-modal__content {
    color: var(--color-text);
    line-height: 1.7;
}

.post-modal__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-modal__link {
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
    color: var(--color-primary);
}

.post-modal__link:hover {
    color: var(--color-primary-light);
}

@media (max-width: 600px) {
    .post-modal__featured {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .candidate-modal__dialog {
        padding: 0;
    }

    .candidate-modal__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 26px 20px 24px;
    }

    .candidate-modal__photo-circle {
        width: 110px;
        height: 110px;
    }

    .candidate-modal__body {
        padding: 22px 20px 26px;
    }
}

/* ============================================
   Vyladění & dostupnost (1.0.42)
   ============================================ */

/* Vylepšený focus pro klávesovou navigaci (WCAG 2.2) */
:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Oblast výběru textu */
::selection {
    background: var(--color-primary-pale);
    color: var(--color-primary-dark);
}

/* Nativní kotvy respektují výšku sticky hlavičky */
html {
    scroll-padding-top: calc(var(--header-height) + 16px);
}

/* Vyvážené zalamování nadpisů */
.hero__title,
.section__title,
.page-header__title {
    text-wrap: balance;
}

/* Karty: hover reaguje jen na tlačítkách/odkazech, okno samo se nezvedá */
.card__image-link {
    display: block;
    overflow: hidden;
}

/* Focus pole formuláře */
.form-field__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(7, 173, 210, 0.2);
    outline: none;
}

/* --- Like button --- */
.like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--color-gray-light, #dbe4ea);
    border-radius: var(--section-btn-radius, 8px);
    background: var(--color-white);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.like-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.like-button__icon {
    font-size: 1rem;
    line-height: 1;
    color: var(--color-text-muted, #6b7a86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.like-button.is-liked {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-white);
}

.like-button.is-liked .like-button__icon {
    color: var(--color-white);
    transform: scale(1.15);
}

.like-button:active {
    transform: scale(0.96);
}

.like-button.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.card__meta .like-button {
    margin-left: auto;
}

.card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-light, #dbe4ea);
}

.single-post__like {
    margin-top: 32px;
}

/* Respekt k preferencím omezeného pohybu */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .candidate-modal__dialog {
        animation: none;
    }
}

/* --- List layout for aktuality --- */
.list-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.list-layout .card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.list-layout .card__image-link {
    flex: 0 0 280px;
    max-width: 280px;
    display: block;
}

.list-layout .card__image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.list-layout .card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.list-layout .card__title {
    font-size: 1.15rem;
}

.list-layout .card__excerpt {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .list-layout .card {
        flex-direction: column;
    }
    .list-layout .card__image-link {
        flex: none;
        max-width: none;
    }
    .list-layout .card__image {
        min-height: 160px;
        max-height: 200px;
    }
}
