/* --- ZMIENNE (Stylistyka Tactical/Patch) --- */
:root {
    --bg-canvas: #F5F2EA;      
    --navy-blue: #1C2436;      
    --copper-gold: #B48348;    
    --tiger-red: #A82626;      
    --text-dark: #1a1a1a;
    --wood-texture: #E8DCC5;
}

/* --- BAZA --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23b48348' fill-opacity='0.05' fill-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-blue);
}

.animate-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.animate-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background-color: #000;
}

.hero video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(28, 36, 54, 0.5), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    animation: fadeUp 1.5s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    max-width: 260px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.9));
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,1);
}

.hero p {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--copper-gold);
    font-family: 'Oswald', sans-serif;
    text-shadow: 1px 1px 5px rgba(0,0,0,1);
}

/* --- SEKCJE OGOLNE --- */
.section-separator-line {
    border-bottom: 6px solid var(--copper-gold);
}

/* --- SEKCJA FILOZOFII (DUAL) --- */
.dual-section {
    display: flex;
    flex-wrap: wrap;
    /* Dodajemy overflow hidden, aby znaki w rogach nie rozpychaly strony */
    overflow: hidden; 
}

.dual-col {
    flex: 1;
    min-width: 450px;
    padding: 80px 50px 120px; /* Wiekszy padding na dole dla znakow */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.col-arawashi { 
    background-color: var(--bg-canvas); 
    border-right: 1px solid rgba(0,0,0,0.05);
}

.col-project { 
    background-color: #EBE6DC; 
}

.dual-img-container {
    width: 100%;
    height: 350px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 4px;
    border-bottom: 4px solid var(--navy-blue);
    position: relative;
    z-index: 2; /* Zapewnia, ze zdjecie jest nad kanji */
}

.dual-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dual-col:hover .dual-img-container img {
    transform: scale(1.05);
}

/* Nowe pozycjonowanie Kanji w dolnych rogach */
.bg-kanji {
    position: absolute;
    font-family: 'Noto Serif JP', serif;
    font-size: 8rem; /* Nieco wieksze */
    color: var(--navy-blue);
    opacity: 0.07; /* Delikatnie widoczne */
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

.bg-kanji-left {
    bottom: -30px;
    left: 20px;
    writing-mode: vertical-rl;
}

.bg-kanji-right {
    bottom: -30px;
    right: 20px;
     /* Dla slowa "Project" (Katakana) lepiej wyglada poziom */
    writing-mode: horizontal-tb;
}

.dual-content { position: relative; z-index: 2; }

.dual-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--navy-blue);
    display: flex; align-items: center; gap: 15px;
}

.dual-title::before {
    content: ''; display: block; width: 8px; height: 40px;
    background-color: var(--tiger-red);
}

.accent-text { color: var(--tiger-red); font-weight: 700; }

