/* assets/css/app.css
   Czas na Rozwój — App styles (Bootstrap + Custom Design)
   Refaktoryzacja: Optymalizacja struktury, usuwanie duplikatów i porządek typograficzny.
*/

/* ==========================================================================
   1. FONTS (Fira Sans Family)
   ========================================================================== */

/* Light - 300 */
@font-face {
    font-family: "Fira Sans";
    src: url("../fonts/Fira_Sans/subset-FiraSans-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
	font-display: swap;
}

/* Regular - 400 */
@font-face {
    font-family: "Fira Sans";
    src: url("../fonts/Fira_Sans/subset-FiraSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
	font-display: swap;
}

/* SemiBold - 600 */
@font-face {
    font-family: "Fira Sans";
    src: url("../fonts/Fira_Sans/subset-FiraSans-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */

html, body { 
    height: 100%; 
}

body {
    background: var(--page-bg);
    color: var(--text);
    font-family: "Fira Sans", sans-serif;
    font-weight: 300; /* Twoja idealna baza lekkości */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    color: var(--brand); 
    transition: color 0.2s ease;
}

a:hover { 
    color: var(--brand-hover); 
}

p, li { 
    line-height: 1.7; 
}

.container > p,
.container .lead { 
    max-width: 72ch; 
}

/* ==========================================================================
   3. TYPOGRAPHY & HEADINGS
   ========================================================================== */

h1, h2, h3, .display-1, .display-2, .display-3 { 
    letter-spacing: -0.35px; 
}

h1, h2, h3 { 
    font-weight: 600; 
    letter-spacing: -0.7px; 
}

/* ==========================================================================
   4. LAYOUT COMPONENTS (Navbar, Hero, Footer)
   ========================================================================== */

/* Navbar */
.navbar {
    position: relative;
    z-index: 1030;
    background: var(--nav-bg) !important;
    border-bottom: 1px solid var(--nav-border) !important;
}

.navbar .navbar-brand {
    font-weight: 600 !important;
    letter-spacing: -0.4px !important;
    color: #fff !important;
}

.navbar .nav-link {
    color: var(--nav-link) !important;
    font-weight: 400;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--nav-link-hover) !important;
}

.navbar .nav-link.active {
    color: var(--nav-link-active) !important;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.90);
    opacity: 0.95;
}

/* Navbar Dropdowns */
.dropdown-menu { z-index: 2000; }

.navbar .dropdown-menu {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 92, 171, 0.22);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    padding: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-weight: 400;
}

.navbar .dropdown-item:hover {
    background: rgba(0, 92, 171, 0.10);
    color: var(--text);
}

.navbar .dropdown-item.active {
    background: var(--brand) !important;
    color: #fff !important;
}

/* Hero Section */
.hero {
    padding-top: 72px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--hero-border);
    background: var(--hero-bg);
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    color: var(--hero-title) !important;
    font-weight: 600;
    letter-spacing: -0.9px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    position: relative;
}

.hero h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--hero-accent);
}

.hero .lead, .hero p { 
    color: var(--hero-lead) !important; 
}

/* Footer & Mobile CTA */
.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--footer-grad-1), var(--footer-grad-2));
}

.mobile-cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    padding: 10px 12px;
    background: var(--page-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--border-strong);
}

/* ==========================================================================
   5. UI ELEMENTS (Cards, Buttons, Placeholders)
   ========================================================================== */

/* Cards/Boxes */
.box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--card-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.box:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 92, 171, 0.28);
}

/* Buttons */
.btn, .btn:focus { box-shadow: none !important; }

.btn-primary {
    background: var(--btn-bg) !important;
    border-color: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px;
}

.btn-outline-primary {
    color: var(--brand) !important;
    border-color: rgba(0, 92, 171, 0.45) !important;
    background: transparent !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: rgba(0, 92, 171, 0.08) !important;
    border-color: rgba(0, 92, 171, 0.65) !important;
}

.btn-outline-secondary {
    color: var(--brand) !important;
    border-color: rgba(0, 92, 171, 0.45) !important;
    background: transparent !important;
    font-weight: 400 !important;
}

.btn-outline-secondary:hover {
    background: rgba(0, 92, 171, 0.08) !important;
    border-color: rgba(0, 92, 171, 0.65) !important;
}

/* Utilities */
.photo-placeholder {
    border: 1px dashed rgba(15, 23, 42, .22);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, .02);
    padding: 14px;
}

.ph {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
    display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 12px; padding: 12px; color: var(--muted);
}

.ph-hero { aspect-ratio: 16/10; }

.training-photo {
    width: 100%; height: 240px; object-fit: cover; border-radius: 16px;
}

/* ==========================================================================
   6. MOURNING MODE (Tryb żałobny)
   ========================================================================== */

