/* =========================================
   SYSTEM STYLÓW (MAKE MONEY FLOW)
   ========================================= */
:root {
    --c-dark: #0B1E3B;       /* Granat Królewski */
    --c-dark-light: #152b50; /* Jaśniejszy granat */
    --c-accent: #00D4AA;     /* Szmaragdowy */
    --c-accent-hover: #00bf99;
    --c-bg-light: #F8FAFC;   /* Tło techniczne */
    --c-text: #334155;       /* Tekst główny */
    --c-text-muted: #64748b; /* Tekst poboczny */
    --c-white: #ffffff;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px -10px rgba(0, 212, 170, 0.15);
}

/* --- RESET & BAZA --- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--c-text);
    line-height: 1.6;
    margin: 0; padding: 0;
    background-color: var(--c-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* --- TYPOGRAFIA --- */
h1, h2, h3, h4 { color: var(--c-dark); font-weight: 800; line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin-bottom: 25px; letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }
p { margin-bottom: 1.5em; color: var(--c-text-muted); font-size: 1.05rem; }

.mmf-highlight { color: var(--c-accent); }
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }

/* --- ANIMACJE (Intersection Observer) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Opóźnienia dla elementów (stagger) */
.stagger-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease-out; }
.active .stagger-item { opacity: 1; transform: translateY(0); }
.active .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.active .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.active .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.active .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.active .stagger-item:nth-child(5) { transition-delay: 0.5s; }

.hero-animate { animation: reveal-hero 1.2s ease-out forwards; }
@keyframes reveal-hero {
    from { opacity: 0; clip-path: inset(0 0 100% 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
}

.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- ELEMENTY UI --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 6px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    border: none; cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary { background: var(--c-accent); color: var(--c-dark); box-shadow: 0 4px 15px rgba(0, 212, 170, 0.25); }
.btn-primary:hover { background: var(--c-accent-hover); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 212, 170, 0.4); }

.btn-outline { background: transparent; border: 2px solid var(--c-dark); color: var(--c-dark); }
.btn-outline:hover { background: var(--c-dark); color: white; transform: translateY(-2px); }

.btn-white-outline { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: white; }
.btn-white-outline:hover { background: white; color: var(--c-dark); border-color: white; transform: translateY(-2px); }

.btn-full { width: 100%; text-align: center; }

.link-arrow { color: var(--c-dark); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.link-arrow:hover { color: var(--c-accent-hover); gap: 12px; }

.social-icon-link svg { transition: fill 0.3s ease, transform 0.3s ease; }
.social-icon-link:hover svg { fill: var(--c-accent); transform: scale(1.1); }

/* --- HEADER & NAV --- */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(11, 30, 59, 0.95); backdrop-filter: blur(10px);
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: padding 0.3s ease;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 900; color: white; text-decoration: none; letter-spacing: -1px; }
.nav-menu { display: flex; gap: 25px; }
.nav-menu a { color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.3s; position: relative; }
.nav-menu a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--c-accent); transition: 0.3s; }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { color: var(--c-accent); }

.hamburger {
    display: none; flex-direction: column; justify-content: space-around;
    width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1010;
}
.hamburger span {
    width: 30px; height: 3px; background: white; border-radius: 10px;
    transition: all 0.3s linear; position: relative; transform-origin: 1px;
}

/* --- SEKCJE OGÓLNE --- */
.section { padding: 90px 0; }
.bg-light { background-color: var(--c-bg-light); }
.bg-dark { background-color: var(--c-dark); color: white; }
.bg-dark h2, .bg-dark p, .bg-dark h3, .bg-dark h4 { color: white; }
.bg-dark p { opacity: 0.85; }

