/* ========================================
   SEKCJE STRONY - PEARL THEME
   ======================================== */

/* ===== PODSTAWOWY KONTENER SEKCJI ===== */
html[data-theme="pearl"] .home-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

html[data-theme="pearl"] .home-section-alt {
    background: var(--gradient-pearl);
}

/* ===== NAGŁÓWKI SEKCJI ===== */
html[data-theme="pearl"] .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

html[data-theme="pearl"] .section-eyebrow {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}

html[data-theme="pearl"] .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .section-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem) !important;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== SIATKA FUNKCJI (FEATURES) ===== */
html[data-theme="pearl"] .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-xl);
}

html[data-theme="pearl"] .feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

html[data-theme="pearl"] .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-green);
}

html[data-theme="pearl"] .feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 184, 124, 0.3);
    transition: all var(--transition-base);
}

html[data-theme="pearl"] .feature-icon .k-svg-icon,
html[data-theme="pearl"] .feature-icon svg {
    color: var(--brand-green) !important;
    fill: var(--brand-green) !important;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

html[data-theme="pearl"] .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

html[data-theme="pearl"] .feature-card h3 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .feature-card p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== SEKCJA STATYSTYK ===== */
html[data-theme="pearl"] .stats-section-pearl {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-brand);
    color: white;
}

html[data-theme="pearl"] .stats-grid-pearl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

html[data-theme="pearl"] .stat-card-pearl {
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[data-theme="pearl"] .stat-number-pearl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

html[data-theme="pearl"] .stat-label-pearl {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SIATKA MODUŁÓW ===== */
html[data-theme="pearl"] .modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-xl);
}

html[data-theme="pearl"] .module-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

html[data-theme="pearl"] .module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

html[data-theme="pearl"] .module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--brand-green);
}

html[data-theme="pearl"] .module-card:hover::before {
    transform: scaleX(1);
}

html[data-theme="pearl"] .module-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 184, 124, 0.3);
    transition: all var(--transition-base);
}

html[data-theme="pearl"] .module-icon .k-svg-icon,
html[data-theme="pearl"] .module-icon svg {
    color: var(--brand-green) !important;
    fill: var(--brand-green) !important;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

html[data-theme="pearl"] .module-card:hover .module-icon {
    transform: scale(1.1) rotate(-5deg);
}

html[data-theme="pearl"] .module-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .module-card p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== SEKCJA KLIENTÓW (podstawowa) ===== */
html[data-theme="pearl"] .clients-section-pearl {
    padding: var(--spacing-2xl) 0;
    background: var(--pearl-light);
}

html[data-theme="pearl"] .clients-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

html[data-theme="pearl"] .clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

html[data-theme="pearl"] .client-logo-item {
    flex: 0 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="pearl"] .client-logo-item img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

html[data-theme="pearl"] .client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== SEKCJA CTA ===== */
html[data-theme="pearl"] .cta-section-pearl {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-brand);
    color: white;
    text-align: center;
}

html[data-theme="pearl"] .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

html[data-theme="pearl"] .cta-section-pearl h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

html[data-theme="pearl"] .cta-section-pearl p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="pearl"] .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

html[data-theme="pearl"] .btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--brand-green);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

html[data-theme="pearl"] .btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

html[data-theme="pearl"] .btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

html[data-theme="pearl"] .btn-cta-outline:hover {
    background: white;
    color: var(--brand-green);
    transform: translateY(-3px);
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 992px) {
    html[data-theme="pearl"] .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    html[data-theme="pearl"] .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    html[data-theme="pearl"] .home-section {
        padding: var(--spacing-2xl) 0;
    }

    html[data-theme="pearl"] .features-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme="pearl"] .stats-grid-pearl {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    html[data-theme="pearl"] .modules-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme="pearl"] .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    html[data-theme="pearl"] .btn-cta-white,
    html[data-theme="pearl"] .btn-cta-outline {
        width: 100%;
        justify-content: center;
    }

    html[data-theme="pearl"] .feature-icon {
        width: 60px;
        height: 60px;
    }

    html[data-theme="pearl"] .module-icon {
        width: 60px;
        height: 60px;
    }
}