/* style4.css - B2B "Dla Firm" Dark Mode Modern Theme */

:root {
    --mw-bg-color: #050505;
    --mw-bg-alt: #0a0a0a;
    --mw-text-main: #f5f5f5;
    --mw-text-muted: #a0a0a0;
    --mw-accent: #ffffff;
    --mw-accent-yellow: #ffc107;
    --mw-glass-bg: rgba(25, 25, 25, 0.5);
    --mw-glass-border: rgba(255, 255, 255, 0.08);
    --mw-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --mw-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.b2b-dark-mode {
    font-family: 'ArialNova', sans-serif;
    background-color: var(--mw-bg-color);
    color: var(--mw-text-main);
    overflow-x: hidden;
}

/* Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0, 0); }

/* Glassmorphism Panel Base Class */
.glass-panel {
    background: var(--mw-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mw-glass-border);
    border-radius: 20px;
    box-shadow: var(--mw-glass-shadow);
    transition: var(--mw-transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.6);
    background: rgba(35, 35, 35, 0.6);
}

/* Shared Headings */
.section-heading {
    text-align: center;
    font-size: 32px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.b2b-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    border-radius: 40px;
    padding: 15px 45px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: var(--mw-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.b2b-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: var(--mw-transition);
    z-index: -1;
}

.b2b-btn:hover {
    color: #000;
    border-color: #fff;
}

.b2b-btn:hover::before {
    left: 0;
}

/* Base Container */
.b2b-container {
    width: 100%;
}

/* Hero Section */
.b2b-hero {
    position: relative;
    min-height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.b2b-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* parallax */
    filter: brightness(0.3) contrast(1.2);
    z-index: -2;
}

.b2b-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--mw-bg-color));
    z-index: -1;
}

.b2b-hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    margin-top: 80px;
}

.b2b-hero-content h1 {
    font-size: clamp(36px, 6vw, 70px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.b2b-hero-content p {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--mw-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Klienci Section */
.b2b-clients {
    padding: 80px 20px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.clients-list {
    display: flex;
    flex-direction: column;
}

.client-row {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.client-logo {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}



.generic-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.generic-logo-circle svg {
    width: 40px;
    height: 40px;
}

.client-text {
    flex: 1;
}

.client-text h3 {
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.client-text p {
    font-size: 13px;
    color: var(--mw-text-muted);
    line-height: 1.6;
    text-align: justify;
}

/* Dlaczego warto wybrać Mads Polska? */
.b2b-why-us {
    padding: 100px 20px;
    background-color: var(--mw-bg-alt);
}

.why-us-grid {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    padding: 40px 30px;
    text-align: center;
}

.why-icon {
    font-size: 40px;
    color: var(--mw-accent);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.1) translateY(-5px);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.why-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

.why-card p {
    font-size: 14px;
    color: var(--mw-text-muted);
    line-height: 1.6;
}

.applications-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

.applications-box h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
}

.applications-box p {
    color: var(--mw-text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

.applications-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.applications-list li {
    font-size: 15px;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.applications-list li i {
    color: var(--mw-accent);
}

/* Współpraca B2B */
.b2b-departments {
    padding: 120px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.departments-header {
    text-align: center;
    margin-bottom: 60px;
}

.departments-header h2 {
    font-size: 32px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.departments-header .subtitle {
    font-size: 18px;
    color: var(--mw-accent);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.departments-header .desc {
    font-size: 15px;
    color: var(--mw-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.department-card {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

.dept-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.department-card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.dept-goal {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 25px;
    font-style: italic;
}

.dept-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes effect to the bottom */
}

.dept-list li {
    font-size: 13px;
    color: var(--mw-text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.dept-effect {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 3px solid var(--mw-accent);
    font-size: 13px;
    color: #ddd;
    line-height: 1.5;
}

.dept-effect strong {
    color: #fff;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

/* Jak złożyć zamówienie? (Timeline) */
.b2b-how-to-order {
    position: relative;
    padding: 120px 20px;
    overflow: hidden;
}

.order-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.2);
    z-index: -2;
}

.b2b-how-to-order::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--mw-bg-color) 100%);
    z-index: -1;
}

.order-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 80px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-number {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: #000;
    border: 2px solid #fff;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -20px;
}

.timeline-content {
    padding: 30px;
}

.timeline-content h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 400;
}

.timeline-content p {
    font-size: 14px;
    color: var(--mw-text-muted);
    line-height: 1.6;
}

.timeline-content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.timeline-content a:hover {
    color: var(--mw-text-muted);
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.cta-box h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 300;
}

.cta-box p {
    font-size: 16px;
    color: var(--mw-text-muted);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .departments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .client-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .client-text p {
        text-align: center;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .applications-box {
        padding: 30px 20px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-number {
        left: 11px !important;
    }
}
