﻿/* =====================================================
   POPPINS – FONT LOKALNY
===================================================== */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   ZMIENNE GLOBALNE
===================================================== */

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;

    /* WCAG – bazowy rozmiar */
    --base-font-size: 0.625rem;
}

/* =====================================================
   HTML / BODY – FUNDAMENT
===================================================== */

html {
    font-size: var(--base-font-size);
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Poppins',
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;

    font-weight: 400;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* =====================================================
   HEADER / NAVBAR
===================================================== */

header {
    position: relative;
    z-index: 1000;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0 17px;
    min-height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bs-primary) !important;
}

.navbar-logo {
    max-height: 66px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.navbar-brand:hover {
    color: var(--bs-dark) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* =====================================================
   MAIN
===================================================== */

main {
    flex: 1;
}

/* =====================================================
   ACCESSIBILITY (A+, A− itd.)
===================================================== */

.accessibility-icons {
    display: flex;
    gap: 10px;
}

.a11y-btn {
    background: #e5e5e5;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

.a11y-btn:hover {
    background: #d9d9d9;
}

.a11y-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 40px 0 20px;
    background: #fff;
}

footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p,
footer a {
    font-size: 1rem;
    line-height: 1.8;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bs-primary);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 8px;
}

.footer-logo {
    max-height: 100px;
    margin-bottom: 15px;
}

/* =====================================================
   PASEK GRADIENTOWY NAD STOPKĄ
===================================================== */

.page-footer {
    position: relative;
    height: 9px;
    width: 100%;
}

.page-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #007ad6 0%, #003d6b 100%);
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .accessibility-icons {
        gap: 10px;
    }

    .a11y-btn img {
        width: 20px;
        height: 20px;
    }
}

/* =====================================================
   TRYB WYSOKIEGO KONTRASTU – WCAG 2.1 AA
===================================================== */

html.high-contrast,
html.high-contrast body {
    background: #000 !important;
    color: #fff !important;
}

/* TEKSTY */
html.high-contrast h1,
html.high-contrast h2,
html.high-contrast h3,
html.high-contrast h4,
html.high-contrast h5,
html.high-contrast h6,
html.high-contrast p,
html.high-contrast span,
html.high-contrast li,
html.high-contrast strong,
html.high-contrast em,
html.high-contrast small {
    color: #fff !important;
}

/* LINKI */
html.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline;
}

/* HEADER / NAVBAR */
html.high-contrast header,
html.high-contrast .navbar {
    background: #000 !important;
    box-shadow: none !important;
}

/* SEKCJE / KONTENERY */
html.high-contrast main,
html.high-contrast section,
html.high-contrast footer,
html.high-contrast .hero,
html.high-contrast .hero-card,
html.high-contrast .container {
    background: #000 !important;
    color: #fff !important;
}

/* USUWAMY OZDOBY */
html.high-contrast .hero::before,
html.high-contrast .hero::after,
html.high-contrast .page-footer::before {
    display: none !important;
}

/* =====================================================
   PRZYCISKI DOSTĘPNOŚCI (A-, A+, KONTRAST)
===================================================== */

html.high-contrast .a11y-btn {
    background: #000 !important;
    border: 2px solid #fff !important;
}

/* IKONY */
html.high-contrast .a11y-btn img {
    filter: invert(1) brightness(1.2) contrast(1.2);
}

/* HOVER */
html.high-contrast .a11y-btn:hover {
    background: #111 !important;
}

/* FOCUS – WCAG */
html.high-contrast :focus {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px;
}
html.high-contrast .navbar-brand {
    background: #fff !important;
    padding: 6px 10px;
    border-radius: 6px;
}


html.high-contrast .navbar-brand {
    border: 2px solid #000;
}


html.high-contrast .navbar-logo {
    filter: none !important;
}