body.mourning {
    /* Tła sekcji i strony */
    --page-bg: #f6f6f6;
    --section-bg: #ffffff;
    --section-alt: #f2f2f2;
    
    /* Tekst - zostawiamy ciemny dla czytelności */
    --text: #111;
    --muted: rgba(0,0,0,.65);
    
    /* Kolory marki i obramowań */
    --brand: #111;
    --brand-hover: #000;
    --border: rgba(17,17,17,.14);
    --border-strong: rgba(17,17,17,.24);
    
    /* Nawigacja */
    --nav-bg: #111;
    --nav-border: rgba(255,255,255,.16);
    --nav-link: rgba(255,255,255,.92);
    --nav-link-hover: #fff;
    --nav-link-active: #fff;
    
    /* Przyciski */
    --btn-bg: #111;
    --btn-bg-hover: #000;
    --btn-outline-text: #111;
    --btn-outline-border: rgba(17,17,17,.35);
    --btn-outline-hover-bg: rgba(17,17,17,.06);
    
    /* Efekty szklane i stopka */
    --glass-bg: rgba(17,17,17,.92);
    --glass-blur: 10px;
    --footer-grad-1: rgba(0,0,0,.02);
    --footer-grad-2: rgba(0,0,0,0);
    
    /* Hero - jasny szary gradient dla widoczności tekstu #111 */
    --hero-bg: linear-gradient(180deg, #e2e2e2, #d6d6d6);
    --hero-title: #111;
    --hero-lead: rgba(0,0,0,.7);
    --hero-border: rgba(0,0,0,.1);

    /* Wyłączamy filtr z samego body, aby nie psuć position:fixed wstążki */
    filter: none !important;
}

/* Nakładamy Grayscale na wszystkie dzieci body OPRÓCZ wstążki */
body.mourning > *:not(.mourning-ribbon) {
    filter: grayscale(100%) brightness(0.96) contrast(0.92) !important;
}

.mourning-ribbon {
    position: fixed; 
    left: 0; 
    right: 0; 
    bottom: 0 !important;
    z-index: 9999; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    padding: 12px 16px; 
    background: #111; 
    color: #fff; 
    font-size: 13px; 
    box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
    /* Brak filtrów na samej wstążce, dzięki czemu jest stabilna na dole */
}

.mourning-ribbon .dot {
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: #fff; 
    opacity: .9;
}

@media (max-width: 991.98px) {
    body.mourning .mourning-ribbon {
        bottom: 72px !important; /* Wypychamy ją nad pasek przycisków */
    }
}
/* ==========================================================================
   7. RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 991.98px) {
    body { padding-bottom: 74px; }
    .site-footer { padding-bottom: 70px !important; }
    
    body.mourning .site-footer { padding-bottom: 150px; }
    .mourning-ribbon { bottom: 72px; font-size: 12.5px; }

    /* Mourning CTA contrast fix */
    body.mourning .mobile-cta-bar .btn-outline-secondary {
        color:#fff !important;
        border-color:rgba(255,255,255,.65) !important;
        background:rgba(255,255,255,.08) !important;
    }
}

@media (min-width: 992px) {
    body.mourning .site-footer { padding-bottom: 60px; }
}

@media (max-width: 576px) {
    .brand-logo { height: 28px; max-width: 70vw; object-fit: contain; }
}

/* ==========================================================================
   8. SPECIFIC PAGE ELEMENTS (FAQ, 404, Success)
   ========================================================================== */

/* Error 404 */
.error404-card { background:#fff; border:1px solid var(--border); border-radius:20px; box-shadow:0 20px 50px rgba(0,0,0,.05); }
.error404-code { font-size:72px; font-weight:600; color:var(--brand); letter-spacing:4px; opacity:.9; }
.error404-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.error404-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border: 1px solid #cfd4da;
    border-radius: 8px;
    #background: #f1f3f5;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.error404-link:hover,
.error404-link:focus {
    background: #e9ecef;
    border-color: #bcc3ca;
    color: #212529;
    text-decoration: none;
}

.error404-link:focus-visible {
    outline: 2px solid rgba(108, 117, 125, 0.25);
    outline-offset: 2px;
}
.error404-link-danger {
    border-color: #dc3545;
    
}

.error404-link-danger:hover,
.error404-link-danger:focus {
    border-color: #dc3545;
    
}
/* Success Icon */
.thankyou-icon {
    width: 84px; height: 84px; margin: 0 auto; border-radius: 50%;
    background: var(--brand) !important; color: #fff;
    font-size: 38px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) { background-color: var(--bs-primary); color: #fff; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.accordion-button:focus { box-shadow: none; }

/* Benefits List */
.benefits-list div { position: relative; padding-left: 26px; }
.benefits-list div::before { content: "✓"; position: absolute; left: 0; font-weight: 600; color: var(--bs-primary); }

/* Breadcrumbs */
.site-breadcrumbs { font-size: 0.9rem; color: #6c757d; }
.site-breadcrumbs a { text-decoration: none; color: var(--bs-primary); font-weight: 400; }
.site-breadcrumbs a:hover { text-decoration: underline; }


/* Wyrównanie boksów w sekcji "Jak pracujemy" */
#jak-pracujemy .row {
    display: flex;
    flex-wrap: wrap;
}

#jak-pracujemy .col-md-4 {
    display: flex;
    flex-direction: column;
}

/* Sprawia, że boki (top i bottom) wypełniają całą wysokość kolumny */
#jak-pracujemy .box {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

/* Wypycha treść, by nagłówki i teksty w boksach startowały z tego samego poziomu */
#jak-pracujemy .box p {
    flex-grow: 1;
}
.training-tiles {
	position: relative;
  z-index: 10;
  margin-top: -88px;
}