/* styles.css
   - Edytowalne zmienne: patrz sekcja :root
   - Responsywność + hamburger
*/

/* ========== CONFIG: łatwa edycja kolorów i fontów ========== */
:root {
    /* kolory - zmień tutaj */
    --bg: #222;
    /* ogólne tło strony */
    --card-bg: #2b2b2b;
    /* tło sekcji/card */
    --accent: #00d1ff;
    /* główny akcent (turkus) */
    --accent-2: #ff2ea6;
    /* drugi akcent (fuksja) */
    --muted: #cfcfcf;
    /* tekst pomocniczy */
    --text: #ffffff;
    /* tekst podstawowy */
    --highlight: #ff6b8a;
    /* highlight inline */
    --container-width: 1200px;
    /* szerokość kontenera */

    --header-height: 72px;
    --max-content-width: 1200px;

    --radius: 12px;
    --transition: 180ms ease-in-out;
}

/* Reset / podstawy */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {

    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    border-bottom: 4px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
}

/* Logo zawsze na wierzchu */
.site-header .logo {
    position: relative;
    z-index: 101;
    /* wyższe niż z-index menu 100 */
}

/* Opcjonalnie: upewnij się, że obrazek logo nie jest przycięty */
.site-header .logo img {
    display: block;
    height: 40px;
}

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

.logo img {
    height: 40px;
    display: block;
}

/* Nav (desktop) */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    display: inline-block;
    padding: 8px 6px;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--text);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}

.hamburger-box {
    width: 28px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 3px;
    background: var(--text);
    display: block;
    position: absolute;
    left: 0;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: "";
    top: -8px;
}

.hamburger-inner::after {
    content: "";
    top: 8px;
}