/* --- HERO STRONY GŁÓWNEJ --- */
.hero {
    background: linear-gradient(135deg, rgba(11, 30, 59, 0.94) 0%, rgba(11, 30, 59, 0.8) 100%), url('/assets/img/plynnosc-interwencyjna.png');
    background-size: cover; background-position: center;
    min-height: 85vh; display: flex; align-items: center;
    color: white; padding-top: 40px;
}
.hero h1 { color: white; }
.hero p { color: #e2e8f0; font-size: 1.25rem; max-width: 750px; margin-bottom: 40px; }

/* --- TRUST STRIP --- */
.trust-strip { background: white; padding: 40px 0; border-bottom: 1px solid #e2e8f0; margin-top: -2px; }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 30px; text-align: center; }
.stat-number { display: block; font-size: 2.2rem; font-weight: 800; color: var(--c-dark); line-height: 1; margin-bottom: 5px; transition: transform 0.3s ease; }
.trust-grid > div:hover .stat-number { transform: scale(1.1); color: var(--c-accent); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; color: #94a3b8; letter-spacing: 1px; }

/* --- TARGET GRID (SEGMENTACJA) --- */
.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 50px; }
.target-card { 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
    padding: 35px; border-radius: 12px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.target-card:hover { background: rgba(255,255,255,0.08); border-color: var(--c-accent); transform: translateY(-5px); }
.check-list-light li { list-style: none; padding-left: 25px; position: relative; margin-bottom: 8px; color: #cbd5e1; font-size: 0.95rem; }
.check-list-light li::before { content: "•"; color: var(--c-accent); position: absolute; left: 0; font-weight: bold; font-size: 1.2em; }

/* --- CARDS GRID (USŁUGI) --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-card); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 5px solid transparent; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); border-top-color: var(--c-accent); box-shadow: var(--shadow-hover); }
.card-img { height: 220px; width: 100%; object-fit: cover; background: #eee; transition: 0.5s ease; }
.service-card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 35px; flex-grow: 1; display: flex; flex-direction: column; }
.check-list-dark { margin: 20px 0; padding: 0; }
.check-list-dark li { list-style: none; padding-left: 25px; position: relative; margin-bottom: 10px; color: var(--c-text); }
.check-list-dark li::before { content: "✓"; color: var(--c-accent); position: absolute; left: 0; font-weight: bold; }

/* --- TECH SECTION (TMS) --- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tech-box { background: rgba(0, 212, 170, 0.08); padding: 30px; border-radius: 10px; border-left: 4px solid var(--c-accent); margin-top: 30px; }
.tech-visual { 
    background: #F3F5F9; color: #334155; padding: 30px; border-radius: 16px; 
    box-shadow: 0 20px 60px rgba(11, 30, 59, 0.25); position: relative; overflow: hidden;
}

/* --- STEPS GRID (PROCES) --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 60px; }
.step-item { position: relative; margin-top: 30px; padding-top: 35px; border-top: 3px solid #e2e8f0; transition: 0.3s ease; }
.step-num { 
    position: absolute; top: -28px; left: 0;
    background-color: var(--c-white); padding-right: 20px;
    font-size: 3rem; font-weight: 900; color: #cbd5e1; line-height: 1;
    transition: 0.3s ease; z-index: 2;
}
.bg-light .step-num { background-color: var(--c-bg-light); }
.step-item:hover { border-color: var(--c-accent); transform: translateX(5px); }
.step-item:hover .step-num { color: var(--c-accent); transform: scale(1.1); transform-origin: left center; }

/* --- FAQ --- */
.faq-details { margin-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.faq-summary { padding: 20px 0; cursor: pointer; font-weight: 700; color: var(--c-dark); list-style: none; position: relative; font-size: 1.1rem; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: "+"; position: absolute; right: 0; color: var(--c-accent); font-size: 1.5rem; font-weight: 300; transition: 0.3s; }
.faq-details[open] .faq-summary::after { transform: rotate(45deg); color: var(--c-accent-hover); }
.faq-answer { padding-bottom: 25px; color: var(--c-text-muted); font-size: 0.95rem; padding-right: 40px; animation: slideDown 0.4s ease-out; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER --- */
footer { background: #020617; color: #94a3b8; padding: 70px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 50px; }
footer a { color: #cbd5e1; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--c-accent); padding-left: 5px; }
footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }

/* --- STYLE DLA PODSTRON (SUBPAGE) --- */
.subpage-hero {
    background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.85) 100%);
    background-size: cover; background-position: center;
    padding: 100px 0 60px; color: white; text-align: center;
}

.hero-interwencyjna { background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.85) 100%), url('../img/plynnosc-interwencyjna.png') center/cover no-repeat; }
.hero-operacyjna { background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.85) 100%), url('../img/plynnosc-operacyjna.png') center/cover no-repeat; }
.hero-strategiczna { background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.85) 100%), url('../img/plynnosc-strategiczna.png') center/cover no-repeat; }
.hero-o-nas { background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.85) 100%), url('../img/o-nas.png') center/cover no-repeat; }
.hero-kontakt { background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.85) 100%), url('../img/eksperci.png') center/cover no-repeat; }
.hero-case-study { background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.85) 100%), url('../img/plynnosc-operacyjna.png') center/cover no-repeat; }

