/*
 * MEVRA — styly pro SEO / AEO komponenty
 *
 * Obsahuje prvky přidané kvůli vyhledávačům a AI vyhledávání:
 *   .mevra-answer     — shrnující odstavec na začátku stránky
 *   .mevra-faq-*      — sekce s častými dotazy
 *
 * Navazuje na barevnost šablony: #1D8BCC (světlá modrá), #035596 (tmavá).
 */

/* ===== SHRNUTÍ NA ZAČÁTKU STRÁNKY ===== */

.mevra-answer {
    max-width: 780px;
    margin: 0 0 2.5rem;
    padding: 1.5rem 1.75rem;
    background: #f4f8fb;
    border-left: 4px solid #1D8BCC;
    border-radius: 0 8px 8px 0;
}

.mevra-answer-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1D8BCC;
    margin: 0 0 0.5rem;
}

.mevra-answer-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #22303c;
    margin: 0;
}

.mevra-answer-text strong {
    font-weight: 600;
    color: #035596;
}

/* Varianta na tmavém pozadí (hero sekce) */
.sp-hero .mevra-answer,
.hero-section .mevra-answer {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.5);
    margin-inline: auto;
}

.sp-hero .mevra-answer-text,
.hero-section .mevra-answer-text {
    color: rgba(255, 255, 255, 0.92);
}

.sp-hero .mevra-answer-label,
.hero-section .mevra-answer-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ČASTÉ DOTAZY ===== */

.mevra-faq-section {
    padding: 4rem 0;
    background: #f7f9fb;
}

.mevra-faq-heading {
    font-size: 1.9rem;
    font-weight: 600;
    color: #111;
    text-align: center;
    margin: 0 0 2.5rem;
}

.mevra-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.mevra-faq-item {
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mevra-faq-item[open] {
    border-color: #1D8BCC;
    box-shadow: 0 2px 14px rgba(3, 85, 150, 0.08);
}

.mevra-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #16283a;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.mevra-faq-question:hover {
    color: #035596;
}

/* Skrytí výchozí šipky <details> a nahrazení vlastní */
.mevra-faq-question::-webkit-details-marker { display: none; }
.mevra-faq-question::marker { content: ""; }

.mevra-faq-question::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid #1D8BCC;
    border-bottom: 2px solid #1D8BCC;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.25s ease;
}

.mevra-faq-item[open] .mevra-faq-question::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.mevra-faq-answer {
    padding: 0 1.5rem 1.35rem;
}

.mevra-faq-answer p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.8;
    color: #4a5866;
}

/* Focus pro ovládání klávesnicí */
.mevra-faq-question:focus-visible {
    outline: 2px solid #1D8BCC;
    outline-offset: -2px;
}

@media (max-width: 767.98px) {
    .mevra-faq-section { padding: 3rem 0; }
    .mevra-faq-heading { font-size: 1.5rem; margin-bottom: 1.75rem; }
    .mevra-faq-question { padding: 1rem 1.15rem; font-size: 0.96rem; }
    .mevra-faq-answer { padding: 0 1.15rem 1.15rem; }
}

/* Uživatelé s omezením animací */
@media (prefers-reduced-motion: reduce) {
    .mevra-faq-item,
    .mevra-faq-question,
    .mevra-faq-question::after { transition: none; }
}

/* ===== KLIENTI — mřížka barevných log (stránka Reference) ===== */

.rp-clients-section {
    padding: 4.5rem 0;
    background: #fff;
    border-top: 1px solid #eef1f4;
}

.rp-clients-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.rp-clients-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #1D8BCC;
    margin-bottom: 0.5rem;
}

.rp-clients-heading {
    font-size: 2.1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.9rem;
}

.rp-clients-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: #5a6672;
    margin: 0;
}

.rp-clients-group {
    margin-bottom: 2.75rem;
}

.rp-clients-group:last-child {
    margin-bottom: 0;
}

.rp-clients-group-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8a97a3;
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #eef1f4;
}

.rp-clients-grid {
    display: grid;
    /* Šířka dlaždice je daná nejširším logem: loga ministerstev jsou
       velmi široká a v úzké dlaždici by se zmenšila na nečitelnou výšku. */
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1.4rem 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e7ecf1;
    border-radius: 12px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rp-client-item:hover {
    transform: translateY(-3px);
    border-color: #cfe1ee;
    box-shadow: 0 8px 24px rgba(3, 85, 150, 0.09);
}

.rp-client-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 68px;
}

/* Loga v plné barevnosti — na této stránce jsou důkazem, ne dekorací,
   proto se nepoužívá šedý filtr jako v liště na úvodní stránce. */
.rp-client-logo {
    max-width: 100%;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rp-client-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: #55616d;
    text-align: center;
}

@media (max-width: 767.98px) {
    .rp-clients-section { padding: 3rem 0; }
    .rp-clients-heading { font-size: 1.55rem; }
    .rp-clients-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
    .rp-client-item { padding: 1rem 0.7rem 0.85rem; }
    .rp-client-logo-wrap { height: 52px; }
    .rp-client-logo { max-height: 52px; }
    .rp-client-name { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-client-item { transition: none; }
    .rp-client-item:hover { transform: none; }
}