.hamburger[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-inner::before {
    transform: rotate(-90deg) translateX(-1px);
    top: 0;
}

.hamburger[aria-expanded="true"] .hamburger-inner::after {
    opacity: 0;
}

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

.hero {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
    border-bottom: 6px solid rgba(255, 255, 255, 0.03);
}

.hero-inner {
    padding: 80px 0;
    text-align: center;
    margin: 0 20px;
}

.hero-title {
    font-size: 36px;
    letter-spacing: 1px;
    margin: 0 0 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 900px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.5;
}

.highlight {
    color: var(--accent-2);
    font-weight: 700;
}

.highlight.alt {
    color: var(--accent);
}

/* Split sections (image + text) */
.section--split {
    padding: 48px 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.split.reverse {
    direction: ltr;
}

.split__left,
.split__right {
    background: var(--card-bg);
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.brand-header h2 {
    margin: 0;
    color: var(--accent-2);
    font-size: 22px;
    text-transform: uppercase;
}

.header2 {
    color: var(--accent) !important;
}

.section-logo {
    height: 36px;
    display: block;
}

/* section image placeholder */
.section-image {
    height: 260px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Default bg placeholders - podmień w CSS lub inline style */
.bg-branding {
    background-image: url('./images/zdjecie_tomek.png');
    opacity: 0.95;
}

.bg-training .split__left .section-image {
    background-image: url('path/to/training-image.jpg');
    opacity: 0.95;
}

/* lists & text */
.section-text {
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.list-check {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.list-check li {
    margin-bottom: 6px;
}

/* Contact */
.contact {
    padding: 30px 0 70px;
}

.contact-inner {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.contact-card {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: 10px;
}

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

.contact-list li {
    margin-bottom: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.btn--accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #111;
    border: 0;
}

/* Footer */
.site-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

/* Responsywność */
@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        height: calc(100vh - var(--header-height));
        transform: translateY(-100%);
        transition: transform var(--transition);
        pointer-events: none;

        /* umiarkowana przezroczystość tła */
        background: rgba(255, 255, 255, 0.12);
        /* ~12% bieli */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .main-nav.open {
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        padding: 30px;
        gap: 18px;
        background-color: black;
    }

    .hamburger {
        display: block;
    }

    .hero-inner {
        padding: 36px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split__left,
    .split__right {
        padding: 18px;
    }

    .section-image {
        height: 180px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Large screens polish */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 44px;
    }

    .section-image {
        height: 340px;
    }

    .split {
        gap: 40px;
    }
}

/* Utility */
.text-muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.small {
    font-size: 0.85rem;
}

.contact-list-img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.contact-list-element {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-list a {
    text-decoration: none;
    color: inherit;
    /* lub ustaw kolor np. #000 */
}

/* === SZKOLENIA Z SAMOOBRONY — NOWY DESIGN === */

.training-section {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 480px;
    padding: 60px 0;
    background: #1c1c1c;
    /* tło bazowe jak na PNG */
}

/* Lewy gradientowy pasek */
.training-gradient {
    width: 12px;
    min-width: 12px;
    background: linear-gradient(180deg, #37e5e5 0%, #00c8d7 100%);
    margin-right: 40px;
}

/* Lewa kolumna z tekstem */
.training-content {
    z-index: 2;
    padding-left: 20px;
}

.training-title {
    color: #00c8d7;
    /* kolor nagłówka jak na PNG */
    font-size: 32px;
    margin: 0 0 20px;
}

.training-bg,
.branding-bg {
    position: relative;
    overflow: hidden;
}

.training-bg img,
.branding-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;

    /* Zanikanie w lewo – desktop */
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

/* Na mobilce — pełne zdjęcie, bez zanikania */
@media (max-width: 900px) {

    .training-bg img,
    .branding-bg img {
        mask-image: none;
        -webkit-mask-image: none;
        object-position: center top;
    }
}


/* List style */
.training-list {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.training-list li {
    margin: 6px 0;
    padding-left: 16px;
    position: relative;
}

.training-list li::before {
    content: "•";
    color: #00c8d7;
    position: absolute;
    left: 0;
}

/* === RESPONSYWNOŚĆ === */

@media (max-width: 900px) {
    .training-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .training-gradient {
        width: 100%;
        height: 8px;
        margin: 0 0 20px 0;
    }

}

/* === GRAFIKA I DRUK — W STYLU SAMOOBRONY === */

.branding-section {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 480px;
    padding: 60px 0;
    background: #1c1c1c;
}

/* gradientowy pasek po lewej */
.branding-gradient {
    width: 12px;
    min-width: 12px;
    background: linear-gradient(180deg, #ff2ea6 0%, #ff6bce 100%);
    margin-right: 40px;
}

/* lewa kolumna */
.branding-content {
    z-index: 2;
    padding-left: 20px;
}

/* nagłówek sekcji */
.branding-title {
    color: var(--accent-2);
    font-size: 32px;
    margin: 0 0 20px;
}

/* tekst */
.branding-text {
    color: var(--muted);
    line-height: 1.6;
}

/* lista */
.branding-list {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.branding-list li {
    margin: 6px 0;
    padding-left: 16px;
    position: relative;
}

.branding-list li::before {
    content: "•";
    color: var(--accent-2);
    position: absolute;
    left: 0;
}

/* Responsywność */
@media (max-width: 900px) {
    .branding-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .branding-gradient {
        width: 100%;
        height: 8px;
        margin: 0 0 20px 0;
    }
}


.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- MOBILE FIX --- */
@media (max-width: 600px) {
    .brand-header {
        flex-direction: column;
        /* logo nad tekstem */
        text-align: center;
        /* ładniejsze ułożenie */
    }

    .brand-header .section-logo {
        max-width: 120px;
        /* mniejsze logo */
        height: auto;
    }

    .training-title {
        font-size: 1.4rem;
        /* żeby się mieścił */
        line-height: 1.3;
    }
}

p,
.hero-lead,
.branding-text,
.training-text {
    text-align: justify;
    /* wyrównanie do lewej i prawej */
    text-justify: inter-word;
    /* lepsze rozmieszczenie spacji między słowami */
}

@media (max-width: 900px) {

    .training-content,
    .branding-content {
        padding-left: 0;
        /* usuwa lewy padding, żeby tekst był równo od krawędzi */
    }

    .training-content {
        padding-right: 0;
    }
}

/* Divider między Kontakt a Galerią grafika */
.main-nav li.divider {
    position: relative;
    padding: 0.5rem 0.5rem;
    /* trochę paddingu */
}

/* Desktop – pionowa linia po lewej */
@media (min-width: 769px) {
    .main-nav li.divider::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 1px;
        height: 100%;
        background-color: #ccc;
    }

    .sectionContainer {
        display: flex;
        flex-direction: row;
        gap: 50px;
    }

    .flex1 {
        flex: 1;
    }
}

/* Mobile – pozioma linia nad linkiem */
@media (max-width: 768px) {
    .main-nav li.divider::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        /* linia nad linkiem */
        width: 100%;
        height: 1px;
        background-color: #ccc;
    }
}