/* ==========================================================================
   MANAWA FLOW - MASTER STYLESHEET (FULL VERSION V2)
   ========================================================================== */

/* --- DEFINICJA LOKALNYCH CZCIONEK --- */
/* Upewnij się, że pliki czcionek są w folderze ../font/ względem pliku CSS */
@font-face {
    font-family: 'Sansation';
    src: url('../font/Sansation-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Sansation';
    src: url('../font/Sansation-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../font/Outfit-Light.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'Outfit';
    src: url('../font/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Outfit';
    src: url('../font/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: 'Outfit';
    src: url('../font/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
}

:root {
    /* --- PALETA PRYZMATU --- */
    --color-accent-1: #FF9A9E; 
    --color-accent-2: #A18CD1; 
    --color-accent-3: #84FAB0; 
    --color-dark:     #1A1A1A; 
    
    /* --- TŁO I SZKŁO --- */
    --bg-light:       #FAFAFA; 
    --glass-white:    rgba(255, 255, 255, 0.75); 
    --glass-border:   rgba(255, 255, 255, 0.9);
    
    /* --- ZMIENNE UI --- */
    --font-head:      'Sansation', sans-serif;
    --font-body:      'Outfit', sans-serif;
    --radius:         20px;
    --shadow-soft:    0 20px 60px -15px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden; /* KLUCZOWE: Zapobiega przewijaniu na boki na telefonie */
    background-color: var(--bg-light);
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    font-size: 17px;
}

/* TŁO MESH GRADIENT */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(at 0% 0%, rgba(255, 154, 158, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(132, 250, 176, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(161, 140, 209, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 236, 210, 0.2) 0px, transparent 50%);
    filter: blur(40px); z-index: -1; animation: meshMove 20s infinite alternate;
}
@keyframes meshMove { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

/* TYPOGRAFIA BAZOWA */
h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /* Zabezpieczenie przed ucinaniem słów */
    overflow-wrap: break-word; 
    word-wrap: break-word;
}
p { color: #4A4A4A; margin-bottom: 1.5rem; font-weight: 300; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* Wyróżnienia tekstu */
i, em { font-family: var(--font-head); color: var(--color-accent-2); font-style: italic; font-weight: 400; }

/* NAWIGACJA */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px; transition: 0.3s; }

.nav-box {
    background: var(--glass-white);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; letter-spacing: 3px; }
.brand span { font-weight: 600; background: linear-gradient(90deg, #FF9A9E, #A18CD1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-item { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: #1a1a1a; position: relative; cursor: pointer; }
.nav-item::before { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--color-dark); transition: 0.3s; }
.nav-item:hover::before { width: 100%; }

/* --- DROPDOWN MENU --- */
.nav-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #fff; min-width: 220px; padding: 15px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); margin-top: 15px; z-index: 1001;
}
.dropdown-content::before { content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; background: transparent; }
.dropdown-content a { display: block; padding: 12px 15px; font-size: 0.85rem; color: var(--color-dark); border-radius: 10px; transition: 0.2s; }
.dropdown-content a:hover { background: #f8f8f8; color: var(--color-accent-1); padding-left: 20px; }
.nav-dropdown:hover .dropdown-content { display: block; animation: fadeInUp 0.3s ease forwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- PRZYCISKI I NAV ACTIONS --- */
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: 15px; }

.btn-prism {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-dark); color: #fff; padding: 14px 35px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    text-align: center; line-height: 1.2; transition: all 0.3s ease; border: 1px solid transparent;
    cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.btn-prism:hover {
    background: #fff; color: var(--color-dark); border-color: var(--color-dark);
    transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.btn-ghost {
    background: rgba(26, 26, 26, 0.05); 
    color: var(--color-dark); 
    border: 1px solid var(--color-dark);
}

/* SEKCJE I GRID */
.hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 140px 20px 80px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -1px; }

.section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    grid-template-areas: 'text img';
}

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.card-bento {
    background: #fff; border-radius: var(--radius); padding: 40px 30px;
    transition: 0.4s; border: 1px solid rgba(0,0,0,0.03);
    position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
}
.card-bento:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(161, 140, 209, 0.15); border-color: rgba(161, 140, 209, 0.3); }
.card-icon { font-size: 2.5rem; margin-bottom: 25px; background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.card-featured { background: linear-gradient(135deg, #fff, #fefefe); border: 2px solid var(--color-accent-1); }

/* FOOTER */
.footer { background: #fff; padding: 80px 0 40px; margin-top: 80px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }

/* ==========================================================================
   STYLE DLA PODSTRONY: MARKA / FILOZOFIA
   ========================================================================== */
.brand-hero {
    text-align: center;
    padding: 140px 20px 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
}
.brand-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}
.brand-hero-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-style: italic;
    line-height: 1.8;
}
.brand-section { padding: 80px 0; }
.brand-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.brand-img-box {
    position: relative; height: 500px; border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.brand-img-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    opacity: 0.1; z-index: 1;
}
.brand-placeholder {
    width: 100%; height: 100%; background: #f0f0f0;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: #aaa; letter-spacing: 2px;
}

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mission-card {
    background: #fff; padding: 40px; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02);
    height: 100%; transition: 0.3s;
}
.mission-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.mission-icon-circle {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.5rem;
}

/* ==========================================================================
   STYLE DLA PODSTRONY: O MNIE
   ========================================================================== */
.about-hero {
    text-align: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}
.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 25px;
    line-height: 1.1;
}
.about-subtitle {
    display: inline-block;
    background: var(--color-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.about-genesis { padding: 80px 0; background: #fff; }
.about-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}
.about-img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    height: 600px;
}
.about-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); z-index: 1;
}
.about-content h2 { font-size: 2.5rem; margin-bottom: 30px; }
.about-divider {
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    margin: 30px 0; border-radius: 2px;
}
.competence-section { padding: 100px 0; background: var(--bg-light); }
.competence-list { list-style: none; padding: 0; margin-top: 25px; text-align: left; }
.competence-list li {
    position: relative; padding-left: 25px; margin-bottom: 15px;
    font-size: 0.9rem; color: #555; line-height: 1.5;
}
.competence-list li::before {
    content: '✔'; position: absolute; left: 0; top: 2px;
    color: var(--color-accent-2); font-weight: bold;
}
.card-highlight {
    border: 2px solid var(--color-accent-1); background: #fff;
    transform: scale(1.05); z-index: 2; box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.guarantee-section {
    text-align: center; padding: 100px 20px; background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   STYLE DLA PODSTRONY: KONTAKT
   ========================================================================== */
.contact-section { padding: 80px 0 120px; }
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info-card {
    background: #fff; padding: 40px; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02);
}
.contact-info-card h3 {
    font-size: 1.5rem; margin-bottom: 30px; padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.contact-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.contact-icon-circle {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,154,158,0.1), rgba(161,140,209,0.1));
    color: var(--color-accent-2); display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-right: 20px; flex-shrink: 0;
}
.contact-text h4 { font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.contact-text p, .contact-text a { font-size: 1.1rem; color: var(--color-dark); font-weight: 500; line-height: 1.4; margin: 0; }
.contact-socials { display: flex; gap: 15px; margin-top: 10px; }
.contact-socials a {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-dark); transition: 0.3s;
}
.contact-socials a:hover { background: var(--color-accent-1); color: #fff; transform: translateY(-3px); }
.contact-form-card {
    background: #fff; padding: 50px; border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.02);
}
.form-group { margin-bottom: 25px; position: relative; }
.form-label {
    display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: #555;
}
.form-input, .form-textarea {
    width: 100%; padding: 15px 20px; border-radius: 12px; border: 1px solid #eee;
    background: var(--bg-light); font-family: var(--font-body); font-size: 1rem;
    color: var(--color-dark); transition: 0.3s;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--color-accent-2); background: #fff;
    box-shadow: 0 0 0 4px rgba(161,140,209,0.1);
}
.form-textarea { min-height: 150px; resize: vertical; }
.rodo-box {
    display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px;
    font-size: 0.85rem; color: #666; line-height: 1.5;
}
.rodo-box input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--color-accent-2); cursor: pointer; }
.rodo-box a { color: var(--color-accent-2); font-weight: 700; text-decoration: underline; }
.form-message {
    padding: 15px; border-radius: 10px; margin-bottom: 30px; font-weight: 600; text-align: center;
}
.form-message.success {
    background: rgba(132, 250, 176, 0.2); color: #2d8a56; border: 1px solid rgba(132, 250, 176, 0.4);
}
.form-message.error {
    background: rgba(255, 154, 158, 0.2); color: #c0392b; border: 1px solid rgba(255, 154, 158, 0.4);
}

/* ==========================================================================
   STYLE DLA PODSTRONY: POLITYKA PRYWATNOŚCI
   ========================================================================== */
.privacy-hero {
    text-align: center; padding: 120px 20px 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
}
.privacy-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; line-height: 1.1; color: var(--color-dark);
}
.privacy-hero-desc {
    font-size: 1.1rem; max-width: 700px; margin: 0 auto;
    color: #666; font-style: italic; line-height: 1.6;
}
.pill-label {
    display: inline-block; background: var(--color-dark); color: #fff; padding: 6px 14px;
    border-radius: 50px; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 20px; text-transform: uppercase;
}
.privacy-wrapper { max-width: 900px; margin: 0 auto; }
.privacy-card {
    background: #fff; padding: 60px; border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02);
}
.privacy-content h2 {
    font-size: 1.8rem; margin-top: 40px; margin-bottom: 20px; color: var(--color-dark);
    border-left: 4px solid var(--color-accent-2); padding-left: 15px;
}
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p { font-size: 1rem; line-height: 1.8; color: #555; margin-bottom: 20px; }
.privacy-content strong { color: var(--color-dark); font-weight: 600; }
.privacy-list { list-style: none; padding: 0; margin-bottom: 30px; }
.privacy-list li {
    position: relative; padding-left: 25px; margin-bottom: 10px; font-size: 1rem; color: #555; line-height: 1.6;
}
.privacy-list li::before {
    content: '•'; position: absolute; left: 0; top: 0; font-size: 1.5rem; line-height: 1.5rem; color: var(--color-accent-1);
}
.privacy-content a { color: var(--color-accent-2); text-decoration: underline; font-weight: 600; }
.privacy-content a:hover { color: var(--color-dark); }
.privacy-footer {
    margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center; font-style: italic; color: #999; font-size: 0.9rem;
}

/* ==========================================================================
   MOBILE & TABLET (RESPONSYWNOŚĆ) - POPRAWKI KRYTYCZNE
   ========================================================================== */
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--color-dark); }

@media (max-width: 992px) {
    /* Navbar na Mobile */
    .navbar { padding: 10px; }
    .nav-box { padding: 15px 20px; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #fff; 
        flex-direction: column; 
        justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 999; 
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    
    .hamburger { display: block; z-index: 1001; }
    
    /* Przyciski w menu mobilnym */
    .nav-actions {
        flex-direction: column; width: 100%; margin-left: 0; margin-top: 20px; gap: 15px;
    }
    .btn-prism { width: 100%; }

    /* Dropdown na Mobile */
    .nav-dropdown {
        flex-direction: column; height: auto; width: 100%; text-align: center;
    }
    .dropdown-content {
        position: static; display: none; transform: none; box-shadow: none; border: none;
        background: #f9f9f9; width: 100%; margin-top: 10px; padding: 10px;
    }
    .nav-dropdown:hover .dropdown-content { display: block; animation: none; }

    /* Reszta układu */
    .bento-grid, .footer-grid, .brand-split, .mission-grid, .about-split, .contact-split { 
        grid-template-columns: 1fr; 
    }
    
    /* Poprawki obrazków */
    .brand-split.reversed .brand-content { order: 2; }
    .brand-split.reversed .brand-img-box { order: 1; }
    .brand-img-box { height: 350px; }
    .about-img-wrapper { height: 450px; order: 1; }
    .about-content { order: 2; }
    
    /* Reset efektów karty */
    .card-highlight { transform: scale(1); }
    
    /* Naprawa Grida na Stronie Głównej */
    .grid-2 {
        grid-template-columns: 1fr !important;
        grid-template-areas: 'img' 'text' !important;
        gap: 30px;
    }
    
    .contact-form-card { padding: 30px; }
    .privacy-card { padding: 30px; }
    
    /* --- CRITICAL FIX: TYPOGRAFIA NA TELEFONIE --- */
    /* Zmniejszamy czcionki nagłówków na małych ekranach, by się mieściły */
    h1, .hero h1, .brand-hero h1, .about-hero h1, .privacy-hero h1 {
        font-size: 2.2rem !important; /* Wymuszony mniejszy rozmiar */
        word-wrap: break-word; /* Łamanie długich słów */
        hyphens: auto;
    }
    
    h2, .about-content h2, .contact-form-card h3 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
    }
    
    /* Słowo "ManawaFlow" w logo też może wymagać uwagi na bardzo małych ekranach */
    .brand { font-size: 1.2rem; letter-spacing: 1px; }
}

@media (max-width: 400px) {
    /* Jeszcze mniejsza czcionka dla bardzo wąskich ekranów */
    h1, .hero h1, .brand-hero h1, .about-hero h1 { font-size: 1.8rem !important; }
}
/* ==========================================================================
   STYLE DLA STRONY BŁĘDU 404 (MANAWA FLOW) - WERSJA FIX "VISIBLE ZERO"
   ========================================================================== */

.error-title {
    font-family: var(--font-head);
    /* Ogromny rozmiar */
    font-size: clamp(6rem, 20vw, 12rem);
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 700;
    
    /* Gradient dla czwórek (4 - 4) */
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(161, 140, 209, 0.2));
}

/* Styl dla środkowego zera - PEŁNY KOLOR (BEZ GRADIENTU) DLA PEWNOŚCI */
.error-title span {
    display: inline-block;
    
    /* Resetujemy dziedziczenie gradientu, żeby zero było widoczne */
    background: none; 
    -webkit-text-fill-color: #A18CD1; /* Twój fiolet (Lawenda) */
    color: #A18CD1;
    
    /* Dodajemy mu "duchową" poświatę zamiast gradientu */
    text-shadow: 0 0 40px rgba(161, 140, 209, 0.6);
    
    animation: floatBreath 4s ease-in-out infinite;
}

@keyframes floatBreath {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 1; }
}

/* Responsywność */
@media (max-width: 768px) {
    .error-title {
        font-size: clamp(5rem, 15vw, 8rem);
    }
}