/*
 * Quark 2 — user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */

/* ===== Animowany baner (templates/partials/banner.html.twig) ===== */
.animated-banner-wrapper {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #000;      /* tło widoczne, zanim wideo się załaduje */

    /* proporcje banera na mobile – niższy pas */
    aspect-ratio: 16 / 9;
    max-height: 60vh;
}

.animated-banner {
    position: relative;
    width: 100%;
    height: 100%;
}

.animated-banner video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: cover;     /* wideo wypełnia baner bez rozciągania proporcji */
}

/* Logo w lewym górnym rogu banera, na białej płytce dla czytelności na ciemnym wideo */
.banner-logo {
    position: absolute;
    top: clamp(0.75rem, 2.5vw, 1.75rem);
    left: clamp(0.75rem, 2.5vw, 1.75rem);
    z-index: 1;
    display: block;
    width: clamp(110px, 22vw, 260px);
    padding: clamp(0.125rem, 0.4vw, 0.375rem);
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    line-height: 0;
}

.banner-logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* Fallback dla starszych przeglądarek bez wsparcia dla aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .animated-banner-wrapper {
        height: 45vw;
        max-height: 60vh;
    }
}

@media (min-width: 768px) {
    .animated-banner-wrapper {
        aspect-ratio: 21 / 9;
        max-height: 70vh;
    }

    @supports not (aspect-ratio: 21 / 9) {
        .animated-banner-wrapper {
            height: 30vw;
        }
    }
}


/* ===== Stopka z danymi kontaktowymi (templates/partials/footer.html.twig) ===== */
:root {
    --mmp-footer-bg: #0b5fa5;   /* niebieski z logo, przyciemniony dla kontrastu z bielą */
    --mmp-footer-text: #ffffff;
}

#footer {
    background: var(--mmp-footer-bg);
    color: var(--mmp-footer-text);
    border-top: 0;
}

#footer a {
    color: var(--mmp-footer-text);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 0.2em;
}

#footer a:hover {
    text-decoration-color: currentColor;
}

/* Blades CSS nadaje akapitom własny kolor — nazwa i adres mają być białe (linia © zostaje bez zmian) */
#footer .footer-company,
#footer .footer-contact {
    color: var(--mmp-footer-text);
}

#footer .footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-block: 0.5rem;
}

#footer .footer-contact .fa-solid {
    margin-right: 0.35rem;
}

#footer .footer-copy {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    opacity: 0.85;
}

/* ===== Strona Kontakt: etykiety z danymi, pod nimi formularz | mapa (templates/kontakt.html.twig) ===== */
.contact-labels {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 2rem 0 3rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .contact-labels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .contact-labels {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.contact-label {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
    margin: 0;
    padding: 1rem 1.25rem;
    list-style: none;
}

.contact-label-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--q2-accent);
    color: #fff;
    font-size: 1.125rem;
}

.contact-label-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-label-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--q2-text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-grid h2 {
    margin-top: 0;
}

.contact-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-col p {
    margin-top: 0.5rem;
}