/* --- DOJO KUN --- */
.dojo-section {
    padding: 120px 20px 100px; /* Wiecej miejsca u gory dla logo */
    background-color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shotokan-bg {
    position: absolute;
    /* Zmiana pozycji na wyzsza */
    top: 30px; 
    left: 50%;
    /* Centrujemy tylko w poziomie */
    transform: translateX(-50%);
    width: 500px; height: 500px;
    background-image: url('../img/shotokan.png');
    background-repeat: no-repeat;
    /* Wyrownanie do gory kontenera */
    background-position: center top;
    background-size: contain;
    /* Zwiekszona widocznosc (mocniej zarysowane) */
    opacity: 0.12; 
    z-index: 0;
    pointer-events: none;
}

.section-header { position: relative; z-index: 2; margin-bottom: 70px; }
.section-header h2 { font-size: 3rem; color: var(--navy-blue); }
.section-header p { font-family: 'Oswald', sans-serif; color: var(--copper-gold); letter-spacing: 1px; }

.dojokun-grid {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
}

.wood-card { width: 180px; height: 350px; perspective: 1000px; cursor: pointer; }
.wood-inner {
    position: relative; width: 100%; height: 100%; text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 10px 15px 25px rgba(28, 36, 54, 0.2);
}
.wood-card:hover .wood-inner { transform: rotateY(180deg); }
.wood-front, .wood-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

.wood-front {
    background-color: var(--wood-texture);
    background-image: linear-gradient(90deg, rgba(0,0,0,0.02) 50%, transparent 50%), linear-gradient(rgba(0,0,0,0.02) 50%, transparent 50%);
    background-size: 4px 4px; border: 5px solid #C4A47C;
}
.kanji-main {
    writing-mode: vertical-rl; text-orientation: upright;
    font-family: 'Noto Serif JP', serif; font-size: 2.2rem; font-weight: 700; color: #111; letter-spacing: 8px;
}

.wood-back {
    background-color: var(--navy-blue); color: white;
    transform: rotateY(180deg); padding: 15px; border: 3px solid var(--copper-gold);
}
.romaji {
    font-family: 'Oswald', sans-serif; font-style: italic; color: var(--copper-gold);
    font-size: 0.9rem; margin-bottom: 20px; border-bottom: 1px solid rgba(180, 131, 72, 0.3);
    padding-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.translation { font-size: 1.1rem; font-weight: 400; line-height: 1.4; color: #fff; }

/* --- LIDERZY --- */
.leaders-contact-section {
    padding: 100px 20px;
    background-color: var(--bg-canvas);
    text-align: center;
}
.leader-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .leader-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .leader-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .leader-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.leader-card {
    background: white; padding: 40px 30px; border-top: 5px solid var(--navy-blue);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.leader-card:hover { transform: translateY(-5px); }
.leader-img {
    width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
    margin-bottom: 20px; border: 4px solid var(--copper-gold);
}
.leader-card h3 { font-size: 1.6rem; margin-bottom: 5px; color: var(--navy-blue); }
.leader-role { color: var(--tiger-red); font-weight: 700; display: block; margin-bottom: 15px; font-family: 'Oswald', sans-serif; }
.leader-bio { font-size: 0.95rem; color: #555; margin-bottom: 25px; }

.whatsapp-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: #25D366; color: white; text-decoration: none;
    padding: 10px 25px; border-radius: 4px; font-family: 'Oswald', sans-serif;
    font-weight: 500; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.whatsapp-btn:hover { background-color: #1da851; transform: scale(1.05); }

/* --- STOPKA --- */
footer {
    background-color: var(--navy-blue);
    color: #dcdcdc;
    padding: 60px 20px 30px;
    text-align: center;
    border-top: 4px solid var(--copper-gold);
}

.footer-text-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 2px solid var(--tiger-red);
    padding-bottom: 5px;
}

.footer-info p { margin-bottom: 10px; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    /* Ukrywamy tla kanji na mobilu, zeby nie robily balaganu */
    .bg-kanji { display: none; }
    .shotokan-bg { width: 300px; height: 300px; top: 20px; }
    .dual-col { min-width: 100%; padding-bottom: 80px; }
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background-color: #000;
}

.hero video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%; width: auto; height: auto;
    z-index: 0; transform: translate(-50%, -50%); object-fit: cover;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Nieco mocniejsze przyciemnienie na dole dla czytelnosci napisow */
    background: linear-gradient(to bottom, rgba(28, 36, 54, 0.4), rgba(0, 0, 0, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    animation: fadeUp 1.5s ease-out;
    /* Przesuniecie calego bloku nieco w gore dla lepszej kompozycji */
    transform: translateY(-20px); 
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(-20px); }
}

.hero-logo {
    max-width: 260px;
    /* Zwieksonny odstep dolny - logo "ucieka" do gory od napisow */
    margin-bottom: 40px; 
    filter: drop-shadow(0 0 25px rgba(0,0,0,1));
    /* Dodatkowe lekkie uniesienie samego logo */
    transform: translateY(-10px);
}

.hero h1 {
    color: white;
    font-size: 3.8rem; /* Nieco wiekszy tytul */
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 15px rgba(0,0,0,1);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 3px; /* Szerokie rozstrzelenie liter dla elegancji */
    color: var(--copper-gold);
    font-family: 'Oswald', sans-serif;
    text-shadow: 1px 1px 8px rgba(0,0,0,1);
    text-transform: uppercase;
    border-top: 1px solid rgba(180, 131, 72, 0.5); /* Linia nad podtytulem */
    padding-top: 20px;
    display: inline-block;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; letter-spacing: 2px; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 1px; }
    .hero-logo { max-width: 200px; margin-bottom: 30px; }
}

/* Ustawienie gridu tak, aby komorki mialy rowna wysokosc */
.leader-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    align-items: stretch; /* Wazne: rozciaga elementy do rownej wysokosci */
}

@media (max-width: 1400px) {
    .leader-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .leader-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .leader-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sensei-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%; /* Wypelnia wysokosc komorki gridu */
}

/* --- Japonska Rama (Bez zmian) --- */
.sensei-frame {
    position: relative;
    width: 240px;
    height: 320px;
    padding: 20px;
    background-color: #F3F0E7;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23d4c5a5' fill-opacity='0.4' fill-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
    box-shadow: 10px 15px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.4s ease;
    flex-shrink: 0; /* Zapobiega kurczeniu sie zdjecia */
}

.sensei-frame:hover { transform: translateY(-10px); }
.sensei-frame::before { content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 1px solid var(--navy-blue); opacity: 0.3; pointer-events: none; }
.sensei-frame::after { content: ''; position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px; border: 1px solid var(--copper-gold); opacity: 0.5; pointer-events: none; }
.img-container-jp { width: 100%; height: 100%; position: relative; z-index: 1; border: 1px solid rgba(0,0,0,0.1); }
.leader-img-jp { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) contrast(1.05); }

/* --- Informacje o Sensei (Flexbox do wyrownania dolu) --- */
.sensei-info {
    width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column; /* Uklad pionowy */
    flex: 1; /* Zajmuje cala dostepna przestrzen */
}

.info-content {
    /* To zawiera imie, role i bio */
    width: 100%;
}

.name-wrapper {
    display: flex; justify-content: center; align-items: center;
    gap: 10px; margin-bottom: 5px;
}

.sensei-info h3 { font-size: 1.4rem; color: var(--navy-blue); margin: 0; }
.hanko { width: 32px; height: 32px; border: 2px solid var(--tiger-red); border-radius: 4px; color: var(--tiger-red); font-family: 'Noto Serif JP', serif; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: bold; opacity: 0.9; transform: rotate(-5deg); }
.leader-role { display: block; font-size: 0.85rem; color: var(--copper-gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-family: 'Oswald', sans-serif; border-bottom: 1px solid rgba(180, 131, 72, 0.2); padding-bottom: 10px; display: inline-block; }

.leader-bio {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
    line-height: 1.8;
}

/* --- Sekcja Akcji Kontaktowych (Wypchnieta na dol) --- */
.contact-actions {
    margin-top: auto; /* TO JEST KLUCZ DO WYROWNANIA */
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.contact-link {
    text-decoration: none;
    color: var(--navy-blue);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-link:hover {
    color: var(--tiger-red);
}

.separator {
    color: var(--copper-gold);
    opacity: 0.5;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-social-link {
    color: var(--copper-gold);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-social-link i {
    font-size: 1.1rem;
}

.footer-social-link:hover {
    color: white;
}

.footer-social-sep {
    color: var(--copper-gold);
    opacity: 0.4;
}

.footer-credit-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s;
}

.footer-credit-link:hover {
    color: var(--copper-gold);
}

.footer-credit-note {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 30px;
    white-space: nowrap;
}

.seo-hidden {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- ZAKŁADKI SOCIAL MEDIA --- */
.social-tabs {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--navy-blue);
    color: var(--copper-gold);
    text-decoration: none;
    padding: 20px 24px 20px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: 5px solid var(--copper-gold);
    border-top: 1px solid rgba(180, 131, 72, 0.3);
    border-bottom: 1px solid rgba(180, 131, 72, 0.3);
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
    transform: translateX(calc(100% - 66px));
    box-shadow: -6px 4px 22px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.social-tab:hover,
.social-tab:focus {
    transform: translateX(0);
    color: white;
    background-color: #252f4a;
    outline: none;
}

.social-tab i {
    font-size: 1.5rem;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .social-tabs {
        top: auto;
        bottom: 60px;
        transform: none;
    }
}