.subpage-hero h1 { font-size: 2.8rem; margin-bottom: 15px; color: white; }
.breadcrumbs { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 20px; }
.breadcrumbs a { color: #cbd5e1; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.sidebar-wrapper { position: sticky; top: 100px; }
.sidebar-box { 
    background: white; padding: 30px; border-radius: 12px; 
    border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: 0.3s ease;
}
.sidebar-box:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.sidebar-list li { 
    list-style: none; padding: 12px 0; border-bottom: 1px solid #f1f5f9; 
    display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--c-text-muted); 
}
.sidebar-list li strong { color: var(--c-dark); }

.check-list-subpage li { list-style: none; padding-left: 30px; position: relative; margin-bottom: 15px; color: var(--c-text); font-weight: 500; }
.check-list-subpage li::before { content: "✓"; color: var(--c-accent); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; }

/* --- STYLE DLA KONTAKTU --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; margin-top: 40px; }
.contact-info-box { background: var(--c-bg-light); padding: 40px; border-radius: 12px; height: 100%; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.info-icon {
    background: white; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--c-accent); font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); flex-shrink: 0;
}
.info-content h4 { margin-bottom: 5px; font-size: 1.1rem; }
.info-content p { margin: 0; font-size: 0.95rem; color: var(--c-text-muted); }
.form-wrapper { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--c-dark); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 6px;
    font-family: inherit; font-size: 1rem; transition: 0.3s; background: #f8fafc;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--c-accent); background: white; box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: #64748b; margin-bottom: 25px; }

/* --- SEKCJA EKSPERCI --- */
.team-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* --- STYLE DLA O NAS --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.team-photo { width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.founder-card { margin-top: 30px; padding: 25px; background: #fff; border-left: 5px solid var(--c-accent); box-shadow: var(--shadow-card); border-radius: 0 8px 8px 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.value-card { background: white; padding: 40px; border-radius: 12px; box-shadow: var(--shadow-card); border-top: 4px solid var(--c-accent); }
.stats-strip { background: var(--c-dark-light); color: white; padding: 60px 0; margin-top: 80px; }
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.stat-big { font-size: 3rem; font-weight: 800; color: var(--c-accent); line-height: 1; }
.stat-desc { font-size: 0.9rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; display: block; }

/* --- STYLE DLA CASE STUDY --- */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; margin-top: 40px; }
.case-card {
    background: white; padding: 35px 30px; border-radius: 12px; border-top: 4px solid var(--c-accent); box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease-out; display: flex; flex-direction: column; height: 100%;
    opacity: 0; transform: translateY(30px);
}
.case-card.visible { opacity: 1; transform: translateY(0); }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.case-meta { font-size: 0.85rem; color: var(--c-text-muted); border-top: 1px solid #e2e8f0; padding-top: 15px; margin-top: auto; }
.money-highlight { color: var(--c-accent-hover); font-weight: 700; background: rgba(0, 212, 170, 0.1); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.status-badge { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 15px; color: var(--c-text-muted); opacity: 0.8; }

/* --- STYLE DLA POLITYKI PRYWATNOŚCI --- */
.legal-content { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.legal-content ul { list-style: none; padding-left: 0; margin-bottom: 2em; }
.legal-content ul li { position: relative; padding-left: 30px; margin-bottom: 15px; color: var(--c-text-muted); }
.legal-content ul li::before { content: "•"; color: var(--c-accent); font-weight: bold; font-size: 1.5rem; position: absolute; left: 0; top: -5px; }

/* --- RWD --- */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-menu { 
        display: none; flex-direction: column; width: 100%; position: absolute; 
        top: 60px; left: 0; background: var(--c-dark); padding: 20px; gap: 15px; text-align: center; 
    }
    .nav-menu.active { display: flex; animation: slideDown 0.3s ease-out; }
    
    .content-grid, .contact-grid, .about-grid, .tech-grid, .target-grid, .team-section { grid-template-columns: 1fr; }
    .sidebar-wrapper { position: static; margin-top: 40px; }
    .about-grid { display: flex; flex-direction: column-reverse; }
    .stats-container { flex-direction: column; }
    
    .hamburger.active span:nth-child(1) { transform: rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .subpage-hero h1 { font-size: 2rem; }
}