/* ===== Strona główna (templates/home.html.twig) ===== */
.home-intro {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

.home-services {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-block: 3rem;
}

@media (min-width: 640px) {
    .home-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

a.home-service {
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.home-service > .fa-solid {
    font-size: 1.75rem;
    color: var(--mmp-footer-bg);
}

.home-service h3 {
    margin: 1rem 0 0.5rem;
}

.home-service h3::before {
    display: none;
}

.home-service p {
    flex: 1;
    margin-bottom: 1rem;
}

.home-service-more {
    font-weight: 600;
    color: var(--mmp-footer-bg);
}

.mmp-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-block: 3rem;
    text-align: center;
}

@media (min-width: 640px) {
    .mmp-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mmp-stat strong {
    display: block;
    font-family: var(--pico-font-family-display);
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--mmp-footer-bg);
}

.mmp-cta {
    padding: 2.5rem 1.5rem;
    border-radius: var(--q2-radius-md);
    background: var(--q2-bg-muted);
    text-align: center;
}

.mmp-cta p {
    font-size: 1.125rem;
}

/* Ciemny motyw: jaśniejszy niebieski dla ikon i liczb, żeby były czytelne na ciemnym tle */
:root[data-theme="dark"] .home-service > .fa-solid,
:root[data-theme="dark"] .home-service-more,
:root[data-theme="dark"] .mmp-stat strong {
    color: #5aa9ec;
}

/* Podtytuł pod nazwą firmy: mniejszy, wielkimi literami */
.home-intro h1 + h2 {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== Wspólne sekcje podstron (templates/media.html.twig) ===== */
.mmp-section {
    margin-block: 3rem;
}

.media-partners {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .media-partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .media-partners {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.media-partner {
    padding: 1.5rem;
    border-top: 3px solid var(--q2-accent);
}

.media-partner h3 {
    margin: 0 0 0.5rem;
}

.media-partner h3::before {
    display: none;
}

.media-partner p {
    margin: 0;
}

.media-people {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.media-people li {
    margin: 0;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: var(--q2-bg-muted);
    list-style: none;
}

.media-memberships {
    padding: 0;
    list-style: none;
}

.media-memberships li {
    margin-bottom: 0.75rem;
    list-style: none;
}

.media-memberships .fa-solid,
.media-memberships .fa-brands {
    width: 1.5em;
    color: var(--q2-accent);
    text-align: center;
}

/* ===== Bez automatycznego dzielenia wyrazów (Blades CSS włącza hyphens: auto) ===== */
html,
body,
body * {
    -webkit-hyphens: none;
    hyphens: none;
}

/* Ikona w karcie sekcji (templates/sections.html.twig) */
.mmp-card-icon {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--q2-accent);
}

/* Cztery karty: układ 2×2 zamiast 3+1 */
@media (min-width: 1024px) {
    .media-partners.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== VOD (templates/vod*.html.twig) ===== */
a.vod-category {
    color: inherit;
    text-decoration: none;
}

.media-partner.vod-category p {
    flex: 1;
    margin-bottom: 1rem;
}

.vod-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .vod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .vod-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

a.vod-card {
    color: inherit;
    text-decoration: none;
}

.vod-card[hidden] {
    display: none;
}

.vod-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: var(--q2-bg-muted);
    color: var(--q2-text-muted);
    font-size: 2rem;
    overflow: hidden;
}

.vod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vod-play {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--q2-accent);
    color: #fff;
    font-size: 1.125rem;
    opacity: 0.9;
}

.vod-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
}

.vod-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--q2-accent);
}

.vod-card-title {
    line-height: 1.3;
}

.vod-card-date {
    font-size: 0.875rem;
    color: var(--q2-text-muted);
}

.vod-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-block: 2rem 1.5rem;
}

.vod-filters label {
    flex: 1 1 12rem;
    margin: 0;
}

.vod-filters label span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.vod-filters input,
.vod-filters select {
    margin: 0;
}

.vod-empty {
    padding: 2rem;
    border-radius: var(--q2-radius-md);
    background: var(--q2-bg-muted);
    text-align: center;
}

.vod-breadcrumb {
    font-size: 0.9375rem;
}

.vod-player {
    aspect-ratio: 16 / 9;
    border-radius: var(--q2-radius-md);
    background: #000;
    overflow: hidden;
}

.vod-player iframe,
.vod-player video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.vod-video-title {
    margin: 1.5rem 0 0.25rem;
    font-size: 2rem;
}

/* Kontakt: w dwóch kolumnach mapa rozciąga się do wysokości formularza */
@media (min-width: 900px) {
    .contact-grid {
        align-items: stretch;
    }

    .contact-map-col {
        display: flex;
        flex-direction: column;
    }

    .contact-map-col .contact-map {
        flex: 1;
        min-height: 20rem;
        aspect-ratio: auto;
    }

    .contact-map-col p {
        margin-bottom: 0;
    }
}

/* Kontakt: ikona nad danymi w etykiecie, całość wyśrodkowana */
.contact-label {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.contact-label-text {
    align-items: center;
}
